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

size_t __regparm3
my_getOpcodeExpression
          (expressionS *ep,bfd_reloc_code_real_type *reloc,char *str,percent_op_match *percent_op)

{
  byte *pbVar1;
  byte bVar2;
  byte bVar3;
  undefined4 uVar4;
  void *pvVar5;
  size_t sVar6;
  char *e;
  
  bVar2 = *str;
  bVar3 = lex_type[bVar2];
  pbVar1 = (byte *)str;
  if ((bVar3 & 2) != 0) {
    bVar2 = str[1];
    pbVar1 = (byte *)(str + 1);
    bVar3 = lex_type[bVar2];
  }
  while ((bVar3 & 1) != 0) {
    bVar2 = pbVar1[1];
    pbVar1 = pbVar1 + 1;
    bVar3 = lex_type[bVar2];
  }
  *pbVar1 = 0;
  pvVar5 = hash_find(opcode_names_hash,str);
  expr_end = (char *)pbVar1;
  *pbVar1 = bVar2;
  if (pvVar5 == (void *)0x0) {
    sVar6 = my_getSmallExpression(ep,reloc,str,percent_op);
    return sVar6;
  }
  uVar4 = *(undefined4 *)((int)pvVar5 + 4);
  ep->field_0x10 = 2;
  *(undefined4 *)((int)&ep->X_add_number + 4) = 0;
  *(undefined4 *)&ep->X_add_number = uVar4;
  return 0;
}



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

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

