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

bfd_boolean __regparm3 substitute_type(pr_handle *info,char *s)

{
  pr_stack *ppVar1;
  char *pcVar2;
  bfd_boolean bVar3;
  size_t sVar4;
  size_t sVar5;
  char *pcVar6;
  
  if (info->stack == (pr_stack *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");
  }
  pcVar6 = info->stack->type;
  pcVar2 = strchr(pcVar6,0x7c);
  if (pcVar2 != (char *)0x0) {
    sVar4 = strlen(pcVar6);
    sVar5 = strlen(s);
    pcVar6 = (char *)xmalloc(sVar4 + sVar5);
    ppVar1 = info->stack;
    memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type);
    strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s);
    strcat(pcVar6,pcVar2 + 1);
    free(ppVar1->type);
    info->stack->type = pcVar6;
    return 1;
  }
  pcVar2 = strchr(s,0x7c);
  if ((pcVar2 != (char *)0x0) &&
     ((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||
      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)))) {
    bVar3 = prepend_type((pr_handle *)&info->stack,"(");
    if (bVar3 == 0) {
      return 0;
    }
    bVar3 = append_type((pr_handle *)&info->stack,")");
    if (bVar3 == 0) {
      return 0;
    }
  }
  if (*s == '\0') {
    return 1;
  }
  bVar3 = append_type((pr_handle *)&info->stack," ");
  if (bVar3 == 0) {
    return 0;
  }
  bVar3 = append_type((pr_handle *)&info->stack,s);
  return (uint)(bVar3 != 0);
}



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

bool __regparm3 FUN_00036630(int param_1,char *param_2)

