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

debug_type __regparm3
stab_find_tagged_type(void *dhandle,stab_handle *info,char *p,int len,debug_type_kind kind)

{
  char cVar1;
  bfd_target *name;
  debug_type_conflict pdVar2;
  int iVar3;
  bfd *pbVar4;
  bfd *pbVar5;
  
  name = (bfd_target *)savestring(p,len);
  pdVar2 = debug_find_tagged_type(dhandle,(char *)name,DEBUG_KIND_ILLEGAL);
  if (pdVar2 != (debug_type_conflict)0x0) {
    free(name);
    return pdVar2;
  }
  pbVar5 = info->abfd;
  if (pbVar5 != (bfd *)0x0) {
    cVar1 = *(char *)&name->name;
    do {
      if (*(char *)&pbVar5->xvec->name == cVar1) {
        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);
        if (iVar3 == 0) {
          if (pbVar5->iostream == (void *)0x0) {
            pbVar5->iostream = (void *)kind;
          }
          free(name);
          return (debug_type)pbVar5->lru_prev;
        }
      }
      pbVar5 = (bfd *)pbVar5->filename;
    } while (pbVar5 != (bfd *)0x0);
  }
  pbVar4 = (bfd *)xmalloc(0x14);
  pbVar4->lru_prev = (bfd *)0x0;
  pbVar5 = info->abfd;
  pbVar4->xvec = name;
  pbVar4->iovec = (bfd_iovec *)0x0;
  pbVar4->filename = (char *)pbVar5;
  pbVar4->iostream = (void *)kind;
  pbVar5 = (bfd *)debug_make_indirect_type
                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name);
  pbVar4->lru_prev = pbVar5;
  info->abfd = pbVar4;
  return (debug_type)pbVar5;
}



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

int __regparm2 FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)

{
  char cVar1;
  char *__s2;
  int iVar2;
  int *piVar3;
  
  __s2 = (char *)FUN_000209e0();
  iVar2 = FUN_00020350(param_1,__s2,0);
  if (iVar2 != 0) {
    free(__s2);
    return iVar2;
  }
  piVar3 = (int *)*param_2;
  if (piVar3 != (int *)0x0) {
    cVar1 = *__s2;
    do {
      if (*(char *)piVar3[1] == cVar1) {
        iVar2 = strcmp((char *)piVar3[1],__s2);
        if (iVar2 == 0) {
          if (piVar3[2] == 0) {
            piVar3[2] = param_4;
          }
          free(__s2);
          return piVar3[4];
        }
      }
      piVar3 = (int *)*piVar3;
    } while (piVar3 != (int *)0x0);
  }
  piVar3 = (int *)xmalloc(0x14);
  piVar3[4] = 0;
  iVar2 = *param_2;
  piVar3[1] = (int)__s2;
  piVar3[3] = 0;
  *piVar3 = iVar2;
  piVar3[2] = param_4;
  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);
  piVar3[4] = iVar2;
  *param_2 = (int)piVar3;
  return iVar2;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x1ec65
