
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void sel_spread(Terminal *term)

{
  wchar_t wVar1;
  pos pVar2;
  
  if (term->seltype != ADDRTYPE_UNSPEC) {
    return;
  }
  pVar2 = sel_spread_half(term,term->selstart,L'\xffffffff');
  term->selstart = pVar2;
  wVar1 = (term->selend).x;
  if (wVar1 == L'\0') {
    (term->selend).x = term->cols;
    (term->selend).y = (term->selend).y + L'\xffffffff';
  }
  else {
    (term->selend).x = wVar1 + L'\xffffffff';
  }
  pVar2 = sel_spread_half(term,term->selend,L'\x01');
  term->selend = pVar2;
  if (pVar2.x == term->cols) {
    (term->selend).x = L'\0';
    (term->selend).y = (term->selend).y + L'\x01';
  }
  else {
    (term->selend).x = pVar2.x + L'\x01';
  }
  return;
}



void FUN_00127e62(long param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  if (*(int *)(param_1 + 0xeb8) != 0) {
    return;
  }
  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);
  *(undefined8 *)(param_1 + 0xec0) = uVar2;
  if (*(int *)(param_1 + 0xecc) == 0) {
    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);
    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;
  }
  else {
    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;
  }
  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);
  *(undefined8 *)(param_1 + 0xec8) = uVar2;
  iVar1 = (int)((ulong)uVar2 >> 0x20);
  if (iVar1 == *(int *)(param_1 + 0x18c)) {
    *(undefined4 *)(param_1 + 0xecc) = 0;
    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;
  }
  else {
    *(int *)(param_1 + 0xecc) = iVar1 + 1;
  }
  return;
}


