
bfd_boolean debug_end_function(void *handle,bfd_vma addr)

{
  long lVar1;
  undefined8 uVar2;
  char *pcVar3;
  debug_handle *info;
  
  if (((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))
     || (*(long *)((long)handle + 0x18) == 0)) {
    pcVar3 = "debug_end_function: no current function";
  }
  else {
    if (*(long *)(lVar1 + 8) == 0) {
      *(bfd_vma *)(lVar1 + 0x20) = addr;
      *(undefined8 *)((long)handle + 0x18) = 0;
      *(undefined8 *)((long)handle + 0x20) = 0;
      return 1;
    }
    pcVar3 = "debug_end_function: some blocks were not closed";
  }
  uVar2 = dcgettext(0,pcVar3,5);
  fprintf(stderr,"%s\n",uVar2);
  return 0;
}



undefined8 FUN_0010ee90(long param_1,undefined8 param_2)

{
  long lVar1;
  undefined8 uVar2;
  char *pcVar3;
  
  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||
     (*(long *)(param_1 + 0x18) == 0)) {
    pcVar3 = "debug_end_function: no current function";
  }
  else {
    if (*(long *)(lVar1 + 8) == 0) {
      *(undefined8 *)(lVar1 + 0x20) = param_2;
      *(undefined8 *)(param_1 + 0x18) = 0;
      *(undefined8 *)(param_1 + 0x20) = 0;
      return 1;
    }
    pcVar3 = "debug_end_function: some blocks were not closed";
  }
  uVar2 = dcgettext(0,pcVar3,5);
  fprintf(stderr,"%s\n",uVar2);
  return 0;
}