SUB ESP,0x1c
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,ECX
CALL 0x000209e0
SUB ESP,0x4
PUSH 0x0
MOV ESI,EAX
PUSH EAX
PUSH EDI
CALL 0x00020350
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00021430
MOV EAX,dword ptr [ESP + 0x8]
MOV EBP,dword ptr [EAX]
TEST EBP,EBP
JZ 0x00021450
MOVZX EDI,byte ptr [ESI]
JMP 0x000213e7
MOV EBP,dword ptr [EBP]
TEST EBP,EBP
JZ 0x00021450
MOV EAX,dword ptr [EBP + 0x4]
MOV ECX,EDI
CMP byte ptr [EAX],CL
JNZ 0x000213e0
SUB ESP,0x8
PUSH ESI
PUSH EAX
CALL 0x00013070
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000213e0
MOV EAX,dword ptr [EBP + 0x8]
TEST EAX,EAX
JNZ 0x0002140f
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [EBP + 0x8],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x00013948
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x10]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x00013948
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x14
CALL 0x000132e0
MOV EDI,dword ptr [ESP + 0x18]
MOV EDX,EAX
MOV dword ptr [EAX + 0x10],0x0
MOV EAX,dword ptr [EDI]
MOV dword ptr [EDX + 0x4],ESI
MOV dword ptr [EDX + 0xc],0x0
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0x44]
ADD ESP,0xc
MOV dword ptr [EDX + 0x8],EAX
LEA EAX,[EDX + 0xc]
PUSH ESI
MOV dword ptr [ESP + 0x10],EDX
PUSH EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x0001f7c0
MOV EDX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [EDX + 0x10],EAX
MOV dword ptr [EDI],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm2 FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm2 FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "__s2 = (char *)FUN_000209e0();" (assignment_expression "__s2 = (char *)FUN_000209e0()" identifier = (cast_expression "(char *)FUN_000209e0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000209e0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = FUN_00020350(param_1,__s2,0);" (assignment_expression "iVar2 = FUN_00020350(param_1,__s2,0)" identifier = (call_expression "FUN_00020350(param_1,__s2,0)" identifier (argument_list "(param_1,__s2,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s2);\n    return iVar2;\n  }" { (expression_statement "free(__s2);" (call_expression "free(__s2)" identifier (argument_list "(__s2)" ( identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "piVar3 = (int *)*param_2;" (assignment_expression "piVar3 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" { (expression_statement "cVar1 = *__s2;" (assignment_expression "cVar1 = *__s2" identifier = (pointer_expression "*__s2" * identifier)) ;) (do_statement "do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);" do (compound_statement "{\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    }" { (if_statement "if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }" if (parenthesized_expression "(*(char *)piVar3[1] == cVar1)" ( (binary_expression "*(char *)piVar3[1] == cVar1" (pointer_expression "*(char *)piVar3[1]" * (cast_expression "(char *)piVar3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) == identifier) )) (compound_statement "{\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }" { (expression_statement "iVar2 = strcmp((char *)piVar3[1],__s2);" (assignment_expression "iVar2 = strcmp((char *)piVar3[1],__s2)" identifier = (call_expression "strcmp((char *)piVar3[1],__s2)" identifier (argument_list "((char *)piVar3[1],__s2)" ( (cast_expression "(char *)piVar3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }" { (if_statement "if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }" if (parenthesized_expression "(piVar3[2] == 0)" ( (binary_expression "piVar3[2] == 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            piVar3[2] = param_4;\n          }" { (expression_statement "piVar3[2] = param_4;" (assignment_expression "piVar3[2] = param_4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "free(__s2);" (call_expression "free(__s2)" identifier (argument_list "(__s2)" ( identifier ))) ;) (return_statement "return piVar3[4];" return (subscript_expression "piVar3[4]" identifier [ number_literal ]) ;) })) })) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "piVar3 = (int *)xmalloc(0x14);" (assignment_expression "piVar3 = (int *)xmalloc(0x14)" identifier = (cast_expression "(int *)xmalloc(0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "piVar3[1] = (int)__s2;" (assignment_expression "piVar3[1] = (int)__s2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (cast_expression "(int)__s2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[2] = param_4;" (assignment_expression "piVar3[2] = param_4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);" (assignment_expression "iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2)" identifier = (call_expression "FUN_0001f7c0(param_1,piVar3 + 3,__s2)" identifier (argument_list "(param_1,piVar3 + 3,__s2)" ( identifier , (binary_expression "piVar3 + 3" identifier + number_literal) , identifier )))) ;) (expression_statement "piVar3[4] = iVar2;" (assignment_expression "piVar3[4] = iVar2" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = (int)piVar3;" (assignment_expression "*param_2 = (int)piVar3" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ndebug_type __regparm3\nstab_find_tagged_type(void *dhandle,stab_handle *info,char *p,int len,debug_type_kind kind)\n\n{\n  char cVar1;\n  bfd_target *name;\n  debug_type_conflict pdVar2;\n  int iVar3;\n  bfd *pbVar4;\n  bfd *pbVar5;\n  \n  name = (bfd_target *)savestring(p,len);\n  pdVar2 = debug_find_tagged_type(dhandle,(char *)name,DEBUG_KIND_ILLEGAL);\n  if (pdVar2 != (debug_type_conflict)0x0) {\n    free(name);\n    return pdVar2;\n  }\n  pbVar5 = info->abfd;\n  if (pbVar5 != (bfd *)0x0) {\n    cVar1 = *(char *)&name->name;\n    do {\n      if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }\n      pbVar5 = (bfd *)pbVar5->filename;\n    } while (pbVar5 != (bfd *)0x0);\n  }\n  pbVar4 = (bfd *)xmalloc(0x14);\n  pbVar4->lru_prev = (bfd *)0x0;\n  pbVar5 = info->abfd;\n  pbVar4->xvec = name;\n  pbVar4->iovec = (bfd_iovec *)0x0;\n  pbVar4->filename = (char *)pbVar5;\n  pbVar4->iostream = (void *)kind;\n  pbVar5 = (bfd *)debug_make_indirect_type\n                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name);\n  pbVar4->lru_prev = pbVar5;\n  info->abfd = pbVar4;\n  return (debug_type)pbVar5;\n}\n\n" comment (function_definition "debug_type __regparm3\nstab_find_tagged_type(void *dhandle,stab_handle *info,char *p,int len,debug_type_kind kind)\n\n{\n  char cVar1;\n  bfd_target *name;\n  debug_type_conflict pdVar2;\n  int iVar3;\n  bfd *pbVar4;\n  bfd *pbVar5;\n  \n  name = (bfd_target *)savestring(p,len);\n  pdVar2 = debug_find_tagged_type(dhandle,(char *)name,DEBUG_KIND_ILLEGAL);\n  if (pdVar2 != (debug_type_conflict)0x0) {\n    free(name);\n    return pdVar2;\n  }\n  pbVar5 = info->abfd;\n  if (pbVar5 != (bfd *)0x0) {\n    cVar1 = *(char *)&name->name;\n    do {\n      if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }\n      pbVar5 = (bfd *)pbVar5->filename;\n    } while (pbVar5 != (bfd *)0x0);\n  }\n  pbVar4 = (bfd *)xmalloc(0x14);\n  pbVar4->lru_prev = (bfd *)0x0;\n  pbVar5 = info->abfd;\n  pbVar4->xvec = name;\n  pbVar4->iovec = (bfd_iovec *)0x0;\n  pbVar4->filename = (char *)pbVar5;\n  pbVar4->iostream = (void *)kind;\n  pbVar5 = (bfd *)debug_make_indirect_type\n                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name);\n  pbVar4->lru_prev = pbVar5;\n  info->abfd = pbVar4;\n  return (debug_type)pbVar5;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "stab_find_tagged_type(void *dhandle,stab_handle *info,char *p,int len,debug_type_kind kind)" identifier (parameter_list "(void *dhandle,stab_handle *info,char *p,int len,debug_type_kind kind)" ( (parameter_declaration "void *dhandle" primitive_type (pointer_declarator "*dhandle" * identifier)) , (parameter_declaration "stab_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "debug_type_kind kind" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  bfd_target *name;\n  debug_type_conflict pdVar2;\n  int iVar3;\n  bfd *pbVar4;\n  bfd *pbVar5;\n  \n  name = (bfd_target *)savestring(p,len);\n  pdVar2 = debug_find_tagged_type(dhandle,(char *)name,DEBUG_KIND_ILLEGAL);\n  if (pdVar2 != (debug_type_conflict)0x0) {\n    free(name);\n    return pdVar2;\n  }\n  pbVar5 = info->abfd;\n  if (pbVar5 != (bfd *)0x0) {\n    cVar1 = *(char *)&name->name;\n    do {\n      if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }\n      pbVar5 = (bfd *)pbVar5->filename;\n    } while (pbVar5 != (bfd *)0x0);\n  }\n  pbVar4 = (bfd *)xmalloc(0x14);\n  pbVar4->lru_prev = (bfd *)0x0;\n  pbVar5 = info->abfd;\n  pbVar4->xvec = name;\n  pbVar4->iovec = (bfd_iovec *)0x0;\n  pbVar4->filename = (char *)pbVar5;\n  pbVar4->iostream = (void *)kind;\n  pbVar5 = (bfd *)debug_make_indirect_type\n                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name);\n  pbVar4->lru_prev = pbVar5;\n  info->abfd = pbVar4;\n  return (debug_type)pbVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bfd_target *name;" type_identifier (pointer_declarator "*name" * identifier) ;) (declaration "debug_type_conflict pdVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bfd *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bfd *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (expression_statement "name = (bfd_target *)savestring(p,len);" (assignment_expression "name = (bfd_target *)savestring(p,len)" identifier = (cast_expression "(bfd_target *)savestring(p,len)" ( (type_descriptor "bfd_target *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "savestring(p,len)" identifier (argument_list "(p,len)" ( identifier , identifier ))))) ;) (expression_statement "pdVar2 = debug_find_tagged_type(dhandle,(char *)name,DEBUG_KIND_ILLEGAL);" (assignment_expression "pdVar2 = debug_find_tagged_type(dhandle,(char *)name,DEBUG_KIND_ILLEGAL)" identifier = (call_expression "debug_find_tagged_type(dhandle,(char *)name,DEBUG_KIND_ILLEGAL)" identifier (argument_list "(dhandle,(char *)name,DEBUG_KIND_ILLEGAL)" ( identifier , (cast_expression "(char *)name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (pdVar2 != (debug_type_conflict)0x0) {\n    free(name);\n    return pdVar2;\n  }" if (parenthesized_expression "(pdVar2 != (debug_type_conflict)0x0)" ( (binary_expression "pdVar2 != (debug_type_conflict)0x0" identifier != (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n    free(name);\n    return pdVar2;\n  }" { (expression_statement "free(name);" (call_expression "free(name)" identifier (argument_list "(name)" ( identifier ))) ;) (return_statement "return pdVar2;" return identifier ;) })) (expression_statement "pbVar5 = info->abfd;" (assignment_expression "pbVar5 = info->abfd" identifier = (field_expression "info->abfd" identifier -> field_identifier)) ;) (if_statement "if (pbVar5 != (bfd *)0x0) {\n    cVar1 = *(char *)&name->name;\n    do {\n      if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }\n      pbVar5 = (bfd *)pbVar5->filename;\n    } while (pbVar5 != (bfd *)0x0);\n  }" if (parenthesized_expression "(pbVar5 != (bfd *)0x0)" ( (binary_expression "pbVar5 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *(char *)&name->name;\n    do {\n      if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }\n      pbVar5 = (bfd *)pbVar5->filename;\n    } while (pbVar5 != (bfd *)0x0);\n  }" { (expression_statement "cVar1 = *(char *)&name->name;" (assignment_expression "cVar1 = *(char *)&name->name" identifier = (pointer_expression "*(char *)&name->name" * (cast_expression "(char *)&name->name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&name->name" & (field_expression "name->name" identifier -> field_identifier))))) ;) (do_statement "do {\n      if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }\n      pbVar5 = (bfd *)pbVar5->filename;\n    } while (pbVar5 != (bfd *)0x0);" do (compound_statement "{\n      if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }\n      pbVar5 = (bfd *)pbVar5->filename;\n    }" { (if_statement "if (*(char *)&pbVar5->xvec->name == cVar1) {\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }" if (parenthesized_expression "(*(char *)&pbVar5->xvec->name == cVar1)" ( (binary_expression "*(char *)&pbVar5->xvec->name == cVar1" (pointer_expression "*(char *)&pbVar5->xvec->name" * (cast_expression "(char *)&pbVar5->xvec->name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar5->xvec->name" & (field_expression "pbVar5->xvec->name" (field_expression "pbVar5->xvec" identifier -> field_identifier) -> field_identifier)))) == identifier) )) (compound_statement "{\n        iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);\n        if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }\n      }" { (expression_statement "iVar3 = strcmp((char *)pbVar5->xvec,(char *)name);" (assignment_expression "iVar3 = strcmp((char *)pbVar5->xvec,(char *)name)" identifier = (call_expression "strcmp((char *)pbVar5->xvec,(char *)name)" identifier (argument_list "((char *)pbVar5->xvec,(char *)name)" ( (cast_expression "(char *)pbVar5->xvec" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pbVar5->xvec" identifier -> field_identifier)) , (cast_expression "(char *)name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }\n          free(name);\n          return (debug_type)pbVar5->lru_prev;\n        }" { (if_statement "if (pbVar5->iostream == (void *)0x0) {\n            pbVar5->iostream = (void *)kind;\n          }" if (parenthesized_expression "(pbVar5->iostream == (void *)0x0)" ( (binary_expression "pbVar5->iostream == (void *)0x0" (field_expression "pbVar5->iostream" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            pbVar5->iostream = (void *)kind;\n          }" { (expression_statement "pbVar5->iostream = (void *)kind;" (assignment_expression "pbVar5->iostream = (void *)kind" (field_expression "pbVar5->iostream" identifier -> field_identifier) = (cast_expression "(void *)kind" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "free(name);" (call_expression "free(name)" identifier (argument_list "(name)" ( identifier ))) ;) (return_statement "return (debug_type)pbVar5->lru_prev;" return (cast_expression "(debug_type)pbVar5->lru_prev" ( (type_descriptor "debug_type" type_identifier) ) (field_expression "pbVar5->lru_prev" identifier -> field_identifier)) ;) })) })) (expression_statement "pbVar5 = (bfd *)pbVar5->filename;" (assignment_expression "pbVar5 = (bfd *)pbVar5->filename" identifier = (cast_expression "(bfd *)pbVar5->filename" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pbVar5->filename" identifier -> field_identifier))) ;) }) while (parenthesized_expression "(pbVar5 != (bfd *)0x0)" ( (binary_expression "pbVar5 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "pbVar4 = (bfd *)xmalloc(0x14);" (assignment_expression "pbVar4 = (bfd *)xmalloc(0x14)" identifier = (cast_expression "(bfd *)xmalloc(0x14)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "pbVar4->lru_prev = (bfd *)0x0;" (assignment_expression "pbVar4->lru_prev = (bfd *)0x0" (field_expression "pbVar4->lru_prev" identifier -> field_identifier) = (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pbVar5 = info->abfd;" (assignment_expression "pbVar5 = info->abfd" identifier = (field_expression "info->abfd" identifier -> field_identifier)) ;) (expression_statement "pbVar4->xvec = name;" (assignment_expression "pbVar4->xvec = name" (field_expression "pbVar4->xvec" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar4->iovec = (bfd_iovec *)0x0;" (assignment_expression "pbVar4->iovec = (bfd_iovec *)0x0" (field_expression "pbVar4->iovec" identifier -> field_identifier) = (cast_expression "(bfd_iovec *)0x0" ( (type_descriptor "bfd_iovec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pbVar4->filename = (char *)pbVar5;" (assignment_expression "pbVar4->filename = (char *)pbVar5" (field_expression "pbVar4->filename" identifier -> field_identifier) = (cast_expression "(char *)pbVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar4->iostream = (void *)kind;" (assignment_expression "pbVar4->iostream = (void *)kind" (field_expression "pbVar4->iostream" identifier -> field_identifier) = (cast_expression "(void *)kind" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar5 = (bfd *)debug_make_indirect_type\n                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name);" (assignment_expression "pbVar5 = (bfd *)debug_make_indirect_type\n                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name)" identifier = (cast_expression "(bfd *)debug_make_indirect_type\n                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "debug_make_indirect_type\n                            (dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name)" identifier (argument_list "(dhandle,(debug_type_conflict *)&pbVar4->iovec,(char *)name)" ( identifier , (cast_expression "(debug_type_conflict *)&pbVar4->iovec" ( (type_descriptor "debug_type_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar4->iovec" & (field_expression "pbVar4->iovec" identifier -> field_identifier))) , (cast_expression "(char *)name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) (expression_statement "pbVar4->lru_prev = pbVar5;" (assignment_expression "pbVar4->lru_prev = pbVar5" (field_expression "pbVar4->lru_prev" identifier -> field_identifier) = identifier) ;) (expression_statement "info->abfd = pbVar4;" (assignment_expression "info->abfd = pbVar4" (field_expression "info->abfd" identifier -> field_identifier) = identifier) ;) (return_statement "return (debug_type)pbVar5;" return (cast_expression "(debug_type)pbVar5" ( (type_descriptor "debug_type" type_identifier) ) identifier) ;) })))
(translation_unit "int __regparm2 FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}\n\n" (function_definition "int __regparm2 FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "__s2 = (char *)FUN_000209e0();" (assignment_expression "__s2 = (char *)FUN_000209e0()" identifier = (cast_expression "(char *)FUN_000209e0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000209e0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = FUN_00020350(param_1,__s2,0);" (assignment_expression "iVar2 = FUN_00020350(param_1,__s2,0)" identifier = (call_expression "FUN_00020350(param_1,__s2,0)" identifier (argument_list "(param_1,__s2,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    free(__s2);\n    return iVar2;\n  }" { (expression_statement "free(__s2);" (call_expression "free(__s2)" identifier (argument_list "(__s2)" ( identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "piVar3 = (int *)*param_2;" (assignment_expression "piVar3 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" { (expression_statement "cVar1 = *__s2;" (assignment_expression "cVar1 = *__s2" identifier = (pointer_expression "*__s2" * identifier)) ;) (do_statement "do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);" do (compound_statement "{\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    }" { (if_statement "if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }" if (parenthesized_expression "(*(char *)piVar3[1] == cVar1)" ( (binary_expression "*(char *)piVar3[1] == cVar1" (pointer_expression "*(char *)piVar3[1]" * (cast_expression "(char *)piVar3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) == identifier) )) (compound_statement "{\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }" { (expression_statement "iVar2 = strcmp((char *)piVar3[1],__s2);" (assignment_expression "iVar2 = strcmp((char *)piVar3[1],__s2)" identifier = (call_expression "strcmp((char *)piVar3[1],__s2)" identifier (argument_list "((char *)piVar3[1],__s2)" ( (cast_expression "(char *)piVar3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }" { (if_statement "if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }" if (parenthesized_expression "(piVar3[2] == 0)" ( (binary_expression "piVar3[2] == 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            piVar3[2] = param_4;\n          }" { (expression_statement "piVar3[2] = param_4;" (assignment_expression "piVar3[2] = param_4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "free(__s2);" (call_expression "free(__s2)" identifier (argument_list "(__s2)" ( identifier ))) ;) (return_statement "return piVar3[4];" return (subscript_expression "piVar3[4]" identifier [ number_literal ]) ;) })) })) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "piVar3 = (int *)xmalloc(0x14);" (assignment_expression "piVar3 = (int *)xmalloc(0x14)" identifier = (cast_expression "(int *)xmalloc(0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "piVar3[1] = (int)__s2;" (assignment_expression "piVar3[1] = (int)__s2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (cast_expression "(int)__s2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[2] = param_4;" (assignment_expression "piVar3[2] = param_4" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);" (assignment_expression "iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2)" identifier = (call_expression "FUN_0001f7c0(param_1,piVar3 + 3,__s2)" identifier (argument_list "(param_1,piVar3 + 3,__s2)" ( identifier , (binary_expression "piVar3 + 3" identifier + number_literal) , identifier )))) ;) (expression_statement "piVar3[4] = iVar2;" (assignment_expression "piVar3[4] = iVar2" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = (int)piVar3;" (assignment_expression "*param_2 = (int)piVar3" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (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 *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm2 FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)\n\n{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}" (primitive_type "int") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00021390(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)" (identifier "FUN_00021390") (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  char cVar1;\n  char *__s2;\n  int iVar2;\n  int *piVar3;\n  \n  __s2 = (char *)FUN_000209e0();\n  iVar2 = FUN_00020350(param_1,__s2,0);\n  if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }\n  piVar3 = (int *)*param_2;\n  if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }\n  piVar3 = (int *)xmalloc(0x14);\n  piVar3[4] = 0;\n  iVar2 = *param_2;\n  piVar3[1] = (int)__s2;\n  piVar3[3] = 0;\n  *piVar3 = iVar2;\n  piVar3[2] = param_4;\n  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);\n  piVar3[4] = iVar2;\n  *param_2 = (int)piVar3;\n  return iVar2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "__s2 = (char *)FUN_000209e0();" (assignment_expression "__s2 = (char *)FUN_000209e0()" (identifier "__s2") (= "=") (cast_expression "(char *)FUN_000209e0()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000209e0()" (identifier "FUN_000209e0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_00020350(param_1,__s2,0);" (assignment_expression "iVar2 = FUN_00020350(param_1,__s2,0)" (identifier "iVar2") (= "=") (call_expression "FUN_00020350(param_1,__s2,0)" (identifier "FUN_00020350") (argument_list "(param_1,__s2,0)" (( "(") (identifier "param_1") (, ",") (identifier "__s2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    free(__s2);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    free(__s2);\n    return iVar2;\n  }" ({ "{") (expression_statement "free(__s2);" (call_expression "free(__s2)" (identifier "free") (argument_list "(__s2)" (( "(") (identifier "__s2") () ")"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)*param_2;" (assignment_expression "piVar3 = (int *)*param_2" (identifier "piVar3") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    cVar1 = *__s2;\n    do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);\n  }" ({ "{") (expression_statement "cVar1 = *__s2;" (assignment_expression "cVar1 = *__s2" (identifier "cVar1") (= "=") (pointer_expression "*__s2" (* "*") (identifier "__s2"))) (; ";")) (do_statement "do {\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    } while (piVar3 != (int *)0x0);" (do "do") (compound_statement "{\n      if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }\n      piVar3 = (int *)*piVar3;\n    }" ({ "{") (if_statement "if (*(char *)piVar3[1] == cVar1) {\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }" (if "if") (parenthesized_expression "(*(char *)piVar3[1] == cVar1)" (( "(") (binary_expression "*(char *)piVar3[1] == cVar1" (pointer_expression "*(char *)piVar3[1]" (* "*") (cast_expression "(char *)piVar3[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (== "==") (identifier "cVar1")) () ")")) (compound_statement "{\n        iVar2 = strcmp((char *)piVar3[1],__s2);\n        if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }\n      }" ({ "{") (expression_statement "iVar2 = strcmp((char *)piVar3[1],__s2);" (assignment_expression "iVar2 = strcmp((char *)piVar3[1],__s2)" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)piVar3[1],__s2)" (identifier "strcmp") (argument_list "((char *)piVar3[1],__s2)" (( "(") (cast_expression "(char *)piVar3[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "__s2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }\n          free(__s2);\n          return piVar3[4];\n        }" ({ "{") (if_statement "if (piVar3[2] == 0) {\n            piVar3[2] = param_4;\n          }" (if "if") (parenthesized_expression "(piVar3[2] == 0)" (( "(") (binary_expression "piVar3[2] == 0" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            piVar3[2] = param_4;\n          }" ({ "{") (expression_statement "piVar3[2] = param_4;" (assignment_expression "piVar3[2] = param_4" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (} "}"))) (expression_statement "free(__s2);" (call_expression "free(__s2)" (identifier "free") (argument_list "(__s2)" (( "(") (identifier "__s2") () ")"))) (; ";")) (return_statement "return piVar3[4];" (return "return") (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" (identifier "piVar3") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)xmalloc(0x14);" (assignment_expression "piVar3 = (int *)xmalloc(0x14)" (identifier "piVar3") (= "=") (cast_expression "(int *)xmalloc(0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x14)" (identifier "xmalloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "piVar3[1] = (int)__s2;" (assignment_expression "piVar3[1] = (int)__s2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)__s2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s2"))) (; ";")) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar3 = iVar2;" (assignment_expression "*piVar3 = iVar2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar3[2] = param_4;" (assignment_expression "piVar3[2] = param_4" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);" (assignment_expression "iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2)" (identifier "iVar2") (= "=") (call_expression "FUN_0001f7c0(param_1,piVar3 + 3,__s2)" (identifier "FUN_0001f7c0") (argument_list "(param_1,piVar3 + 3,__s2)" (( "(") (identifier "param_1") (, ",") (binary_expression "piVar3 + 3" (identifier "piVar3") (+ "+") (number_literal "3")) (, ",") (identifier "__s2") () ")")))) (; ";")) (expression_statement "piVar3[4] = iVar2;" (assignment_expression "piVar3[4] = iVar2" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*param_2 = (int)piVar3;" (assignment_expression "*param_2 = (int)piVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(void *dhandle,type_2 *info,char *p,int len,type_3 kind)

{
  char var_6;
  type_4 *name;
  type_5 var_3;
  int var_8;
  type_6 *pbVar4;
  type_6 *var_5;
  
  name = (type_4 *)var_1(p,len);
  var_3 = var_2(dhandle,(char *)name,DEBUG_KIND_ILLEGAL);
  if (var_3 != (type_5)0x0) {
    var_4(name);
    return var_3;
  }
  var_5 = info->abfd;
  if (var_5 != (type_6 *)0x0) {
    var_6 = *(char *)&name->name;
    do {
      if (*(char *)&var_5->xvec->name == var_6) {
        var_8 = var_7((char *)var_5->xvec,(char *)name);
        if (var_8 == 0) {
          if (var_5->iostream == (void *)0x0) {
            var_5->iostream = (void *)kind;
          }
          var_4(name);
          return (type_1)var_5->lru_prev;
        }
      }
      var_5 = (type_6 *)var_5->filename;
    } while (var_5 != (type_6 *)0x0);
  }
  pbVar4 = (type_6 *)var_9(0x14);
  pbVar4->lru_prev = (type_6 *)0x0;
  var_5 = info->abfd;
  pbVar4->xvec = name;
  pbVar4->iovec = (type_7 *)0x0;
  pbVar4->filename = (char *)var_5;
  pbVar4->iostream = (void *)kind;
  var_5 = (type_6 *)var_10
                            (dhandle,(type_5 *)&pbVar4->iovec,(char *)name);
  pbVar4->lru_prev = var_5;
  info->abfd = pbVar4;
  return (type_1)var_5;
}


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

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

int __regparm2 MASKED(undefined4 param_1,int *param_2,undefined4 param_3,int param_4)

{
  char cVar1;
  char *__s2;
  int iVar2;
  int *piVar3;
  
  __s2 = (char *)FUN_000209e0();
  iVar2 = FUN_00020350(param_1,__s2,0);
  if (iVar2 != 0) {
    free(__s2);
    return iVar2;
  }
  piVar3 = (int *)*param_2;
  if (piVar3 != (int *)0x0) {
    cVar1 = *__s2;
    do {
      if (*(char *)piVar3[1] == cVar1) {
        iVar2 = strcmp((char *)piVar3[1],__s2);
        if (iVar2 == 0) {
          if (piVar3[2] == 0) {
            piVar3[2] = param_4;
          }
          free(__s2);
          return piVar3[4];
        }
      }
      piVar3 = (int *)*piVar3;
    } while (piVar3 != (int *)0x0);
  }
  piVar3 = (int *)xmalloc(0x14);
  piVar3[4] = 0;
  iVar2 = *param_2;
  piVar3[1] = (int)__s2;
  piVar3[3] = 0;
  *piVar3 = iVar2;
  piVar3[2] = param_4;
  iVar2 = FUN_0001f7c0(param_1,piVar3 + 3,__s2);
  piVar3[4] = iVar2;
  *param_2 = (int)piVar3;
  return iVar2;
}