{
  byte *pbVar1;
  byte bVar2;
  byte bVar3;
  int iVar4;
  undefined4 uVar5;
  
  bVar2 = *param_3;
  bVar3 = (&DAT_0006c3e0)[bVar2];
  pbVar1 = param_3;
  if ((bVar3 & 2) != 0) {
    bVar2 = param_3[1];
    pbVar1 = param_3 + 1;
    bVar3 = (&DAT_0006c3e0)[bVar2];
  }
  while ((bVar3 & 1) != 0) {
    bVar2 = pbVar1[1];
    pbVar1 = pbVar1 + 1;
    bVar3 = (&DAT_0006c3e0)[bVar2];
  }
  *pbVar1 = 0;
  iVar4 = FUN_00023b80(DAT_00074c40,param_3);
  DAT_00074c44 = pbVar1;
  *pbVar1 = bVar2;
  if (iVar4 == 0) {
    uVar5 = FUN_0003f6f0();
    return uVar5;
  }
  uVar5 = *(undefined4 *)(iVar4 + 4);
  *(undefined1 *)(param_1 + 0x10) = 2;
  *(undefined4 *)(param_1 + 0xc) = 0;
  *(undefined4 *)(param_1 + 8) = uVar5;
  return 0;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EBP
PUSH EBX
CALL 0x00015040
ADD EBX,0x2c691
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],EAX
MOVZX EAX,byte ptr [ECX]
LEA ECX,[EBX + 0x3e0]
MOV EDX,EAX
MOVZX EAX,byte ptr [ECX + EAX*0x1]
TEST AL,0x2
JZ 0x0003f9a4
MOVZX EAX,byte ptr [EBP + 0x1]
LEA ESI,[EBP + 0x1]
MOV EDX,EAX
MOVZX EAX,byte ptr [ECX + EAX*0x1]
TEST AL,0x1
JZ 0x0003f9be
LEA ESI,[ESI]
NOP
ADD ESI,0x1
MOVZX EAX,byte ptr [ESI]
MOV EDX,EAX
TEST byte ptr [ECX + EAX*0x1],0x1
JNZ 0x0003f9b0
MOV byte ptr [ESP + 0x7],DL
SUB ESP,0x8
MOV byte ptr [ESI],0x0
PUSH EBP
PUSH dword ptr [EBX + 0x8c40]
CALL 0x00023b80
ADD ESP,0x10
MOVZX EDX,byte ptr [ESP + 0x7]
MOV dword ptr [EBX + 0x8c44],ESI
TEST EAX,EAX
MOV byte ptr [ESI],DL
JZ 0x0003fa08
MOV EAX,dword ptr [EAX + 0x4]
MOV byte ptr [EDI + 0x10],0x2
MOV dword ptr [EDI + 0xc],0x0
MOV dword ptr [EDI + 0x8],EAX
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,EBP
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x0003f6f0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,byte *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "bVar2 = *param_3;" (assignment_expression "bVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" identifier = (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" ( (pointer_expression "&DAT_0006c3e0" & identifier) )) [ identifier ])) ;) (expression_statement "pbVar1 = param_3;" (assignment_expression "pbVar1 = param_3" identifier = identifier) ;) (if_statement "if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" if (parenthesized_expression "((bVar3 & 2) != 0)" ( (binary_expression "(bVar3 & 2) != 0" (parenthesized_expression "(bVar3 & 2)" ( (binary_expression "bVar3 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" { (expression_statement "bVar2 = param_3[1];" (assignment_expression "bVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = param_3 + 1;" (assignment_expression "pbVar1 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" identifier = (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" ( (pointer_expression "&DAT_0006c3e0" & identifier) )) [ identifier ])) ;) })) (while_statement "while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" while (parenthesized_expression "((bVar3 & 1) != 0)" ( (binary_expression "(bVar3 & 1) != 0" (parenthesized_expression "(bVar3 & 1)" ( (binary_expression "bVar3 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" { (expression_statement "bVar2 = pbVar1[1];" (assignment_expression "bVar2 = pbVar1[1]" identifier = (subscript_expression "pbVar1[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" identifier = (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" ( (pointer_expression "&DAT_0006c3e0" & identifier) )) [ identifier ])) ;) })) (expression_statement "*pbVar1 = 0;" (assignment_expression "*pbVar1 = 0" (pointer_expression "*pbVar1" * identifier) = number_literal) ;) (expression_statement "iVar4 = FUN_00023b80(DAT_00074c40,param_3);" (assignment_expression "iVar4 = FUN_00023b80(DAT_00074c40,param_3)" identifier = (call_expression "FUN_00023b80(DAT_00074c40,param_3)" identifier (argument_list "(DAT_00074c40,param_3)" ( identifier , identifier )))) ;) (expression_statement "DAT_00074c44 = pbVar1;" (assignment_expression "DAT_00074c44 = pbVar1" identifier = identifier) ;) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" * identifier) = identifier) ;) (if_statement "if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }" { (expression_statement "uVar5 = FUN_0003f6f0();" (assignment_expression "uVar5 = FUN_0003f6f0()" identifier = (call_expression "FUN_0003f6f0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nsize_t __regparm3\nmy_getOpcodeExpression\n          (expressionS *ep,bfd_reloc_code_real_type *reloc,char *str,percent_op_match *percent_op)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  void *pvVar5;\n  size_t sVar6;\n  char *e;\n  \n  bVar2 = *str;\n  bVar3 = lex_type[bVar2];\n  pbVar1 = (byte *)str;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = str[1];\n    pbVar1 = (byte *)(str + 1);\n    bVar3 = lex_type[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = lex_type[bVar2];\n  }\n  *pbVar1 = 0;\n  pvVar5 = hash_find(opcode_names_hash,str);\n  expr_end = (char *)pbVar1;\n  *pbVar1 = bVar2;\n  if (pvVar5 == (void *)0x0) {\n    sVar6 = my_getSmallExpression(ep,reloc,str,percent_op);\n    return sVar6;\n  }\n  uVar4 = *(undefined4 *)((int)pvVar5 + 4);\n  ep->field_0x10 = 2;\n  *(undefined4 *)((int)&ep->X_add_number + 4) = 0;\n  *(undefined4 *)&ep->X_add_number = uVar4;\n  return 0;\n}\n\n" comment (function_definition "size_t __regparm3\nmy_getOpcodeExpression\n          (expressionS *ep,bfd_reloc_code_real_type *reloc,char *str,percent_op_match *percent_op)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  void *pvVar5;\n  size_t sVar6;\n  char *e;\n  \n  bVar2 = *str;\n  bVar3 = lex_type[bVar2];\n  pbVar1 = (byte *)str;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = str[1];\n    pbVar1 = (byte *)(str + 1);\n    bVar3 = lex_type[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = lex_type[bVar2];\n  }\n  *pbVar1 = 0;\n  pvVar5 = hash_find(opcode_names_hash,str);\n  expr_end = (char *)pbVar1;\n  *pbVar1 = bVar2;\n  if (pvVar5 == (void *)0x0) {\n    sVar6 = my_getSmallExpression(ep,reloc,str,percent_op);\n    return sVar6;\n  }\n  uVar4 = *(undefined4 *)((int)pvVar5 + 4);\n  ep->field_0x10 = 2;\n  *(undefined4 *)((int)&ep->X_add_number + 4) = 0;\n  *(undefined4 *)&ep->X_add_number = uVar4;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "my_getOpcodeExpression\n          (expressionS *ep,bfd_reloc_code_real_type *reloc,char *str,percent_op_match *percent_op)" identifier (parameter_list "(expressionS *ep,bfd_reloc_code_real_type *reloc,char *str,percent_op_match *percent_op)" ( (parameter_declaration "expressionS *ep" type_identifier (pointer_declarator "*ep" * identifier)) , (parameter_declaration "bfd_reloc_code_real_type *reloc" type_identifier (pointer_declarator "*reloc" * identifier)) , (parameter_declaration "char *str" primitive_type (pointer_declarator "*str" * identifier)) , (parameter_declaration "percent_op_match *percent_op" type_identifier (pointer_declarator "*percent_op" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined4 uVar4;\n  void *pvVar5;\n  size_t sVar6;\n  char *e;\n  \n  bVar2 = *str;\n  bVar3 = lex_type[bVar2];\n  pbVar1 = (byte *)str;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = str[1];\n    pbVar1 = (byte *)(str + 1);\n    bVar3 = lex_type[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = lex_type[bVar2];\n  }\n  *pbVar1 = 0;\n  pvVar5 = hash_find(opcode_names_hash,str);\n  expr_end = (char *)pbVar1;\n  *pbVar1 = bVar2;\n  if (pvVar5 == (void *)0x0) {\n    sVar6 = my_getSmallExpression(ep,reloc,str,percent_op);\n    return sVar6;\n  }\n  uVar4 = *(undefined4 *)((int)pvVar5 + 4);\n  ep->field_0x10 = 2;\n  *(undefined4 *)((int)&ep->X_add_number + 4) = 0;\n  *(undefined4 *)&ep->X_add_number = uVar4;\n  return 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (expression_statement "bVar2 = *str;" (assignment_expression "bVar2 = *str" identifier = (pointer_expression "*str" * identifier)) ;) (expression_statement "bVar3 = lex_type[bVar2];" (assignment_expression "bVar3 = lex_type[bVar2]" identifier = (subscript_expression "lex_type[bVar2]" identifier [ identifier ])) ;) (expression_statement "pbVar1 = (byte *)str;" (assignment_expression "pbVar1 = (byte *)str" identifier = (cast_expression "(byte *)str" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if ((bVar3 & 2) != 0) {\n    bVar2 = str[1];\n    pbVar1 = (byte *)(str + 1);\n    bVar3 = lex_type[bVar2];\n  }" if (parenthesized_expression "((bVar3 & 2) != 0)" ( (binary_expression "(bVar3 & 2) != 0" (parenthesized_expression "(bVar3 & 2)" ( (binary_expression "bVar3 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = str[1];\n    pbVar1 = (byte *)(str + 1);\n    bVar3 = lex_type[bVar2];\n  }" { (expression_statement "bVar2 = str[1];" (assignment_expression "bVar2 = str[1]" identifier = (subscript_expression "str[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = (byte *)(str + 1);" (assignment_expression "pbVar1 = (byte *)(str + 1)" identifier = (cast_expression "(byte *)(str + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(str + 1)" ( (binary_expression "str + 1" identifier + number_literal) )))) ;) (expression_statement "bVar3 = lex_type[bVar2];" (assignment_expression "bVar3 = lex_type[bVar2]" identifier = (subscript_expression "lex_type[bVar2]" identifier [ identifier ])) ;) })) (while_statement "while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = lex_type[bVar2];\n  }" while (parenthesized_expression "((bVar3 & 1) != 0)" ( (binary_expression "(bVar3 & 1) != 0" (parenthesized_expression "(bVar3 & 1)" ( (binary_expression "bVar3 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = lex_type[bVar2];\n  }" { (expression_statement "bVar2 = pbVar1[1];" (assignment_expression "bVar2 = pbVar1[1]" identifier = (subscript_expression "pbVar1[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = lex_type[bVar2];" (assignment_expression "bVar3 = lex_type[bVar2]" identifier = (subscript_expression "lex_type[bVar2]" identifier [ identifier ])) ;) })) (expression_statement "*pbVar1 = 0;" (assignment_expression "*pbVar1 = 0" (pointer_expression "*pbVar1" * identifier) = number_literal) ;) (expression_statement "pvVar5 = hash_find(opcode_names_hash,str);" (assignment_expression "pvVar5 = hash_find(opcode_names_hash,str)" identifier = (call_expression "hash_find(opcode_names_hash,str)" identifier (argument_list "(opcode_names_hash,str)" ( identifier , identifier )))) ;) (expression_statement "expr_end = (char *)pbVar1;" (assignment_expression "expr_end = (char *)pbVar1" identifier = (cast_expression "(char *)pbVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" * identifier) = identifier) ;) (if_statement "if (pvVar5 == (void *)0x0) {\n    sVar6 = my_getSmallExpression(ep,reloc,str,percent_op);\n    return sVar6;\n  }" if (parenthesized_expression "(pvVar5 == (void *)0x0)" ( (binary_expression "pvVar5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar6 = my_getSmallExpression(ep,reloc,str,percent_op);\n    return sVar6;\n  }" { (expression_statement "sVar6 = my_getSmallExpression(ep,reloc,str,percent_op);" (assignment_expression "sVar6 = my_getSmallExpression(ep,reloc,str,percent_op)" identifier = (call_expression "my_getSmallExpression(ep,reloc,str,percent_op)" identifier (argument_list "(ep,reloc,str,percent_op)" ( identifier , identifier , identifier , identifier )))) ;) (return_statement "return sVar6;" return identifier ;) })) (expression_statement "uVar4 = *(undefined4 *)((int)pvVar5 + 4);" (assignment_expression "uVar4 = *(undefined4 *)((int)pvVar5 + 4)" identifier = (pointer_expression "*(undefined4 *)((int)pvVar5 + 4)" * (cast_expression "(undefined4 *)((int)pvVar5 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar5 + 4)" ( (binary_expression "(int)pvVar5 + 4" (cast_expression "(int)pvVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "ep->field_0x10 = 2;" (assignment_expression "ep->field_0x10 = 2" (field_expression "ep->field_0x10" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&ep->X_add_number + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&ep->X_add_number + 4) = 0" (pointer_expression "*(undefined4 *)((int)&ep->X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&ep->X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ep->X_add_number + 4)" ( (binary_expression "(int)&ep->X_add_number + 4" (cast_expression "(int)&ep->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ep->X_add_number" & (field_expression "ep->X_add_number" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&ep->X_add_number = uVar4;" (assignment_expression "*(undefined4 *)&ep->X_add_number = uVar4" (pointer_expression "*(undefined4 *)&ep->X_add_number" * (cast_expression "(undefined4 *)&ep->X_add_number" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ep->X_add_number" & (field_expression "ep->X_add_number" identifier -> field_identifier)))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,byte *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "bVar2 = *param_3;" (assignment_expression "bVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" identifier = (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" ( (pointer_expression "&DAT_0006c3e0" & identifier) )) [ identifier ])) ;) (expression_statement "pbVar1 = param_3;" (assignment_expression "pbVar1 = param_3" identifier = identifier) ;) (if_statement "if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" if (parenthesized_expression "((bVar3 & 2) != 0)" ( (binary_expression "(bVar3 & 2) != 0" (parenthesized_expression "(bVar3 & 2)" ( (binary_expression "bVar3 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" { (expression_statement "bVar2 = param_3[1];" (assignment_expression "bVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = param_3 + 1;" (assignment_expression "pbVar1 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" identifier = (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" ( (pointer_expression "&DAT_0006c3e0" & identifier) )) [ identifier ])) ;) })) (while_statement "while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" while (parenthesized_expression "((bVar3 & 1) != 0)" ( (binary_expression "(bVar3 & 1) != 0" (parenthesized_expression "(bVar3 & 1)" ( (binary_expression "bVar3 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" { (expression_statement "bVar2 = pbVar1[1];" (assignment_expression "bVar2 = pbVar1[1]" identifier = (subscript_expression "pbVar1[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" identifier = (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" ( (pointer_expression "&DAT_0006c3e0" & identifier) )) [ identifier ])) ;) })) (expression_statement "*pbVar1 = 0;" (assignment_expression "*pbVar1 = 0" (pointer_expression "*pbVar1" * identifier) = number_literal) ;) (expression_statement "iVar4 = FUN_00023b80(DAT_00074c40,param_3);" (assignment_expression "iVar4 = FUN_00023b80(DAT_00074c40,param_3)" identifier = (call_expression "FUN_00023b80(DAT_00074c40,param_3)" identifier (argument_list "(DAT_00074c40,param_3)" ( identifier , identifier )))) ;) (expression_statement "DAT_00074c44 = pbVar1;" (assignment_expression "DAT_00074c44 = pbVar1" identifier = identifier) ;) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" * identifier) = identifier) ;) (if_statement "if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }" { (expression_statement "uVar5 = FUN_0003f6f0();" (assignment_expression "uVar5 = FUN_0003f6f0()" identifier = (call_expression "FUN_0003f6f0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar5;" return identifier ;) })) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) })) (while_statement while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003f960(int param_1,undefined4 param_2,byte *param_3)" (identifier "FUN_0003f960") (parameter_list "(int param_1,undefined4 param_2,byte *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "byte *param_3" (type_identifier "byte") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  bVar2 = *param_3;\n  bVar3 = (&DAT_0006c3e0)[bVar2];\n  pbVar1 = param_3;\n  if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }\n  *pbVar1 = 0;\n  iVar4 = FUN_00023b80(DAT_00074c40,param_3);\n  DAT_00074c44 = pbVar1;\n  *pbVar1 = bVar2;\n  if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }\n  uVar5 = *(undefined4 *)(iVar4 + 4);\n  *(undefined1 *)(param_1 + 0x10) = 2;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  *(undefined4 *)(param_1 + 8) = uVar5;\n  return 0;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "bVar2 = *param_3;" (assignment_expression "bVar2 = *param_3" (identifier "bVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" (identifier "bVar3") (= "=") (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" (( "(") (pointer_expression "&DAT_0006c3e0" (& "&") (identifier "DAT_0006c3e0")) () ")")) ([ "[") (identifier "bVar2") (] "]"))) (; ";")) (expression_statement "pbVar1 = param_3;" (assignment_expression "pbVar1 = param_3" (identifier "pbVar1") (= "=") (identifier "param_3")) (; ";")) (if_statement "if ((bVar3 & 2) != 0) {\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" (if "if") (parenthesized_expression "((bVar3 & 2) != 0)" (( "(") (binary_expression "(bVar3 & 2) != 0" (parenthesized_expression "(bVar3 & 2)" (( "(") (binary_expression "bVar3 & 2" (identifier "bVar3") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = param_3[1];\n    pbVar1 = param_3 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" ({ "{") (expression_statement "bVar2 = param_3[1];" (assignment_expression "bVar2 = param_3[1]" (identifier "bVar2") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pbVar1 = param_3 + 1;" (assignment_expression "pbVar1 = param_3 + 1" (identifier "pbVar1") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" (identifier "bVar3") (= "=") (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" (( "(") (pointer_expression "&DAT_0006c3e0" (& "&") (identifier "DAT_0006c3e0")) () ")")) ([ "[") (identifier "bVar2") (] "]"))) (; ";")) (} "}"))) (while_statement "while ((bVar3 & 1) != 0) {\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" (while "while") (parenthesized_expression "((bVar3 & 1) != 0)" (( "(") (binary_expression "(bVar3 & 1) != 0" (parenthesized_expression "(bVar3 & 1)" (( "(") (binary_expression "bVar3 & 1" (identifier "bVar3") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = pbVar1[1];\n    pbVar1 = pbVar1 + 1;\n    bVar3 = (&DAT_0006c3e0)[bVar2];\n  }" ({ "{") (expression_statement "bVar2 = pbVar1[1];" (assignment_expression "bVar2 = pbVar1[1]" (identifier "bVar2") (= "=") (subscript_expression "pbVar1[1]" (identifier "pbVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar1 + 1" (identifier "pbVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar3 = (&DAT_0006c3e0)[bVar2];" (assignment_expression "bVar3 = (&DAT_0006c3e0)[bVar2]" (identifier "bVar3") (= "=") (subscript_expression "(&DAT_0006c3e0)[bVar2]" (parenthesized_expression "(&DAT_0006c3e0)" (( "(") (pointer_expression "&DAT_0006c3e0" (& "&") (identifier "DAT_0006c3e0")) () ")")) ([ "[") (identifier "bVar2") (] "]"))) (; ";")) (} "}"))) (expression_statement "*pbVar1 = 0;" (assignment_expression "*pbVar1 = 0" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = FUN_00023b80(DAT_00074c40,param_3);" (assignment_expression "iVar4 = FUN_00023b80(DAT_00074c40,param_3)" (identifier "iVar4") (= "=") (call_expression "FUN_00023b80(DAT_00074c40,param_3)" (identifier "FUN_00023b80") (argument_list "(DAT_00074c40,param_3)" (( "(") (identifier "DAT_00074c40") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "DAT_00074c44 = pbVar1;" (assignment_expression "DAT_00074c44 = pbVar1" (identifier "DAT_00074c44") (= "=") (identifier "pbVar1")) (; ";")) (expression_statement "*pbVar1 = bVar2;" (assignment_expression "*pbVar1 = bVar2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (identifier "bVar2")) (; ";")) (if_statement "if (iVar4 == 0) {\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = FUN_0003f6f0();\n    return uVar5;\n  }" ({ "{") (expression_statement "uVar5 = FUN_0003f6f0();" (assignment_expression "uVar5 = FUN_0003f6f0()" (identifier "uVar5") (= "=") (call_expression "FUN_0003f6f0()" (identifier "FUN_0003f6f0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 4)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

size_t __regparm3
function_1
          (type_1 *ep,type_2 *reloc,char *var_2,type_3 *percent_op)

{
  type_4 *var_3;
  type_4 bVar2;
  type_4 var_1;
  type_5 uVar4;
  void *var_5;
  size_t sVar6;
  char *e;
  
  bVar2 = *var_2;
  var_1 = lex_type[bVar2];
  var_3 = (type_4 *)var_2;
  if ((var_1 & 2) != 0) {
    bVar2 = var_2[1];
    var_3 = (type_4 *)(var_2 + 1);
    var_1 = lex_type[bVar2];
  }
  while ((var_1 & 1) != 0) {
    bVar2 = var_3[1];
    var_3 = var_3 + 1;
    var_1 = lex_type[bVar2];
  }
  *var_3 = 0;
  var_5 = var_4(opcode_names_hash,var_2);
  expr_end = (char *)var_3;
  *var_3 = bVar2;
  if (var_5 == (void *)0x0) {
    sVar6 = var_6(ep,reloc,var_2,percent_op);
    return sVar6;
  }
  uVar4 = *(type_5 *)((int)var_5 + 4);
  ep->field_0x10 = 2;
  *(type_5 *)((int)&ep->X_add_number + 4) = 0;
  *(type_5 *)&ep->X_add_number = uVar4;
  return 0;
}


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

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

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

{
  byte *pbVar1;
  byte bVar2;
  byte bVar3;
  int iVar4;
  undefined4 uVar5;
  
  bVar2 = *param_3;
  bVar3 = (&DAT_0006c3e0)[bVar2];
  pbVar1 = param_3;
  if ((bVar3 & 2) != 0) {
    bVar2 = param_3[1];
    pbVar1 = param_3 + 1;
    bVar3 = (&DAT_0006c3e0)[bVar2];
  }
  while ((bVar3 & 1) != 0) {
    bVar2 = pbVar1[1];
    pbVar1 = pbVar1 + 1;
    bVar3 = (&DAT_0006c3e0)[bVar2];
  }
  *pbVar1 = 0;
  iVar4 = FUN_00023b80(DAT_00074c40,param_3);
  DAT_00074c44 = pbVar1;
  *pbVar1 = bVar2;
  if (iVar4 == 0) {
    uVar5 = FUN_0003f6f0();
    return uVar5;
  }
  uVar5 = *(undefined4 *)(iVar4 + 4);
  *(undefined1 *)(param_1 + 0x10) = 2;
  *(undefined4 *)(param_1 + 0xc) = 0;
  *(undefined4 *)(param_1 + 8) = uVar5;
  return 0;
}