{
  char *pcVar1;
  int iVar2;
  size_t sVar3;
  size_t sVar4;
  char *pcVar5;
  
  if (*(int *)(param_1 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");
  }
  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);
  pcVar1 = strchr(pcVar5,0x7c);
  if (pcVar1 != (char *)0x0) {
    sVar3 = strlen(pcVar5);
    sVar4 = strlen(param_2);
    pcVar5 = (char *)xmalloc(sVar3 + sVar4);
    iVar2 = *(int *)(param_1 + 8);
    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));
    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);
    strcat(pcVar5,pcVar1 + 1);
    free(*(void **)(iVar2 + 4));
    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;
    return true;
  }
  pcVar1 = strchr(param_2,0x7c);
  if (((pcVar1 == (char *)0x0) ||
      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&
       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||
     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {
    if (*param_2 == '\0') {
      return true;
    }
    iVar2 = FUN_00036580();
    if (iVar2 != 0) {
      iVar2 = FUN_00036580();
      return iVar2 != 0;
    }
  }
  return false;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000143d0
ADD EBX,0x3b9c5
SUB ESP,0x1c
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000367a3
MOV EDI,dword ptr [EAX + 0x4]
SUB ESP,0x8
MOV EBP,EDX
PUSH 0x7c
PUSH EDI
CALL 0x00013450
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000366f8
SUB ESP,0x8
PUSH 0x7c
PUSH EBP
CALL 0x00013450
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000366c1
SUB ESP,0x8
PUSH 0x7b
PUSH EDI
CALL 0x00013450
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00036788
LEA EDI,[ESI + 0x8]
LEA EDX,[EBX + 0xfffe18d1]
MOV EAX,EDI
CALL 0x000364e0
TEST EAX,EAX
JNZ 0x000366b0
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDX,[EBX + 0xfffe13cd]
MOV EAX,EDI
CALL 0x00036580
TEST EAX,EAX
JZ 0x000366a6
CMP byte ptr [EBP],0x0
MOV EAX,0x1
JZ 0x000366a8
ADD ESI,0x8
LEA EDX,[EBX + 0xfffdc64f]
MOV EAX,ESI
CALL 0x00036580
TEST EAX,EAX
JZ 0x000366a6
MOV EDX,EBP
MOV EAX,ESI
CALL 0x00036580
TEST EAX,EAX
SETNZ AL
MOVZX EAX,AL
JMP 0x000366a8
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH EDI
CALL 0x00013480
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x00013480
ADD EDI,EAX
MOV dword ptr [ESP],EDI
CALL 0x000132b0
MOV EDX,dword ptr [ESP + 0x1c]
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV ECX,EDX
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [EAX + 0x4]
ADD ESP,0xc
SUB ECX,EAX
PUSH ECX
PUSH EAX
PUSH EDI
CALL 0x00013140
POP EAX
POP EDX
PUSH EBP
MOV EBP,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,EDX
SUB EAX,dword ptr [EBP + 0x4]
MOV dword ptr [ESP + 0x14],EDX
ADD EAX,EDI
PUSH EAX
CALL 0x00013320
POP ECX
POP EAX
MOV EDX,dword ptr [ESP + 0x10]
ADD EDX,0x1
PUSH EDX
PUSH EDI
CALL 0x00013300
POP EAX
PUSH dword ptr [EBP + 0x4]
CALL 0x00013120
MOV EAX,dword ptr [ESI + 0x8]
ADD ESP,0x10
MOV dword ptr [EAX + 0x4],EDI
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x28
PUSH EDI
CALL 0x00013450
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00036692
JMP 0x000366c1
LEA EAX,[EBX + 0xfffe49a4]
PUSH EAX
LEA EAX,[EBX + 0xfffe4154]
PUSH 0x1a3
PUSH EAX
LEA EAX,[EBX + 0xfffe416b]
PUSH EAX
CALL 0x00013850
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_00036630(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}\n\n" comment (function_definition "bool __regparm3 FUN_00036630(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036630(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" { comment (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" identifier (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" ( (string_literal ""info->stack != NULL"" " string_content ") , (string_literal ""../../binutils/prdbg.c"" " string_content ") , number_literal , (string_literal ""substitute_type"" " string_content ") ))) ;) })) (expression_statement "pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);" (assignment_expression "pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_1 + 8) + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 8) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 4)" ( (binary_expression "*(int *)(param_1 + 8) + 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar1 = strchr(pcVar5,0x7c);" (assignment_expression "pcVar1 = strchr(pcVar5,0x7c)" identifier = (call_expression "strchr(pcVar5,0x7c)" identifier (argument_list "(pcVar5,0x7c)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }" { (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(param_2);" (assignment_expression "sVar4 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)xmalloc(sVar3 + sVar4);" (assignment_expression "pcVar5 = (char *)xmalloc(sVar3 + sVar4)" identifier = (cast_expression "(char *)xmalloc(sVar3 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + sVar4)" identifier (argument_list "(sVar3 + sVar4)" ( (binary_expression "sVar3 + sVar4" identifier + identifier) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));" (call_expression "memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4))" identifier (argument_list "(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4))" ( identifier , (pointer_expression "*(void **)(iVar2 + 4)" * (cast_expression "(void **)(iVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) , (binary_expression "(int)pcVar1 - (int)*(void **)(iVar2 + 4)" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)*(void **)(iVar2 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(void **)(iVar2 + 4)" * (cast_expression "(void **)(iVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))))) ))) ;) (expression_statement "strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);" (call_expression "strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2)" identifier (argument_list "(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2)" ( (binary_expression "pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4))" identifier + (parenthesized_expression "((int)pcVar1 - *(int *)(iVar2 + 4))" ( (binary_expression "(int)pcVar1 - *(int *)(iVar2 + 4)" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ))) , identifier ))) ;) (expression_statement "strcat(pcVar5,pcVar1 + 1);" (call_expression "strcat(pcVar5,pcVar1 + 1)" identifier (argument_list "(pcVar5,pcVar1 + 1)" ( identifier , (binary_expression "pcVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "free(*(void **)(iVar2 + 4));" (call_expression "free(*(void **)(iVar2 + 4))" identifier (argument_list "(*(void **)(iVar2 + 4))" ( (pointer_expression "*(void **)(iVar2 + 4)" * (cast_expression "(void **)(iVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "*(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;" (assignment_expression "*(char **)(*(int *)(param_1 + 8) + 4) = pcVar5" (pointer_expression "*(char **)(*(int *)(param_1 + 8) + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 8) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 4)" ( (binary_expression "*(int *)(param_1 + 8) + 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return true;" return true ;) })) (expression_statement "pcVar1 = strchr(param_2,0x7c);" (assignment_expression "pcVar1 = strchr(param_2,0x7c)" identifier = (call_expression "strchr(param_2,0x7c)" identifier (argument_list "(param_2,0x7c)" ( identifier , number_literal )))) ;) (if_statement "if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }" if (parenthesized_expression "(((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0))))" ( (binary_expression "((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))" (parenthesized_expression "((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0))))" ( (binary_expression "(pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))" ( (parenthesized_expression "(pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0))" ( (comma_expression "pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" (assignment_expression "pcVar1 = strchr(pcVar5,0x7b)" identifier = (call_expression "strchr(pcVar5,0x7b)" identifier (argument_list "(pcVar5,0x7b)" ( identifier , number_literal )))) , (binary_expression "pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" ( (comma_expression "pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0" (assignment_expression "pcVar5 = strchr(pcVar5,0x28)" identifier = (call_expression "strchr(pcVar5,0x28)" identifier (argument_list "(pcVar5,0x28)" ( identifier , number_literal )))) , (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )))) )) ))) )) || (parenthesized_expression "((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))" ( (parenthesized_expression "(iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0))" ( (comma_expression "iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)" (assignment_expression "iVar2 = FUN_000364e0()" identifier = (call_expression "FUN_000364e0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)" (binary_expression "iVar2 != 0" identifier != number_literal) && (parenthesized_expression "(iVar2 = FUN_00036580(), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00036580(), iVar2 != 0" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }" { (if_statement "if (*param_2 == '\0') {\n      return true;\n    }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return true;\n    }" { (return_statement "return true;" return true ;) })) (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }" { (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2 != 0;" return (binary_expression "iVar2 != 0" identifier != number_literal) ;) })) })) (return_statement "return false;" return false ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3 substitute_type(pr_handle *info,char *s)\n\n{\n  pr_stack *ppVar1;\n  char *pcVar2;\n  bfd_boolean bVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *pcVar6;\n  \n  if (info->stack == (pr_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar6 = info->stack->type;\n  pcVar2 = strchr(pcVar6,0x7c);\n  if (pcVar2 != (char *)0x0) {\n    sVar4 = strlen(pcVar6);\n    sVar5 = strlen(s);\n    pcVar6 = (char *)xmalloc(sVar4 + sVar5);\n    ppVar1 = info->stack;\n    memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type);\n    strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s);\n    strcat(pcVar6,pcVar2 + 1);\n    free(ppVar1->type);\n    info->stack->type = pcVar6;\n    return 1;\n  }\n  pcVar2 = strchr(s,0x7c);\n  if ((pcVar2 != (char *)0x0) &&\n     ((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)))) {\n    bVar3 = prepend_type((pr_handle *)&info->stack,"(");\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = append_type((pr_handle *)&info->stack,")");\n    if (bVar3 == 0) {\n      return 0;\n    }\n  }\n  if (*s == '\0') {\n    return 1;\n  }\n  bVar3 = append_type((pr_handle *)&info->stack," ");\n  if (bVar3 == 0) {\n    return 0;\n  }\n  bVar3 = append_type((pr_handle *)&info->stack,s);\n  return (uint)(bVar3 != 0);\n}\n\n" comment (function_definition "bfd_boolean __regparm3 substitute_type(pr_handle *info,char *s)\n\n{\n  pr_stack *ppVar1;\n  char *pcVar2;\n  bfd_boolean bVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *pcVar6;\n  \n  if (info->stack == (pr_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar6 = info->stack->type;\n  pcVar2 = strchr(pcVar6,0x7c);\n  if (pcVar2 != (char *)0x0) {\n    sVar4 = strlen(pcVar6);\n    sVar5 = strlen(s);\n    pcVar6 = (char *)xmalloc(sVar4 + sVar5);\n    ppVar1 = info->stack;\n    memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type);\n    strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s);\n    strcat(pcVar6,pcVar2 + 1);\n    free(ppVar1->type);\n    info->stack->type = pcVar6;\n    return 1;\n  }\n  pcVar2 = strchr(s,0x7c);\n  if ((pcVar2 != (char *)0x0) &&\n     ((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)))) {\n    bVar3 = prepend_type((pr_handle *)&info->stack,"(");\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = append_type((pr_handle *)&info->stack,")");\n    if (bVar3 == 0) {\n      return 0;\n    }\n  }\n  if (*s == '\0') {\n    return 1;\n  }\n  bVar3 = append_type((pr_handle *)&info->stack," ");\n  if (bVar3 == 0) {\n    return 0;\n  }\n  bVar3 = append_type((pr_handle *)&info->stack,s);\n  return (uint)(bVar3 != 0);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "substitute_type(pr_handle *info,char *s)" identifier (parameter_list "(pr_handle *info,char *s)" ( (parameter_declaration "pr_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  pr_stack *ppVar1;\n  char *pcVar2;\n  bfd_boolean bVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *pcVar6;\n  \n  if (info->stack == (pr_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar6 = info->stack->type;\n  pcVar2 = strchr(pcVar6,0x7c);\n  if (pcVar2 != (char *)0x0) {\n    sVar4 = strlen(pcVar6);\n    sVar5 = strlen(s);\n    pcVar6 = (char *)xmalloc(sVar4 + sVar5);\n    ppVar1 = info->stack;\n    memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type);\n    strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s);\n    strcat(pcVar6,pcVar2 + 1);\n    free(ppVar1->type);\n    info->stack->type = pcVar6;\n    return 1;\n  }\n  pcVar2 = strchr(s,0x7c);\n  if ((pcVar2 != (char *)0x0) &&\n     ((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)))) {\n    bVar3 = prepend_type((pr_handle *)&info->stack,"(");\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = append_type((pr_handle *)&info->stack,")");\n    if (bVar3 == 0) {\n      return 0;\n    }\n  }\n  if (*s == '\0') {\n    return 1;\n  }\n  bVar3 = append_type((pr_handle *)&info->stack," ");\n  if (bVar3 == 0) {\n    return 0;\n  }\n  bVar3 = append_type((pr_handle *)&info->stack,s);\n  return (uint)(bVar3 != 0);\n}" { (declaration "pr_stack *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (if_statement "if (info->stack == (pr_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" if (parenthesized_expression "(info->stack == (pr_stack *)0x0)" ( (binary_expression "info->stack == (pr_stack *)0x0" (field_expression "info->stack" identifier -> field_identifier) == (cast_expression "(pr_stack *)0x0" ( (type_descriptor "pr_stack *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" { comment (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" identifier (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" ( (string_literal ""info->stack != NULL"" " string_content ") , (string_literal ""../../binutils/prdbg.c"" " string_content ") , number_literal , (string_literal ""substitute_type"" " string_content ") ))) ;) })) (expression_statement "pcVar6 = info->stack->type;" (assignment_expression "pcVar6 = info->stack->type" identifier = (field_expression "info->stack->type" (field_expression "info->stack" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "pcVar2 = strchr(pcVar6,0x7c);" (assignment_expression "pcVar2 = strchr(pcVar6,0x7c)" identifier = (call_expression "strchr(pcVar6,0x7c)" identifier (argument_list "(pcVar6,0x7c)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    sVar4 = strlen(pcVar6);\n    sVar5 = strlen(s);\n    pcVar6 = (char *)xmalloc(sVar4 + sVar5);\n    ppVar1 = info->stack;\n    memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type);\n    strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s);\n    strcat(pcVar6,pcVar2 + 1);\n    free(ppVar1->type);\n    info->stack->type = pcVar6;\n    return 1;\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(pcVar6);\n    sVar5 = strlen(s);\n    pcVar6 = (char *)xmalloc(sVar4 + sVar5);\n    ppVar1 = info->stack;\n    memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type);\n    strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s);\n    strcat(pcVar6,pcVar2 + 1);\n    free(ppVar1->type);\n    info->stack->type = pcVar6;\n    return 1;\n  }" { (expression_statement "sVar4 = strlen(pcVar6);" (assignment_expression "sVar4 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "sVar5 = strlen(s);" (assignment_expression "sVar5 = strlen(s)" identifier = (call_expression "strlen(s)" identifier (argument_list "(s)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)xmalloc(sVar4 + sVar5);" (assignment_expression "pcVar6 = (char *)xmalloc(sVar4 + sVar5)" identifier = (cast_expression "(char *)xmalloc(sVar4 + sVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar4 + sVar5)" identifier (argument_list "(sVar4 + sVar5)" ( (binary_expression "sVar4 + sVar5" identifier + identifier) ))))) ;) (expression_statement "ppVar1 = info->stack;" (assignment_expression "ppVar1 = info->stack" identifier = (field_expression "info->stack" identifier -> field_identifier)) ;) (expression_statement "memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type);" (call_expression "memcpy(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type)" identifier (argument_list "(pcVar6,ppVar1->type,(int)pcVar2 - (int)ppVar1->type)" ( identifier , (field_expression "ppVar1->type" identifier -> field_identifier) , (binary_expression "(int)pcVar2 - (int)ppVar1->type" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)ppVar1->type" ( (type_descriptor "int" primitive_type) ) (field_expression "ppVar1->type" identifier -> field_identifier))) ))) ;) (expression_statement "strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s);" (call_expression "strcpy(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s)" identifier (argument_list "(pcVar6 + ((int)pcVar2 - (int)ppVar1->type),s)" ( (binary_expression "pcVar6 + ((int)pcVar2 - (int)ppVar1->type)" identifier + (parenthesized_expression "((int)pcVar2 - (int)ppVar1->type)" ( (binary_expression "(int)pcVar2 - (int)ppVar1->type" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)ppVar1->type" ( (type_descriptor "int" primitive_type) ) (field_expression "ppVar1->type" identifier -> field_identifier))) ))) , identifier ))) ;) (expression_statement "strcat(pcVar6,pcVar2 + 1);" (call_expression "strcat(pcVar6,pcVar2 + 1)" identifier (argument_list "(pcVar6,pcVar2 + 1)" ( identifier , (binary_expression "pcVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "free(ppVar1->type);" (call_expression "free(ppVar1->type)" identifier (argument_list "(ppVar1->type)" ( (field_expression "ppVar1->type" identifier -> field_identifier) ))) ;) (expression_statement "info->stack->type = pcVar6;" (assignment_expression "info->stack->type = pcVar6" (field_expression "info->stack->type" (field_expression "info->stack" identifier -> field_identifier) -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "pcVar2 = strchr(s,0x7c);" (assignment_expression "pcVar2 = strchr(s,0x7c)" identifier = (call_expression "strchr(s,0x7c)" identifier (argument_list "(s,0x7c)" ( identifier , number_literal )))) ;) (if_statement "if ((pcVar2 != (char *)0x0) &&\n     ((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)))) {\n    bVar3 = prepend_type((pr_handle *)&info->stack,"(");\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = append_type((pr_handle *)&info->stack,")");\n    if (bVar3 == 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((pcVar2 != (char *)0x0) &&\n     ((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0))))" ( (binary_expression "(pcVar2 != (char *)0x0) &&\n     ((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)))" (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)))" ( (parenthesized_expression "(pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0))" ( (comma_expression "pcVar2 = strchr(pcVar6,0x7b), pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)" (assignment_expression "pcVar2 = strchr(pcVar6,0x7b)" identifier = (call_expression "strchr(pcVar6,0x7b)" identifier (argument_list "(pcVar6,0x7b)" ( identifier , number_literal )))) , (binary_expression "pcVar2 != (char *)0x0 ||\n      (pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)" (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "(pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0)" ( (comma_expression "pcVar6 = strchr(pcVar6,0x28), pcVar6 != (char *)0x0" (assignment_expression "pcVar6 = strchr(pcVar6,0x28)" identifier = (call_expression "strchr(pcVar6,0x28)" identifier (argument_list "(pcVar6,0x28)" ( identifier , number_literal )))) , (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )))) )) ))) )) (compound_statement "{\n    bVar3 = prepend_type((pr_handle *)&info->stack,"(");\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = append_type((pr_handle *)&info->stack,")");\n    if (bVar3 == 0) {\n      return 0;\n    }\n  }" { (expression_statement "bVar3 = prepend_type((pr_handle *)&info->stack,"(");" (assignment_expression "bVar3 = prepend_type((pr_handle *)&info->stack,"(")" identifier = (call_expression "prepend_type((pr_handle *)&info->stack,"(")" identifier (argument_list "((pr_handle *)&info->stack,"(")" ( (cast_expression "(pr_handle *)&info->stack" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&info->stack" & (field_expression "info->stack" identifier -> field_identifier))) , (string_literal ""("" " string_content ") )))) ;) (if_statement "if (bVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar3 = append_type((pr_handle *)&info->stack,")");" (assignment_expression "bVar3 = append_type((pr_handle *)&info->stack,")")" identifier = (call_expression "append_type((pr_handle *)&info->stack,")")" identifier (argument_list "((pr_handle *)&info->stack,")")" ( (cast_expression "(pr_handle *)&info->stack" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&info->stack" & (field_expression "info->stack" identifier -> field_identifier))) , (string_literal "")"" " string_content ") )))) ;) (if_statement "if (bVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (*s == '\0') {\n    return 1;\n  }" if (parenthesized_expression "(*s == '\0')" ( (binary_expression "*s == '\0'" (pointer_expression "*s" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "bVar3 = append_type((pr_handle *)&info->stack," ");" (assignment_expression "bVar3 = append_type((pr_handle *)&info->stack," ")" identifier = (call_expression "append_type((pr_handle *)&info->stack," ")" identifier (argument_list "((pr_handle *)&info->stack," ")" ( (cast_expression "(pr_handle *)&info->stack" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&info->stack" & (field_expression "info->stack" identifier -> field_identifier))) , (string_literal "" "" " string_content ") )))) ;) (if_statement "if (bVar3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar3 = append_type((pr_handle *)&info->stack,s);" (assignment_expression "bVar3 = append_type((pr_handle *)&info->stack,s)" identifier = (call_expression "append_type((pr_handle *)&info->stack,s)" identifier (argument_list "((pr_handle *)&info->stack,s)" ( (cast_expression "(pr_handle *)&info->stack" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&info->stack" & (field_expression "info->stack" identifier -> field_identifier))) , identifier )))) ;) (return_statement "return (uint)(bVar3 != 0);" return (call_expression "(uint)(bVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) ))) ;) })))
(translation_unit "bool __regparm3 FUN_00036630(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}\n\n" (function_definition "bool __regparm3 FUN_00036630(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036630(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" { (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" identifier (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" ( (string_literal ""info->stack != NULL"" " string_content ") , (string_literal ""../../binutils/prdbg.c"" " string_content ") , number_literal , (string_literal ""substitute_type"" " string_content ") ))) ;) })) (expression_statement "pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);" (assignment_expression "pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_1 + 8) + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 8) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 4)" ( (binary_expression "*(int *)(param_1 + 8) + 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar1 = strchr(pcVar5,0x7c);" (assignment_expression "pcVar1 = strchr(pcVar5,0x7c)" identifier = (call_expression "strchr(pcVar5,0x7c)" identifier (argument_list "(pcVar5,0x7c)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }" { (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(param_2);" (assignment_expression "sVar4 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)xmalloc(sVar3 + sVar4);" (assignment_expression "pcVar5 = (char *)xmalloc(sVar3 + sVar4)" identifier = (cast_expression "(char *)xmalloc(sVar3 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + sVar4)" identifier (argument_list "(sVar3 + sVar4)" ( (binary_expression "sVar3 + sVar4" identifier + identifier) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));" (call_expression "memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4))" identifier (argument_list "(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4))" ( identifier , (pointer_expression "*(void **)(iVar2 + 4)" * (cast_expression "(void **)(iVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) , (binary_expression "(int)pcVar1 - (int)*(void **)(iVar2 + 4)" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)*(void **)(iVar2 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(void **)(iVar2 + 4)" * (cast_expression "(void **)(iVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))))) ))) ;) (expression_statement "strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);" (call_expression "strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2)" identifier (argument_list "(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2)" ( (binary_expression "pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4))" identifier + (parenthesized_expression "((int)pcVar1 - *(int *)(iVar2 + 4))" ( (binary_expression "(int)pcVar1 - *(int *)(iVar2 + 4)" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ))) , identifier ))) ;) (expression_statement "strcat(pcVar5,pcVar1 + 1);" (call_expression "strcat(pcVar5,pcVar1 + 1)" identifier (argument_list "(pcVar5,pcVar1 + 1)" ( identifier , (binary_expression "pcVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "free(*(void **)(iVar2 + 4));" (call_expression "free(*(void **)(iVar2 + 4))" identifier (argument_list "(*(void **)(iVar2 + 4))" ( (pointer_expression "*(void **)(iVar2 + 4)" * (cast_expression "(void **)(iVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "*(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;" (assignment_expression "*(char **)(*(int *)(param_1 + 8) + 4) = pcVar5" (pointer_expression "*(char **)(*(int *)(param_1 + 8) + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 8) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 4)" ( (binary_expression "*(int *)(param_1 + 8) + 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return true;" return true ;) })) (expression_statement "pcVar1 = strchr(param_2,0x7c);" (assignment_expression "pcVar1 = strchr(param_2,0x7c)" identifier = (call_expression "strchr(param_2,0x7c)" identifier (argument_list "(param_2,0x7c)" ( identifier , number_literal )))) ;) (if_statement "if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }" if (parenthesized_expression "(((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0))))" ( (binary_expression "((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))" (parenthesized_expression "((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0))))" ( (binary_expression "(pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))" ( (parenthesized_expression "(pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0))" ( (comma_expression "pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" (assignment_expression "pcVar1 = strchr(pcVar5,0x7b)" identifier = (call_expression "strchr(pcVar5,0x7b)" identifier (argument_list "(pcVar5,0x7b)" ( identifier , number_literal )))) , (binary_expression "pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" ( (comma_expression "pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0" (assignment_expression "pcVar5 = strchr(pcVar5,0x28)" identifier = (call_expression "strchr(pcVar5,0x28)" identifier (argument_list "(pcVar5,0x28)" ( identifier , number_literal )))) , (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )))) )) ))) )) || (parenthesized_expression "((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))" ( (parenthesized_expression "(iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0))" ( (comma_expression "iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)" (assignment_expression "iVar2 = FUN_000364e0()" identifier = (call_expression "FUN_000364e0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)" (binary_expression "iVar2 != 0" identifier != number_literal) && (parenthesized_expression "(iVar2 = FUN_00036580(), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00036580(), iVar2 != 0" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }" { (if_statement "if (*param_2 == '\0') {\n      return true;\n    }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return true;\n    }" { (return_statement "return true;" return true ;) })) (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }" { (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2 != 0;" return (binary_expression "iVar2 != 0" identifier != number_literal) ;) })) })) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )))) )) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) )))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return (binary_expression IDENT != LIT) ;) })) })) (return_statement return BOOL ;) })))
(function_definition "bool __regparm3 FUN_00036630(int param_1,char *param_2)\n\n{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00036630(int param_1,char *param_2)" (identifier "FUN_00036630") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }\n  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);\n  pcVar1 = strchr(pcVar5,0x7c);\n  if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }\n  pcVar1 = strchr(param_2,0x7c);\n  if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }\n  return false;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");\n  }" ({ "{") (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" (identifier "__assert_fail") (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type")" (( "(") (string_literal ""info->stack != NULL"" (" """) (string_content "info->stack != NULL") (" """)) (, ",") (string_literal ""../../binutils/prdbg.c"" (" """) (string_content "../../binutils/prdbg.c") (" """)) (, ",") (number_literal "0x1a3") (, ",") (string_literal ""substitute_type"" (" """) (string_content "substitute_type") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);" (assignment_expression "pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4)" (identifier "pcVar5") (= "=") (pointer_expression "*(char **)(*(int *)(param_1 + 8) + 4)" (* "*") (cast_expression "(char **)(*(int *)(param_1 + 8) + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 4" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pcVar1 = strchr(pcVar5,0x7c);" (assignment_expression "pcVar1 = strchr(pcVar5,0x7c)" (identifier "pcVar1") (= "=") (call_expression "strchr(pcVar5,0x7c)" (identifier "strchr") (argument_list "(pcVar5,0x7c)" (( "(") (identifier "pcVar5") (, ",") (number_literal "0x7c") () ")")))) (; ";")) (if_statement "if (pcVar1 != (char *)0x0) {\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }" (if "if") (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar3 = strlen(pcVar5);\n    sVar4 = strlen(param_2);\n    pcVar5 = (char *)xmalloc(sVar3 + sVar4);\n    iVar2 = *(int *)(param_1 + 8);\n    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));\n    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);\n    strcat(pcVar5,pcVar1 + 1);\n    free(*(void **)(iVar2 + 4));\n    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;\n    return true;\n  }" ({ "{") (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar5)" (identifier "strlen") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "sVar4 = strlen(param_2);" (assignment_expression "sVar4 = strlen(param_2)" (identifier "sVar4") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pcVar5 = (char *)xmalloc(sVar3 + sVar4);" (assignment_expression "pcVar5 = (char *)xmalloc(sVar3 + sVar4)" (identifier "pcVar5") (= "=") (cast_expression "(char *)xmalloc(sVar3 + sVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + sVar4)" (identifier "xmalloc") (argument_list "(sVar3 + sVar4)" (( "(") (binary_expression "sVar3 + sVar4" (identifier "sVar3") (+ "+") (identifier "sVar4")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));" (call_expression "memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4))" (identifier "memcpy") (argument_list "(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4))" (( "(") (identifier "pcVar5") (, ",") (pointer_expression "*(void **)(iVar2 + 4)" (* "*") (cast_expression "(void **)(iVar2 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (, ",") (binary_expression "(int)pcVar1 - (int)*(void **)(iVar2 + 4)" (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1")) (- "-") (cast_expression "(int)*(void **)(iVar2 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(void **)(iVar2 + 4)" (* "*") (cast_expression "(void **)(iVar2 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))))) () ")"))) (; ";")) (expression_statement "strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);" (call_expression "strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2)" (identifier "strcpy") (argument_list "(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2)" (( "(") (binary_expression "pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4))" (identifier "pcVar5") (+ "+") (parenthesized_expression "((int)pcVar1 - *(int *)(iVar2 + 4))" (( "(") (binary_expression "(int)pcVar1 - *(int *)(iVar2 + 4)" (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1")) (- "-") (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) () ")"))) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "strcat(pcVar5,pcVar1 + 1);" (call_expression "strcat(pcVar5,pcVar1 + 1)" (identifier "strcat") (argument_list "(pcVar5,pcVar1 + 1)" (( "(") (identifier "pcVar5") (, ",") (binary_expression "pcVar1 + 1" (identifier "pcVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "free(*(void **)(iVar2 + 4));" (call_expression "free(*(void **)(iVar2 + 4))" (identifier "free") (argument_list "(*(void **)(iVar2 + 4))" (( "(") (pointer_expression "*(void **)(iVar2 + 4)" (* "*") (cast_expression "(void **)(iVar2 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "*(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;" (assignment_expression "*(char **)(*(int *)(param_1 + 8) + 4) = pcVar5" (pointer_expression "*(char **)(*(int *)(param_1 + 8) + 4)" (* "*") (cast_expression "(char **)(*(int *)(param_1 + 8) + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 4" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "pcVar5")) (; ";")) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (expression_statement "pcVar1 = strchr(param_2,0x7c);" (assignment_expression "pcVar1 = strchr(param_2,0x7c)" (identifier "pcVar1") (= "=") (call_expression "strchr(param_2,0x7c)" (identifier "strchr") (argument_list "(param_2,0x7c)" (( "(") (identifier "param_2") (, ",") (number_literal "0x7c") () ")")))) (; ";")) (if_statement "if (((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }" (if "if") (parenthesized_expression "(((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0))))" (( "(") (binary_expression "((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||\n     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))" (parenthesized_expression "((pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0))))" (( "(") (binary_expression "(pcVar1 == (char *)0x0) ||\n      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))" (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))" (( "(") (parenthesized_expression "(pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0))" (( "(") (comma_expression "pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" (assignment_expression "pcVar1 = strchr(pcVar5,0x7b)" (identifier "pcVar1") (= "=") (call_expression "strchr(pcVar5,0x7b)" (identifier "strchr") (argument_list "(pcVar5,0x7b)" (( "(") (identifier "pcVar5") (, ",") (number_literal "0x7b") () ")")))) (, ",") (binary_expression "pcVar1 == (char *)0x0 &&\n       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (parenthesized_expression "(pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)" (( "(") (comma_expression "pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0" (assignment_expression "pcVar5 = strchr(pcVar5,0x28)" (identifier "pcVar5") (= "=") (call_expression "strchr(pcVar5,0x28)" (identifier "strchr") (argument_list "(pcVar5,0x28)" (( "(") (identifier "pcVar5") (, ",") (number_literal "0x28") () ")")))) (, ",") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")))) () ")")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))" (( "(") (parenthesized_expression "(iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0))" (( "(") (comma_expression "iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)" (assignment_expression "iVar2 = FUN_000364e0()" (identifier "iVar2") (= "=") (call_expression "FUN_000364e0()" (identifier "FUN_000364e0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)" (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_00036580(), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_00036580(), iVar2 != 0" (assignment_expression "iVar2 = FUN_00036580()" (identifier "iVar2") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    if (*param_2 == '\0') {\n      return true;\n    }\n    iVar2 = FUN_00036580();\n    if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }\n  }" ({ "{") (if_statement "if (*param_2 == '\0') {\n      return true;\n    }" (if "if") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return true;\n    }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" (identifier "iVar2") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = FUN_00036580();\n      return iVar2 != 0;\n    }" ({ "{") (expression_statement "iVar2 = FUN_00036580();" (assignment_expression "iVar2 = FUN_00036580()" (identifier "iVar2") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar2 != 0;" (return "return") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *info,char *s)

{
  type_3 *ppVar1;
  char *var_3;
  type_1 var_14;
  size_t var_6;
  size_t var_7;
  char *var_10;
  
  if (info->stack == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");
  }
  var_10 = info->stack->type;
  var_3 = var_2(var_10,0x7c);
  if (var_3 != (char *)0x0) {
    var_6 = var_4(var_10);
    var_7 = var_4(s);
    var_10 = (char *)var_5(var_6 + var_7);
    ppVar1 = info->stack;
    var_8(var_10,ppVar1->type,(int)var_3 - (int)ppVar1->type);
    var_9(var_10 + ((int)var_3 - (int)ppVar1->type),s);
    var_11(var_10,var_3 + 1);
    var_12(ppVar1->type);
    info->stack->type = var_10;
    return 1;
  }
  var_3 = var_2(s,0x7c);
  if ((var_3 != (char *)0x0) &&
     ((var_3 = var_2(var_10,0x7b), var_3 != (char *)0x0 ||
      (var_10 = var_2(var_10,0x28), var_10 != (char *)0x0)))) {
    var_14 = var_13((type_2 *)&info->stack,"(");
    if (var_14 == 0) {
      return 0;
    }
    var_14 = var_15((type_2 *)&info->stack,")");
    if (var_14 == 0) {
      return 0;
    }
  }
  if (*s == '\0') {
    return 1;
  }
  var_14 = var_15((type_2 *)&info->stack," ");
  if (var_14 == 0) {
    return 0;
  }
  var_14 = var_15((type_2 *)&info->stack,s);
  return (uint)(var_14 != 0);
}


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

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

bool __regparm3 MASKED(int param_1,char *param_2)

{
  char *pcVar1;
  int iVar2;
  size_t sVar3;
  size_t sVar4;
  char *pcVar5;
  
  if (*(int *)(param_1 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x1a3,"substitute_type");
  }
  pcVar5 = *(char **)(*(int *)(param_1 + 8) + 4);
  pcVar1 = strchr(pcVar5,0x7c);
  if (pcVar1 != (char *)0x0) {
    sVar3 = strlen(pcVar5);
    sVar4 = strlen(param_2);
    pcVar5 = (char *)xmalloc(sVar3 + sVar4);
    iVar2 = *(int *)(param_1 + 8);
    memcpy(pcVar5,*(void **)(iVar2 + 4),(int)pcVar1 - (int)*(void **)(iVar2 + 4));
    strcpy(pcVar5 + ((int)pcVar1 - *(int *)(iVar2 + 4)),param_2);
    strcat(pcVar5,pcVar1 + 1);
    free(*(void **)(iVar2 + 4));
    *(char **)(*(int *)(param_1 + 8) + 4) = pcVar5;
    return true;
  }
  pcVar1 = strchr(param_2,0x7c);
  if (((pcVar1 == (char *)0x0) ||
      ((pcVar1 = strchr(pcVar5,0x7b), pcVar1 == (char *)0x0 &&
       (pcVar5 = strchr(pcVar5,0x28), pcVar5 == (char *)0x0)))) ||
     ((iVar2 = FUN_000364e0(), iVar2 != 0 && (iVar2 = FUN_00036580(), iVar2 != 0)))) {
    if (*param_2 == '\0') {
      return true;
    }
    iVar2 = FUN_00036580();
    if (iVar2 != 0) {
      iVar2 = FUN_00036580();
      return iVar2 != 0;
    }
  }
  return false;
}

