
/* std::filebuf::_M_set_buffer(int) */

void __thiscall std::filebuf::_M_set_buffer(filebuf *this,int param_1)

{
  int iVar1;
  
  iVar1 = *(int *)(this + 0x5c);
  *(int *)(this + 4) = iVar1;
  *(int *)(this + 8) = iVar1;
  if (((*(uint *)(this + 0x40) & 8) == 0) || (param_1 < 1)) {
    *(int *)(this + 0xc) = iVar1;
    if (((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))
    {
      *(int *)(this + 0x14) = iVar1;
      *(int *)(this + 0x10) = iVar1;
      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);
      return;
    }
  }
  else {
    *(int *)(this + 0xc) = iVar1 + param_1;
  }
  *(undefined4 *)(this + 0x14) = 0;
  *(undefined4 *)(this + 0x10) = 0;
  *(undefined4 *)(this + 0x18) = 0;
  return;
}



void FUN_001ae110(int param_1,int param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 0x5c);
  *(int *)(param_1 + 4) = iVar1;
  *(int *)(param_1 + 8) = iVar1;
  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {
    *(int *)(param_1 + 0xc) = iVar1;
    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&
       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {
      *(int *)(param_1 + 0x14) = iVar1;
      *(int *)(param_1 + 0x10) = iVar1;
      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);
      return;
    }
  }
  else {
    *(int *)(param_1 + 0xc) = iVar1 + param_2;
  }
  *(undefined4 *)(param_1 + 0x14) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(undefined4 *)(param_1 + 0x18) = 0;
  return;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [EAX + 0x5c]
