
bfd_boolean stab_typdef(void *p,char *name)

{
  bfd *pbVar1;
  bfd_boolean bVar2;
  undefined4 uVar3;
  char *pcVar4;
  size_t sVar5;
  size_t sVar6;
  char *__s;
  long lVar7;
  undefined8 uVar8;
  stab_write_handle *info;
  void *pvVar9;
  
  pbVar1 = ((stab_write_handle *)((long)p + 0x60))->abfd;
  pvVar9 = pbVar1->iostream;
  uVar3 = *(undefined4 *)&pbVar1->iovec;
  pcVar4 = stab_pop_type((stab_write_handle *)((long)p + 0x60));
  sVar5 = strlen(name);
  sVar6 = strlen(pcVar4);
  __s = (char *)xmalloc(sVar5 + 0x14 + sVar6);
  if ((long)pvVar9 < 1) {
    pvVar9 = *(void **)((long)p + 0x68);
    *(long *)((long)p + 0x68) = (long)pvVar9 + 1;
    sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);
  }
  else {
    sprintf(__s,"%s:t%s",name);
  }
  free(pcVar4);
  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);
  if (bVar2 != 0) {
    free(__s);
    lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0);
    if (lVar7 != 0) {
      *(void **)(lVar7 + 0x20) = pvVar9;
      *(undefined4 *)(lVar7 + 0x28) = uVar3;
      return 1;
    }
    uVar3 = bfd_get_error();
    uVar8 = bfd_errmsg(uVar3);
    pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);
    non_fatal(pcVar4,uVar8);
    bVar2 = 0;
  }
  return bVar2;
}



undefined8 FUN_00119530(long param_1,char *param_2)

{
  undefined4 uVar1;
  char *__s;
  size_t sVar2;
  size_t sVar3;
  char *__s_00;
  undefined8 uVar4;
  long lVar5;
  undefined8 uVar6;
  long lVar7;
  
  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);
  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);
  __s = (char *)FUN_00118930();
  sVar2 = strlen(param_2);
  sVar3 = strlen(__s);
  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);
  if (lVar7 < 1) {
    lVar7 = *(long *)(param_1 + 0x68);
    *(long *)(param_1 + 0x68) = lVar7 + 1;
    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);
  }
  else {
    sprintf(__s_00,"%s:t%s",param_2,__s);
  }
  free(__s);
  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);
  if ((int)uVar4 != 0) {
    free(__s_00);
    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);
    if (lVar5 != 0) {
      *(long *)(lVar5 + 0x20) = lVar7;
      *(undefined4 *)(lVar5 + 0x28) = uVar1;
      return 1;
    }
    uVar1 = bfd_get_error();
    uVar4 = bfd_errmsg(uVar1);
    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);
    FUN_0011b660(uVar6,uVar4);
    uVar4 = 0;
  }
  return uVar4;
}


