
bfd_boolean finish_stab(void *dhandle,void *handle)

{
  undefined8 *puVar1;
  bfd_boolean bVar2;
  debug_type_conflict pdVar3;
  debug_type_kind kind;
  stab_handle *info;
  
  if (*(int *)((long)handle + 0x60) != 0) {
    bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78));
    if (bVar2 == 0) {
      return 0;
    }
    bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68));
    if (bVar2 == 0) {
      return 0;
    }
    *(undefined4 *)((long)handle + 0x60) = 0;
    *(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff;
  }
  puVar1 = *(undefined8 **)((long)handle + 0x1a0);
  while( true ) {
    if (puVar1 == (undefined8 *)0x0) {
      return 1;
    }
    kind = *(debug_type_kind *)(puVar1 + 2);
    if (kind == DEBUG_KIND_ILLEGAL) {
      kind = DEBUG_KIND_STRUCT;
    }
    pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);
    puVar1[3] = pdVar3;
    if (pdVar3 == (debug_type_conflict)0x0) break;
    puVar1 = (undefined8 *)*puVar1;
  }
  return 0;
}



undefined8 FUN_00115e30(undefined8 param_1,long param_2)

{
  undefined8 *puVar1;
  int iVar2;
  long lVar3;
  
  if (*(int *)(param_2 + 0x60) != 0) {
    iVar2 = FUN_00110750(param_1,param_2 + 0x78);
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));
    if (iVar2 == 0) {
      return 0;
    }
    *(undefined4 *)(param_2 + 0x60) = 0;
    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;
  }
  puVar1 = *(undefined8 **)(param_2 + 0x1a0);
  while( true ) {
    if (puVar1 == (undefined8 *)0x0) {
      return 1;
    }
    iVar2 = *(int *)(puVar1 + 2);
    if (iVar2 == 0) {
      iVar2 = 7;
    }
    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);
    puVar1[3] = lVar3;
    if (lVar3 == 0) break;
    puVar1 = (undefined8 *)*puVar1;
  }
  return 0;
}


