
void __regparm3 rowSetTreeToList(RowSetEntry *pIn,RowSetEntry **ppFirst,RowSetEntry **ppLast)

{
  RowSetEntry *pIn_00;
  int in_GS_OFFSET;
  RowSetEntry *p;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (pIn->pLeft == (RowSetEntry *)0x0) {
    *ppFirst = pIn;
    pIn_00 = pIn->pRight;
  }
  else {
    rowSetTreeToList(pIn->pLeft,ppFirst,&p);
    p->pRight = pIn;
    pIn_00 = pIn->pRight;
  }
  if (pIn_00 == (RowSetEntry *)0x0) {
    *ppLast = pIn;
  }
  else {
    rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);
  }
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



void __regparm3 FUN_000383f0(int param_1,int *param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  undefined4 local_14;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 0xc) == 0) {
    *param_2 = param_1;
    iVar2 = *(int *)(param_1 + 8);
  }
  else {
    FUN_000383f0();
    *(int *)(local_14 + 8) = param_1;
    iVar2 = *(int *)(param_1 + 8);
  }
  if (iVar2 == 0) {
    *param_3 = param_1;
  }
  else {
    FUN_000383f0();
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return;
}


PUSH ESI
MOV ESI,ECX
PUSH EBX
MOV EBX,EAX
SUB ESP,0x14
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBX + 0xc]
TEST EAX,EAX
JZ 0x00038440
LEA ECX,[ESP + 0x8]
CALL 0x000383f0
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0x8],EBX
MOV EAX,dword ptr [EBX + 0x8]
TEST EAX,EAX
JZ 0x00038449
LEA EDX,[EBX + 0x8]
MOV ECX,ESI
CALL 0x000383f0
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0003844d
ADD ESP,0x14
POP EBX
POP ESI
RET
MOV dword ptr [EDX],EBX
MOV EAX,dword ptr [EBX + 0x8]
TEST EAX,EAX
JNZ 0x00038423
MOV dword ptr [ESI],EBX
JMP 0x0003842d
CALL 0x00116110
(translation_unit "void __regparm3 FUN_000383f0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000383f0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000383f0(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc) == 0" (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) )))) == number_literal) )) (compound_statement "{\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" { (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) }) (else_clause "else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" else (compound_statement "{\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" { (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(local_14 + 8) = param_1;" (assignment_expression "*(int *)(local_14 + 8) = param_1" (pointer_expression "*(int *)(local_14 + 8)" * (cast_expression "(int *)(local_14 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_14 + 8)" ( (binary_expression "local_14 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_3 = param_1;\n  }" { (expression_statement "*param_3 = param_1;" (assignment_expression "*param_3 = param_1" (pointer_expression "*param_3" * identifier) = identifier) ;) }) (else_clause "else {\n    FUN_000383f0();\n  }" else (compound_statement "{\n    FUN_000383f0();\n  }" { (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 rowSetTreeToList(RowSetEntry *pIn,RowSetEntry **ppFirst,RowSetEntry **ppLast)\n\n{\n  RowSetEntry *pIn_00;\n  int in_GS_OFFSET;\n  RowSetEntry *p;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pIn->pLeft == (RowSetEntry *)0x0) {\n    *ppFirst = pIn;\n    pIn_00 = pIn->pRight;\n  }\n  else {\n    rowSetTreeToList(pIn->pLeft,ppFirst,&p);\n    p->pRight = pIn;\n    pIn_00 = pIn->pRight;\n  }\n  if (pIn_00 == (RowSetEntry *)0x0) {\n    *ppLast = pIn;\n  }\n  else {\n    rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 rowSetTreeToList(RowSetEntry *pIn,RowSetEntry **ppFirst,RowSetEntry **ppLast)\n\n{\n  RowSetEntry *pIn_00;\n  int in_GS_OFFSET;\n  RowSetEntry *p;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pIn->pLeft == (RowSetEntry *)0x0) {\n    *ppFirst = pIn;\n    pIn_00 = pIn->pRight;\n  }\n  else {\n    rowSetTreeToList(pIn->pLeft,ppFirst,&p);\n    p->pRight = pIn;\n    pIn_00 = pIn->pRight;\n  }\n  if (pIn_00 == (RowSetEntry *)0x0) {\n    *ppLast = pIn;\n  }\n  else {\n    rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "rowSetTreeToList(RowSetEntry *pIn,RowSetEntry **ppFirst,RowSetEntry **ppLast)" identifier (parameter_list "(RowSetEntry *pIn,RowSetEntry **ppFirst,RowSetEntry **ppLast)" ( (parameter_declaration "RowSetEntry *pIn" type_identifier (pointer_declarator "*pIn" * identifier)) , (parameter_declaration "RowSetEntry **ppFirst" type_identifier (pointer_declarator "**ppFirst" * (pointer_declarator "*ppFirst" * identifier))) , (parameter_declaration "RowSetEntry **ppLast" type_identifier (pointer_declarator "**ppLast" * (pointer_declarator "*ppLast" * identifier))) ))) (compound_statement "{\n  RowSetEntry *pIn_00;\n  int in_GS_OFFSET;\n  RowSetEntry *p;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pIn->pLeft == (RowSetEntry *)0x0) {\n    *ppFirst = pIn;\n    pIn_00 = pIn->pRight;\n  }\n  else {\n    rowSetTreeToList(pIn->pLeft,ppFirst,&p);\n    p->pRight = pIn;\n    pIn_00 = pIn->pRight;\n  }\n  if (pIn_00 == (RowSetEntry *)0x0) {\n    *ppLast = pIn;\n  }\n  else {\n    rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "RowSetEntry *pIn_00;" type_identifier (pointer_declarator "*pIn_00" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "RowSetEntry *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pIn->pLeft == (RowSetEntry *)0x0) {\n    *ppFirst = pIn;\n    pIn_00 = pIn->pRight;\n  }\n  else {\n    rowSetTreeToList(pIn->pLeft,ppFirst,&p);\n    p->pRight = pIn;\n    pIn_00 = pIn->pRight;\n  }" if (parenthesized_expression "(pIn->pLeft == (RowSetEntry *)0x0)" ( (binary_expression "pIn->pLeft == (RowSetEntry *)0x0" (field_expression "pIn->pLeft" identifier -> field_identifier) == (cast_expression "(RowSetEntry *)0x0" ( (type_descriptor "RowSetEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *ppFirst = pIn;\n    pIn_00 = pIn->pRight;\n  }" { (expression_statement "*ppFirst = pIn;" (assignment_expression "*ppFirst = pIn" (pointer_expression "*ppFirst" * identifier) = identifier) ;) (expression_statement "pIn_00 = pIn->pRight;" (assignment_expression "pIn_00 = pIn->pRight" identifier = (field_expression "pIn->pRight" identifier -> field_identifier)) ;) }) (else_clause "else {\n    rowSetTreeToList(pIn->pLeft,ppFirst,&p);\n    p->pRight = pIn;\n    pIn_00 = pIn->pRight;\n  }" else (compound_statement "{\n    rowSetTreeToList(pIn->pLeft,ppFirst,&p);\n    p->pRight = pIn;\n    pIn_00 = pIn->pRight;\n  }" { (expression_statement "rowSetTreeToList(pIn->pLeft,ppFirst,&p);" (call_expression "rowSetTreeToList(pIn->pLeft,ppFirst,&p)" identifier (argument_list "(pIn->pLeft,ppFirst,&p)" ( (field_expression "pIn->pLeft" identifier -> field_identifier) , identifier , (pointer_expression "&p" & identifier) ))) ;) (expression_statement "p->pRight = pIn;" (assignment_expression "p->pRight = pIn" (field_expression "p->pRight" identifier -> field_identifier) = identifier) ;) (expression_statement "pIn_00 = pIn->pRight;" (assignment_expression "pIn_00 = pIn->pRight" identifier = (field_expression "pIn->pRight" identifier -> field_identifier)) ;) }))) (if_statement "if (pIn_00 == (RowSetEntry *)0x0) {\n    *ppLast = pIn;\n  }\n  else {\n    rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);\n  }" if (parenthesized_expression "(pIn_00 == (RowSetEntry *)0x0)" ( (binary_expression "pIn_00 == (RowSetEntry *)0x0" identifier == (cast_expression "(RowSetEntry *)0x0" ( (type_descriptor "RowSetEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *ppLast = pIn;\n  }" { (expression_statement "*ppLast = pIn;" (assignment_expression "*ppLast = pIn" (pointer_expression "*ppLast" * identifier) = identifier) ;) }) (else_clause "else {\n    rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);\n  }" else (compound_statement "{\n    rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);\n  }" { (expression_statement "rowSetTreeToList(pIn_00,&pIn->pRight,ppLast);" (call_expression "rowSetTreeToList(pIn_00,&pIn->pRight,ppLast)" identifier (argument_list "(pIn_00,&pIn->pRight,ppLast)" ( identifier , (pointer_expression "&pIn->pRight" & (field_expression "pIn->pRight" identifier -> field_identifier)) , identifier ))) ;) }))) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000383f0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000383f0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000383f0(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc) == 0" (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) )))) == number_literal) )) (compound_statement "{\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" { (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) }) (else_clause "else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" else (compound_statement "{\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" { (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(local_14 + 8) = param_1;" (assignment_expression "*(int *)(local_14 + 8) = param_1" (pointer_expression "*(int *)(local_14 + 8)" * (cast_expression "(int *)(local_14 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_14 + 8)" ( (binary_expression "local_14 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_3 = param_1;\n  }" { (expression_statement "*param_3 = param_1;" (assignment_expression "*param_3 = param_1" (pointer_expression "*param_3" * identifier) = identifier) ;) }) (else_clause "else {\n    FUN_000383f0();\n  }" else (compound_statement "{\n    FUN_000383f0();\n  }" { (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (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 (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000383f0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000383f0(int param_1,int *param_2,int *param_3)" (identifier "FUN_000383f0") (parameter_list "(int param_1,int *param_2,int *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) == 0) {\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }\n  else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) == 0" (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")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_2 = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" ({ "{") (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" (else "else") (compound_statement "{\n    FUN_000383f0();\n    *(int *)(local_14 + 8) = param_1;\n    iVar2 = *(int *)(param_1 + 8);\n  }" ({ "{") (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" (identifier "FUN_000383f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(local_14 + 8) = param_1;" (assignment_expression "*(int *)(local_14 + 8) = param_1" (pointer_expression "*(int *)(local_14 + 8)" (* "*") (cast_expression "(int *)(local_14 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_14 + 8)" (( "(") (binary_expression "local_14 + 8" (identifier "local_14") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n    *param_3 = param_1;\n  }\n  else {\n    FUN_000383f0();\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_3 = param_1;\n  }" ({ "{") (expression_statement "*param_3 = param_1;" (assignment_expression "*param_3 = param_1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "param_1")) (; ";")) (} "}")) (else_clause "else {\n    FUN_000383f0();\n  }" (else "else") (compound_statement "{\n    FUN_000383f0();\n  }" ({ "{") (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" (identifier "FUN_000383f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00116110();\n  }" ({ "{") (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *pIn,type_1 **ppFirst,type_1 **ppLast)

{
  type_1 *var_2;
  int var_1;
  type_1 *p;
  int var_3;
  
  var_3 = *(int *)(var_1 + 0x14);
  if (pIn->pLeft == (type_1 *)0x0) {
    *ppFirst = pIn;
    var_2 = pIn->pRight;
  }
  else {
    function_1(pIn->pLeft,ppFirst,&p);
    p->pRight = pIn;
    var_2 = pIn->pRight;
  }
  if (var_2 == (type_1 *)0x0) {
    *ppLast = pIn;
  }
  else {
    function_1(var_2,&pIn->pRight,ppLast);
  }
  if (var_3 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_4();
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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))))))) (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: (identifier)) right: (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)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (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)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (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 (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

void __regparm3 MASKED(int param_1,int *param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  undefined4 local_14;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(int *)(param_1 + 0xc) == 0) {
    *param_2 = param_1;
    iVar2 = *(int *)(param_1 + 8);
  }
  else {
    MASKED();
    *(int *)(local_14 + 8) = param_1;
    iVar2 = *(int *)(param_1 + 8);
  }
  if (iVar2 == 0) {
    *param_3 = param_1;
  }
  else {
    MASKED();
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return;
}