PUSH R15
PUSH R14
PUSH R13
MOV R13,RSI
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
ADD RDI,0x60
SUB RSP,0x8
MOV RAX,qword ptr [RDI]
MOV R12,qword ptr [RAX + 0x10]
MOV R14D,dword ptr [RAX + 0x18]
CALL 0x00118930
MOV RDI,R13
MOV RBP,RAX
CALL 0x00104260
MOV RDI,RBP
MOV R15,RAX
CALL 0x00104260
LEA RDI,[R15 + RAX*0x1 + 0x14]
CALL 0x00104370
MOV R15,RAX
TEST R12,R12
JLE 0x00119610
MOV RDI,RAX
MOV RCX,RBP
MOV RDX,R13
XOR EAX,EAX
LEA RSI,[0x123fde]
CALL 0x00104820
MOV RDI,RBP
CALL 0x00104920
XOR ECX,ECX
XOR EDX,EDX
MOV R8,R15
MOV ESI,0x80
MOV RDI,RBX
CALL 0x00118330
TEST EAX,EAX
JNZ 0x001195d0
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RDI,R15
CALL 0x00104920
XOR ECX,ECX
MOV EDX,0x1
MOV RSI,R13
LEA RDI,[RBX + 0x1b8]
CALL 0x00104530
TEST RAX,RAX
JZ 0x00119640
MOV qword ptr [RAX + 0x20],R12
MOV dword ptr [RAX + 0x28],R14D
ADD RSP,0x8
MOV EAX,0x1
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV R12,qword ptr [RBX + 0x68]
MOV R8,RBP
MOV RDX,R13
MOV RDI,R15
LEA RSI,[0x123fe5]
LEA RAX,[R12 + 0x1]
MOV RCX,R12
MOV qword ptr [RBX + 0x68],RAX
XOR EAX,EAX
CALL 0x00104820
JMP 0x0011959b
CALL 0x00104350
MOV EDI,EAX
CALL 0x001047e0
MOV EDX,0x5
LEA RSI,[0x123f36]
XOR EDI,EDI
MOV RBX,RAX
CALL 0x00104240
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x0011b660
XOR EAX,EAX
JMP 0x001195bb
(translation_unit "undefined8 FUN_00119530(long param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined8 FUN_00119530(long param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00119530(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);" (assignment_expression "lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10)" identifier = (pointer_expression "*(long *)(*(long *)(param_1 + 0x60) + 0x10)" * (cast_expression "(long *)(*(long *)(param_1 + 0x60) + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x60) + 0x10" (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" identifier = (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x18)" ( (binary_expression "*(long *)(param_1 + 0x60) + 0x18" (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "__s = (char *)FUN_00118930();" (assignment_expression "__s = (char *)FUN_00118930()" identifier = (cast_expression "(char *)FUN_00118930()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00118930()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);" (assignment_expression "__s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 0x14 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 0x14 + sVar3)" identifier (argument_list "(sVar2 + 0x14 + sVar3)" ( (binary_expression "sVar2 + 0x14 + sVar3" (binary_expression "sVar2 + 0x14" identifier + number_literal) + identifier) ))))) ;) (if_statement "if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" if (parenthesized_expression "(lVar7 < 1)" ( (binary_expression "lVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }" { (expression_statement "lVar7 = *(long *)(param_1 + 0x68);" (assignment_expression "lVar7 = *(long *)(param_1 + 0x68)" identifier = (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x68) = lVar7 + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = lVar7 + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (expression_statement "sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);" (call_expression "sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s)" identifier (argument_list "(__s_00,"%s:t%ld=%s",param_2,lVar7,__s)" ( identifier , (string_literal ""%s:t%ld=%s"" " string_content ") , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" else (compound_statement "{\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" { (expression_statement "sprintf(__s_00,"%s:t%s",param_2,__s);" (call_expression "sprintf(__s_00,"%s:t%s",param_2,__s)" identifier (argument_list "(__s_00,"%s:t%s",param_2,__s)" ( identifier , (string_literal ""%s:t%s"" " string_content ") , identifier , identifier ))) ;) }))) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);" (assignment_expression "uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00)" identifier = (call_expression "FUN_00118330(param_1,0x80,0,0,__s_00)" identifier (argument_list "(param_1,0x80,0,0,__s_00)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }" if (parenthesized_expression "((int)uVar4 != 0)" ( (binary_expression "(int)uVar4 != 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }" { (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (expression_statement "lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);" (assignment_expression "lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0)" identifier = (call_expression "bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0)" identifier (argument_list "(param_1 + 0x1b8,param_2,1,0)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) , identifier , number_literal , number_literal )))) ;) (if_statement "if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }" if (parenthesized_expression "(lVar5 != 0)" ( (binary_expression "lVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }" { (expression_statement "*(long *)(lVar5 + 0x20) = lVar7;" (assignment_expression "*(long *)(lVar5 + 0x20) = lVar7" (pointer_expression "*(long *)(lVar5 + 0x20)" * (cast_expression "(long *)(lVar5 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x20)" ( (binary_expression "lVar5 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar5 + 0x28) = uVar1;" (assignment_expression "*(undefined4 *)(lVar5 + 0x28) = uVar1" (pointer_expression "*(undefined4 *)(lVar5 + 0x28)" * (cast_expression "(undefined4 *)(lVar5 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x28)" ( (binary_expression "lVar5 + 0x28" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = bfd_get_error();" (assignment_expression "uVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = bfd_errmsg(uVar1);" (assignment_expression "uVar4 = bfd_errmsg(uVar1)" identifier = (call_expression "bfd_errmsg(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5)" identifier = (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" identifier (argument_list "(0,"string_hash_lookup failed: %s",5)" ( number_literal , (string_literal ""string_hash_lookup failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0011b660(uVar6,uVar4);" (call_expression "FUN_0011b660(uVar6,uVar4)" identifier (argument_list "(uVar6,uVar4)" ( identifier , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "bfd_boolean stab_typdef(void *p,char *name)\n\n{\n  bfd *pbVar1;\n  bfd_boolean bVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  size_t sVar5;\n  size_t sVar6;\n  char *__s;\n  long lVar7;\n  undefined8 uVar8;\n  stab_write_handle *info;\n  void *pvVar9;\n  \n  pbVar1 = ((stab_write_handle *)((long)p + 0x60))->abfd;\n  pvVar9 = pbVar1->iostream;\n  uVar3 = *(undefined4 *)&pbVar1->iovec;\n  pcVar4 = stab_pop_type((stab_write_handle *)((long)p + 0x60));\n  sVar5 = strlen(name);\n  sVar6 = strlen(pcVar4);\n  __s = (char *)xmalloc(sVar5 + 0x14 + sVar6);\n  if ((long)pvVar9 < 1) {\n    pvVar9 = *(void **)((long)p + 0x68);\n    *(long *)((long)p + 0x68) = (long)pvVar9 + 1;\n    sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);\n  }\n  else {\n    sprintf(__s,"%s:t%s",name);\n  }\n  free(pcVar4);\n  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar2 != 0) {\n    free(__s);\n    lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0);\n    if (lVar7 != 0) {\n      *(void **)(lVar7 + 0x20) = pvVar9;\n      *(undefined4 *)(lVar7 + 0x28) = uVar3;\n      return 1;\n    }\n    uVar3 = bfd_get_error();\n    uVar8 = bfd_errmsg(uVar3);\n    pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n    non_fatal(pcVar4,uVar8);\n    bVar2 = 0;\n  }\n  return bVar2;\n}\n\n" (function_definition "bfd_boolean stab_typdef(void *p,char *name)\n\n{\n  bfd *pbVar1;\n  bfd_boolean bVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  size_t sVar5;\n  size_t sVar6;\n  char *__s;\n  long lVar7;\n  undefined8 uVar8;\n  stab_write_handle *info;\n  void *pvVar9;\n  \n  pbVar1 = ((stab_write_handle *)((long)p + 0x60))->abfd;\n  pvVar9 = pbVar1->iostream;\n  uVar3 = *(undefined4 *)&pbVar1->iovec;\n  pcVar4 = stab_pop_type((stab_write_handle *)((long)p + 0x60));\n  sVar5 = strlen(name);\n  sVar6 = strlen(pcVar4);\n  __s = (char *)xmalloc(sVar5 + 0x14 + sVar6);\n  if ((long)pvVar9 < 1) {\n    pvVar9 = *(void **)((long)p + 0x68);\n    *(long *)((long)p + 0x68) = (long)pvVar9 + 1;\n    sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);\n  }\n  else {\n    sprintf(__s,"%s:t%s",name);\n  }\n  free(pcVar4);\n  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar2 != 0) {\n    free(__s);\n    lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0);\n    if (lVar7 != 0) {\n      *(void **)(lVar7 + 0x20) = pvVar9;\n      *(undefined4 *)(lVar7 + 0x28) = uVar3;\n      return 1;\n    }\n    uVar3 = bfd_get_error();\n    uVar8 = bfd_errmsg(uVar3);\n    pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n    non_fatal(pcVar4,uVar8);\n    bVar2 = 0;\n  }\n  return bVar2;\n}" type_identifier (function_declarator "stab_typdef(void *p,char *name)" identifier (parameter_list "(void *p,char *name)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  bfd_boolean bVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  size_t sVar5;\n  size_t sVar6;\n  char *__s;\n  long lVar7;\n  undefined8 uVar8;\n  stab_write_handle *info;\n  void *pvVar9;\n  \n  pbVar1 = ((stab_write_handle *)((long)p + 0x60))->abfd;\n  pvVar9 = pbVar1->iostream;\n  uVar3 = *(undefined4 *)&pbVar1->iovec;\n  pcVar4 = stab_pop_type((stab_write_handle *)((long)p + 0x60));\n  sVar5 = strlen(name);\n  sVar6 = strlen(pcVar4);\n  __s = (char *)xmalloc(sVar5 + 0x14 + sVar6);\n  if ((long)pvVar9 < 1) {\n    pvVar9 = *(void **)((long)p + 0x68);\n    *(long *)((long)p + 0x68) = (long)pvVar9 + 1;\n    sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);\n  }\n  else {\n    sprintf(__s,"%s:t%s",name);\n  }\n  free(pcVar4);\n  bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);\n  if (bVar2 != 0) {\n    free(__s);\n    lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0);\n    if (lVar7 != 0) {\n      *(void **)(lVar7 + 0x20) = pvVar9;\n      *(undefined4 *)(lVar7 + 0x28) = uVar3;\n      return 1;\n    }\n    uVar3 = bfd_get_error();\n    uVar8 = bfd_errmsg(uVar3);\n    pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n    non_fatal(pcVar4,uVar8);\n    bVar2 = 0;\n  }\n  return bVar2;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "stab_write_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "void *pvVar9;" primitive_type (pointer_declarator "*pvVar9" * identifier) ;) (expression_statement "pbVar1 = ((stab_write_handle *)((long)p + 0x60))->abfd;" (assignment_expression "pbVar1 = ((stab_write_handle *)((long)p + 0x60))->abfd" identifier = (field_expression "((stab_write_handle *)((long)p + 0x60))->abfd" (parenthesized_expression "((stab_write_handle *)((long)p + 0x60))" ( (cast_expression "(stab_write_handle *)((long)p + 0x60)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x60)" ( (binary_expression "(long)p + 0x60" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) )) -> field_identifier)) ;) (expression_statement "pvVar9 = pbVar1->iostream;" (assignment_expression "pvVar9 = pbVar1->iostream" identifier = (field_expression "pbVar1->iostream" identifier -> field_identifier)) ;) (expression_statement "uVar3 = *(undefined4 *)&pbVar1->iovec;" (assignment_expression "uVar3 = *(undefined4 *)&pbVar1->iovec" identifier = (pointer_expression "*(undefined4 *)&pbVar1->iovec" * (cast_expression "(undefined4 *)&pbVar1->iovec" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar1->iovec" & (field_expression "pbVar1->iovec" identifier -> field_identifier))))) ;) (expression_statement "pcVar4 = stab_pop_type((stab_write_handle *)((long)p + 0x60));" (assignment_expression "pcVar4 = stab_pop_type((stab_write_handle *)((long)p + 0x60))" identifier = (call_expression "stab_pop_type((stab_write_handle *)((long)p + 0x60))" identifier (argument_list "((stab_write_handle *)((long)p + 0x60))" ( (cast_expression "(stab_write_handle *)((long)p + 0x60)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x60)" ( (binary_expression "(long)p + 0x60" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) )))) ;) (expression_statement "sVar5 = strlen(name);" (assignment_expression "sVar5 = strlen(name)" identifier = (call_expression "strlen(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "sVar6 = strlen(pcVar4);" (assignment_expression "sVar6 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar5 + 0x14 + sVar6);" (assignment_expression "__s = (char *)xmalloc(sVar5 + 0x14 + sVar6)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 0x14 + sVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 0x14 + sVar6)" identifier (argument_list "(sVar5 + 0x14 + sVar6)" ( (binary_expression "sVar5 + 0x14 + sVar6" (binary_expression "sVar5 + 0x14" identifier + number_literal) + identifier) ))))) ;) (if_statement "if ((long)pvVar9 < 1) {\n    pvVar9 = *(void **)((long)p + 0x68);\n    *(long *)((long)p + 0x68) = (long)pvVar9 + 1;\n    sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);\n  }\n  else {\n    sprintf(__s,"%s:t%s",name);\n  }" if (parenthesized_expression "((long)pvVar9 < 1)" ( (binary_expression "(long)pvVar9 < 1" (cast_expression "(long)pvVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) < number_literal) )) (compound_statement "{\n    pvVar9 = *(void **)((long)p + 0x68);\n    *(long *)((long)p + 0x68) = (long)pvVar9 + 1;\n    sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);\n  }" { (expression_statement "pvVar9 = *(void **)((long)p + 0x68);" (assignment_expression "pvVar9 = *(void **)((long)p + 0x68)" identifier = (pointer_expression "*(void **)((long)p + 0x68)" * (cast_expression "(void **)((long)p + 0x68)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)p + 0x68)" ( (binary_expression "(long)p + 0x68" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "*(long *)((long)p + 0x68) = (long)pvVar9 + 1;" (assignment_expression "*(long *)((long)p + 0x68) = (long)pvVar9 + 1" (pointer_expression "*(long *)((long)p + 0x68)" * (cast_expression "(long *)((long)p + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + 0x68)" ( (binary_expression "(long)p + 0x68" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "(long)pvVar9 + 1" (cast_expression "(long)pvVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal)) ;) (expression_statement "sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);" (call_expression "sprintf(__s,"%s:t%ld=%s",name,pvVar9,pcVar4)" identifier (argument_list "(__s,"%s:t%ld=%s",name,pvVar9,pcVar4)" ( identifier , (string_literal ""%s:t%ld=%s"" " string_content ") , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    sprintf(__s,"%s:t%s",name);\n  }" else (compound_statement "{\n    sprintf(__s,"%s:t%s",name);\n  }" { (expression_statement "sprintf(__s,"%s:t%s",name);" (call_expression "sprintf(__s,"%s:t%s",name)" identifier (argument_list "(__s,"%s:t%s",name)" ( identifier , (string_literal ""%s:t%s"" " string_content ") , identifier ))) ;) }))) (expression_statement "free(pcVar4);" (call_expression "free(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s);" (assignment_expression "bVar2 = stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s)" identifier = (call_expression "stab_write_symbol((stab_write_handle *)p,0x80,0,0,__s)" identifier (argument_list "((stab_write_handle *)p,0x80,0,0,__s)" ( (cast_expression "(stab_write_handle *)p" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if (bVar2 != 0) {\n    free(__s);\n    lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0);\n    if (lVar7 != 0) {\n      *(void **)(lVar7 + 0x20) = pvVar9;\n      *(undefined4 *)(lVar7 + 0x28) = uVar3;\n      return 1;\n    }\n    uVar3 = bfd_get_error();\n    uVar8 = bfd_errmsg(uVar3);\n    pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n    non_fatal(pcVar4,uVar8);\n    bVar2 = 0;\n  }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s);\n    lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0);\n    if (lVar7 != 0) {\n      *(void **)(lVar7 + 0x20) = pvVar9;\n      *(undefined4 *)(lVar7 + 0x28) = uVar3;\n      return 1;\n    }\n    uVar3 = bfd_get_error();\n    uVar8 = bfd_errmsg(uVar3);\n    pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n    non_fatal(pcVar4,uVar8);\n    bVar2 = 0;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0);" (assignment_expression "lVar7 = bfd_hash_lookup((long)p + 0x1b8,name,1,0)" identifier = (call_expression "bfd_hash_lookup((long)p + 0x1b8,name,1,0)" identifier (argument_list "((long)p + 0x1b8,name,1,0)" ( (binary_expression "(long)p + 0x1b8" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , identifier , number_literal , number_literal )))) ;) (if_statement "if (lVar7 != 0) {\n      *(void **)(lVar7 + 0x20) = pvVar9;\n      *(undefined4 *)(lVar7 + 0x28) = uVar3;\n      return 1;\n    }" if (parenthesized_expression "(lVar7 != 0)" ( (binary_expression "lVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      *(void **)(lVar7 + 0x20) = pvVar9;\n      *(undefined4 *)(lVar7 + 0x28) = uVar3;\n      return 1;\n    }" { (expression_statement "*(void **)(lVar7 + 0x20) = pvVar9;" (assignment_expression "*(void **)(lVar7 + 0x20) = pvVar9" (pointer_expression "*(void **)(lVar7 + 0x20)" * (cast_expression "(void **)(lVar7 + 0x20)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar7 + 0x20)" ( (binary_expression "lVar7 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar7 + 0x28) = uVar3;" (assignment_expression "*(undefined4 *)(lVar7 + 0x28) = uVar3" (pointer_expression "*(undefined4 *)(lVar7 + 0x28)" * (cast_expression "(undefined4 *)(lVar7 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + 0x28)" ( (binary_expression "lVar7 + 0x28" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar3 = bfd_get_error();" (assignment_expression "uVar3 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar8 = bfd_errmsg(uVar3);" (assignment_expression "uVar8 = bfd_errmsg(uVar3)" identifier = (call_expression "bfd_errmsg(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "pcVar4 = (char *)dcgettext(0,"string_hash_lookup failed: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"string_hash_lookup failed: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" identifier (argument_list "(0,"string_hash_lookup failed: %s",5)" ( number_literal , (string_literal ""string_hash_lookup failed: %s"" " string_content ") , number_literal ))))) ;) (expression_statement "non_fatal(pcVar4,uVar8);" (call_expression "non_fatal(pcVar4,uVar8)" identifier (argument_list "(pcVar4,uVar8)" ( identifier , identifier ))) ;) (expression_statement "bVar2 = 0;" (assignment_expression "bVar2 = 0" identifier = number_literal) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "undefined8 FUN_00119530(long param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined8 FUN_00119530(long param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00119530(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);" (assignment_expression "lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10)" identifier = (pointer_expression "*(long *)(*(long *)(param_1 + 0x60) + 0x10)" * (cast_expression "(long *)(*(long *)(param_1 + 0x60) + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x60) + 0x10" (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" identifier = (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x18)" ( (binary_expression "*(long *)(param_1 + 0x60) + 0x18" (pointer_expression "*(long *)(param_1 + 0x60)" * (cast_expression "(long *)(param_1 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "__s = (char *)FUN_00118930();" (assignment_expression "__s = (char *)FUN_00118930()" identifier = (cast_expression "(char *)FUN_00118930()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00118930()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);" (assignment_expression "__s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 0x14 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 0x14 + sVar3)" identifier (argument_list "(sVar2 + 0x14 + sVar3)" ( (binary_expression "sVar2 + 0x14 + sVar3" (binary_expression "sVar2 + 0x14" identifier + number_literal) + identifier) ))))) ;) (if_statement "if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" if (parenthesized_expression "(lVar7 < 1)" ( (binary_expression "lVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }" { (expression_statement "lVar7 = *(long *)(param_1 + 0x68);" (assignment_expression "lVar7 = *(long *)(param_1 + 0x68)" identifier = (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x68) = lVar7 + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = lVar7 + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (expression_statement "sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);" (call_expression "sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s)" identifier (argument_list "(__s_00,"%s:t%ld=%s",param_2,lVar7,__s)" ( identifier , (string_literal ""%s:t%ld=%s"" " string_content ") , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" else (compound_statement "{\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" { (expression_statement "sprintf(__s_00,"%s:t%s",param_2,__s);" (call_expression "sprintf(__s_00,"%s:t%s",param_2,__s)" identifier (argument_list "(__s_00,"%s:t%s",param_2,__s)" ( identifier , (string_literal ""%s:t%s"" " string_content ") , identifier , identifier ))) ;) }))) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);" (assignment_expression "uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00)" identifier = (call_expression "FUN_00118330(param_1,0x80,0,0,__s_00)" identifier (argument_list "(param_1,0x80,0,0,__s_00)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }" if (parenthesized_expression "((int)uVar4 != 0)" ( (binary_expression "(int)uVar4 != 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }" { (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (expression_statement "lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);" (assignment_expression "lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0)" identifier = (call_expression "bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0)" identifier (argument_list "(param_1 + 0x1b8,param_2,1,0)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) , identifier , number_literal , number_literal )))) ;) (if_statement "if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }" if (parenthesized_expression "(lVar5 != 0)" ( (binary_expression "lVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }" { (expression_statement "*(long *)(lVar5 + 0x20) = lVar7;" (assignment_expression "*(long *)(lVar5 + 0x20) = lVar7" (pointer_expression "*(long *)(lVar5 + 0x20)" * (cast_expression "(long *)(lVar5 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x20)" ( (binary_expression "lVar5 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar5 + 0x28) = uVar1;" (assignment_expression "*(undefined4 *)(lVar5 + 0x28) = uVar1" (pointer_expression "*(undefined4 *)(lVar5 + 0x28)" * (cast_expression "(undefined4 *)(lVar5 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x28)" ( (binary_expression "lVar5 + 0x28" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = bfd_get_error();" (assignment_expression "uVar1 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = bfd_errmsg(uVar1);" (assignment_expression "uVar4 = bfd_errmsg(uVar1)" identifier = (call_expression "bfd_errmsg(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5)" identifier = (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" identifier (argument_list "(0,"string_hash_lookup failed: %s",5)" ( number_literal , (string_literal ""string_hash_lookup failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0011b660(uVar6,uVar4);" (call_expression "FUN_0011b660(uVar6,uVar4)" identifier (argument_list "(uVar6,uVar4)" ( identifier , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_00119530(long param_1,char *param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}" (type_identifier "undefined8") (function_declarator "FUN_00119530(long param_1,char *param_2)" (identifier "FUN_00119530") (parameter_list "(long param_1,char *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  char *__s;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s_00;\n  undefined8 uVar4;\n  long lVar5;\n  undefined8 uVar6;\n  long lVar7;\n  \n  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);\n  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);\n  __s = (char *)FUN_00118930();\n  sVar2 = strlen(param_2);\n  sVar3 = strlen(__s);\n  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);\n  if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }\n  free(__s);\n  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);\n  if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }\n  return uVar4;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *__s_00;" (primitive_type "char") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (expression_statement "lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);" (assignment_expression "lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10)" (identifier "lVar7") (= "=") (pointer_expression "*(long *)(*(long *)(param_1 + 0x60) + 0x10)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 0x60) + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x10)" (( "(") (binary_expression "*(long *)(param_1 + 0x60) + 0x10" (pointer_expression "*(long *)(param_1 + 0x60)" (* "*") (cast_expression "(long *)(param_1 + 0x60)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x60) + 0x18)" (( "(") (binary_expression "*(long *)(param_1 + 0x60) + 0x18" (pointer_expression "*(long *)(param_1 + 0x60)" (* "*") (cast_expression "(long *)(param_1 + 0x60)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "__s = (char *)FUN_00118930();" (assignment_expression "__s = (char *)FUN_00118930()" (identifier "__s") (= "=") (cast_expression "(char *)FUN_00118930()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00118930()" (identifier "FUN_00118930") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" (identifier "sVar2") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "__s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);" (assignment_expression "__s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3)" (identifier "__s_00") (= "=") (cast_expression "(char *)xmalloc(sVar2 + 0x14 + sVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar2 + 0x14 + sVar3)" (identifier "xmalloc") (argument_list "(sVar2 + 0x14 + sVar3)" (( "(") (binary_expression "sVar2 + 0x14 + sVar3" (binary_expression "sVar2 + 0x14" (identifier "sVar2") (+ "+") (number_literal "0x14")) (+ "+") (identifier "sVar3")) () ")"))))) (; ";")) (if_statement "if (lVar7 < 1) {\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }\n  else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" (if "if") (parenthesized_expression "(lVar7 < 1)" (( "(") (binary_expression "lVar7 < 1" (identifier "lVar7") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    lVar7 = *(long *)(param_1 + 0x68);\n    *(long *)(param_1 + 0x68) = lVar7 + 1;\n    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);\n  }" ({ "{") (expression_statement "lVar7 = *(long *)(param_1 + 0x68);" (assignment_expression "lVar7 = *(long *)(param_1 + 0x68)" (identifier "lVar7") (= "=") (pointer_expression "*(long *)(param_1 + 0x68)" (* "*") (cast_expression "(long *)(param_1 + 0x68)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (expression_statement "*(long *)(param_1 + 0x68) = lVar7 + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = lVar7 + 1" (pointer_expression "*(long *)(param_1 + 0x68)" (* "*") (cast_expression "(long *)(param_1 + 0x68)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (binary_expression "lVar7 + 1" (identifier "lVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);" (call_expression "sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s)" (identifier "sprintf") (argument_list "(__s_00,"%s:t%ld=%s",param_2,lVar7,__s)" (( "(") (identifier "__s_00") (, ",") (string_literal ""%s:t%ld=%s"" (" """) (string_content "%s:t%ld=%s") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "lVar7") (, ",") (identifier "__s") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" (else "else") (compound_statement "{\n    sprintf(__s_00,"%s:t%s",param_2,__s);\n  }" ({ "{") (expression_statement "sprintf(__s_00,"%s:t%s",param_2,__s);" (call_expression "sprintf(__s_00,"%s:t%s",param_2,__s)" (identifier "sprintf") (argument_list "(__s_00,"%s:t%s",param_2,__s)" (( "(") (identifier "__s_00") (, ",") (string_literal ""%s:t%s"" (" """) (string_content "%s:t%s") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "__s") () ")"))) (; ";")) (} "}")))) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);" (assignment_expression "uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00)" (identifier "uVar4") (= "=") (call_expression "FUN_00118330(param_1,0x80,0,0,__s_00)" (identifier "FUN_00118330") (argument_list "(param_1,0x80,0,0,__s_00)" (( "(") (identifier "param_1") (, ",") (number_literal "0x80") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "__s_00") () ")")))) (; ";")) (if_statement "if ((int)uVar4 != 0) {\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }" (if "if") (parenthesized_expression "((int)uVar4 != 0)" (( "(") (binary_expression "(int)uVar4 != 0" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    free(__s_00);\n    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);\n    if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }\n    uVar1 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar1);\n    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);\n    FUN_0011b660(uVar6,uVar4);\n    uVar4 = 0;\n  }" ({ "{") (expression_statement "free(__s_00);" (call_expression "free(__s_00)" (identifier "free") (argument_list "(__s_00)" (( "(") (identifier "__s_00") () ")"))) (; ";")) (expression_statement "lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);" (assignment_expression "lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0)" (identifier "lVar5") (= "=") (call_expression "bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0)" (identifier "bfd_hash_lookup") (argument_list "(param_1 + 0x1b8,param_2,1,0)" (( "(") (binary_expression "param_1 + 0x1b8" (identifier "param_1") (+ "+") (number_literal "0x1b8")) (, ",") (identifier "param_2") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar5 != 0) {\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }" (if "if") (parenthesized_expression "(lVar5 != 0)" (( "(") (binary_expression "lVar5 != 0" (identifier "lVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(long *)(lVar5 + 0x20) = lVar7;\n      *(undefined4 *)(lVar5 + 0x28) = uVar1;\n      return 1;\n    }" ({ "{") (expression_statement "*(long *)(lVar5 + 0x20) = lVar7;" (assignment_expression "*(long *)(lVar5 + 0x20) = lVar7" (pointer_expression "*(long *)(lVar5 + 0x20)" (* "*") (cast_expression "(long *)(lVar5 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x20)" (( "(") (binary_expression "lVar5 + 0x20" (identifier "lVar5") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "lVar7")) (; ";")) (expression_statement "*(undefined4 *)(lVar5 + 0x28) = uVar1;" (assignment_expression "*(undefined4 *)(lVar5 + 0x28) = uVar1" (pointer_expression "*(undefined4 *)(lVar5 + 0x28)" (* "*") (cast_expression "(undefined4 *)(lVar5 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x28)" (( "(") (binary_expression "lVar5 + 0x28" (identifier "lVar5") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar1 = bfd_get_error();" (assignment_expression "uVar1 = bfd_get_error()" (identifier "uVar1") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = bfd_errmsg(uVar1);" (assignment_expression "uVar4 = bfd_errmsg(uVar1)" (identifier "uVar4") (= "=") (call_expression "bfd_errmsg(uVar1)" (identifier "bfd_errmsg") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" (identifier "dcgettext") (argument_list "(0,"string_hash_lookup failed: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""string_hash_lookup failed: %s"" (" """) (string_content "string_hash_lookup failed: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0011b660(uVar6,uVar4);" (call_expression "FUN_0011b660(uVar6,uVar4)" (identifier "FUN_0011b660") (argument_list "(uVar6,uVar4)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

type_1 function_1(void *p,char *name)

{
  type_2 *pbVar1;
  type_1 var_9;
  type_3 uVar3;
  char *pcVar4;
  size_t var_4;
  size_t var_5;
  char *__s;
  long var_11;
  type_4 uVar8;
  type_5 *info;
  void *pvVar9;
  
  pbVar1 = ((type_5 *)((long)p + 0x60))->abfd;
  pvVar9 = pbVar1->iostream;
  uVar3 = *(type_3 *)&pbVar1->iovec;
  pcVar4 = var_1((type_5 *)((long)p + 0x60));
  var_4 = var_2(name);
  var_5 = var_2(pcVar4);
  __s = (char *)var_3(var_4 + 0x14 + var_5);
  if ((long)pvVar9 < 1) {
    pvVar9 = *(void **)((long)p + 0x68);
    *(long *)((long)p + 0x68) = (long)pvVar9 + 1;
    var_6(__s,"%s:t%ld=%s",name,pvVar9,pcVar4);
  }
  else {
    var_6(__s,"%s:t%s",name);
  }
  var_7(pcVar4);
  var_9 = var_8((type_5 *)p,0x80,0,0,__s);
  if (var_9 != 0) {
    var_7(__s);
    var_11 = var_10((long)p + 0x1b8,name,1,0);
    if (var_11 != 0) {
      *(void **)(var_11 + 0x20) = pvVar9;
      *(type_3 *)(var_11 + 0x28) = uVar3;
      return 1;
    }
    uVar3 = var_12();
    uVar8 = var_13(uVar3);
    pcVar4 = (char *)var_14(0,"string_hash_lookup failed: %s",5);
    var_15(pcVar4,uVar8);
    var_9 = 0;
  }
  return var_9;
}


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

undefined8 MASKED(long param_1,char *param_2)

{
  undefined4 uVar1;
  char *__s;
  size_t sVar2;
  size_t sVar3;
  char *__s_00;
  undefined8 uVar4;
  long lVar5;
  undefined8 uVar6;
  long lVar7;
  
  lVar7 = *(long *)(*(long *)(param_1 + 0x60) + 0x10);
  uVar1 = *(undefined4 *)(*(long *)(param_1 + 0x60) + 0x18);
  __s = (char *)FUN_00118930();
  sVar2 = strlen(param_2);
  sVar3 = strlen(__s);
  __s_00 = (char *)xmalloc(sVar2 + 0x14 + sVar3);
  if (lVar7 < 1) {
    lVar7 = *(long *)(param_1 + 0x68);
    *(long *)(param_1 + 0x68) = lVar7 + 1;
    sprintf(__s_00,"%s:t%ld=%s",param_2,lVar7,__s);
  }
  else {
    sprintf(__s_00,"%s:t%s",param_2,__s);
  }
  free(__s);
  uVar4 = FUN_00118330(param_1,0x80,0,0,__s_00);
  if ((int)uVar4 != 0) {
    free(__s_00);
    lVar5 = bfd_hash_lookup(param_1 + 0x1b8,param_2,1,0);
    if (lVar5 != 0) {
      *(long *)(lVar5 + 0x20) = lVar7;
      *(undefined4 *)(lVar5 + 0x28) = uVar1;
      return 1;
    }
    uVar1 = bfd_get_error();
    uVar4 = bfd_errmsg(uVar1);
    uVar6 = dcgettext(0,"string_hash_lookup failed: %s",5);
    FUN_0011b660(uVar6,uVar4);
    uVar4 = 0;
  }
  return uVar4;
}