CMP dword ptr [RDI + 0xeb8],0x0
JZ 0x00127e6c
RET
PUSH RBX
MOV RBX,RDI
MOV RSI,qword ptr [RDI + 0xec0]
MOV EDX,0xffffffff
CALL 0x00127aef
MOV qword ptr [RBX + 0xec0],RAX
MOV EAX,dword ptr [RBX + 0xecc]
TEST EAX,EAX
JNZ 0x00127ed7
MOV EAX,dword ptr [RBX + 0x18c]
MOV dword ptr [RBX + 0xecc],EAX
SUB dword ptr [RBX + 0xec8],0x1
MOV RSI,qword ptr [RBX + 0xec8]
MOV EDX,0x1
MOV RDI,RBX
CALL 0x00127aef
MOV qword ptr [RBX + 0xec8],RAX
SHR RAX,0x20
CMP EAX,dword ptr [RBX + 0x18c]
JZ 0x00127ee2
ADD EAX,0x1
MOV dword ptr [RBX + 0xecc],EAX
POP RBX
RET
SUB EAX,0x1
MOV dword ptr [RBX + 0xecc],EAX
JMP 0x00127ea5
MOV dword ptr [RBX + 0xecc],0x0
ADD dword ptr [RBX + 0xec8],0x1
JMP 0x00127ed5
(translation_unit "void FUN_00127e62(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00127e62(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00127e62(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xeb8) != 0)" ( (binary_expression "*(int *)(param_1 + 0xeb8) != 0" (pointer_expression "*(int *)(param_1 + 0xeb8)" * (cast_expression "(int *)(param_1 + 0xeb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xeb8)" ( (binary_expression "param_1 + 0xeb8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);" (assignment_expression "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" identifier = (call_expression "FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" identifier (argument_list "(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" ( identifier , (pointer_expression "*(undefined8 *)(param_1 + 0xec0)" * (cast_expression "(undefined8 *)(param_1 + 0xec0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec0)" ( (binary_expression "param_1 + 0xec0" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xec0) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 0xec0) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 0xec0)" * (cast_expression "(undefined8 *)(param_1 + 0xec0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec0)" ( (binary_expression "param_1 + 0xec0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xecc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xecc) == 0" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);" (assignment_expression "*(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c)" (pointer_expression "*(undefined4 *)(param_1 + 0xecc)" * (cast_expression "(undefined4 *)(param_1 + 0xecc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x18c)" * (cast_expression "(undefined4 *)(param_1 + 0x18c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18c)" ( (binary_expression "param_1 + 0x18c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;" (assignment_expression "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xec8) + -1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" { (expression_statement "*(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;" (assignment_expression "*(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xecc) + -1" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) + number_literal)) ;) }))) (expression_statement "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);" (assignment_expression "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1)" identifier = (call_expression "FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1)" identifier (argument_list "(param_1,*(undefined8 *)(param_1 + 0xec8),1)" ( identifier , (pointer_expression "*(undefined8 *)(param_1 + 0xec8)" * (cast_expression "(undefined8 *)(param_1 + 0xec8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xec8) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 0xec8) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 0xec8)" * (cast_expression "(undefined8 *)(param_1 + 0xec8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = (int)((ulong)uVar2 >> 0x20);" (assignment_expression "iVar1 = (int)((ulong)uVar2 >> 0x20)" identifier = (cast_expression "(int)((ulong)uVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulong)uVar2 >> 0x20)" ( (binary_expression "(ulong)uVar2 >> 0x20" (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(param_1 + 0x18c))" ( (binary_expression "iVar1 == *(int *)(param_1 + 0x18c)" identifier == (pointer_expression "*(int *)(param_1 + 0x18c)" * (cast_expression "(int *)(param_1 + 0x18c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18c)" ( (binary_expression "param_1 + 0x18c" identifier + number_literal) ))))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xecc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xecc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xecc)" * (cast_expression "(undefined4 *)(param_1 + 0xecc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;" (assignment_expression "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xec8) + 1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" { (expression_statement "*(int *)(param_1 + 0xecc) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0xecc) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid sel_spread(Terminal *term)\n\n{\n  wchar_t wVar1;\n  pos pVar2;\n  \n  if (term->seltype != ADDRTYPE_UNSPEC) {\n    return;\n  }\n  pVar2 = sel_spread_half(term,term->selstart,L'\xffffffff');\n  term->selstart = pVar2;\n  wVar1 = (term->selend).x;\n  if (wVar1 == L'\0') {\n    (term->selend).x = term->cols;\n    (term->selend).y = (term->selend).y + L'\xffffffff';\n  }\n  else {\n    (term->selend).x = wVar1 + L'\xffffffff';\n  }\n  pVar2 = sel_spread_half(term,term->selend,L'\x01');\n  term->selend = pVar2;\n  if (pVar2.x == term->cols) {\n    (term->selend).x = L'\0';\n    (term->selend).y = (term->selend).y + L'\x01';\n  }\n  else {\n    (term->selend).x = pVar2.x + L'\x01';\n  }\n  return;\n}\n\n" comment (function_definition "void sel_spread(Terminal *term)\n\n{\n  wchar_t wVar1;\n  pos pVar2;\n  \n  if (term->seltype != ADDRTYPE_UNSPEC) {\n    return;\n  }\n  pVar2 = sel_spread_half(term,term->selstart,L'\xffffffff');\n  term->selstart = pVar2;\n  wVar1 = (term->selend).x;\n  if (wVar1 == L'\0') {\n    (term->selend).x = term->cols;\n    (term->selend).y = (term->selend).y + L'\xffffffff';\n  }\n  else {\n    (term->selend).x = wVar1 + L'\xffffffff';\n  }\n  pVar2 = sel_spread_half(term,term->selend,L'\x01');\n  term->selend = pVar2;\n  if (pVar2.x == term->cols) {\n    (term->selend).x = L'\0';\n    (term->selend).y = (term->selend).y + L'\x01';\n  }\n  else {\n    (term->selend).x = pVar2.x + L'\x01';\n  }\n  return;\n}" primitive_type (function_declarator "sel_spread(Terminal *term)" identifier (parameter_list "(Terminal *term)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) ))) (compound_statement "{\n  wchar_t wVar1;\n  pos pVar2;\n  \n  if (term->seltype != ADDRTYPE_UNSPEC) {\n    return;\n  }\n  pVar2 = sel_spread_half(term,term->selstart,L'\xffffffff');\n  term->selstart = pVar2;\n  wVar1 = (term->selend).x;\n  if (wVar1 == L'\0') {\n    (term->selend).x = term->cols;\n    (term->selend).y = (term->selend).y + L'\xffffffff';\n  }\n  else {\n    (term->selend).x = wVar1 + L'\xffffffff';\n  }\n  pVar2 = sel_spread_half(term,term->selend,L'\x01');\n  term->selend = pVar2;\n  if (pVar2.x == term->cols) {\n    (term->selend).x = L'\0';\n    (term->selend).y = (term->selend).y + L'\x01';\n  }\n  else {\n    (term->selend).x = pVar2.x + L'\x01';\n  }\n  return;\n}" { (declaration "wchar_t wVar1;" type_identifier identifier ;) (declaration "pos pVar2;" type_identifier identifier ;) (if_statement "if (term->seltype != ADDRTYPE_UNSPEC) {\n    return;\n  }" if (parenthesized_expression "(term->seltype != ADDRTYPE_UNSPEC)" ( (binary_expression "term->seltype != ADDRTYPE_UNSPEC" (field_expression "term->seltype" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pVar2 = sel_spread_half(term,term->selstart,L'\xffffffff');" (assignment_expression "pVar2 = sel_spread_half(term,term->selstart,L'\xffffffff')" identifier = (call_expression "sel_spread_half(term,term->selstart,L'\xffffffff')" identifier (argument_list "(term,term->selstart,L'\xffffffff')" ( identifier , (field_expression "term->selstart" identifier -> field_identifier) , (char_literal "L'\xffffffff'" L' escape_sequence character character character character ') )))) ;) (expression_statement "term->selstart = pVar2;" (assignment_expression "term->selstart = pVar2" (field_expression "term->selstart" identifier -> field_identifier) = identifier) ;) (expression_statement "wVar1 = (term->selend).x;" (assignment_expression "wVar1 = (term->selend).x" identifier = (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (wVar1 == L'\0') {\n    (term->selend).x = term->cols;\n    (term->selend).y = (term->selend).y + L'\xffffffff';\n  }\n  else {\n    (term->selend).x = wVar1 + L'\xffffffff';\n  }" if (parenthesized_expression "(wVar1 == L'\0')" ( (binary_expression "wVar1 == L'\0'" identifier == (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n    (term->selend).x = term->cols;\n    (term->selend).y = (term->selend).y + L'\xffffffff';\n  }" { (expression_statement "(term->selend).x = term->cols;" (assignment_expression "(term->selend).x = term->cols" (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = (field_expression "term->cols" identifier -> field_identifier)) ;) (expression_statement "(term->selend).y = (term->selend).y + L'\xffffffff';" (assignment_expression "(term->selend).y = (term->selend).y + L'\xffffffff'" (field_expression "(term->selend).y" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(term->selend).y + L'\xffffffff'" (field_expression "(term->selend).y" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) + (char_literal "L'\xffffffff'" L' escape_sequence character character character character '))) ;) }) (else_clause "else {\n    (term->selend).x = wVar1 + L'\xffffffff';\n  }" else (compound_statement "{\n    (term->selend).x = wVar1 + L'\xffffffff';\n  }" { (expression_statement "(term->selend).x = wVar1 + L'\xffffffff';" (assignment_expression "(term->selend).x = wVar1 + L'\xffffffff'" (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = (binary_expression "wVar1 + L'\xffffffff'" identifier + (char_literal "L'\xffffffff'" L' escape_sequence character character character character '))) ;) }))) (expression_statement "pVar2 = sel_spread_half(term,term->selend,L'\x01');" (assignment_expression "pVar2 = sel_spread_half(term,term->selend,L'\x01')" identifier = (call_expression "sel_spread_half(term,term->selend,L'\x01')" identifier (argument_list "(term,term->selend,L'\x01')" ( identifier , (field_expression "term->selend" identifier -> field_identifier) , (char_literal "L'\x01'" L' escape_sequence ') )))) ;) (expression_statement "term->selend = pVar2;" (assignment_expression "term->selend = pVar2" (field_expression "term->selend" identifier -> field_identifier) = identifier) ;) (if_statement "if (pVar2.x == term->cols) {\n    (term->selend).x = L'\0';\n    (term->selend).y = (term->selend).y + L'\x01';\n  }\n  else {\n    (term->selend).x = pVar2.x + L'\x01';\n  }" if (parenthesized_expression "(pVar2.x == term->cols)" ( (binary_expression "pVar2.x == term->cols" (field_expression "pVar2.x" identifier . field_identifier) == (field_expression "term->cols" identifier -> field_identifier)) )) (compound_statement "{\n    (term->selend).x = L'\0';\n    (term->selend).y = (term->selend).y + L'\x01';\n  }" { (expression_statement "(term->selend).x = L'\0';" (assignment_expression "(term->selend).x = L'\0'" (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "(term->selend).y = (term->selend).y + L'\x01';" (assignment_expression "(term->selend).y = (term->selend).y + L'\x01'" (field_expression "(term->selend).y" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(term->selend).y + L'\x01'" (field_expression "(term->selend).y" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) + (char_literal "L'\x01'" L' escape_sequence '))) ;) }) (else_clause "else {\n    (term->selend).x = pVar2.x + L'\x01';\n  }" else (compound_statement "{\n    (term->selend).x = pVar2.x + L'\x01';\n  }" { (expression_statement "(term->selend).x = pVar2.x + L'\x01';" (assignment_expression "(term->selend).x = pVar2.x + L'\x01'" (field_expression "(term->selend).x" (parenthesized_expression "(term->selend)" ( (field_expression "term->selend" identifier -> field_identifier) )) . field_identifier) = (binary_expression "pVar2.x + L'\x01'" (field_expression "pVar2.x" identifier . field_identifier) + (char_literal "L'\x01'" L' escape_sequence '))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00127e62(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00127e62(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00127e62(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xeb8) != 0)" ( (binary_expression "*(int *)(param_1 + 0xeb8) != 0" (pointer_expression "*(int *)(param_1 + 0xeb8)" * (cast_expression "(int *)(param_1 + 0xeb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xeb8)" ( (binary_expression "param_1 + 0xeb8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);" (assignment_expression "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" identifier = (call_expression "FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" identifier (argument_list "(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" ( identifier , (pointer_expression "*(undefined8 *)(param_1 + 0xec0)" * (cast_expression "(undefined8 *)(param_1 + 0xec0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec0)" ( (binary_expression "param_1 + 0xec0" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xec0) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 0xec0) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 0xec0)" * (cast_expression "(undefined8 *)(param_1 + 0xec0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec0)" ( (binary_expression "param_1 + 0xec0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xecc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xecc) == 0" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);" (assignment_expression "*(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c)" (pointer_expression "*(undefined4 *)(param_1 + 0xecc)" * (cast_expression "(undefined4 *)(param_1 + 0xecc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x18c)" * (cast_expression "(undefined4 *)(param_1 + 0x18c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18c)" ( (binary_expression "param_1 + 0x18c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;" (assignment_expression "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xec8) + -1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" { (expression_statement "*(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;" (assignment_expression "*(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xecc) + -1" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) + number_literal)) ;) }))) (expression_statement "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);" (assignment_expression "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1)" identifier = (call_expression "FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1)" identifier (argument_list "(param_1,*(undefined8 *)(param_1 + 0xec8),1)" ( identifier , (pointer_expression "*(undefined8 *)(param_1 + 0xec8)" * (cast_expression "(undefined8 *)(param_1 + 0xec8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xec8) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 0xec8) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 0xec8)" * (cast_expression "(undefined8 *)(param_1 + 0xec8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = (int)((ulong)uVar2 >> 0x20);" (assignment_expression "iVar1 = (int)((ulong)uVar2 >> 0x20)" identifier = (cast_expression "(int)((ulong)uVar2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulong)uVar2 >> 0x20)" ( (binary_expression "(ulong)uVar2 >> 0x20" (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(param_1 + 0x18c))" ( (binary_expression "iVar1 == *(int *)(param_1 + 0x18c)" identifier == (pointer_expression "*(int *)(param_1 + 0x18c)" * (cast_expression "(int *)(param_1 + 0x18c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18c)" ( (binary_expression "param_1 + 0x18c" identifier + number_literal) ))))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xecc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xecc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xecc)" * (cast_expression "(undefined4 *)(param_1 + 0xecc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;" (assignment_expression "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xec8) + 1" (pointer_expression "*(int *)(param_1 + 0xec8)" * (cast_expression "(int *)(param_1 + 0xec8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec8)" ( (binary_expression "param_1 + 0xec8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" { (expression_statement "*(int *)(param_1 + 0xecc) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0xecc) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0xecc)" * (cast_expression "(int *)(param_1 + 0xecc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xecc)" ( (binary_expression "param_1 + 0xecc" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (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) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (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) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (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) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (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 + LIT)) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00127e62(long param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00127e62(long param_1)" (identifier "FUN_00127e62") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);\n  *(undefined8 *)(param_1 + 0xec0) = uVar2;\n  if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }\n  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);\n  *(undefined8 *)(param_1 + 0xec8) = uVar2;\n  iVar1 = (int)((ulong)uVar2 >> 0x20);\n  if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (if_statement "if (*(int *)(param_1 + 0xeb8) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xeb8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xeb8) != 0" (pointer_expression "*(int *)(param_1 + 0xeb8)" (* "*") (cast_expression "(int *)(param_1 + 0xeb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xeb8)" (( "(") (binary_expression "param_1 + 0xeb8" (identifier "param_1") (+ "+") (number_literal "0xeb8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);" (assignment_expression "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" (identifier "uVar2") (= "=") (call_expression "FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" (identifier "FUN_00127aef") (argument_list "(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0xec0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xec0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec0)" (( "(") (binary_expression "param_1 + 0xec0" (identifier "param_1") (+ "+") (number_literal "0xec0")) () ")")))) (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xec0) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 0xec0) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 0xec0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xec0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec0)" (( "(") (binary_expression "param_1 + 0xec0" (identifier "param_1") (+ "+") (number_literal "0xec0")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (*(int *)(param_1 + 0xecc) == 0) {\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xecc) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xecc) == 0" (pointer_expression "*(int *)(param_1 + 0xecc)" (* "*") (cast_expression "(int *)(param_1 + 0xecc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xecc)" (( "(") (binary_expression "param_1 + 0xecc" (identifier "param_1") (+ "+") (number_literal "0xecc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);" (assignment_expression "*(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c)" (pointer_expression "*(undefined4 *)(param_1 + 0xecc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xecc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xecc)" (( "(") (binary_expression "param_1 + 0xecc" (identifier "param_1") (+ "+") (number_literal "0xecc")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x18c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18c)" (( "(") (binary_expression "param_1 + 0x18c" (identifier "param_1") (+ "+") (number_literal "0x18c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;" (assignment_expression "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1" (pointer_expression "*(int *)(param_1 + 0xec8)" (* "*") (cast_expression "(int *)(param_1 + 0xec8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec8)" (( "(") (binary_expression "param_1 + 0xec8" (identifier "param_1") (+ "+") (number_literal "0xec8")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0xec8) + -1" (pointer_expression "*(int *)(param_1 + 0xec8)" (* "*") (cast_expression "(int *)(param_1 + 0xec8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec8)" (( "(") (binary_expression "param_1 + 0xec8" (identifier "param_1") (+ "+") (number_literal "0xec8")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" (else "else") (compound_statement "{\n    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;" (assignment_expression "*(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1" (pointer_expression "*(int *)(param_1 + 0xecc)" (* "*") (cast_expression "(int *)(param_1 + 0xecc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xecc)" (( "(") (binary_expression "param_1 + 0xecc" (identifier "param_1") (+ "+") (number_literal "0xecc")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0xecc) + -1" (pointer_expression "*(int *)(param_1 + 0xecc)" (* "*") (cast_expression "(int *)(param_1 + 0xecc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xecc)" (( "(") (binary_expression "param_1 + 0xecc" (identifier "param_1") (+ "+") (number_literal "0xecc")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (} "}")))) (expression_statement "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);" (assignment_expression "uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1)" (identifier "uVar2") (= "=") (call_expression "FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1)" (identifier "FUN_00127aef") (argument_list "(param_1,*(undefined8 *)(param_1 + 0xec8),1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0xec8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xec8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec8)" (( "(") (binary_expression "param_1 + 0xec8" (identifier "param_1") (+ "+") (number_literal "0xec8")) () ")")))) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xec8) = uVar2;" (assignment_expression "*(undefined8 *)(param_1 + 0xec8) = uVar2" (pointer_expression "*(undefined8 *)(param_1 + 0xec8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xec8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec8)" (( "(") (binary_expression "param_1 + 0xec8" (identifier "param_1") (+ "+") (number_literal "0xec8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar1 = (int)((ulong)uVar2 >> 0x20);" (assignment_expression "iVar1 = (int)((ulong)uVar2 >> 0x20)" (identifier "iVar1") (= "=") (cast_expression "(int)((ulong)uVar2 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulong)uVar2 >> 0x20)" (( "(") (binary_expression "(ulong)uVar2 >> 0x20" (cast_expression "(ulong)uVar2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (if_statement "if (iVar1 == *(int *)(param_1 + 0x18c)) {\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }\n  else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(param_1 + 0x18c))" (( "(") (binary_expression "iVar1 == *(int *)(param_1 + 0x18c)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(param_1 + 0x18c)" (* "*") (cast_expression "(int *)(param_1 + 0x18c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18c)" (( "(") (binary_expression "param_1 + 0x18c" (identifier "param_1") (+ "+") (number_literal "0x18c")) () ")"))))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xecc) = 0;\n    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0xecc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xecc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xecc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xecc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xecc)" (( "(") (binary_expression "param_1 + 0xecc" (identifier "param_1") (+ "+") (number_literal "0xecc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;" (assignment_expression "*(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1" (pointer_expression "*(int *)(param_1 + 0xec8)" (* "*") (cast_expression "(int *)(param_1 + 0xec8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec8)" (( "(") (binary_expression "param_1 + 0xec8" (identifier "param_1") (+ "+") (number_literal "0xec8")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0xec8) + 1" (pointer_expression "*(int *)(param_1 + 0xec8)" (* "*") (cast_expression "(int *)(param_1 + 0xec8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec8)" (( "(") (binary_expression "param_1 + 0xec8" (identifier "param_1") (+ "+") (number_literal "0xec8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" (else "else") (compound_statement "{\n    *(int *)(param_1 + 0xecc) = iVar1 + 1;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0xecc) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0xecc) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0xecc)" (* "*") (cast_expression "(int *)(param_1 + 0xecc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xecc)" (( "(") (binary_expression "param_1 + 0xecc" (identifier "param_1") (+ "+") (number_literal "0xecc")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *term)

{
  type_2 var_3;
  type_3 pVar2;
  
  if (term->seltype != var_1) {
    return;
  }
  pVar2 = var_2(term,term->selstart,L'\xffffffff');
  term->selstart = pVar2;
  var_3 = (term->selend).x;
  if (var_3 == L'\0') {
    (term->selend).x = term->cols;
    (term->selend).y = (term->selend).y + L'\xffffffff';
  }
  else {
    (term->selend).x = var_3 + L'\xffffffff';
  }
  pVar2 = var_2(term,term->selend,L'\x01');
  term->selend = pVar2;
  if (pVar2.x == term->cols) {
    (term->selend).x = L'\0';
    (term->selend).y = (term->selend).y + L'\x01';
  }
  else {
    (term->selend).x = pVar2.x + L'\x01';
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_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: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_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: (number_literal))) consequence: (compound_statement (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: (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))))))) (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: (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: (number_literal))))) 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: (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: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_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: (number_literal))))) 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: (number_literal))))))) (return_statement))))

void MASKED(long param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  if (*(int *)(param_1 + 0xeb8) != 0) {
    return;
  }
  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec0),0xffffffff);
  *(undefined8 *)(param_1 + 0xec0) = uVar2;
  if (*(int *)(param_1 + 0xecc) == 0) {
    *(undefined4 *)(param_1 + 0xecc) = *(undefined4 *)(param_1 + 0x18c);
    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + -1;
  }
  else {
    *(int *)(param_1 + 0xecc) = *(int *)(param_1 + 0xecc) + -1;
  }
  uVar2 = FUN_00127aef(param_1,*(undefined8 *)(param_1 + 0xec8),1);
  *(undefined8 *)(param_1 + 0xec8) = uVar2;
  iVar1 = (int)((ulong)uVar2 >> 0x20);
  if (iVar1 == *(int *)(param_1 + 0x18c)) {
    *(undefined4 *)(param_1 + 0xecc) = 0;
    *(int *)(param_1 + 0xec8) = *(int *)(param_1 + 0xec8) + 1;
  }
  else {
    *(int *)(param_1 + 0xecc) = iVar1 + 1;
  }
  return;
}

