
/* WARNING: Unknown calling convention */

void selectPopWith(Walker *pWalker,Select *p)

{
  With *pWVar1;
  Select *pSVar2;
  Parse *pParse;
  
  if ((pWalker->pParse->pWith != (With *)0x0) && (p->pPrior == (Select *)0x0)) {
    do {
      pSVar2 = p;
      p = pSVar2->pNext;
    } while (p != (Select *)0x0);
    pWVar1 = pSVar2->pWith;
    if (pWVar1 != (With *)0x0) {
      pWalker->pParse->pWith = pWVar1->pOuter;
      return;
    }
  }
  return;
}



void FUN_000207f0(int *param_1,int param_2)

{
  int iVar1;
  
  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {
    do {
      iVar1 = param_2;
      param_2 = *(int *)(iVar1 + 0x38);
    } while (param_2 != 0);
    iVar1 = *(int *)(iVar1 + 0x40);
    if (iVar1 != 0) {
      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);
      return;
    }
  }
  return;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [EDX]
MOV EDX,dword ptr [ECX + 0x10c]
TEST EDX,EDX
JZ 0x0002080b
MOV EDX,dword ptr [EAX + 0x34]
TEST EDX,EDX
JZ 0x00020812
RET
MOV EAX,EDX
MOV EDX,dword ptr [EAX + 0x38]
TEST EDX,EDX
JNZ 0x00020810
MOV EAX,dword ptr [EAX + 0x40]
TEST EAX,EAX
JZ 0x0002080b
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ECX + 0x10c],EAX
RET
(translation_unit "void FUN_000207f0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000207f0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000207f0(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  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }" if (parenthesized_expression "((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0))" ( (binary_expression "(*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)" (parenthesized_expression "(*(int *)(*param_1 + 0x10c) != 0)" ( (binary_expression "*(int *)(*param_1 + 0x10c) != 0" (pointer_expression "*(int *)(*param_1 + 0x10c)" * (cast_expression "(int *)(*param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10c)" ( (binary_expression "*param_1 + 0x10c" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_2 + 0x34) == 0)" ( (binary_expression "*(int *)(param_2 + 0x34) == 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }" { (do_statement "do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);" do (compound_statement "{\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    }" { (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) (expression_statement "param_2 = *(int *)(iVar1 + 0x38);" (assignment_expression "param_2 = *(int *)(iVar1 + 0x38)" identifier = (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) (expression_statement "iVar1 = *(int *)(iVar1 + 0x40);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x40)" identifier = (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }" { (expression_statement "*(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);" (assignment_expression "*(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4)" (pointer_expression "*(undefined4 *)(*param_1 + 0x10c)" * (cast_expression "(undefined4 *)(*param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10c)" ( (binary_expression "*param_1 + 0x10c" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid selectPopWith(Walker *pWalker,Select *p)\n\n{\n  With *pWVar1;\n  Select *pSVar2;\n  Parse *pParse;\n  \n  if ((pWalker->pParse->pWith != (With *)0x0) && (p->pPrior == (Select *)0x0)) {\n    do {\n      pSVar2 = p;\n      p = pSVar2->pNext;\n    } while (p != (Select *)0x0);\n    pWVar1 = pSVar2->pWith;\n    if (pWVar1 != (With *)0x0) {\n      pWalker->pParse->pWith = pWVar1->pOuter;\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void selectPopWith(Walker *pWalker,Select *p)\n\n{\n  With *pWVar1;\n  Select *pSVar2;\n  Parse *pParse;\n  \n  if ((pWalker->pParse->pWith != (With *)0x0) && (p->pPrior == (Select *)0x0)) {\n    do {\n      pSVar2 = p;\n      p = pSVar2->pNext;\n    } while (p != (Select *)0x0);\n    pWVar1 = pSVar2->pWith;\n    if (pWVar1 != (With *)0x0) {\n      pWalker->pParse->pWith = pWVar1->pOuter;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "selectPopWith(Walker *pWalker,Select *p)" identifier (parameter_list "(Walker *pWalker,Select *p)" ( (parameter_declaration "Walker *pWalker" type_identifier (pointer_declarator "*pWalker" * identifier)) , (parameter_declaration "Select *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  With *pWVar1;\n  Select *pSVar2;\n  Parse *pParse;\n  \n  if ((pWalker->pParse->pWith != (With *)0x0) && (p->pPrior == (Select *)0x0)) {\n    do {\n      pSVar2 = p;\n      p = pSVar2->pNext;\n    } while (p != (Select *)0x0);\n    pWVar1 = pSVar2->pWith;\n    if (pWVar1 != (With *)0x0) {\n      pWalker->pParse->pWith = pWVar1->pOuter;\n      return;\n    }\n  }\n  return;\n}" { (declaration "With *pWVar1;" type_identifier (pointer_declarator "*pWVar1" * identifier) ;) (declaration "Select *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "Parse *pParse;" type_identifier (pointer_declarator "*pParse" * identifier) ;) (if_statement "if ((pWalker->pParse->pWith != (With *)0x0) && (p->pPrior == (Select *)0x0)) {\n    do {\n      pSVar2 = p;\n      p = pSVar2->pNext;\n    } while (p != (Select *)0x0);\n    pWVar1 = pSVar2->pWith;\n    if (pWVar1 != (With *)0x0) {\n      pWalker->pParse->pWith = pWVar1->pOuter;\n      return;\n    }\n  }" if (parenthesized_expression "((pWalker->pParse->pWith != (With *)0x0) && (p->pPrior == (Select *)0x0))" ( (binary_expression "(pWalker->pParse->pWith != (With *)0x0) && (p->pPrior == (Select *)0x0)" (parenthesized_expression "(pWalker->pParse->pWith != (With *)0x0)" ( (binary_expression "pWalker->pParse->pWith != (With *)0x0" (field_expression "pWalker->pParse->pWith" (field_expression "pWalker->pParse" identifier -> field_identifier) -> field_identifier) != (cast_expression "(With *)0x0" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(p->pPrior == (Select *)0x0)" ( (binary_expression "p->pPrior == (Select *)0x0" (field_expression "p->pPrior" identifier -> field_identifier) == (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    do {\n      pSVar2 = p;\n      p = pSVar2->pNext;\n    } while (p != (Select *)0x0);\n    pWVar1 = pSVar2->pWith;\n    if (pWVar1 != (With *)0x0) {\n      pWalker->pParse->pWith = pWVar1->pOuter;\n      return;\n    }\n  }" { (do_statement "do {\n      pSVar2 = p;\n      p = pSVar2->pNext;\n    } while (p != (Select *)0x0);" do (compound_statement "{\n      pSVar2 = p;\n      p = pSVar2->pNext;\n    }" { (expression_statement "pSVar2 = p;" (assignment_expression "pSVar2 = p" identifier = identifier) ;) (expression_statement "p = pSVar2->pNext;" (assignment_expression "p = pSVar2->pNext" identifier = (field_expression "pSVar2->pNext" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(p != (Select *)0x0)" ( (binary_expression "p != (Select *)0x0" identifier != (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pWVar1 = pSVar2->pWith;" (assignment_expression "pWVar1 = pSVar2->pWith" identifier = (field_expression "pSVar2->pWith" identifier -> field_identifier)) ;) (if_statement "if (pWVar1 != (With *)0x0) {\n      pWalker->pParse->pWith = pWVar1->pOuter;\n      return;\n    }" if (parenthesized_expression "(pWVar1 != (With *)0x0)" ( (binary_expression "pWVar1 != (With *)0x0" identifier != (cast_expression "(With *)0x0" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pWalker->pParse->pWith = pWVar1->pOuter;\n      return;\n    }" { (expression_statement "pWalker->pParse->pWith = pWVar1->pOuter;" (assignment_expression "pWalker->pParse->pWith = pWVar1->pOuter" (field_expression "pWalker->pParse->pWith" (field_expression "pWalker->pParse" identifier -> field_identifier) -> field_identifier) = (field_expression "pWVar1->pOuter" identifier -> field_identifier)) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000207f0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000207f0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000207f0(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  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }" if (parenthesized_expression "((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0))" ( (binary_expression "(*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)" (parenthesized_expression "(*(int *)(*param_1 + 0x10c) != 0)" ( (binary_expression "*(int *)(*param_1 + 0x10c) != 0" (pointer_expression "*(int *)(*param_1 + 0x10c)" * (cast_expression "(int *)(*param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10c)" ( (binary_expression "*param_1 + 0x10c" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_2 + 0x34) == 0)" ( (binary_expression "*(int *)(param_2 + 0x34) == 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }" { (do_statement "do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);" do (compound_statement "{\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    }" { (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) (expression_statement "param_2 = *(int *)(iVar1 + 0x38);" (assignment_expression "param_2 = *(int *)(iVar1 + 0x38)" identifier = (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) (expression_statement "iVar1 = *(int *)(iVar1 + 0x40);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x40)" identifier = (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }" { (expression_statement "*(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);" (assignment_expression "*(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4)" (pointer_expression "*(undefined4 *)(*param_1 + 0x10c)" * (cast_expression "(undefined4 *)(*param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10c)" ( (binary_expression "*param_1 + 0x10c" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_000207f0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000207f0(int *param_1,int param_2)" (identifier "FUN_000207f0") (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  \n  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0))" (( "(") (binary_expression "(*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)" (parenthesized_expression "(*(int *)(*param_1 + 0x10c) != 0)" (( "(") (binary_expression "*(int *)(*param_1 + 0x10c) != 0" (pointer_expression "*(int *)(*param_1 + 0x10c)" (* "*") (cast_expression "(int *)(*param_1 + 0x10c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x10c)" (( "(") (binary_expression "*param_1 + 0x10c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_2 + 0x34) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x34) == 0" (pointer_expression "*(int *)(param_2 + 0x34)" (* "*") (cast_expression "(int *)(param_2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);\n    iVar1 = *(int *)(iVar1 + 0x40);\n    if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }\n  }" ({ "{") (do_statement "do {\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      iVar1 = param_2;\n      param_2 = *(int *)(iVar1 + 0x38);\n    }" ({ "{") (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" (identifier "iVar1") (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_2 = *(int *)(iVar1 + 0x38);" (assignment_expression "param_2 = *(int *)(iVar1 + 0x38)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar1 + 0x40);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x40)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 0x40)" (* "*") (cast_expression "(int *)(iVar1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);\n      return;\n    }" ({ "{") (expression_statement "*(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);" (assignment_expression "*(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4)" (pointer_expression "*(undefined4 *)(*param_1 + 0x10c)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0x10c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x10c)" (( "(") (binary_expression "*param_1 + 0x10c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *pWalker,type_2 *var_1)

{
  type_3 *var_2;
  type_2 *pSVar2;
  type_4 *pParse;
  
  if ((pWalker->pParse->pWith != (type_3 *)0x0) && (var_1->pPrior == (type_2 *)0x0)) {
    do {
      pSVar2 = var_1;
      var_1 = pSVar2->pNext;
    } while (var_1 != (type_2 *)0x0);
    var_2 = pSVar2->pWith;
    if (var_2 != (type_3 *)0x0) {
      pWalker->pParse->pWith = var_2->pOuter;
      return;
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) 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)) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) right: (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 (do_statement body: (compound_statement (expression_statement (assignment_expression left: (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)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))) (return_statement))))

void MASKED(int *param_1,int param_2)

{
  int iVar1;
  
  if ((*(int *)(*param_1 + 0x10c) != 0) && (*(int *)(param_2 + 0x34) == 0)) {
    do {
      iVar1 = param_2;
      param_2 = *(int *)(iVar1 + 0x38);
    } while (param_2 != 0);
    iVar1 = *(int *)(iVar1 + 0x40);
    if (iVar1 != 0) {
      *(undefined4 *)(*param_1 + 0x10c) = *(undefined4 *)(iVar1 + 4);
      return;
    }
  }
  return;
}