SUB RSP,0x8
CMP qword ptr [RDI + 0x8],0x0
JZ 0x0010ef08
MOV RAX,qword ptr [RDI + 0x20]
TEST RAX,RAX
JZ 0x0010ef08
CMP qword ptr [RDI + 0x18],0x0
JZ 0x0010ef08
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x0010eed0
MOV qword ptr [RAX + 0x20],RSI
MOV EAX,0x1
MOV qword ptr [RDI + 0x18],0x0
MOV qword ptr [RDI + 0x20],0x0
ADD RSP,0x8
RET
MOV EDX,0x5
LEA RSI,[0x122b30]
XOR EDI,EDI
CALL 0x00104240
MOV RDI,qword ptr [0x0012c9e0]
LEA RSI,[0x12456f]
MOV RDX,RAX
XOR EAX,EAX
CALL 0x001044a0
XOR EAX,EAX
ADD RSP,0x8
RET
MOV EDX,0x5
LEA RSI,[0x122b08]
JMP 0x0010eedc
(translation_unit "undefined8 FUN_0010ee90(long param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0010ee90(long param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" type_identifier (function_declarator "FUN_0010ee90(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" if (parenthesized_expression "(((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0))" ( (binary_expression "((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)" (parenthesized_expression "((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0))" ( (binary_expression "(*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (parenthesized_expression "(*(long *)(param_1 + 8) == 0)" ( (binary_expression "*(long *)(param_1 + 8) == 0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" ( (comma_expression "lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) , (binary_expression "lVar1 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "(*(long *)(param_1 + 0x18) == 0)" ( (binary_expression "*(long *)(param_1 + 0x18) == 0" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    pcVar3 = "debug_end_function: no current function";\n  }" { (expression_statement "pcVar3 = "debug_end_function: no current function";" (assignment_expression "pcVar3 = "debug_end_function: no current function"" identifier = (string_literal ""debug_end_function: no current function"" " string_content ")) ;) }) (else_clause "else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" else (compound_statement "{\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" { (if_statement "if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }" if (parenthesized_expression "(*(long *)(lVar1 + 8) == 0)" ( (binary_expression "*(long *)(lVar1 + 8) == 0" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }" { (expression_statement "*(undefined8 *)(lVar1 + 0x20) = param_2;" (assignment_expression "*(undefined8 *)(lVar1 + 0x20) = param_2" (pointer_expression "*(undefined8 *)(lVar1 + 0x20)" * (cast_expression "(undefined8 *)(lVar1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "pcVar3 = "debug_end_function: some blocks were not closed";" (assignment_expression "pcVar3 = "debug_end_function: some blocks were not closed"" identifier = (string_literal ""debug_end_function: some blocks were not closed"" " string_content ")) ;) }))) (expression_statement "uVar2 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar2 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "fprintf(stderr,"%s\n",uVar2);" (call_expression "fprintf(stderr,"%s\n",uVar2)" identifier (argument_list "(stderr,"%s\n",uVar2)" ( identifier , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean debug_end_function(void *handle,bfd_vma addr)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  debug_handle *info;\n  \n  if (((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))\n     || (*(long *)((long)handle + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}\n\n" (function_definition "bfd_boolean debug_end_function(void *handle,bfd_vma addr)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  debug_handle *info;\n  \n  if (((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))\n     || (*(long *)((long)handle + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" type_identifier (function_declarator "debug_end_function(void *handle,bfd_vma addr)" identifier (parameter_list "(void *handle,bfd_vma addr)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "bfd_vma addr" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  debug_handle *info;\n  \n  if (((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))\n     || (*(long *)((long)handle + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (if_statement "if (((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))\n     || (*(long *)((long)handle + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" if (parenthesized_expression "(((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))\n     || (*(long *)((long)handle + 0x18) == 0))" ( (binary_expression "((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))\n     || (*(long *)((long)handle + 0x18) == 0)" (parenthesized_expression "((*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0))" ( (binary_expression "(*(long *)((long)handle + 8) == 0) || (lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0)" (parenthesized_expression "(*(long *)((long)handle + 8) == 0)" ( (binary_expression "*(long *)((long)handle + 8) == 0" (pointer_expression "*(long *)((long)handle + 8)" * (cast_expression "(long *)((long)handle + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0)" ( (comma_expression "lVar1 = *(long *)((long)handle + 0x20), lVar1 == 0" (assignment_expression "lVar1 = *(long *)((long)handle + 0x20)" identifier = (pointer_expression "*(long *)((long)handle + 0x20)" * (cast_expression "(long *)((long)handle + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x20)" ( (binary_expression "(long)handle + 0x20" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) , (binary_expression "lVar1 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "(*(long *)((long)handle + 0x18) == 0)" ( (binary_expression "*(long *)((long)handle + 0x18) == 0" (pointer_expression "*(long *)((long)handle + 0x18)" * (cast_expression "(long *)((long)handle + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x18)" ( (binary_expression "(long)handle + 0x18" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    pcVar3 = "debug_end_function: no current function";\n  }" { (expression_statement "pcVar3 = "debug_end_function: no current function";" (assignment_expression "pcVar3 = "debug_end_function: no current function"" identifier = (string_literal ""debug_end_function: no current function"" " string_content ")) ;) }) (else_clause "else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" else (compound_statement "{\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" { (if_statement "if (*(long *)(lVar1 + 8) == 0) {\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }" if (parenthesized_expression "(*(long *)(lVar1 + 8) == 0)" ( (binary_expression "*(long *)(lVar1 + 8) == 0" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      *(bfd_vma *)(lVar1 + 0x20) = addr;\n      *(undefined8 *)((long)handle + 0x18) = 0;\n      *(undefined8 *)((long)handle + 0x20) = 0;\n      return 1;\n    }" { (expression_statement "*(bfd_vma *)(lVar1 + 0x20) = addr;" (assignment_expression "*(bfd_vma *)(lVar1 + 0x20) = addr" (pointer_expression "*(bfd_vma *)(lVar1 + 0x20)" * (cast_expression "(bfd_vma *)(lVar1 + 0x20)" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)((long)handle + 0x18) = 0;" (assignment_expression "*(undefined8 *)((long)handle + 0x18) = 0" (pointer_expression "*(undefined8 *)((long)handle + 0x18)" * (cast_expression "(undefined8 *)((long)handle + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x18)" ( (binary_expression "(long)handle + 0x18" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)handle + 0x20) = 0;" (assignment_expression "*(undefined8 *)((long)handle + 0x20) = 0" (pointer_expression "*(undefined8 *)((long)handle + 0x20)" * (cast_expression "(undefined8 *)((long)handle + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x20)" ( (binary_expression "(long)handle + 0x20" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "pcVar3 = "debug_end_function: some blocks were not closed";" (assignment_expression "pcVar3 = "debug_end_function: some blocks were not closed"" identifier = (string_literal ""debug_end_function: some blocks were not closed"" " string_content ")) ;) }))) (expression_statement "uVar2 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar2 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "fprintf(stderr,"%s\n",uVar2);" (call_expression "fprintf(stderr,"%s\n",uVar2)" identifier (argument_list "(stderr,"%s\n",uVar2)" ( identifier , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_0010ee90(long param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0010ee90(long param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" type_identifier (function_declarator "FUN_0010ee90(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" if (parenthesized_expression "(((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0))" ( (binary_expression "((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)" (parenthesized_expression "((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0))" ( (binary_expression "(*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (parenthesized_expression "(*(long *)(param_1 + 8) == 0)" ( (binary_expression "*(long *)(param_1 + 8) == 0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" ( (comma_expression "lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) , (binary_expression "lVar1 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "(*(long *)(param_1 + 0x18) == 0)" ( (binary_expression "*(long *)(param_1 + 0x18) == 0" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    pcVar3 = "debug_end_function: no current function";\n  }" { (expression_statement "pcVar3 = "debug_end_function: no current function";" (assignment_expression "pcVar3 = "debug_end_function: no current function"" identifier = (string_literal ""debug_end_function: no current function"" " string_content ")) ;) }) (else_clause "else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" else (compound_statement "{\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" { (if_statement "if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }" if (parenthesized_expression "(*(long *)(lVar1 + 8) == 0)" ( (binary_expression "*(long *)(lVar1 + 8) == 0" (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }" { (expression_statement "*(undefined8 *)(lVar1 + 0x20) = param_2;" (assignment_expression "*(undefined8 *)(lVar1 + 0x20) = param_2" (pointer_expression "*(undefined8 *)(lVar1 + 0x20)" * (cast_expression "(undefined8 *)(lVar1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "pcVar3 = "debug_end_function: some blocks were not closed";" (assignment_expression "pcVar3 = "debug_end_function: some blocks were not closed"" identifier = (string_literal ""debug_end_function: some blocks were not closed"" " string_content ")) ;) }))) (expression_statement "uVar2 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar2 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "fprintf(stderr,"%s\n",uVar2);" (call_expression "fprintf(stderr,"%s\n",uVar2)" identifier (argument_list "(stderr,"%s\n",uVar2)" ( identifier , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == LIT)) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_0010ee90(long param_1,undefined8 param_2)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_0010ee90(long param_1,undefined8 param_2)" (identifier "FUN_0010ee90") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }\n  uVar2 = dcgettext(0,pcVar3,5);\n  fprintf(stderr,"%s\n",uVar2);\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)) {\n    pcVar3 = "debug_end_function: no current function";\n  }\n  else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" (if "if") (parenthesized_expression "(((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0))" (( "(") (binary_expression "((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||\n     (*(long *)(param_1 + 0x18) == 0)" (parenthesized_expression "((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0))" (( "(") (binary_expression "(*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (parenthesized_expression "(*(long *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 8) == 0" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (( "(") (comma_expression "lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (, ",") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*(long *)(param_1 + 0x18) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x18) == 0" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    pcVar3 = "debug_end_function: no current function";\n  }" ({ "{") (expression_statement "pcVar3 = "debug_end_function: no current function";" (assignment_expression "pcVar3 = "debug_end_function: no current function"" (identifier "pcVar3") (= "=") (string_literal ""debug_end_function: no current function"" (" """) (string_content "debug_end_function: no current function") (" """))) (; ";")) (} "}")) (else_clause "else {\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" (else "else") (compound_statement "{\n    if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }\n    pcVar3 = "debug_end_function: some blocks were not closed";\n  }" ({ "{") (if_statement "if (*(long *)(lVar1 + 8) == 0) {\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }" (if "if") (parenthesized_expression "(*(long *)(lVar1 + 8) == 0)" (( "(") (binary_expression "*(long *)(lVar1 + 8) == 0" (pointer_expression "*(long *)(lVar1 + 8)" (* "*") (cast_expression "(long *)(lVar1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined8 *)(lVar1 + 0x20) = param_2;\n      *(undefined8 *)(param_1 + 0x18) = 0;\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      return 1;\n    }" ({ "{") (expression_statement "*(undefined8 *)(lVar1 + 0x20) = param_2;" (assignment_expression "*(undefined8 *)(lVar1 + 0x20) = param_2" (pointer_expression "*(undefined8 *)(lVar1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "pcVar3 = "debug_end_function: some blocks were not closed";" (assignment_expression "pcVar3 = "debug_end_function: some blocks were not closed"" (identifier "pcVar3") (= "=") (string_literal ""debug_end_function: some blocks were not closed"" (" """) (string_content "debug_end_function: some blocks were not closed") (" """))) (; ";")) (} "}")))) (expression_statement "uVar2 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar2 = dcgettext(0,pcVar3,5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,pcVar3,5)" (identifier "dcgettext") (argument_list "(0,pcVar3,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar3") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fprintf(stderr,"%s\n",uVar2);" (call_expression "fprintf(stderr,"%s\n",uVar2)" (identifier "fprintf") (argument_list "(stderr,"%s\n",uVar2)" (( "(") (identifier "stderr") (, ",") (string_literal ""%s\n"" (" """) (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(void *handle,type_2 addr)

{
  long var_1;
  type_3 uVar2;
  char *pcVar3;
  type_4 *info;
  
  if (((*(long *)((long)handle + 8) == 0) || (var_1 = *(long *)((long)handle + 0x20), var_1 == 0))
     || (*(long *)((long)handle + 0x18) == 0)) {
    pcVar3 = "debug_end_function: no current function";
  }
  else {
    if (*(long *)(var_1 + 8) == 0) {
      *(type_2 *)(var_1 + 0x20) = addr;
      *(type_3 *)((long)handle + 0x18) = 0;
      *(type_3 *)((long)handle + 0x20) = 0;
      return 1;
    }
    pcVar3 = "debug_end_function: some blocks were not closed";
  }
  uVar2 = var_2(0,pcVar3,5);
  var_3(stderr,"%s\n",uVar2);
  return 0;
}


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

undefined8 MASKED(long param_1,undefined8 param_2)

{
  long lVar1;
  undefined8 uVar2;
  char *pcVar3;
  
  if (((*(long *)(param_1 + 8) == 0) || (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) ||
     (*(long *)(param_1 + 0x18) == 0)) {
    pcVar3 = "debug_end_function: no current function";
  }
  else {
    if (*(long *)(lVar1 + 8) == 0) {
      *(undefined8 *)(lVar1 + 0x20) = param_2;
      *(undefined8 *)(param_1 + 0x18) = 0;
      *(undefined8 *)(param_1 + 0x20) = 0;
      return 1;
    }
    pcVar3 = "debug_end_function: some blocks were not closed";
  }
  uVar2 = dcgettext(0,pcVar3,5);
  fprintf(stderr,"%s\n",uVar2);
  return 0;
}

