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

bfd_boolean __regparm3 stab_demangle_class(stab_demangle_info *minfo,char **pp,char **pstart)

{
  byte *s;
  undefined *puVar1;
  size_t sVar2;
  uint uVar3;
  byte *pbVar4;
  uint uVar5;
  
  puVar1 = PTR__sch_istable_00072fc4;
  s = (byte *)minfo->dhandle;
  uVar3 = (uint)*s;
  pbVar4 = s;
  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {
    uVar5 = 0;
  }
  else {
    uVar5 = 0;
    do {
      pbVar4 = pbVar4 + 1;
      minfo->dhandle = pbVar4;
      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;
      uVar3 = (uint)*pbVar4;
    } while ((puVar1[uVar3 * 2] & 4) != 0);
    sVar2 = strlen((char *)pbVar4);
    if (sVar2 < uVar5) {
      stab_bad_demangle((char *)s);
      return 0;
    }
  }
  if (pp != (char **)0x0) {
    *pp = (char *)pbVar4;
  }
  minfo->dhandle = (void *)((int)minfo->dhandle + uVar5);
  return 1;
}



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

undefined4 __regparm3 FUN_0003f960(int *param_1,int *param_2)

{
  undefined *puVar1;
  size_t sVar2;
  uint uVar3;
  byte *__s;
  uint uVar4;
  
  puVar1 = PTR__sch_istable_00072fc4;
  __s = (byte *)*param_1;
  uVar3 = (uint)*__s;
  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {
    uVar4 = 0;
  }
  else {
    uVar4 = 0;
    do {
      __s = __s + 1;
      *param_1 = (int)__s;
      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;
      uVar3 = (uint)*__s;
    } while ((puVar1[uVar3 * 2] & 4) != 0);
    sVar2 = strlen((char *)__s);
    if (sVar2 < uVar4) {
      FUN_0003ef70();
      return 0;
    }
  }
  if (param_2 != (int *)0x0) {
    *param_2 = (int)__s;
  }
  *param_1 = *param_1 + uVar4;
  return 1;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x33695
SUB ESP,0x1c
MOV ESI,dword ptr [EAX]
MOV dword ptr [ESP + 0x8],EDX
MOVZX EDX,byte ptr [ESI]
MOV dword ptr [ESP + 0xc],ESI
MOV dword ptr [ESP + 0x4],EBX
MOV EBX,dword ptr [EBX + 0xffffffc4]
TEST byte ptr [EBX + EDX*0x2],0x4
JZ 0x0003fa08
MOV EAX,EDX
LEA EDX,[ESI + 0x1]
XOR ESI,ESI
LEA ESI,[ESI]
NOP
LEA ECX,[ESI + ESI*0x4]
MOVSX EAX,AL
MOV dword ptr [EDI],EDX
MOV EBP,EDX
LEA ESI,[EAX + ECX*0x2 + -0x30]
MOVZX ECX,byte ptr [EDX]
ADD EDX,0x1
MOV EAX,ECX
TEST byte ptr [EBX + ECX*0x2],0x4
JNZ 0x0003f9a0
SUB ESP,0xc
PUSH EBP
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x00014480
ADD ESP,0x10
CMP ESI,EAX
JA 0x0003f9f0
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0003f9da
MOV dword ptr [EAX],EBP
ADD dword ptr [EDI],ESI
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x0003ef70
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0xc]
XOR ESI,ESI
JMP 0x0003f9d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0003f960(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0003f960(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f960(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR__sch_istable_00072fc4;" (assignment_expression "puVar1 = PTR__sch_istable_00072fc4" identifier = identifier) ;) (expression_statement "__s = (byte *)*param_1;" (assignment_expression "__s = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar3 = (uint)*__s;" (assignment_expression "uVar3 = (uint)*__s" identifier = (binary_expression "(uint)*__s" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" if (parenthesized_expression "((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0)" ( (binary_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0" (parenthesized_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4)" ( (binary_expression "PTR__sch_istable_00072fc4[uVar3 * 2] & 4" (subscript_expression "PTR__sch_istable_00072fc4[uVar3 * 2]" identifier [ (binary_expression "uVar3 * 2" identifier * number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" else (compound_statement "{\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);" do (compound_statement "{\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    }" { (expression_statement "__s = __s + 1;" (assignment_expression "__s = __s + 1" identifier = (binary_expression "__s + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (int)__s;" (assignment_expression "*param_1 = (int)__s" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;" (assignment_expression "uVar4 = (char)uVar3 + -0x30 + uVar4 * 10" identifier = (binary_expression "(char)uVar3 + -0x30 + uVar4 * 10" (binary_expression "(char)uVar3 + -0x30" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) + number_literal) + (binary_expression "uVar4 * 10" identifier * number_literal))) ;) (expression_statement "uVar3 = (uint)*__s;" (assignment_expression "uVar3 = (uint)*__s" identifier = (binary_expression "(uint)*__s" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "((puVar1[uVar3 * 2] & 4) != 0)" ( (binary_expression "(puVar1[uVar3 * 2] & 4) != 0" (parenthesized_expression "(puVar1[uVar3 * 2] & 4)" ( (binary_expression "puVar1[uVar3 * 2] & 4" (subscript_expression "puVar1[uVar3 * 2]" identifier [ (binary_expression "uVar3 * 2" identifier * number_literal) ]) & number_literal) )) != number_literal) )) ;) (expression_statement "sVar2 = strlen((char *)__s);" (assignment_expression "sVar2 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }" if (parenthesized_expression "(sVar2 < uVar4)" ( (binary_expression "sVar2 < uVar4" identifier < identifier) )) (compound_statement "{\n      FUN_0003ef70();\n      return 0;\n    }" { (expression_statement "FUN_0003ef70();" (call_expression "FUN_0003ef70()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_2 = (int)__s;\n  }" { (expression_statement "*param_2 = (int)__s;" (assignment_expression "*param_2 = (int)__s" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (expression_statement "*param_1 = *param_1 + uVar4;" (assignment_expression "*param_1 = *param_1 + uVar4" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + uVar4" (pointer_expression "*param_1" * identifier) + identifier)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3 stab_demangle_class(stab_demangle_info *minfo,char **pp,char **pstart)\n\n{\n  byte *s;\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *pbVar4;\n  uint uVar5;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  s = (byte *)minfo->dhandle;\n  uVar3 = (uint)*s;\n  pbVar4 = s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar5 = 0;\n  }\n  else {\n    uVar5 = 0;\n    do {\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)pbVar4);\n    if (sVar2 < uVar5) {\n      stab_bad_demangle((char *)s);\n      return 0;\n    }\n  }\n  if (pp != (char **)0x0) {\n    *pp = (char *)pbVar4;\n  }\n  minfo->dhandle = (void *)((int)minfo->dhandle + uVar5);\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean __regparm3 stab_demangle_class(stab_demangle_info *minfo,char **pp,char **pstart)\n\n{\n  byte *s;\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *pbVar4;\n  uint uVar5;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  s = (byte *)minfo->dhandle;\n  uVar3 = (uint)*s;\n  pbVar4 = s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar5 = 0;\n  }\n  else {\n    uVar5 = 0;\n    do {\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)pbVar4);\n    if (sVar2 < uVar5) {\n      stab_bad_demangle((char *)s);\n      return 0;\n    }\n  }\n  if (pp != (char **)0x0) {\n    *pp = (char *)pbVar4;\n  }\n  minfo->dhandle = (void *)((int)minfo->dhandle + uVar5);\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "stab_demangle_class(stab_demangle_info *minfo,char **pp,char **pstart)" identifier (parameter_list "(stab_demangle_info *minfo,char **pp,char **pstart)" ( (parameter_declaration "stab_demangle_info *minfo" type_identifier (pointer_declarator "*minfo" * identifier)) , (parameter_declaration "char **pp" primitive_type (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) , (parameter_declaration "char **pstart" primitive_type (pointer_declarator "**pstart" * (pointer_declarator "*pstart" * identifier))) ))) (compound_statement "{\n  byte *s;\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *pbVar4;\n  uint uVar5;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  s = (byte *)minfo->dhandle;\n  uVar3 = (uint)*s;\n  pbVar4 = s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar5 = 0;\n  }\n  else {\n    uVar5 = 0;\n    do {\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)pbVar4);\n    if (sVar2 < uVar5) {\n      stab_bad_demangle((char *)s);\n      return 0;\n    }\n  }\n  if (pp != (char **)0x0) {\n    *pp = (char *)pbVar4;\n  }\n  minfo->dhandle = (void *)((int)minfo->dhandle + uVar5);\n  return 1;\n}" { (declaration "byte *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "puVar1 = PTR__sch_istable_00072fc4;" (assignment_expression "puVar1 = PTR__sch_istable_00072fc4" identifier = identifier) ;) (expression_statement "s = (byte *)minfo->dhandle;" (assignment_expression "s = (byte *)minfo->dhandle" identifier = (cast_expression "(byte *)minfo->dhandle" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "minfo->dhandle" identifier -> field_identifier))) ;) (expression_statement "uVar3 = (uint)*s;" (assignment_expression "uVar3 = (uint)*s" identifier = (binary_expression "(uint)*s" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar4 = s;" (assignment_expression "pbVar4 = s" identifier = identifier) ;) (if_statement "if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar5 = 0;\n  }\n  else {\n    uVar5 = 0;\n    do {\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)pbVar4);\n    if (sVar2 < uVar5) {\n      stab_bad_demangle((char *)s);\n      return 0;\n    }\n  }" if (parenthesized_expression "((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0)" ( (binary_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0" (parenthesized_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4)" ( (binary_expression "PTR__sch_istable_00072fc4[uVar3 * 2] & 4" (subscript_expression "PTR__sch_istable_00072fc4[uVar3 * 2]" identifier [ (binary_expression "uVar3 * 2" identifier * number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar5 = 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar5 = 0;\n    do {\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)pbVar4);\n    if (sVar2 < uVar5) {\n      stab_bad_demangle((char *)s);\n      return 0;\n    }\n  }" else (compound_statement "{\n    uVar5 = 0;\n    do {\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)pbVar4);\n    if (sVar2 < uVar5) {\n      stab_bad_demangle((char *)s);\n      return 0;\n    }\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);" do (compound_statement "{\n      pbVar4 = pbVar4 + 1;\n      minfo->dhandle = pbVar4;\n      uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;\n      uVar3 = (uint)*pbVar4;\n    }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "minfo->dhandle = pbVar4;" (assignment_expression "minfo->dhandle = pbVar4" (field_expression "minfo->dhandle" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar5 = (char)uVar3 + -0x30 + uVar5 * 10;" (assignment_expression "uVar5 = (char)uVar3 + -0x30 + uVar5 * 10" identifier = (binary_expression "(char)uVar3 + -0x30 + uVar5 * 10" (binary_expression "(char)uVar3 + -0x30" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) + number_literal) + (binary_expression "uVar5 * 10" identifier * number_literal))) ;) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "((puVar1[uVar3 * 2] & 4) != 0)" ( (binary_expression "(puVar1[uVar3 * 2] & 4) != 0" (parenthesized_expression "(puVar1[uVar3 * 2] & 4)" ( (binary_expression "puVar1[uVar3 * 2] & 4" (subscript_expression "puVar1[uVar3 * 2]" identifier [ (binary_expression "uVar3 * 2" identifier * number_literal) ]) & number_literal) )) != number_literal) )) ;) (expression_statement "sVar2 = strlen((char *)pbVar4);" (assignment_expression "sVar2 = strlen((char *)pbVar4)" identifier = (call_expression "strlen((char *)pbVar4)" identifier (argument_list "((char *)pbVar4)" ( (cast_expression "(char *)pbVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (sVar2 < uVar5) {\n      stab_bad_demangle((char *)s);\n      return 0;\n    }" if (parenthesized_expression "(sVar2 < uVar5)" ( (binary_expression "sVar2 < uVar5" identifier < identifier) )) (compound_statement "{\n      stab_bad_demangle((char *)s);\n      return 0;\n    }" { (expression_statement "stab_bad_demangle((char *)s);" (call_expression "stab_bad_demangle((char *)s)" identifier (argument_list "((char *)s)" ( (cast_expression "(char *)s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (pp != (char **)0x0) {\n    *pp = (char *)pbVar4;\n  }" if (parenthesized_expression "(pp != (char **)0x0)" ( (binary_expression "pp != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    *pp = (char *)pbVar4;\n  }" { (expression_statement "*pp = (char *)pbVar4;" (assignment_expression "*pp = (char *)pbVar4" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)pbVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "minfo->dhandle = (void *)((int)minfo->dhandle + uVar5);" (assignment_expression "minfo->dhandle = (void *)((int)minfo->dhandle + uVar5)" (field_expression "minfo->dhandle" identifier -> field_identifier) = (cast_expression "(void *)((int)minfo->dhandle + uVar5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)minfo->dhandle + uVar5)" ( (binary_expression "(int)minfo->dhandle + uVar5" (cast_expression "(int)minfo->dhandle" ( (type_descriptor "int" primitive_type) ) (field_expression "minfo->dhandle" identifier -> field_identifier)) + identifier) )))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0003f960(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0003f960(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f960(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR__sch_istable_00072fc4;" (assignment_expression "puVar1 = PTR__sch_istable_00072fc4" identifier = identifier) ;) (expression_statement "__s = (byte *)*param_1;" (assignment_expression "__s = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar3 = (uint)*__s;" (assignment_expression "uVar3 = (uint)*__s" identifier = (binary_expression "(uint)*__s" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" if (parenthesized_expression "((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0)" ( (binary_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0" (parenthesized_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4)" ( (binary_expression "PTR__sch_istable_00072fc4[uVar3 * 2] & 4" (subscript_expression "PTR__sch_istable_00072fc4[uVar3 * 2]" identifier [ (binary_expression "uVar3 * 2" identifier * number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" else (compound_statement "{\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);" do (compound_statement "{\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    }" { (expression_statement "__s = __s + 1;" (assignment_expression "__s = __s + 1" identifier = (binary_expression "__s + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (int)__s;" (assignment_expression "*param_1 = (int)__s" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;" (assignment_expression "uVar4 = (char)uVar3 + -0x30 + uVar4 * 10" identifier = (binary_expression "(char)uVar3 + -0x30 + uVar4 * 10" (binary_expression "(char)uVar3 + -0x30" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) + number_literal) + (binary_expression "uVar4 * 10" identifier * number_literal))) ;) (expression_statement "uVar3 = (uint)*__s;" (assignment_expression "uVar3 = (uint)*__s" identifier = (binary_expression "(uint)*__s" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "((puVar1[uVar3 * 2] & 4) != 0)" ( (binary_expression "(puVar1[uVar3 * 2] & 4) != 0" (parenthesized_expression "(puVar1[uVar3 * 2] & 4)" ( (binary_expression "puVar1[uVar3 * 2] & 4" (subscript_expression "puVar1[uVar3 * 2]" identifier [ (binary_expression "uVar3 * 2" identifier * number_literal) ]) & number_literal) )) != number_literal) )) ;) (expression_statement "sVar2 = strlen((char *)__s);" (assignment_expression "sVar2 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }" if (parenthesized_expression "(sVar2 < uVar4)" ( (binary_expression "sVar2 < uVar4" identifier < identifier) )) (compound_statement "{\n      FUN_0003ef70();\n      return 0;\n    }" { (expression_statement "FUN_0003ef70();" (call_expression "FUN_0003ef70()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_2 = (int)__s;\n  }" { (expression_statement "*param_2 = (int)__s;" (assignment_expression "*param_2 = (int)__s" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (expression_statement "*param_1 = *param_1 + uVar4;" (assignment_expression "*param_1 = *param_1 + uVar4" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + uVar4" (pointer_expression "*param_1" * identifier) + identifier)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) & LIT) )) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0003f960(int *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003f960(int *param_1,int *param_2)" (identifier "FUN_0003f960") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  size_t sVar2;\n  uint uVar3;\n  byte *__s;\n  uint uVar4;\n  \n  puVar1 = PTR__sch_istable_00072fc4;\n  __s = (byte *)*param_1;\n  uVar3 = (uint)*__s;\n  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }\n  if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }\n  *param_1 = *param_1 + uVar4;\n  return 1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte *__s;" (type_identifier "byte") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "puVar1 = PTR__sch_istable_00072fc4;" (assignment_expression "puVar1 = PTR__sch_istable_00072fc4" (identifier "puVar1") (= "=") (identifier "PTR__sch_istable_00072fc4")) (; ";")) (expression_statement "__s = (byte *)*param_1;" (assignment_expression "__s = (byte *)*param_1" (identifier "__s") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "uVar3 = (uint)*__s;" (assignment_expression "uVar3 = (uint)*__s" (identifier "uVar3") (= "=") (binary_expression "(uint)*__s" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "__s"))) (; ";")) (if_statement "if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0)" (( "(") (binary_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0" (parenthesized_expression "(PTR__sch_istable_00072fc4[uVar3 * 2] & 4)" (( "(") (binary_expression "PTR__sch_istable_00072fc4[uVar3 * 2] & 4" (subscript_expression "PTR__sch_istable_00072fc4[uVar3 * 2]" (identifier "PTR__sch_istable_00072fc4") ([ "[") (binary_expression "uVar3 * 2" (identifier "uVar3") (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = 0;\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    uVar4 = 0;\n    do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);\n    sVar2 = strlen((char *)__s);\n    if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    } while ((puVar1[uVar3 * 2] & 4) != 0);" (do "do") (compound_statement "{\n      __s = __s + 1;\n      *param_1 = (int)__s;\n      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;\n      uVar3 = (uint)*__s;\n    }" ({ "{") (expression_statement "__s = __s + 1;" (assignment_expression "__s = __s + 1" (identifier "__s") (= "=") (binary_expression "__s + 1" (identifier "__s") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = (int)__s;" (assignment_expression "*param_1 = (int)__s" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) (; ";")) (expression_statement "uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;" (assignment_expression "uVar4 = (char)uVar3 + -0x30 + uVar4 * 10" (identifier "uVar4") (= "=") (binary_expression "(char)uVar3 + -0x30 + uVar4 * 10" (binary_expression "(char)uVar3 + -0x30" (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3")) (+ "+") (number_literal "-0x30")) (+ "+") (binary_expression "uVar4 * 10" (identifier "uVar4") (* "*") (number_literal "10")))) (; ";")) (expression_statement "uVar3 = (uint)*__s;" (assignment_expression "uVar3 = (uint)*__s" (identifier "uVar3") (= "=") (binary_expression "(uint)*__s" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "__s"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((puVar1[uVar3 * 2] & 4) != 0)" (( "(") (binary_expression "(puVar1[uVar3 * 2] & 4) != 0" (parenthesized_expression "(puVar1[uVar3 * 2] & 4)" (( "(") (binary_expression "puVar1[uVar3 * 2] & 4" (subscript_expression "puVar1[uVar3 * 2]" (identifier "puVar1") ([ "[") (binary_expression "uVar3 * 2" (identifier "uVar3") (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "sVar2 = strlen((char *)__s);" (assignment_expression "sVar2 = strlen((char *)__s)" (identifier "sVar2") (= "=") (call_expression "strlen((char *)__s)" (identifier "strlen") (argument_list "((char *)__s)" (( "(") (cast_expression "(char *)__s" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s")) () ")")))) (; ";")) (if_statement "if (sVar2 < uVar4) {\n      FUN_0003ef70();\n      return 0;\n    }" (if "if") (parenthesized_expression "(sVar2 < uVar4)" (( "(") (binary_expression "sVar2 < uVar4" (identifier "sVar2") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n      FUN_0003ef70();\n      return 0;\n    }" ({ "{") (expression_statement "FUN_0003ef70();" (call_expression "FUN_0003ef70()" (identifier "FUN_0003ef70") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_2 != (int *)0x0) {\n    *param_2 = (int)__s;\n  }" (if "if") (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_2 = (int)__s;\n  }" ({ "{") (expression_statement "*param_2 = (int)__s;" (assignment_expression "*param_2 = (int)__s" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) (; ";")) (} "}"))) (expression_statement "*param_1 = *param_1 + uVar4;" (assignment_expression "*param_1 = *param_1 + uVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 + uVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "uVar4"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *minfo,char **var_8,char **pstart)

{
  type_3 *var_1;
  type_4 *puVar1;
  size_t var_6;
  type_5 var_2;
  type_3 *var_3;
  type_5 var_4;
  
  puVar1 = PTR__sch_istable_00072fc4;
  var_1 = (type_3 *)minfo->dhandle;
  var_2 = (type_5)*var_1;
  var_3 = var_1;
  if ((PTR__sch_istable_00072fc4[var_2 * 2] & 4) == 0) {
    var_4 = 0;
  }
  else {
    var_4 = 0;
    do {
      var_3 = var_3 + 1;
      minfo->dhandle = var_3;
      var_4 = (char)var_2 + -0x30 + var_4 * 10;
      var_2 = (type_5)*var_3;
    } while ((puVar1[var_2 * 2] & 4) != 0);
    var_6 = var_5((char *)var_3);
    if (var_6 < var_4) {
      var_7((char *)var_1);
      return 0;
    }
  }
  if (var_8 != (char **)0x0) {
    *var_8 = (char *)var_3;
  }
  minfo->dhandle = (void *)((int)minfo->dhandle + var_4);
  return 1;
}


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

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

undefined4 __regparm3 MASKED(int *param_1,int *param_2)

{
  undefined *puVar1;
  size_t sVar2;
  uint uVar3;
  byte *__s;
  uint uVar4;
  
  puVar1 = PTR__sch_istable_00072fc4;
  __s = (byte *)*param_1;
  uVar3 = (uint)*__s;
  if ((PTR__sch_istable_00072fc4[uVar3 * 2] & 4) == 0) {
    uVar4 = 0;
  }
  else {
    uVar4 = 0;
    do {
      __s = __s + 1;
      *param_1 = (int)__s;
      uVar4 = (char)uVar3 + -0x30 + uVar4 * 10;
      uVar3 = (uint)*__s;
    } while ((puVar1[uVar3 * 2] & 4) != 0);
    sVar2 = strlen((char *)__s);
    if (sVar2 < uVar4) {
      FUN_0003ef70();
      return 0;
    }
  }
  if (param_2 != (int *)0x0) {
    *param_2 = (int)__s;
  }
  *param_1 = *param_1 + uVar4;
  return 1;
}

