
void __regparm3 fts3NodeFree(SegmentNode *pTree)

{
  SegmentNode *pSVar1;
  SegmentNode *p;
  
  if (pTree != (SegmentNode *)0x0) {
    p = pTree->pLeftmost;
    fts3NodeFree(p->pParent);
    do {
      pSVar1 = p->pRight;
      if ((SegmentNode *)p->aData != p + 1) {
        sqlite3_free((SegmentNode *)p->aData);
      }
      sqlite3_free(p->zMalloc);
      sqlite3_free(p);
      p = pSVar1;
    } while (pSVar1 != (SegmentNode *)0x0);
    return;
  }
  return;
}



void __regparm3 FUN_00043d40(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (param_1 != 0) {
    iVar2 = *(int *)(param_1 + 8);
    FUN_00043d40();
    do {
      iVar1 = *(int *)(iVar2 + 4);
      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {
        FUN_00042800(*(int *)(iVar2 + 0x24));
      }
      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));
      FUN_00042800(iVar2);
      iVar2 = iVar1;
    } while (iVar1 != 0);
    return;
  }
  return;
}


TEST EAX,EAX
JZ 0x00043d98
PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EBX]
CALL 0x00043d40
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [EBX + 0x24]
LEA EDX,[EBX + 0x28]
MOV ESI,dword ptr [EBX + 0x4]
CMP EAX,EDX
JZ 0x00043d71
SUB ESP,0xc
PUSH EAX
CALL 0x00042800
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [EBX + 0x1c]
CALL 0x00042800
MOV dword ptr [ESP],EBX
MOV EBX,ESI
CALL 0x00042800
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x00043d58
ADD ESP,0x4
POP EBX
POP ESI
RET
RET
(translation_unit "void __regparm3 FUN_00043d40(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00043d40(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00043d40(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }" { (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) ))))) ;) (expression_statement "FUN_00043d40();" (call_expression "FUN_00043d40()" identifier (argument_list "()" ( ))) ;) (do_statement "do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);" do (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar1 = *(int *)(iVar2 + 4);" (assignment_expression "iVar1 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x24) != iVar2 + 0x28)" ( (binary_expression "*(int *)(iVar2 + 0x24) != iVar2 + 0x28" (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) != (binary_expression "iVar2 + 0x28" identifier + number_literal)) )) (compound_statement "{\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }" { (expression_statement "FUN_00042800(*(int *)(iVar2 + 0x24));" (call_expression "FUN_00042800(*(int *)(iVar2 + 0x24))" identifier (argument_list "(*(int *)(iVar2 + 0x24))" ( (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));" (call_expression "FUN_00042800(*(undefined4 *)(iVar2 + 0x1c))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x1c))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00042800(iVar2);" (call_expression "FUN_00042800(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 fts3NodeFree(SegmentNode *pTree)\n\n{\n  SegmentNode *pSVar1;\n  SegmentNode *p;\n  \n  if (pTree != (SegmentNode *)0x0) {\n    p = pTree->pLeftmost;\n    fts3NodeFree(p->pParent);\n    do {\n      pSVar1 = p->pRight;\n      if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }\n      sqlite3_free(p->zMalloc);\n      sqlite3_free(p);\n      p = pSVar1;\n    } while (pSVar1 != (SegmentNode *)0x0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 fts3NodeFree(SegmentNode *pTree)\n\n{\n  SegmentNode *pSVar1;\n  SegmentNode *p;\n  \n  if (pTree != (SegmentNode *)0x0) {\n    p = pTree->pLeftmost;\n    fts3NodeFree(p->pParent);\n    do {\n      pSVar1 = p->pRight;\n      if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }\n      sqlite3_free(p->zMalloc);\n      sqlite3_free(p);\n      p = pSVar1;\n    } while (pSVar1 != (SegmentNode *)0x0);\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts3NodeFree(SegmentNode *pTree)" identifier (parameter_list "(SegmentNode *pTree)" ( (parameter_declaration "SegmentNode *pTree" type_identifier (pointer_declarator "*pTree" * identifier)) ))) (compound_statement "{\n  SegmentNode *pSVar1;\n  SegmentNode *p;\n  \n  if (pTree != (SegmentNode *)0x0) {\n    p = pTree->pLeftmost;\n    fts3NodeFree(p->pParent);\n    do {\n      pSVar1 = p->pRight;\n      if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }\n      sqlite3_free(p->zMalloc);\n      sqlite3_free(p);\n      p = pSVar1;\n    } while (pSVar1 != (SegmentNode *)0x0);\n    return;\n  }\n  return;\n}" { (declaration "SegmentNode *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "SegmentNode *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (if_statement "if (pTree != (SegmentNode *)0x0) {\n    p = pTree->pLeftmost;\n    fts3NodeFree(p->pParent);\n    do {\n      pSVar1 = p->pRight;\n      if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }\n      sqlite3_free(p->zMalloc);\n      sqlite3_free(p);\n      p = pSVar1;\n    } while (pSVar1 != (SegmentNode *)0x0);\n    return;\n  }" if (parenthesized_expression "(pTree != (SegmentNode *)0x0)" ( (binary_expression "pTree != (SegmentNode *)0x0" identifier != (cast_expression "(SegmentNode *)0x0" ( (type_descriptor "SegmentNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p = pTree->pLeftmost;\n    fts3NodeFree(p->pParent);\n    do {\n      pSVar1 = p->pRight;\n      if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }\n      sqlite3_free(p->zMalloc);\n      sqlite3_free(p);\n      p = pSVar1;\n    } while (pSVar1 != (SegmentNode *)0x0);\n    return;\n  }" { (expression_statement "p = pTree->pLeftmost;" (assignment_expression "p = pTree->pLeftmost" identifier = (field_expression "pTree->pLeftmost" identifier -> field_identifier)) ;) (expression_statement "fts3NodeFree(p->pParent);" (call_expression "fts3NodeFree(p->pParent)" identifier (argument_list "(p->pParent)" ( (field_expression "p->pParent" identifier -> field_identifier) ))) ;) (do_statement "do {\n      pSVar1 = p->pRight;\n      if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }\n      sqlite3_free(p->zMalloc);\n      sqlite3_free(p);\n      p = pSVar1;\n    } while (pSVar1 != (SegmentNode *)0x0);" do (compound_statement "{\n      pSVar1 = p->pRight;\n      if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }\n      sqlite3_free(p->zMalloc);\n      sqlite3_free(p);\n      p = pSVar1;\n    }" { (expression_statement "pSVar1 = p->pRight;" (assignment_expression "pSVar1 = p->pRight" identifier = (field_expression "p->pRight" identifier -> field_identifier)) ;) (if_statement "if ((SegmentNode *)p->aData != p + 1) {\n        sqlite3_free((SegmentNode *)p->aData);\n      }" if (parenthesized_expression "((SegmentNode *)p->aData != p + 1)" ( (binary_expression "(SegmentNode *)p->aData != p + 1" (cast_expression "(SegmentNode *)p->aData" ( (type_descriptor "SegmentNode *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p->aData" identifier -> field_identifier)) != (binary_expression "p + 1" identifier + number_literal)) )) (compound_statement "{\n        sqlite3_free((SegmentNode *)p->aData);\n      }" { (expression_statement "sqlite3_free((SegmentNode *)p->aData);" (call_expression "sqlite3_free((SegmentNode *)p->aData)" identifier (argument_list "((SegmentNode *)p->aData)" ( (cast_expression "(SegmentNode *)p->aData" ( (type_descriptor "SegmentNode *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p->aData" identifier -> field_identifier)) ))) ;) })) (expression_statement "sqlite3_free(p->zMalloc);" (call_expression "sqlite3_free(p->zMalloc)" identifier (argument_list "(p->zMalloc)" ( (field_expression "p->zMalloc" identifier -> field_identifier) ))) ;) (expression_statement "sqlite3_free(p);" (call_expression "sqlite3_free(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "p = pSVar1;" (assignment_expression "p = pSVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pSVar1 != (SegmentNode *)0x0)" ( (binary_expression "pSVar1 != (SegmentNode *)0x0" identifier != (cast_expression "(SegmentNode *)0x0" ( (type_descriptor "SegmentNode *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00043d40(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00043d40(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00043d40(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }" { (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) ))))) ;) (expression_statement "FUN_00043d40();" (call_expression "FUN_00043d40()" identifier (argument_list "()" ( ))) ;) (do_statement "do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);" do (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar1 = *(int *)(iVar2 + 4);" (assignment_expression "iVar1 = *(int *)(iVar2 + 4)" identifier = (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x24) != iVar2 + 0x28)" ( (binary_expression "*(int *)(iVar2 + 0x24) != iVar2 + 0x28" (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) != (binary_expression "iVar2 + 0x28" identifier + number_literal)) )) (compound_statement "{\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }" { (expression_statement "FUN_00042800(*(int *)(iVar2 + 0x24));" (call_expression "FUN_00042800(*(int *)(iVar2 + 0x24))" identifier (argument_list "(*(int *)(iVar2 + 0x24))" ( (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));" (call_expression "FUN_00042800(*(undefined4 *)(iVar2 + 0x1c))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x1c))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00042800(iVar2);" (call_expression "FUN_00042800(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (do_statement do (compound_statement { (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) )))) != (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00043d40(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00043d40(int param_1)" (identifier "FUN_00043d40") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 != 0) {\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 8);\n    FUN_00043d40();\n    do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);\n    return;\n  }" ({ "{") (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")) () ")"))))) (; ";")) (expression_statement "FUN_00043d40();" (call_expression "FUN_00043d40()" (identifier "FUN_00043d40") (argument_list "()" (( "(") () ")"))) (; ";")) (do_statement "do {\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    } while (iVar1 != 0);" (do "do") (compound_statement "{\n      iVar1 = *(int *)(iVar2 + 4);\n      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }\n      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));\n      FUN_00042800(iVar2);\n      iVar2 = iVar1;\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar2 + 4);" (assignment_expression "iVar1 = *(int *)(iVar2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x24) != iVar2 + 0x28)" (( "(") (binary_expression "*(int *)(iVar2 + 0x24) != iVar2 + 0x28" (pointer_expression "*(int *)(iVar2 + 0x24)" (* "*") (cast_expression "(int *)(iVar2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x24)" (( "(") (binary_expression "iVar2 + 0x24" (identifier "iVar2") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (binary_expression "iVar2 + 0x28" (identifier "iVar2") (+ "+") (number_literal "0x28"))) () ")")) (compound_statement "{\n        FUN_00042800(*(int *)(iVar2 + 0x24));\n      }" ({ "{") (expression_statement "FUN_00042800(*(int *)(iVar2 + 0x24));" (call_expression "FUN_00042800(*(int *)(iVar2 + 0x24))" (identifier "FUN_00042800") (argument_list "(*(int *)(iVar2 + 0x24))" (( "(") (pointer_expression "*(int *)(iVar2 + 0x24)" (* "*") (cast_expression "(int *)(iVar2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x24)" (( "(") (binary_expression "iVar2 + 0x24" (identifier "iVar2") (+ "+") (number_literal "0x24")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));" (call_expression "FUN_00042800(*(undefined4 *)(iVar2 + 0x1c))" (identifier "FUN_00042800") (argument_list "(*(undefined4 *)(iVar2 + 0x1c))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00042800(iVar2);" (call_expression "FUN_00042800(iVar2)" (identifier "FUN_00042800") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *var_1)

{
  type_1 *var_4;
  type_1 *var_2;
  
  if (var_1 != (type_1 *)0x0) {
    var_2 = var_1->pLeftmost;
    function_1(var_2->pParent);
    do {
      var_4 = var_2->pRight;
      if ((type_1 *)var_2->aData != var_2 + 1) {
        var_3((type_1 *)var_2->aData);
      }
      var_3(var_2->zMalloc);
      var_3(var_2);
      var_2 = var_4;
    } while (var_4 != (type_1 *)0x0);
    return;
  }
  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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (do_statement body: (compound_statement (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: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 (call_expression function: (identifier) arguments: (argument_list (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (return_statement))))

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (param_1 != 0) {
    iVar2 = *(int *)(param_1 + 8);
    MASKED();
    do {
      iVar1 = *(int *)(iVar2 + 4);
      if (*(int *)(iVar2 + 0x24) != iVar2 + 0x28) {
        FUN_00042800(*(int *)(iVar2 + 0x24));
      }
      FUN_00042800(*(undefined4 *)(iVar2 + 0x1c));
      FUN_00042800(iVar2);
      iVar2 = iVar1;
    } while (iVar1 != 0);
    return;
  }
  return;
}