MOV EBX,dword ptr [EAX + 0x40]
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [EAX + 0x8],EDX
TEST BL,0x8
JZ 0x001ae150
TEST ECX,ECX
JLE 0x001ae150
ADD EDX,ECX
MOV dword ptr [EAX + 0xc],EDX
MOV dword ptr [EAX + 0x14],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV dword ptr [EAX + 0x18],0x0
POP EBX
RET
AND EBX,0x11
MOV dword ptr [EAX + 0xc],EDX
JZ 0x001ae133
TEST ECX,ECX
JNZ 0x001ae133
MOV ECX,dword ptr [EAX + 0x60]
CMP ECX,0x1
JBE 0x001ae133
MOV dword ptr [EAX + 0x14],EDX
MOV dword ptr [EAX + 0x10],EDX
LEA EDX,[EDX + ECX*0x1 + -0x1]
MOV dword ptr [EAX + 0x18],EDX
POP EBX
RET
(translation_unit "void FUN_001ae110(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}\n\n" (function_definition "void FUN_001ae110(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001ae110(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar1;" (assignment_expression "*(int *)(param_1 + 8) = iVar1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" if (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 8) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 8) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 8)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 8" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) ))) )) (compound_statement "{\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }" { (expression_statement "*(int *)(param_1 + 0xc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }" if (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60)))))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x11) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 0x11) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x11)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 0x11" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))" ( (parenthesized_expression "(param_2 == 0 && (1 < *(uint *)(param_1 + 0x60)))" ( (binary_expression "param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))" (binary_expression "param_2 == 0" identifier == number_literal) && (parenthesized_expression "(1 < *(uint *)(param_1 + 0x60))" ( (binary_expression "1 < *(uint *)(param_1 + 0x60)" number_literal < (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60)" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar1 + -1 + *(uint *)(param_1 + 0x60)" (binary_expression "iVar1 + -1" identifier + number_literal) + (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" { (expression_statement "*(int *)(param_1 + 0xc) = iVar1 + param_2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1 + param_2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "iVar1 + param_2" identifier + identifier)) ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::filebuf::_M_set_buffer(int) */\n\nvoid __thiscall std::filebuf::_M_set_buffer(filebuf *this,int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(this + 0x5c);\n  *(int *)(this + 4) = iVar1;\n  *(int *)(this + 8) = iVar1;\n  if (((*(uint *)(this + 0x40) & 8) == 0) || (param_1 < 1)) {\n    *(int *)(this + 0xc) = iVar1;\n    if (((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))\n    {\n      *(int *)(this + 0x14) = iVar1;\n      *(int *)(this + 0x10) = iVar1;\n      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(this + 0xc) = iVar1 + param_1;\n  }\n  *(undefined4 *)(this + 0x14) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n  *(undefined4 *)(this + 0x18) = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::filebuf::_M_set_buffer(filebuf *this,int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(this + 0x5c);\n  *(int *)(this + 4) = iVar1;\n  *(int *)(this + 8) = iVar1;\n  if (((*(uint *)(this + 0x40) & 8) == 0) || (param_1 < 1)) {\n    *(int *)(this + 0xc) = iVar1;\n    if (((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))\n    {\n      *(int *)(this + 0x14) = iVar1;\n      *(int *)(this + 0x10) = iVar1;\n      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(this + 0xc) = iVar1 + param_1;\n  }\n  *(undefined4 *)(this + 0x14) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n  *(undefined4 *)(this + 0x18) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::filebuf::" identifier : : identifier : :) (function_declarator "_M_set_buffer(filebuf *this,int param_1)" identifier (parameter_list "(filebuf *this,int param_1)" ( (parameter_declaration "filebuf *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(this + 0x5c);\n  *(int *)(this + 4) = iVar1;\n  *(int *)(this + 8) = iVar1;\n  if (((*(uint *)(this + 0x40) & 8) == 0) || (param_1 < 1)) {\n    *(int *)(this + 0xc) = iVar1;\n    if (((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))\n    {\n      *(int *)(this + 0x14) = iVar1;\n      *(int *)(this + 0x10) = iVar1;\n      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(this + 0xc) = iVar1 + param_1;\n  }\n  *(undefined4 *)(this + 0x14) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n  *(undefined4 *)(this + 0x18) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(this + 0x5c);" (assignment_expression "iVar1 = *(int *)(this + 0x5c)" identifier = (pointer_expression "*(int *)(this + 0x5c)" * (cast_expression "(int *)(this + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x5c)" ( (binary_expression "this + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(this + 4) = iVar1;" (assignment_expression "*(int *)(this + 4) = iVar1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(this + 8) = iVar1;" (assignment_expression "*(int *)(this + 8) = iVar1" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(this + 0x40) & 8) == 0) || (param_1 < 1)) {\n    *(int *)(this + 0xc) = iVar1;\n    if (((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))\n    {\n      *(int *)(this + 0x14) = iVar1;\n      *(int *)(this + 0x10) = iVar1;\n      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(this + 0xc) = iVar1 + param_1;\n  }" if (parenthesized_expression "(((*(uint *)(this + 0x40) & 8) == 0) || (param_1 < 1))" ( (binary_expression "((*(uint *)(this + 0x40) & 8) == 0) || (param_1 < 1)" (parenthesized_expression "((*(uint *)(this + 0x40) & 8) == 0)" ( (binary_expression "(*(uint *)(this + 0x40) & 8) == 0" (parenthesized_expression "(*(uint *)(this + 0x40) & 8)" ( (binary_expression "*(uint *)(this + 0x40) & 8" (pointer_expression "*(uint *)(this + 0x40)" * (cast_expression "(uint *)(this + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x40)" ( (binary_expression "this + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) ))) )) (compound_statement "{\n    *(int *)(this + 0xc) = iVar1;\n    if (((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))\n    {\n      *(int *)(this + 0x14) = iVar1;\n      *(int *)(this + 0x10) = iVar1;\n      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);\n      return;\n    }\n  }" { (expression_statement "*(int *)(this + 0xc) = iVar1;" (assignment_expression "*(int *)(this + 0xc) = iVar1" (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))\n    {\n      *(int *)(this + 0x14) = iVar1;\n      *(int *)(this + 0x10) = iVar1;\n      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);\n      return;\n    }" if (parenthesized_expression "(((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60)))))" ( (binary_expression "((*(uint *)(this + 0x40) & 0x11) != 0) && ((param_1 == 0 && (1 < *(uint *)(this + 0x60))))" (parenthesized_expression "((*(uint *)(this + 0x40) & 0x11) != 0)" ( (binary_expression "(*(uint *)(this + 0x40) & 0x11) != 0" (parenthesized_expression "(*(uint *)(this + 0x40) & 0x11)" ( (binary_expression "*(uint *)(this + 0x40) & 0x11" (pointer_expression "*(uint *)(this + 0x40)" * (cast_expression "(uint *)(this + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x40)" ( (binary_expression "this + 0x40" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "((param_1 == 0 && (1 < *(uint *)(this + 0x60))))" ( (parenthesized_expression "(param_1 == 0 && (1 < *(uint *)(this + 0x60)))" ( (binary_expression "param_1 == 0 && (1 < *(uint *)(this + 0x60))" (binary_expression "param_1 == 0" identifier == number_literal) && (parenthesized_expression "(1 < *(uint *)(this + 0x60))" ( (binary_expression "1 < *(uint *)(this + 0x60)" number_literal < (pointer_expression "*(uint *)(this + 0x60)" * (cast_expression "(uint *)(this + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x60)" ( (binary_expression "this + 0x60" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n      *(int *)(this + 0x14) = iVar1;\n      *(int *)(this + 0x10) = iVar1;\n      *(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);\n      return;\n    }" { (expression_statement "*(int *)(this + 0x14) = iVar1;" (assignment_expression "*(int *)(this + 0x14) = iVar1" (pointer_expression "*(int *)(this + 0x14)" * (cast_expression "(int *)(this + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(this + 0x10) = iVar1;" (assignment_expression "*(int *)(this + 0x10) = iVar1" (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60);" (assignment_expression "*(uint *)(this + 0x18) = iVar1 + -1 + *(uint *)(this + 0x60)" (pointer_expression "*(uint *)(this + 0x18)" * (cast_expression "(uint *)(this + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = (binary_expression "iVar1 + -1 + *(uint *)(this + 0x60)" (binary_expression "iVar1 + -1" identifier + number_literal) + (pointer_expression "*(uint *)(this + 0x60)" * (cast_expression "(uint *)(this + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x60)" ( (binary_expression "this + 0x60" identifier + number_literal) )))))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    *(int *)(this + 0xc) = iVar1 + param_1;\n  }" else (compound_statement "{\n    *(int *)(this + 0xc) = iVar1 + param_1;\n  }" { (expression_statement "*(int *)(this + 0xc) = iVar1 + param_1;" (assignment_expression "*(int *)(this + 0xc) = iVar1 + param_1" (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = (binary_expression "iVar1 + param_1" identifier + identifier)) ;) }))) (expression_statement "*(undefined4 *)(this + 0x14) = 0;" (assignment_expression "*(undefined4 *)(this + 0x14) = 0" (pointer_expression "*(undefined4 *)(this + 0x14)" * (cast_expression "(undefined4 *)(this + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x10) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10) = 0" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x18) = 0;" (assignment_expression "*(undefined4 *)(this + 0x18) = 0" (pointer_expression "*(undefined4 *)(this + 0x18)" * (cast_expression "(undefined4 *)(this + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001ae110(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}\n\n" (function_definition "void FUN_001ae110(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001ae110(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 8) = iVar1;" (assignment_expression "*(int *)(param_1 + 8) = iVar1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" if (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 8) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 8) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 8)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 8" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) ))) )) (compound_statement "{\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }" { (expression_statement "*(int *)(param_1 + 0xc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }" if (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60)))))" ( (binary_expression "((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x11) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x40) & 0x11) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x11)" ( (binary_expression "*(uint *)(param_1 + 0x40) & 0x11" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))" ( (parenthesized_expression "(param_2 == 0 && (1 < *(uint *)(param_1 + 0x60)))" ( (binary_expression "param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))" (binary_expression "param_2 == 0" identifier == number_literal) && (parenthesized_expression "(1 < *(uint *)(param_1 + 0x60))" ( (binary_expression "1 < *(uint *)(param_1 + 0x60)" number_literal < (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }" { (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60)" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar1 + -1 + *(uint *)(param_1 + 0x60)" (binary_expression "iVar1 + -1" identifier + number_literal) + (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" { (expression_statement "*(int *)(param_1 + 0xc) = iVar1 + param_2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1 + param_2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "iVar1 + param_2" identifier + identifier)) ;) }))) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001ae110(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001ae110(int param_1,int param_2)" (identifier "FUN_001ae110") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x5c);\n  *(int *)(param_1 + 4) = iVar1;\n  *(int *)(param_1 + 8) = iVar1;\n  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(param_1 + 8) = iVar1;" (assignment_expression "*(int *)(param_1 + 8) = iVar1" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" (if "if") (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1))" (( "(") (binary_expression "((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 8) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x40) & 8) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 8)" (( "(") (binary_expression "*(uint *)(param_1 + 0x40) & 8" (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0xc) = iVar1;\n    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0xc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }" (if "if") (parenthesized_expression "(((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60)))))" (( "(") (binary_expression "((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&\n       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))" (parenthesized_expression "((*(uint *)(param_1 + 0x40) & 0x11) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x40) & 0x11) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x40) & 0x11)" (( "(") (binary_expression "*(uint *)(param_1 + 0x40) & 0x11" (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "0x11")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))" (( "(") (parenthesized_expression "(param_2 == 0 && (1 < *(uint *)(param_1 + 0x60)))" (( "(") (binary_expression "param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))" (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(1 < *(uint *)(param_1 + 0x60))" (( "(") (binary_expression "1 < *(uint *)(param_1 + 0x60)" (number_literal "1") (< "<") (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      *(int *)(param_1 + 0x14) = iVar1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);\n      return;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(param_1 + 0x10) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);" (assignment_expression "*(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60)" (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "iVar1 + -1 + *(uint *)(param_1 + 0x60)" (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1")) (+ "+") (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" (else "else") (compound_statement "{\n    *(int *)(param_1 + 0xc) = iVar1 + param_2;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0xc) = iVar1 + param_2;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1 + param_2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "iVar1 + param_2" (identifier "iVar1") (+ "+") (identifier "param_2"))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::filebuf::_M_set_buffer(int) */

void __thiscall std::type_1::function_1(type_1 *var_1,int var_2)

{
  int var_3;
  
  var_3 = *(int *)(var_1 + 0x5c);
  *(int *)(var_1 + 4) = var_3;
  *(int *)(var_1 + 8) = var_3;
  if (((*(type_2 *)(var_1 + 0x40) & 8) == 0) || (var_2 < 1)) {
    *(int *)(var_1 + 0xc) = var_3;
    if (((*(type_2 *)(var_1 + 0x40) & 0x11) != 0) && ((var_2 == 0 && (1 < *(type_2 *)(var_1 + 0x60)))))
    {
      *(int *)(var_1 + 0x14) = var_3;
      *(int *)(var_1 + 0x10) = var_3;
      *(type_2 *)(var_1 + 0x18) = var_3 + -1 + *(type_2 *)(var_1 + 0x60);
      return;
    }
  }
  else {
    *(int *)(var_1 + 0xc) = var_3 + var_2;
  }
  *(type_3 *)(var_1 + 0x14) = 0;
  *(type_3 *)(var_1 + 0x10) = 0;
  *(type_3 *)(var_1 + 0x18) = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 0x5c);
  *(int *)(param_1 + 4) = iVar1;
  *(int *)(param_1 + 8) = iVar1;
  if (((*(uint *)(param_1 + 0x40) & 8) == 0) || (param_2 < 1)) {
    *(int *)(param_1 + 0xc) = iVar1;
    if (((*(uint *)(param_1 + 0x40) & 0x11) != 0) &&
       ((param_2 == 0 && (1 < *(uint *)(param_1 + 0x60))))) {
      *(int *)(param_1 + 0x14) = iVar1;
      *(int *)(param_1 + 0x10) = iVar1;
      *(uint *)(param_1 + 0x18) = iVar1 + -1 + *(uint *)(param_1 + 0x60);
      return;
    }
  }
  else {
    *(int *)(param_1 + 0xc) = iVar1 + param_2;
  }
  *(undefined4 *)(param_1 + 0x14) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(undefined4 *)(param_1 + 0x18) = 0;
  return;
}

