
RowSetEntry * __regparm3 rowSetNDeepTree(RowSetEntry **ppList,int iDepth)

{
  RowSetEntry *pRVar1;
  RowSetEntry *pRVar2;
  
  pRVar1 = *ppList;
  if (pRVar1 != (RowSetEntry *)0x0) {
    if (iDepth != 1) {
      pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);
      pRVar1 = *ppList;
      if (pRVar1 != (RowSetEntry *)0x0) {
        pRVar1->pLeft = pRVar2;
        *ppList = pRVar1->pRight;
        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);
        pRVar1->pRight = pRVar2;
        return pRVar1;
      }
      return pRVar2;
    }
    *ppList = pRVar1->pRight;
    pRVar1->pRight = (RowSetEntry *)0x0;
    pRVar1->pLeft = (RowSetEntry *)0x0;
  }
  return pRVar1;
}



int __regparm3 FUN_00038460(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar1 = *param_1;
  if (iVar1 != 0) {
    if (param_2 != 1) {
      iVar2 = FUN_00038460();
      iVar1 = *param_1;
      if (iVar1 != 0) {
        *(int *)(iVar1 + 0xc) = iVar2;
        *param_1 = *(int *)(iVar1 + 8);
        uVar3 = FUN_00038460();
        *(undefined4 *)(iVar1 + 8) = uVar3;
        return iVar1;
      }
      return iVar2;
    }
    *param_1 = *(int *)(iVar1 + 8);
    *(undefined4 *)(iVar1 + 8) = 0;
    *(undefined4 *)(iVar1 + 0xc) = 0;
  }
  return iVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [EAX]
TEST EBX,EBX
JZ 0x00038481
CMP EDX,0x1
JNZ 0x00038490
MOV EDX,dword ptr [EBX + 0x8]
MOV dword ptr [EAX],EDX
MOV dword ptr [EBX + 0x8],0x0
MOV dword ptr [EBX + 0xc],0x0
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
RET
LEA EDI,[EDX + -0x1]
MOV ESI,EAX
MOV EDX,EDI
CALL 0x00038460
MOV EBX,dword ptr [ESI]
TEST EBX,EBX
JZ 0x000384c0
MOV dword ptr [EBX + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,EDI
MOV dword ptr [ESI],EAX
MOV EAX,ESI
CALL 0x00038460
MOV dword ptr [EBX + 0x8],EAX
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
RET
MOV EBX,EAX
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "int __regparm3 FUN_00038460(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_00038460(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00038460(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }" { (if_statement "if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }" if (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }" { (expression_statement "iVar2 = FUN_00038460();" (assignment_expression "iVar2 = FUN_00038460()" identifier = (call_expression "FUN_00038460()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }" { (expression_statement "*(int *)(iVar1 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = *(int *)(iVar1 + 8);" (assignment_expression "*param_1 = *(int *)(iVar1 + 8)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = FUN_00038460();" (assignment_expression "uVar3 = FUN_00038460()" identifier = (call_expression "FUN_00038460()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*param_1 = *(int *)(iVar1 + 8);" (assignment_expression "*param_1 = *(int *)(iVar1 + 8)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "RowSetEntry * __regparm3 rowSetNDeepTree(RowSetEntry **ppList,int iDepth)\n\n{\n  RowSetEntry *pRVar1;\n  RowSetEntry *pRVar2;\n  \n  pRVar1 = *ppList;\n  if (pRVar1 != (RowSetEntry *)0x0) {\n    if (iDepth != 1) {\n      pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n      pRVar1 = *ppList;\n      if (pRVar1 != (RowSetEntry *)0x0) {\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }\n      return pRVar2;\n    }\n    *ppList = pRVar1->pRight;\n    pRVar1->pRight = (RowSetEntry *)0x0;\n    pRVar1->pLeft = (RowSetEntry *)0x0;\n  }\n  return pRVar1;\n}\n\n" (ERROR "RowSetEntry * __regparm3 rowSetNDeepTree(RowSetEntry **ppList,int iDepth)" (binary_expression "RowSetEntry * __regparm3 rowSetNDeepTree(RowSetEntry **ppList,int iDepth)" identifier * (ERROR "__regparm3" identifier) (call_expression "rowSetNDeepTree(RowSetEntry **ppList,int iDepth)" identifier (argument_list "(RowSetEntry **ppList,int iDepth)" ( (binary_expression "RowSetEntry **ppList" identifier * (pointer_expression "*ppList" * identifier)) , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  RowSetEntry *pRVar1;\n  RowSetEntry *pRVar2;\n  \n  pRVar1 = *ppList;\n  if (pRVar1 != (RowSetEntry *)0x0) {\n    if (iDepth != 1) {\n      pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n      pRVar1 = *ppList;\n      if (pRVar1 != (RowSetEntry *)0x0) {\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }\n      return pRVar2;\n    }\n    *ppList = pRVar1->pRight;\n    pRVar1->pRight = (RowSetEntry *)0x0;\n    pRVar1->pLeft = (RowSetEntry *)0x0;\n  }\n  return pRVar1;\n}" { (declaration "RowSetEntry *pRVar1;" type_identifier (pointer_declarator "*pRVar1" * identifier) ;) (declaration "RowSetEntry *pRVar2;" type_identifier (pointer_declarator "*pRVar2" * identifier) ;) (expression_statement "pRVar1 = *ppList;" (assignment_expression "pRVar1 = *ppList" identifier = (pointer_expression "*ppList" * identifier)) ;) (if_statement "if (pRVar1 != (RowSetEntry *)0x0) {\n    if (iDepth != 1) {\n      pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n      pRVar1 = *ppList;\n      if (pRVar1 != (RowSetEntry *)0x0) {\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }\n      return pRVar2;\n    }\n    *ppList = pRVar1->pRight;\n    pRVar1->pRight = (RowSetEntry *)0x0;\n    pRVar1->pLeft = (RowSetEntry *)0x0;\n  }" if (parenthesized_expression "(pRVar1 != (RowSetEntry *)0x0)" ( (binary_expression "pRVar1 != (RowSetEntry *)0x0" identifier != (cast_expression "(RowSetEntry *)0x0" ( (type_descriptor "RowSetEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (iDepth != 1) {\n      pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n      pRVar1 = *ppList;\n      if (pRVar1 != (RowSetEntry *)0x0) {\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }\n      return pRVar2;\n    }\n    *ppList = pRVar1->pRight;\n    pRVar1->pRight = (RowSetEntry *)0x0;\n    pRVar1->pLeft = (RowSetEntry *)0x0;\n  }" { (if_statement "if (iDepth != 1) {\n      pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n      pRVar1 = *ppList;\n      if (pRVar1 != (RowSetEntry *)0x0) {\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }\n      return pRVar2;\n    }" if (parenthesized_expression "(iDepth != 1)" ( (binary_expression "iDepth != 1" identifier != number_literal) )) (compound_statement "{\n      pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n      pRVar1 = *ppList;\n      if (pRVar1 != (RowSetEntry *)0x0) {\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }\n      return pRVar2;\n    }" { (expression_statement "pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);" (assignment_expression "pRVar2 = rowSetNDeepTree(ppList,iDepth + -1)" identifier = (call_expression "rowSetNDeepTree(ppList,iDepth + -1)" identifier (argument_list "(ppList,iDepth + -1)" ( identifier , (binary_expression "iDepth + -1" identifier + number_literal) )))) ;) (expression_statement "pRVar1 = *ppList;" (assignment_expression "pRVar1 = *ppList" identifier = (pointer_expression "*ppList" * identifier)) ;) (if_statement "if (pRVar1 != (RowSetEntry *)0x0) {\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }" if (parenthesized_expression "(pRVar1 != (RowSetEntry *)0x0)" ( (binary_expression "pRVar1 != (RowSetEntry *)0x0" identifier != (cast_expression "(RowSetEntry *)0x0" ( (type_descriptor "RowSetEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pRVar1->pLeft = pRVar2;\n        *ppList = pRVar1->pRight;\n        pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);\n        pRVar1->pRight = pRVar2;\n        return pRVar1;\n      }" { (expression_statement "pRVar1->pLeft = pRVar2;" (assignment_expression "pRVar1->pLeft = pRVar2" (field_expression "pRVar1->pLeft" identifier -> field_identifier) = identifier) ;) (expression_statement "*ppList = pRVar1->pRight;" (assignment_expression "*ppList = pRVar1->pRight" (pointer_expression "*ppList" * identifier) = (field_expression "pRVar1->pRight" identifier -> field_identifier)) ;) (expression_statement "pRVar2 = rowSetNDeepTree(ppList,iDepth + -1);" (assignment_expression "pRVar2 = rowSetNDeepTree(ppList,iDepth + -1)" identifier = (call_expression "rowSetNDeepTree(ppList,iDepth + -1)" identifier (argument_list "(ppList,iDepth + -1)" ( identifier , (binary_expression "iDepth + -1" identifier + number_literal) )))) ;) (expression_statement "pRVar1->pRight = pRVar2;" (assignment_expression "pRVar1->pRight = pRVar2" (field_expression "pRVar1->pRight" identifier -> field_identifier) = identifier) ;) (return_statement "return pRVar1;" return identifier ;) })) (return_statement "return pRVar2;" return identifier ;) })) (expression_statement "*ppList = pRVar1->pRight;" (assignment_expression "*ppList = pRVar1->pRight" (pointer_expression "*ppList" * identifier) = (field_expression "pRVar1->pRight" identifier -> field_identifier)) ;) (expression_statement "pRVar1->pRight = (RowSetEntry *)0x0;" (assignment_expression "pRVar1->pRight = (RowSetEntry *)0x0" (field_expression "pRVar1->pRight" identifier -> field_identifier) = (cast_expression "(RowSetEntry *)0x0" ( (type_descriptor "RowSetEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pRVar1->pLeft = (RowSetEntry *)0x0;" (assignment_expression "pRVar1->pLeft = (RowSetEntry *)0x0" (field_expression "pRVar1->pLeft" identifier -> field_identifier) = (cast_expression "(RowSetEntry *)0x0" ( (type_descriptor "RowSetEntry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pRVar1;" return identifier ;) }))
(translation_unit "int __regparm3 FUN_00038460(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_00038460(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00038460(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }" { (if_statement "if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }" if (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }" { (expression_statement "iVar2 = FUN_00038460();" (assignment_expression "iVar2 = FUN_00038460()" identifier = (call_expression "FUN_00038460()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }" { (expression_statement "*(int *)(iVar1 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = *(int *)(iVar1 + 8);" (assignment_expression "*param_1 = *(int *)(iVar1 + 8)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = FUN_00038460();" (assignment_expression "uVar3 = FUN_00038460()" identifier = (call_expression "FUN_00038460()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "*param_1 = *(int *)(iVar1 + 8);" (assignment_expression "*param_1 = *(int *)(iVar1 + 8)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00038460(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00038460(int *param_1,int param_2)" (identifier "FUN_00038460") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }\n    *param_1 = *(int *)(iVar1 + 8);\n    *(undefined4 *)(iVar1 + 8) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n  }" ({ "{") (if_statement "if (param_2 != 1) {\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(param_2 != 1)" (( "(") (binary_expression "param_2 != 1" (identifier "param_2") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      iVar2 = FUN_00038460();\n      iVar1 = *param_1;\n      if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }\n      return iVar2;\n    }" ({ "{") (expression_statement "iVar2 = FUN_00038460();" (assignment_expression "iVar2 = FUN_00038460()" (identifier "iVar2") (= "=") (call_expression "FUN_00038460()" (identifier "FUN_00038460") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int *)(iVar1 + 0xc) = iVar2;\n        *param_1 = *(int *)(iVar1 + 8);\n        uVar3 = FUN_00038460();\n        *(undefined4 *)(iVar1 + 8) = uVar3;\n        return iVar1;\n      }" ({ "{") (expression_statement "*(int *)(iVar1 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*param_1 = *(int *)(iVar1 + 8);" (assignment_expression "*param_1 = *(int *)(iVar1 + 8)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar3 = FUN_00038460();" (assignment_expression "uVar3 = FUN_00038460()" (identifier "uVar3") (= "=") (call_expression "FUN_00038460()" (identifier "FUN_00038460") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "*param_1 = *(int *)(iVar1 + 8);" (assignment_expression "*param_1 = *(int *)(iVar1 + 8)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

type_1 * __regparm3 var_3(type_1 **ppList,int var_2)

{
  type_1 *var_1;
  type_1 *pRVar2;
  
  var_1 = *ppList;
  if (var_1 != (type_1 *)0x0) {
    if (var_2 != 1) {
      pRVar2 = var_3(ppList,var_2 + -1);
      var_1 = *ppList;
      if (var_1 != (type_1 *)0x0) {
        var_1->pLeft = pRVar2;
        *ppList = var_1->pRight;
        pRVar2 = var_3(ppList,var_2 + -1);
        var_1->pRight = pRVar2;
        return var_1;
      }
      return pRVar2;
    }
    *ppList = var_1->pRight;
    var_1->pRight = (type_1 *)0x0;
    var_1->pLeft = (type_1 *)0x0;
  }
  return var_1;
}


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

int __regparm3 MASKED(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar1 = *param_1;
  if (iVar1 != 0) {
    if (param_2 != 1) {
      iVar2 = MASKED();
      iVar1 = *param_1;
      if (iVar1 != 0) {
        *(int *)(iVar1 + 0xc) = iVar2;
        *param_1 = *(int *)(iVar1 + 8);
        uVar3 = MASKED();
        *(undefined4 *)(iVar1 + 8) = uVar3;
        return iVar1;
      }
      return iVar2;
    }
    *param_1 = *(int *)(iVar1 + 8);
    *(undefined4 *)(iVar1 + 8) = 0;
    *(undefined4 *)(iVar1 + 0xc) = 0;
  }
  return iVar1;
}

