
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

bfd_boolean tg_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)

{
  size_t sVar1;
  size_t sVar2;
  char *__s;
  bfd_boolean bVar3;
  char *__ptr;
  char *pcVar4;
  
  sVar1 = strlen(name);
  sVar2 = strlen(*(char **)(**(int **)((int)p + 8) + 4));
  __s = (char *)xmalloc(sVar1 + 3 + sVar2);
  sprintf(__s,"%s::%s",*(undefined4 *)(**(int **)((int)p + 8) + 4),name);
  bVar3 = substitute_type((pr_handle *)p,__s);
  if (bVar3 != 0) {
    bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ");
    if (bVar3 != 0) {
      __ptr = pop_type((pr_handle *)((int)p + 8));
      if (__ptr == (char *)0x0) {
        free(__s);
        return 0;
      }
      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);
      if (bVar3 == 0) {
        free(__ptr);
        free(__s);
        return 0;
      }
      pcVar4 = visibility_name(visibility);
                    /* WARNING: Load size is inaccurate */
      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,
              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)
      ;
      free(__ptr);
      free(__s);
      return 1;
    }
  }
  free(__s);
  return bVar3;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00037810(undefined4 *param_1,char *param_2)

{
  size_t sVar1;
  size_t sVar2;
  char *__s;
  int iVar3;
  void *__ptr;
  undefined4 uVar4;
  
  sVar1 = strlen(param_2);
  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));
  __s = (char *)xmalloc(sVar1 + 3 + sVar2);
  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);
  iVar3 = FUN_00037630();
  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {
    free(__s);
    return iVar3;
  }
  __ptr = (void *)FUN_00036d90();
  if (__ptr == (void *)0x0) {
    free(__s);
    return 0;
  }
  iVar3 = FUN_00037220();
  if (iVar3 == 0) {
    free(__ptr);
    free(__s);
    return 0;
  }
  uVar4 = FUN_00036c20();
  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]
          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);
  free(__ptr);
  free(__s);
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x3b7e7
SUB ESP,0x28
MOV ESI,dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x40]
CALL 0x00014480
POP EDX
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EAX + 0x4]
CALL 0x00014480
LEA EAX,[EDI + EAX*0x1 + 0x3]
MOV dword ptr [ESP],EAX
CALL 0x000142b0
PUSH dword ptr [ESP + 0x44]
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EAX + 0x4]
LEA EAX,[EBX + 0xfffe422e]
PUSH EAX
PUSH EDI
CALL 0x000146d0
ADD ESP,0x20
MOV EDX,EDI
MOV EAX,ESI
CALL 0x00037630
TEST EAX,EAX
JZ 0x00037900
LEA EBP,[ESI + 0x8]
LEA EDX,[EBX + 0xfffe4235]
MOV EAX,EBP
CALL 0x000374e0
TEST EAX,EAX
JZ 0x00037900
MOV EAX,EBP
CALL 0x00036d90
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00037948
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESP + 0x3c]
CALL 0x00037220
TEST EAX,EAX
JZ 0x00037920
MOV EAX,dword ptr [ESP + 0x3c]
CALL 0x00036c20
SUB ESP,0x4
PUSH EAX
MOV EAX,dword ptr [ESI + 0x8]
PUSH dword ptr [EAX + 0x4]
LEA EAX,[EBX + 0xfffe45a8]
PUSH EBP
PUSH dword ptr [ESI + 0x10]
PUSH dword ptr [ESP + 0x48]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00014878
ADD ESP,0x14
PUSH EBP
CALL 0x00014120
MOV dword ptr [ESP],EDI
CALL 0x00014120
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH EDI
CALL 0x00014120
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH EBP
CALL 0x00014120
MOV dword ptr [ESP],EDI
CALL 0x00014120
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x00014120
ADD ESP,0x10
XOR EAX,EAX
JMP 0x00037914
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00037810(undefined4 *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}\n\n" comment (function_definition "int FUN_00037810(undefined4 *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}" primitive_type (function_declarator "FUN_00037810(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));" (assignment_expression "sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4))" identifier = (call_expression "strlen(*(char **)(*(int *)param_1[2] + 4))" identifier (argument_list "(*(char **)(*(int *)param_1[2] + 4))" ( (pointer_expression "*(char **)(*(int *)param_1[2] + 4)" * (cast_expression "(char **)(*(int *)param_1[2] + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1[2] + 4)" ( (binary_expression "*(int *)param_1[2] + 4" (pointer_expression "*(int *)param_1[2]" * (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) + number_literal) )))) )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 3 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 3 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 3 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 3 + sVar2)" identifier (argument_list "(sVar1 + 3 + sVar2)" ( (binary_expression "sVar1 + 3 + sVar2" (binary_expression "sVar1 + 3" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);" (call_expression "sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2)" identifier (argument_list "(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2)" ( identifier , (string_literal ""%s::%s"" " string_content ") , (pointer_expression "*(undefined4 *)(*(int *)param_1[2] + 4)" * (cast_expression "(undefined4 *)(*(int *)param_1[2] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1[2] + 4)" ( (binary_expression "*(int *)param_1[2] + 4" (pointer_expression "*(int *)param_1[2]" * (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) + number_literal) )))) , identifier ))) ;) (expression_statement "iVar3 = FUN_00037630();" (assignment_expression "iVar3 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }" if (parenthesized_expression "((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0))" ( (binary_expression "(iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 = FUN_000374e0(), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_000374e0(), iVar3 == 0" (assignment_expression "iVar3 = FUN_000374e0()" identifier = (call_expression "FUN_000374e0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    free(__s);\n    return iVar3;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "__ptr = (void *)FUN_00036d90();" (assignment_expression "__ptr = (void *)FUN_00036d90()" identifier = (cast_expression "(void *)FUN_00036d90()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(__s);\n    return 0;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = FUN_00037220();" (assignment_expression "iVar3 = FUN_00037220()" identifier = (call_expression "FUN_00037220()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    free(__ptr);\n    free(__s);\n    return 0;\n  }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = FUN_00036c20();" (assignment_expression "uVar4 = FUN_00036c20()" identifier = (call_expression "FUN_00036c20()" identifier (argument_list "()" ( )))) ;) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4)" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , (subscript_expression "param_1[4]" identifier [ number_literal ]) , identifier , (pointer_expression "*(undefined4 *)(param_1[2] + 4)" * (cast_expression "(undefined4 *)(param_1[2] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 4)" ( (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean tg_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  bfd_boolean bVar3;\n  char *__ptr;\n  char *pcVar4;\n  \n  sVar1 = strlen(name);\n  sVar2 = strlen(*(char **)(**(int **)((int)p + 8) + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(**(int **)((int)p + 8) + 4),name);\n  bVar3 = substitute_type((pr_handle *)p,__s);\n  if (bVar3 != 0) {\n    bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ");\n    if (bVar3 != 0) {\n      __ptr = pop_type((pr_handle *)((int)p + 8));\n      if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }\n      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);\n      if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }\n      pcVar4 = visibility_name(visibility);\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;\n      free(__ptr);\n      free(__s);\n      return 1;\n    }\n  }\n  free(__s);\n  return bVar3;\n}\n\n" comment comment (function_definition "bfd_boolean tg_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  bfd_boolean bVar3;\n  char *__ptr;\n  char *pcVar4;\n  \n  sVar1 = strlen(name);\n  sVar2 = strlen(*(char **)(**(int **)((int)p + 8) + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(**(int **)((int)p + 8) + 4),name);\n  bVar3 = substitute_type((pr_handle *)p,__s);\n  if (bVar3 != 0) {\n    bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ");\n    if (bVar3 != 0) {\n      __ptr = pop_type((pr_handle *)((int)p + 8));\n      if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }\n      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);\n      if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }\n      pcVar4 = visibility_name(visibility);\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;\n      free(__ptr);\n      free(__s);\n      return 1;\n    }\n  }\n  free(__s);\n  return bVar3;\n}" type_identifier (function_declarator "tg_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)" identifier (parameter_list "(void *p,char *name,char *physname,debug_visibility visibility)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *physname" primitive_type (pointer_declarator "*physname" * identifier)) , (parameter_declaration "debug_visibility visibility" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  bfd_boolean bVar3;\n  char *__ptr;\n  char *pcVar4;\n  \n  sVar1 = strlen(name);\n  sVar2 = strlen(*(char **)(**(int **)((int)p + 8) + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(**(int **)((int)p + 8) + 4),name);\n  bVar3 = substitute_type((pr_handle *)p,__s);\n  if (bVar3 != 0) {\n    bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ");\n    if (bVar3 != 0) {\n      __ptr = pop_type((pr_handle *)((int)p + 8));\n      if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }\n      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);\n      if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }\n      pcVar4 = visibility_name(visibility);\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;\n      free(__ptr);\n      free(__s);\n      return 1;\n    }\n  }\n  free(__s);\n  return bVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "sVar1 = strlen(name);" (assignment_expression "sVar1 = strlen(name)" identifier = (call_expression "strlen(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(*(char **)(**(int **)((int)p + 8) + 4));" (assignment_expression "sVar2 = strlen(*(char **)(**(int **)((int)p + 8) + 4))" identifier = (call_expression "strlen(*(char **)(**(int **)((int)p + 8) + 4))" identifier (argument_list "(*(char **)(**(int **)((int)p + 8) + 4))" ( (pointer_expression "*(char **)(**(int **)((int)p + 8) + 4)" * (cast_expression "(char **)(**(int **)((int)p + 8) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)((int)p + 8) + 4)" ( (binary_expression "**(int **)((int)p + 8) + 4" (pointer_expression "**(int **)((int)p + 8)" * (pointer_expression "*(int **)((int)p + 8)" * (cast_expression "(int **)((int)p + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) + number_literal) )))) )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 3 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 3 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 3 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 3 + sVar2)" identifier (argument_list "(sVar1 + 3 + sVar2)" ( (binary_expression "sVar1 + 3 + sVar2" (binary_expression "sVar1 + 3" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s::%s",*(undefined4 *)(**(int **)((int)p + 8) + 4),name);" (call_expression "sprintf(__s,"%s::%s",*(undefined4 *)(**(int **)((int)p + 8) + 4),name)" identifier (argument_list "(__s,"%s::%s",*(undefined4 *)(**(int **)((int)p + 8) + 4),name)" ( identifier , (string_literal ""%s::%s"" " string_content ") , (pointer_expression "*(undefined4 *)(**(int **)((int)p + 8) + 4)" * (cast_expression "(undefined4 *)(**(int **)((int)p + 8) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)((int)p + 8) + 4)" ( (binary_expression "**(int **)((int)p + 8) + 4" (pointer_expression "**(int **)((int)p + 8)" * (pointer_expression "*(int **)((int)p + 8)" * (cast_expression "(int **)((int)p + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) + number_literal) )))) , identifier ))) ;) (expression_statement "bVar3 = substitute_type((pr_handle *)p,__s);" (assignment_expression "bVar3 = substitute_type((pr_handle *)p,__s)" identifier = (call_expression "substitute_type((pr_handle *)p,__s)" identifier (argument_list "((pr_handle *)p,__s)" ( (cast_expression "(pr_handle *)p" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (bVar3 != 0) {\n    bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ");\n    if (bVar3 != 0) {\n      __ptr = pop_type((pr_handle *)((int)p + 8));\n      if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }\n      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);\n      if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }\n      pcVar4 = visibility_name(visibility);\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;\n      free(__ptr);\n      free(__s);\n      return 1;\n    }\n  }" if (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ");\n    if (bVar3 != 0) {\n      __ptr = pop_type((pr_handle *)((int)p + 8));\n      if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }\n      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);\n      if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }\n      pcVar4 = visibility_name(visibility);\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;\n      free(__ptr);\n      free(__s);\n      return 1;\n    }\n  }" { (expression_statement "bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ");" (assignment_expression "bVar3 = prepend_type((pr_handle *)((int)p + 8),"static ")" identifier = (call_expression "prepend_type((pr_handle *)((int)p + 8),"static ")" identifier (argument_list "((pr_handle *)((int)p + 8),"static ")" ( (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (string_literal ""static "" " string_content ") )))) ;) (if_statement "if (bVar3 != 0) {\n      __ptr = pop_type((pr_handle *)((int)p + 8));\n      if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }\n      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);\n      if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }\n      pcVar4 = visibility_name(visibility);\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;\n      free(__ptr);\n      free(__s);\n      return 1;\n    }" if (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      __ptr = pop_type((pr_handle *)((int)p + 8));\n      if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }\n      bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);\n      if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }\n      pcVar4 = visibility_name(visibility);\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;\n      free(__ptr);\n      free(__s);\n      return 1;\n    }" { (expression_statement "__ptr = pop_type((pr_handle *)((int)p + 8));" (assignment_expression "__ptr = pop_type((pr_handle *)((int)p + 8))" identifier = (call_expression "pop_type((pr_handle *)((int)p + 8))" identifier (argument_list "((pr_handle *)((int)p + 8))" ( (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (if_statement "if (__ptr == (char *)0x0) {\n        free(__s);\n        return 0;\n      }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(__s);\n        return 0;\n      }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility);" (assignment_expression "bVar3 = tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility)" identifier = (call_expression "tg_fix_visibility(*(pr_handle **)((int)p + 8),visibility)" identifier (argument_list "(*(pr_handle **)((int)p + 8),visibility)" ( (pointer_expression "*(pr_handle **)((int)p + 8)" * (cast_expression "(pr_handle **)((int)p + 8)" ( (type_descriptor "pr_handle **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (if_statement "if (bVar3 == 0) {\n        free(__ptr);\n        free(__s);\n        return 0;\n      }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        free(__ptr);\n        free(__s);\n        return 0;\n      }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar4 = visibility_name(visibility);" (assignment_expression "pcVar4 = visibility_name(visibility)" identifier = (call_expression "visibility_name(visibility)" identifier (argument_list "(visibility)" ( identifier )))) ;) comment (expression_statement "fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)\n      ;" (call_expression "fprintf(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)" identifier (argument_list "(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,\n              *(undefined4 *)((int)p + 0x10),__ptr,*(undefined4 *)(*(int *)((int)p + 8) + 4),pcVar4)" ( (pointer_expression "*p" * identifier) , (string_literal ""%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , (pointer_expression "*(undefined4 *)((int)p + 0x10)" * (cast_expression "(undefined4 *)((int)p + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x10)" ( (binary_expression "(int)p + 0x10" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(*(int *)((int)p + 8) + 4)" * (cast_expression "(undefined4 *)(*(int *)((int)p + 8) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 8) + 4)" ( (binary_expression "*(int *)((int)p + 8) + 4" (pointer_expression "*(int *)((int)p + 8)" * (cast_expression "(int *)((int)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "int FUN_00037810(undefined4 *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}\n\n" (function_definition "int FUN_00037810(undefined4 *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}" primitive_type (function_declarator "FUN_00037810(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));" (assignment_expression "sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4))" identifier = (call_expression "strlen(*(char **)(*(int *)param_1[2] + 4))" identifier (argument_list "(*(char **)(*(int *)param_1[2] + 4))" ( (pointer_expression "*(char **)(*(int *)param_1[2] + 4)" * (cast_expression "(char **)(*(int *)param_1[2] + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1[2] + 4)" ( (binary_expression "*(int *)param_1[2] + 4" (pointer_expression "*(int *)param_1[2]" * (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) + number_literal) )))) )))) ;) (expression_statement "__s = (char *)xmalloc(sVar1 + 3 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 3 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 3 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 3 + sVar2)" identifier (argument_list "(sVar1 + 3 + sVar2)" ( (binary_expression "sVar1 + 3 + sVar2" (binary_expression "sVar1 + 3" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);" (call_expression "sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2)" identifier (argument_list "(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2)" ( identifier , (string_literal ""%s::%s"" " string_content ") , (pointer_expression "*(undefined4 *)(*(int *)param_1[2] + 4)" * (cast_expression "(undefined4 *)(*(int *)param_1[2] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1[2] + 4)" ( (binary_expression "*(int *)param_1[2] + 4" (pointer_expression "*(int *)param_1[2]" * (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) + number_literal) )))) , identifier ))) ;) (expression_statement "iVar3 = FUN_00037630();" (assignment_expression "iVar3 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }" if (parenthesized_expression "((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0))" ( (binary_expression "(iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 = FUN_000374e0(), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_000374e0(), iVar3 == 0" (assignment_expression "iVar3 = FUN_000374e0()" identifier = (call_expression "FUN_000374e0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    free(__s);\n    return iVar3;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "__ptr = (void *)FUN_00036d90();" (assignment_expression "__ptr = (void *)FUN_00036d90()" identifier = (cast_expression "(void *)FUN_00036d90()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(__s);\n    return 0;\n  }" { (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = FUN_00037220();" (assignment_expression "iVar3 = FUN_00037220()" identifier = (call_expression "FUN_00037220()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    free(__ptr);\n    free(__s);\n    return 0;\n  }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = FUN_00036c20();" (assignment_expression "uVar4 = FUN_00036c20()" identifier = (call_expression "FUN_00036c20()" identifier (argument_list "()" ( )))) ;) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4)" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , (subscript_expression "param_1[4]" identifier [ number_literal ]) , identifier , (pointer_expression "*(undefined4 *)(param_1[2] + 4)" * (cast_expression "(undefined4 *)(param_1[2] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 4)" ( (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) )))) )))) ;) (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) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , IDENT , (subscript_expression IDENT [ LIT ]) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00037810(undefined4 *param_1,char *param_2)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}" (primitive_type "int") (function_declarator "FUN_00037810(undefined4 *param_1,char *param_2)" (identifier "FUN_00037810") (parameter_list "(undefined4 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *__s;\n  int iVar3;\n  void *__ptr;\n  undefined4 uVar4;\n  \n  sVar1 = strlen(param_2);\n  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));\n  __s = (char *)xmalloc(sVar1 + 3 + sVar2);\n  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);\n  iVar3 = FUN_00037630();\n  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }\n  __ptr = (void *)FUN_00036d90();\n  if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }\n  iVar3 = FUN_00037220();\n  if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }\n  uVar4 = FUN_00036c20();\n  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);\n  free(__ptr);\n  free(__s);\n  return 1;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));" (assignment_expression "sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4))" (identifier "sVar2") (= "=") (call_expression "strlen(*(char **)(*(int *)param_1[2] + 4))" (identifier "strlen") (argument_list "(*(char **)(*(int *)param_1[2] + 4))" (( "(") (pointer_expression "*(char **)(*(int *)param_1[2] + 4)" (* "*") (cast_expression "(char **)(*(int *)param_1[2] + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)param_1[2] + 4)" (( "(") (binary_expression "*(int *)param_1[2] + 4" (pointer_expression "*(int *)param_1[2]" (* "*") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "__s = (char *)xmalloc(sVar1 + 3 + sVar2);" (assignment_expression "__s = (char *)xmalloc(sVar1 + 3 + sVar2)" (identifier "__s") (= "=") (cast_expression "(char *)xmalloc(sVar1 + 3 + sVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar1 + 3 + sVar2)" (identifier "xmalloc") (argument_list "(sVar1 + 3 + sVar2)" (( "(") (binary_expression "sVar1 + 3 + sVar2" (binary_expression "sVar1 + 3" (identifier "sVar1") (+ "+") (number_literal "3")) (+ "+") (identifier "sVar2")) () ")"))))) (; ";")) (expression_statement "sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);" (call_expression "sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2)" (identifier "sprintf") (argument_list "(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2)" (( "(") (identifier "__s") (, ",") (string_literal ""%s::%s"" (" """) (string_content "%s::%s") (" """)) (, ",") (pointer_expression "*(undefined4 *)(*(int *)param_1[2] + 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)param_1[2] + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1[2] + 4)" (( "(") (binary_expression "*(int *)param_1[2] + 4" (pointer_expression "*(int *)param_1[2]" (* "*") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_00037630();" (assignment_expression "iVar3 = FUN_00037630()" (identifier "iVar3") (= "=") (call_expression "FUN_00037630()" (identifier "FUN_00037630") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {\n    free(__s);\n    return iVar3;\n  }" (if "if") (parenthesized_expression "((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0))" (( "(") (binary_expression "(iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar3 = FUN_000374e0(), iVar3 == 0)" (( "(") (comma_expression "iVar3 = FUN_000374e0(), iVar3 == 0" (assignment_expression "iVar3 = FUN_000374e0()" (identifier "iVar3") (= "=") (call_expression "FUN_000374e0()" (identifier "FUN_000374e0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    free(__s);\n    return iVar3;\n  }" ({ "{") (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (expression_statement "__ptr = (void *)FUN_00036d90();" (assignment_expression "__ptr = (void *)FUN_00036d90()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00036d90()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036d90()" (identifier "FUN_00036d90") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (__ptr == (void *)0x0) {\n    free(__s);\n    return 0;\n  }" (if "if") (parenthesized_expression "(__ptr == (void *)0x0)" (( "(") (binary_expression "__ptr == (void *)0x0" (identifier "__ptr") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(__s);\n    return 0;\n  }" ({ "{") (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00037220();" (assignment_expression "iVar3 = FUN_00037220()" (identifier "iVar3") (= "=") (call_expression "FUN_00037220()" (identifier "FUN_00037220") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    free(__ptr);\n    free(__s);\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    free(__ptr);\n    free(__s);\n    return 0;\n  }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = FUN_00036c20();" (assignment_expression "uVar4 = FUN_00036c20()" (identifier "uVar4") (= "=") (call_expression "FUN_00036c20()" (identifier "FUN_00036c20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4)" (identifier "fprintf") (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]\n          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal ""%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n"" (" """) (string_content "%s") (escape_sequence "\t") (string_content "%s") (escape_sequence "\t") (string_content "0;") (escape_sequence "\"") (escape_sequence "\t") (string_content "kind:x") (escape_sequence "\t") (string_content "type:%s") (escape_sequence "\t") (string_content "class:%s") (escape_sequence "\t") (string_content "access:%s") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "__ptr") (, ",") (pointer_expression "*(undefined4 *)(param_1[2] + 4)" (* "*") (cast_expression "(undefined4 *)(param_1[2] + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 4)" (( "(") (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(void *p,char *name,char *physname,type_2 visibility)

{
  size_t var_3;
  size_t var_4;
  char *__s;
  type_1 var_7;
  char *var_10;
  char *pcVar4;
  
  var_3 = var_1(name);
  var_4 = var_1(*(char **)(**(int **)((int)p + 8) + 4));
  __s = (char *)var_2(var_3 + 3 + var_4);
  var_5(__s,"%s::%s",*(type_3 *)(**(int **)((int)p + 8) + 4),name);
  var_7 = var_6((type_4 *)p,__s);
  if (var_7 != 0) {
    var_7 = var_8((type_4 *)((int)p + 8),"static ");
    if (var_7 != 0) {
      var_10 = var_9((type_4 *)((int)p + 8));
      if (var_10 == (char *)0x0) {
        var_11(__s);
        return 0;
      }
      var_7 = var_12(*(type_4 **)((int)p + 8),visibility);
      if (var_7 == 0) {
        var_11(var_10);
        var_11(__s);
        return 0;
      }
      pcVar4 = var_13(visibility);
                    /* WARNING: Load size is inaccurate */
      var_14(*p,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",name,
              *(type_3 *)((int)p + 0x10),var_10,*(type_3 *)(*(int *)((int)p + 8) + 4),pcVar4)
      ;
      var_11(var_10);
      var_11(__s);
      return 1;
    }
  }
  var_11(__s);
  return var_7;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(undefined4 *param_1,char *param_2)

{
  size_t sVar1;
  size_t sVar2;
  char *__s;
  int iVar3;
  void *__ptr;
  undefined4 uVar4;
  
  sVar1 = strlen(param_2);
  sVar2 = strlen(*(char **)(*(int *)param_1[2] + 4));
  __s = (char *)xmalloc(sVar1 + 3 + sVar2);
  sprintf(__s,"%s::%s",*(undefined4 *)(*(int *)param_1[2] + 4),param_2);
  iVar3 = FUN_00037630();
  if ((iVar3 == 0) || (iVar3 = FUN_000374e0(), iVar3 == 0)) {
    free(__s);
    return iVar3;
  }
  __ptr = (void *)FUN_00036d90();
  if (__ptr == (void *)0x0) {
    free(__s);
    return 0;
  }
  iVar3 = FUN_00037220();
  if (iVar3 == 0) {
    free(__ptr);
    free(__s);
    return 0;
  }
  uVar4 = FUN_00036c20();
  fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:x\ttype:%s\tclass:%s\taccess:%s\n",param_2,param_1[4]
          ,__ptr,*(undefined4 *)(param_1[2] + 4),uVar4);
  free(__ptr);
  free(__s);
  return 1;
}