PUSH R12
PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV EAX,dword ptr [RSI + 0x60]
MOV RBX,RSI
TEST EAX,EAX
JNZ 0x00115e98
MOV RBX,qword ptr [RBX + 0x1a0]
MOV R12D,0x7
TEST RBX,RBX
JNZ 0x00115e60
JMP 0x00115e88
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x00115e88
MOV EDX,dword ptr [RBX + 0x10]
MOV RSI,qword ptr [RBX + 0x8]
MOV RDI,RBP
TEST EDX,EDX
CMOVZ EDX,R12D
CALL 0x0010fd20
MOV qword ptr [RBX + 0x18],RAX
TEST RAX,RAX
JNZ 0x00115e58
POP RBX
XOR EAX,EAX
POP RBP
POP R12
RET
POP RBX
MOV EAX,0x1
POP RBP
POP R12
RET
LEA RSI,[RSI + 0x78]
CALL 0x00110750
TEST EAX,EAX
JZ 0x00115e7e
MOV RSI,qword ptr [RBX + 0x68]
MOV RDI,RBP
CALL 0x0010ee90
TEST EAX,EAX
JZ 0x00115e7e
MOV dword ptr [RBX + 0x60],0x0
MOV qword ptr [RBX + 0x68],-0x1
JMP 0x00115e41
(translation_unit "undefined8 FUN_00115e30(undefined8 param_1,long param_2)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00115e30(undefined8 param_1,long param_2)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00115e30(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x60) != 0)" ( (binary_expression "*(int *)(param_2 + 0x60) != 0" (pointer_expression "*(int *)(param_2 + 0x60)" * (cast_expression "(int *)(param_2 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x60)" ( (binary_expression "param_2 + 0x60" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }" { (expression_statement "iVar2 = FUN_00110750(param_1,param_2 + 0x78);" (assignment_expression "iVar2 = FUN_00110750(param_1,param_2 + 0x78)" identifier = (call_expression "FUN_00110750(param_1,param_2 + 0x78)" identifier (argument_list "(param_1,param_2 + 0x78)" ( identifier , (binary_expression "param_2 + 0x78" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));" (assignment_expression "iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68))" identifier = (call_expression "FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x68))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x68)" * (cast_expression "(undefined8 *)(param_2 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x60)" * (cast_expression "(undefined4 *)(param_2 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x60)" ( (binary_expression "param_2 + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;" (assignment_expression "*(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff" (pointer_expression "*(undefined8 *)(param_2 + 0x68)" * (cast_expression "(undefined8 *)(param_2 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined8 **)(param_2 + 0x1a0);" (assignment_expression "puVar1 = *(undefined8 **)(param_2 + 0x1a0)" identifier = (pointer_expression "*(undefined8 **)(param_2 + 0x1a0)" * (cast_expression "(undefined8 **)(param_2 + 0x1a0)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1a0)" ( (binary_expression "param_2 + 0x1a0" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = *(int *)(puVar1 + 2);" (assignment_expression "iVar2 = *(int *)(puVar1 + 2)" identifier = (pointer_expression "*(int *)(puVar1 + 2)" * (cast_expression "(int *)(puVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = 7;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) })) (expression_statement "lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);" (assignment_expression "lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2)" identifier = (call_expression "FUN_0010fd20(param_1,puVar1[1],iVar2)" identifier (argument_list "(param_1,puVar1[1],iVar2)" ( identifier , (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "puVar1[3] = lVar3;" (assignment_expression "puVar1[3] = lVar3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (lVar3 == 0) break;" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean finish_stab(void *dhandle,void *handle)\n\n{\n  undefined8 *puVar1;\n  bfd_boolean bVar2;\n  debug_type_conflict pdVar3;\n  debug_type_kind kind;\n  stab_handle *info;\n  \n  if (*(int *)((long)handle + 0x60) != 0) {\n    bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((long)handle + 0x60) = 0;\n    *(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)((long)handle + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    kind = *(debug_type_kind *)(puVar1 + 2);\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar3;\n    if (pdVar3 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean finish_stab(void *dhandle,void *handle)\n\n{\n  undefined8 *puVar1;\n  bfd_boolean bVar2;\n  debug_type_conflict pdVar3;\n  debug_type_kind kind;\n  stab_handle *info;\n  \n  if (*(int *)((long)handle + 0x60) != 0) {\n    bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((long)handle + 0x60) = 0;\n    *(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)((long)handle + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    kind = *(debug_type_kind *)(puVar1 + 2);\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar3;\n    if (pdVar3 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "finish_stab(void *dhandle,void *handle)" identifier (parameter_list "(void *dhandle,void *handle)" ( (parameter_declaration "void *dhandle" primitive_type (pointer_declarator "*dhandle" * identifier)) , (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  bfd_boolean bVar2;\n  debug_type_conflict pdVar3;\n  debug_type_kind kind;\n  stab_handle *info;\n  \n  if (*(int *)((long)handle + 0x60) != 0) {\n    bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((long)handle + 0x60) = 0;\n    *(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)((long)handle + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    kind = *(debug_type_kind *)(puVar1 + 2);\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar3;\n    if (pdVar3 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "debug_type_conflict pdVar3;" type_identifier identifier ;) (declaration "debug_type_kind kind;" type_identifier identifier ;) (declaration "stab_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (if_statement "if (*(int *)((long)handle + 0x60) != 0) {\n    bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((long)handle + 0x60) = 0;\n    *(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff;\n  }" if (parenthesized_expression "(*(int *)((long)handle + 0x60) != 0)" ( (binary_expression "*(int *)((long)handle + 0x60) != 0" (pointer_expression "*(int *)((long)handle + 0x60)" * (cast_expression "(int *)((long)handle + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x60)" ( (binary_expression "(long)handle + 0x60" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68));\n    if (bVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((long)handle + 0x60) = 0;\n    *(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff;\n  }" { (expression_statement "bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78));" (assignment_expression "bVar2 = stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78))" identifier = (call_expression "stab_emit_pending_vars(dhandle,(stab_handle *)((long)handle + 0x78))" identifier (argument_list "(dhandle,(stab_handle *)((long)handle + 0x78))" ( identifier , (cast_expression "(stab_handle *)((long)handle + 0x78)" ( (type_descriptor "stab_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x78)" ( (binary_expression "(long)handle + 0x78" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) )))) ;) (if_statement "if (bVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68));" (assignment_expression "bVar2 = debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68))" identifier = (call_expression "debug_end_function(dhandle,*(bfd_vma *)((long)handle + 0x68))" identifier (argument_list "(dhandle,*(bfd_vma *)((long)handle + 0x68))" ( identifier , (pointer_expression "*(bfd_vma *)((long)handle + 0x68)" * (cast_expression "(bfd_vma *)((long)handle + 0x68)" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x68)" ( (binary_expression "(long)handle + 0x68" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) )))) ;) (if_statement "if (bVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)((long)handle + 0x60) = 0;" (assignment_expression "*(undefined4 *)((long)handle + 0x60) = 0" (pointer_expression "*(undefined4 *)((long)handle + 0x60)" * (cast_expression "(undefined4 *)((long)handle + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x60)" ( (binary_expression "(long)handle + 0x60" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff;" (assignment_expression "*(undefined8 *)((long)handle + 0x68) = 0xffffffffffffffff" (pointer_expression "*(undefined8 *)((long)handle + 0x68)" * (cast_expression "(undefined8 *)((long)handle + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x68)" ( (binary_expression "(long)handle + 0x68" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined8 **)((long)handle + 0x1a0);" (assignment_expression "puVar1 = *(undefined8 **)((long)handle + 0x1a0)" identifier = (pointer_expression "*(undefined8 **)((long)handle + 0x1a0)" * (cast_expression "(undefined8 **)((long)handle + 0x1a0)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x1a0)" ( (binary_expression "(long)handle + 0x1a0" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    kind = *(debug_type_kind *)(puVar1 + 2);\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar3;\n    if (pdVar3 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    kind = *(debug_type_kind *)(puVar1 + 2);\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar3;\n    if (pdVar3 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "kind = *(debug_type_kind *)(puVar1 + 2);" (assignment_expression "kind = *(debug_type_kind *)(puVar1 + 2)" identifier = (pointer_expression "*(debug_type_kind *)(puVar1 + 2)" * (cast_expression "(debug_type_kind *)(puVar1 + 2)" ( (type_descriptor "debug_type_kind *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }" if (parenthesized_expression "(kind == DEBUG_KIND_ILLEGAL)" ( (binary_expression "kind == DEBUG_KIND_ILLEGAL" identifier == identifier) )) (compound_statement "{\n      kind = DEBUG_KIND_STRUCT;\n    }" { (expression_statement "kind = DEBUG_KIND_STRUCT;" (assignment_expression "kind = DEBUG_KIND_STRUCT" identifier = identifier) ;) })) (expression_statement "pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);" (assignment_expression "pdVar3 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind)" identifier = (call_expression "debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind)" identifier (argument_list "(dhandle,(char *)puVar1[1],kind)" ( identifier , (cast_expression "(char *)puVar1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier )))) ;) (expression_statement "puVar1[3] = pdVar3;" (assignment_expression "puVar1[3] = pdVar3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pdVar3 == (debug_type_conflict)0x0) break;" if (parenthesized_expression "(pdVar3 == (debug_type_conflict)0x0)" ( (binary_expression "pdVar3 == (debug_type_conflict)0x0" identifier == (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00115e30(undefined8 param_1,long param_2)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00115e30(undefined8 param_1,long param_2)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00115e30(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x60) != 0)" ( (binary_expression "*(int *)(param_2 + 0x60) != 0" (pointer_expression "*(int *)(param_2 + 0x60)" * (cast_expression "(int *)(param_2 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x60)" ( (binary_expression "param_2 + 0x60" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }" { (expression_statement "iVar2 = FUN_00110750(param_1,param_2 + 0x78);" (assignment_expression "iVar2 = FUN_00110750(param_1,param_2 + 0x78)" identifier = (call_expression "FUN_00110750(param_1,param_2 + 0x78)" identifier (argument_list "(param_1,param_2 + 0x78)" ( identifier , (binary_expression "param_2 + 0x78" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));" (assignment_expression "iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68))" identifier = (call_expression "FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x68))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x68)" * (cast_expression "(undefined8 *)(param_2 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x60)" * (cast_expression "(undefined4 *)(param_2 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x60)" ( (binary_expression "param_2 + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;" (assignment_expression "*(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff" (pointer_expression "*(undefined8 *)(param_2 + 0x68)" * (cast_expression "(undefined8 *)(param_2 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined8 **)(param_2 + 0x1a0);" (assignment_expression "puVar1 = *(undefined8 **)(param_2 + 0x1a0)" identifier = (pointer_expression "*(undefined8 **)(param_2 + 0x1a0)" * (cast_expression "(undefined8 **)(param_2 + 0x1a0)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1a0)" ( (binary_expression "param_2 + 0x1a0" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = *(int *)(puVar1 + 2);" (assignment_expression "iVar2 = *(int *)(puVar1 + 2)" identifier = (pointer_expression "*(int *)(puVar1 + 2)" * (cast_expression "(int *)(puVar1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = 7;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) })) (expression_statement "lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);" (assignment_expression "lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2)" identifier = (call_expression "FUN_0010fd20(param_1,puVar1[1],iVar2)" identifier (argument_list "(param_1,puVar1[1],iVar2)" ( identifier , (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "puVar1[3] = lVar3;" (assignment_expression "puVar1[3] = lVar3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (lVar3 == 0) break;" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return 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) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return 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 IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00115e30(undefined8 param_1,long param_2)\n\n{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00115e30(undefined8 param_1,long param_2)" (identifier "FUN_00115e30") (parameter_list "(undefined8 param_1,long param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  int iVar2;\n  long lVar3;\n  \n  if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }\n  puVar1 = *(undefined8 **)(param_2 + 0x1a0);\n  while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (if_statement "if (*(int *)(param_2 + 0x60) != 0) {\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x60) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x60) != 0" (pointer_expression "*(int *)(param_2 + 0x60)" (* "*") (cast_expression "(int *)(param_2 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x60)" (( "(") (binary_expression "param_2 + 0x60" (identifier "param_2") (+ "+") (number_literal "0x60")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_00110750(param_1,param_2 + 0x78);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x60) = 0;\n    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;\n  }" ({ "{") (expression_statement "iVar2 = FUN_00110750(param_1,param_2 + 0x78);" (assignment_expression "iVar2 = FUN_00110750(param_1,param_2 + 0x78)" (identifier "iVar2") (= "=") (call_expression "FUN_00110750(param_1,param_2 + 0x78)" (identifier "FUN_00110750") (argument_list "(param_1,param_2 + 0x78)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + 0x78" (identifier "param_2") (+ "+") (number_literal "0x78")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));" (assignment_expression "iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68))" (identifier "iVar2") (= "=") (call_expression "FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68))" (identifier "FUN_0010ee90") (argument_list "(param_1,*(undefined8 *)(param_2 + 0x68))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x68)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x68)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x68)" (( "(") (binary_expression "param_2 + 0x68" (identifier "param_2") (+ "+") (number_literal "0x68")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_2 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x60)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x60)" (( "(") (binary_expression "param_2 + 0x60" (identifier "param_2") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;" (assignment_expression "*(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff" (pointer_expression "*(undefined8 *)(param_2 + 0x68)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x68)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x68)" (( "(") (binary_expression "param_2 + 0x68" (identifier "param_2") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (} "}"))) (expression_statement "puVar1 = *(undefined8 **)(param_2 + 0x1a0);" (assignment_expression "puVar1 = *(undefined8 **)(param_2 + 0x1a0)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_2 + 0x1a0)" (* "*") (cast_expression "(undefined8 **)(param_2 + 0x1a0)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x1a0)" (( "(") (binary_expression "param_2 + 0x1a0" (identifier "param_2") (+ "+") (number_literal "0x1a0")) () ")"))))) (; ";")) (while_statement "while( true ) {\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }\n    iVar2 = *(int *)(puVar1 + 2);\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);\n    puVar1[3] = lVar3;\n    if (lVar3 == 0) break;\n    puVar1 = (undefined8 *)*puVar1;\n  }" ({ "{") (if_statement "if (puVar1 == (undefined8 *)0x0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined8 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(puVar1 + 2);" (assignment_expression "iVar2 = *(int *)(puVar1 + 2)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(puVar1 + 2)" (* "*") (cast_expression "(int *)(puVar1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = 7;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = 7;\n    }" ({ "{") (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" (identifier "iVar2") (= "=") (number_literal "7")) (; ";")) (} "}"))) (expression_statement "lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);" (assignment_expression "lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2)" (identifier "lVar3") (= "=") (call_expression "FUN_0010fd20(param_1,puVar1[1],iVar2)" (identifier "FUN_0010fd20") (argument_list "(param_1,puVar1[1],iVar2)" (( "(") (identifier "param_1") (, ",") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "puVar1[3] = lVar3;" (assignment_expression "puVar1[3] = lVar3" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "lVar3")) (; ";")) (if_statement "if (lVar3 == 0) break;" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)*puVar1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(void *dhandle,void *handle)

{
  type_2 *var_4;
  type_1 var_2;
  type_3 var_8;
  type_4 var_5;
  type_5 *info;
  
  if (*(int *)((long)handle + 0x60) != 0) {
    var_2 = var_1(dhandle,(type_5 *)((long)handle + 0x78));
    if (var_2 == 0) {
      return 0;
    }
    var_2 = var_3(dhandle,*(type_6 *)((long)handle + 0x68));
    if (var_2 == 0) {
      return 0;
    }
    *(type_7 *)((long)handle + 0x60) = 0;
    *(type_2 *)((long)handle + 0x68) = 0xffffffffffffffff;
  }
  var_4 = *(type_2 **)((long)handle + 0x1a0);
  while( true ) {
    if (var_4 == (type_2 *)0x0) {
      return 1;
    }
    var_5 = *(type_4 *)(var_4 + 2);
    if (var_5 == var_6) {
      var_5 = DEBUG_KIND_STRUCT;
    }
    var_8 = var_7(dhandle,(char *)var_4[1],var_5);
    var_4[3] = var_8;
    if (var_8 == (type_3)0x0) break;
    var_4 = (type_2 *)*var_4;
  }
  return 0;
}


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

undefined8 MASKED(undefined8 param_1,long param_2)

{
  undefined8 *puVar1;
  int iVar2;
  long lVar3;
  
  if (*(int *)(param_2 + 0x60) != 0) {
    iVar2 = FUN_00110750(param_1,param_2 + 0x78);
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_0010ee90(param_1,*(undefined8 *)(param_2 + 0x68));
    if (iVar2 == 0) {
      return 0;
    }
    *(undefined4 *)(param_2 + 0x60) = 0;
    *(undefined8 *)(param_2 + 0x68) = 0xffffffffffffffff;
  }
  puVar1 = *(undefined8 **)(param_2 + 0x1a0);
  while( true ) {
    if (puVar1 == (undefined8 *)0x0) {
      return 1;
    }
    iVar2 = *(int *)(puVar1 + 2);
    if (iVar2 == 0) {
      iVar2 = 7;
    }
    lVar3 = FUN_0010fd20(param_1,puVar1[1],iVar2);
    puVar1[3] = lVar3;
    if (lVar3 == 0) break;
    puVar1 = (undefined8 *)*puVar1;
  }
  return 0;
}

