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

long long_val(char **str)

{
  ushort *puVar1;
  ushort **ppuVar2;
  int iVar3;
  byte bVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  
  pbVar5 = (byte *)*str;
  bVar4 = *pbVar5;
  bVar7 = bVar4 == 0x2d;
  pbVar6 = pbVar5;
  if (bVar7) {
    pbVar6 = pbVar5 + 1;
    *str = (char *)pbVar6;
    bVar4 = pbVar5[1];
  }
  ppuVar2 = __ctype_b_loc();
  puVar1 = *ppuVar2;
  iVar3 = 0;
  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {
    *str = (char *)pbVar5;
    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;
    bVar4 = *pbVar5;
    pbVar6 = pbVar5;
  }
  if (bVar7) {
    iVar3 = -iVar3;
  }
  return iVar3;
}



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

int FUN_00017010(int *param_1)

{
  ushort *puVar1;
  ushort **ppuVar2;
  int iVar3;
  byte bVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  
  pbVar5 = (byte *)*param_1;
  bVar4 = *pbVar5;
  bVar7 = bVar4 == 0x2d;
  pbVar6 = pbVar5;
  if (bVar7) {
    pbVar6 = pbVar5 + 1;
    *param_1 = (int)pbVar6;
    bVar4 = pbVar5[1];
  }
  ppuVar2 = __ctype_b_loc();
  puVar1 = *ppuVar2;
  iVar3 = 0;
  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {
    *param_1 = (int)pbVar5;
    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;
    bVar4 = *pbVar5;
    pbVar6 = pbVar5;
  }
  if (bVar7) {
    iVar3 = -iVar3;
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
CALL 0x00011650
ADD EBX,0x11ee9
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESI]
MOVZX ECX,byte ptr [EBP]
CMP CL,0x2d
JNZ 0x00017043
LEA EAX,[EBP + 0x1]
MOV EDI,0x1
MOV dword ptr [ESI],EAX
MOVZX ECX,byte ptr [EBP + 0x1]
MOV EBP,EAX
MOV byte ptr [ESP + 0xf],CL
CALL 0x00011310
LEA EDX,[EBP + 0x1]
MOVZX ECX,byte ptr [ESP + 0xf]
MOV EBX,dword ptr [EAX]
XOR EAX,EAX
JMP 0x00017074
MOV dword ptr [ESI],EDX
LEA ECX,[EAX + EAX*0x4]
MOVZX EAX,byte ptr [EDX + -0x1]
ADD EDX,0x1
LEA EAX,[EAX + ECX*0x2 + -0x30]
MOVZX ECX,byte ptr [EDX + -0x1]
TEST byte ptr [EBX + ECX*0x2 + 0x1],0x8
JNZ 0x00017060
MOV EBX,EDI
MOV EDX,EAX
NEG EDX
TEST BL,BL
CMOVNZ EAX,EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00017010(int *param_1)\n\n{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_00017010(int *param_1)\n\n{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00017010(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "pbVar5 = (byte *)*param_1;" (assignment_expression "pbVar5 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "bVar7 = bVar4 == 0x2d;" (assignment_expression "bVar7 = bVar4 == 0x2d" identifier = (binary_expression "bVar4 == 0x2d" identifier == number_literal)) ;) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" identifier = identifier) ;) (if_statement "if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }" { (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (int)pbVar6;" (assignment_expression "*param_1 = (int)pbVar6" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "bVar4 = pbVar5[1];" (assignment_expression "bVar4 = pbVar5[1]" identifier = (subscript_expression "pbVar5[1]" identifier [ number_literal ])) ;) })) (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1 = *ppuVar2;" (assignment_expression "puVar1 = *ppuVar2" identifier = (pointer_expression "*ppuVar2" * identifier)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" while (parenthesized_expression "(pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0)" ( (comma_expression "pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (assignment_expression "pbVar5 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) , (binary_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8)" ( (binary_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" * (cast_expression "(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + (uint)bVar4 * 2 + 1)" ( (binary_expression "(int)puVar1 + (uint)bVar4 * 2 + 1" (binary_expression "(int)puVar1 + (uint)bVar4 * 2" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * 2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" { (expression_statement "*param_1 = (int)pbVar5;" (assignment_expression "*param_1 = (int)pbVar5" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;" (assignment_expression "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10" identifier = (binary_expression "(*pbVar6 - 0x30) + iVar3 * 10" (parenthesized_expression "(*pbVar6 - 0x30)" ( (binary_expression "*pbVar6 - 0x30" (pointer_expression "*pbVar6" * identifier) - number_literal) )) + (binary_expression "iVar3 * 10" identifier * number_literal))) ;) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" identifier = identifier) ;) })) (if_statement "if (bVar7) {\n    iVar3 = -iVar3;\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    iVar3 = -iVar3;\n  }" { (expression_statement "iVar3 = -iVar3;" (assignment_expression "iVar3 = -iVar3" identifier = (unary_expression "-iVar3" - identifier)) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nlong long_val(char **str)\n\n{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*str;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *str = (char *)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *str = (char *)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}\n\n" comment comment (function_definition "long long_val(char **str)\n\n{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*str;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *str = (char *)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *str = (char *)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" (sized_type_specifier "long" long) (function_declarator "long_val(char **str)" identifier (parameter_list "(char **str)" ( (parameter_declaration "char **str" primitive_type (pointer_declarator "**str" * (pointer_declarator "*str" * identifier))) ))) (compound_statement "{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*str;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *str = (char *)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *str = (char *)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "pbVar5 = (byte *)*str;" (assignment_expression "pbVar5 = (byte *)*str" identifier = (cast_expression "(byte *)*str" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*str" * identifier))) ;) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "bVar7 = bVar4 == 0x2d;" (assignment_expression "bVar7 = bVar4 == 0x2d" identifier = (binary_expression "bVar4 == 0x2d" identifier == number_literal)) ;) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" identifier = identifier) ;) (if_statement "if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *str = (char *)pbVar6;\n    bVar4 = pbVar5[1];\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    pbVar6 = pbVar5 + 1;\n    *str = (char *)pbVar6;\n    bVar4 = pbVar5[1];\n  }" { (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "*str = (char *)pbVar6;" (assignment_expression "*str = (char *)pbVar6" (pointer_expression "*str" * identifier) = (cast_expression "(char *)pbVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "bVar4 = pbVar5[1];" (assignment_expression "bVar4 = pbVar5[1]" identifier = (subscript_expression "pbVar5[1]" identifier [ number_literal ])) ;) })) (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1 = *ppuVar2;" (assignment_expression "puVar1 = *ppuVar2" identifier = (pointer_expression "*ppuVar2" * identifier)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *str = (char *)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" while (parenthesized_expression "(pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0)" ( (comma_expression "pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (assignment_expression "pbVar5 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) , (binary_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8)" ( (binary_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" * (cast_expression "(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + (uint)bVar4 * 2 + 1)" ( (binary_expression "(int)puVar1 + (uint)bVar4 * 2 + 1" (binary_expression "(int)puVar1 + (uint)bVar4 * 2" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * 2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\n    *str = (char *)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" { (expression_statement "*str = (char *)pbVar5;" (assignment_expression "*str = (char *)pbVar5" (pointer_expression "*str" * identifier) = (cast_expression "(char *)pbVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;" (assignment_expression "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10" identifier = (binary_expression "(*pbVar6 - 0x30) + iVar3 * 10" (parenthesized_expression "(*pbVar6 - 0x30)" ( (binary_expression "*pbVar6 - 0x30" (pointer_expression "*pbVar6" * identifier) - number_literal) )) + (binary_expression "iVar3 * 10" identifier * number_literal))) ;) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" identifier = identifier) ;) })) (if_statement "if (bVar7) {\n    iVar3 = -iVar3;\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    iVar3 = -iVar3;\n  }" { (expression_statement "iVar3 = -iVar3;" (assignment_expression "iVar3 = -iVar3" identifier = (unary_expression "-iVar3" - identifier)) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int FUN_00017010(int *param_1)\n\n{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_00017010(int *param_1)\n\n{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00017010(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (expression_statement "pbVar5 = (byte *)*param_1;" (assignment_expression "pbVar5 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "bVar7 = bVar4 == 0x2d;" (assignment_expression "bVar7 = bVar4 == 0x2d" identifier = (binary_expression "bVar4 == 0x2d" identifier == number_literal)) ;) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" identifier = identifier) ;) (if_statement "if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }" { (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (int)pbVar6;" (assignment_expression "*param_1 = (int)pbVar6" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "bVar4 = pbVar5[1];" (assignment_expression "bVar4 = pbVar5[1]" identifier = (subscript_expression "pbVar5[1]" identifier [ number_literal ])) ;) })) (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1 = *ppuVar2;" (assignment_expression "puVar1 = *ppuVar2" identifier = (pointer_expression "*ppuVar2" * identifier)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" while (parenthesized_expression "(pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0)" ( (comma_expression "pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (assignment_expression "pbVar5 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) , (binary_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8)" ( (binary_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" * (cast_expression "(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + (uint)bVar4 * 2 + 1)" ( (binary_expression "(int)puVar1 + (uint)bVar4 * 2 + 1" (binary_expression "(int)puVar1 + (uint)bVar4 * 2" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar4 * 2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" { (expression_statement "*param_1 = (int)pbVar5;" (assignment_expression "*param_1 = (int)pbVar5" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;" (assignment_expression "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10" identifier = (binary_expression "(*pbVar6 - 0x30) + iVar3 * 10" (parenthesized_expression "(*pbVar6 - 0x30)" ( (binary_expression "*pbVar6 - 0x30" (pointer_expression "*pbVar6" * identifier) - number_literal) )) + (binary_expression "iVar3 * 10" identifier * number_literal))) ;) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" identifier = identifier) ;) })) (if_statement "if (bVar7) {\n    iVar3 = -iVar3;\n  }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n    iVar3 = -iVar3;\n  }" { (expression_statement "iVar3 = -iVar3;" (assignment_expression "iVar3 = -iVar3" identifier = (unary_expression "-iVar3" - identifier)) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (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 = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) & LIT) )) != LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) - LIT) )) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00017010(int *param_1)\n\n{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_00017010(int *param_1)" (identifier "FUN_00017010") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  ushort *puVar1;\n  ushort **ppuVar2;\n  int iVar3;\n  byte bVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  \n  pbVar5 = (byte *)*param_1;\n  bVar4 = *pbVar5;\n  bVar7 = bVar4 == 0x2d;\n  pbVar6 = pbVar5;\n  if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }\n  ppuVar2 = __ctype_b_loc();\n  puVar1 = *ppuVar2;\n  iVar3 = 0;\n  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }\n  if (bVar7) {\n    iVar3 = -iVar3;\n  }\n  return iVar3;\n}" ({ "{") (declaration "ushort *puVar1;" (type_identifier "ushort") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "ushort **ppuVar2;" (type_identifier "ushort") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (expression_statement "pbVar5 = (byte *)*param_1;" (assignment_expression "pbVar5 = (byte *)*param_1" (identifier "pbVar5") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" (identifier "bVar4") (= "=") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5"))) (; ";")) (expression_statement "bVar7 = bVar4 == 0x2d;" (assignment_expression "bVar7 = bVar4 == 0x2d" (identifier "bVar7") (= "=") (binary_expression "bVar4 == 0x2d" (identifier "bVar4") (== "==") (number_literal "0x2d"))) (; ";")) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" (identifier "pbVar6") (= "=") (identifier "pbVar5")) (; ";")) (if_statement "if (bVar7) {\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }" (if "if") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (compound_statement "{\n    pbVar6 = pbVar5 + 1;\n    *param_1 = (int)pbVar6;\n    bVar4 = pbVar5[1];\n  }" ({ "{") (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = (int)pbVar6;" (assignment_expression "*param_1 = (int)pbVar6" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)pbVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar6"))) (; ";")) (expression_statement "bVar4 = pbVar5[1];" (assignment_expression "bVar4 = pbVar5[1]" (identifier "bVar4") (= "=") (subscript_expression "pbVar5[1]" (identifier "pbVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" (identifier "ppuVar2") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar1 = *ppuVar2;" (assignment_expression "puVar1 = *ppuVar2" (identifier "puVar1") (= "=") (pointer_expression "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" (while "while") (parenthesized_expression "(pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0)" (( "(") (comma_expression "pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (assignment_expression "pbVar5 = pbVar6 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (, ",") (binary_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8)" (( "(") (binary_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + (uint)bVar4 * 2 + 1)" (( "(") (binary_expression "(int)puVar1 + (uint)bVar4 * 2 + 1" (binary_expression "(int)puVar1 + (uint)bVar4 * 2" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (binary_expression "(uint)bVar4 * 2" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    *param_1 = (int)pbVar5;\n    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;\n    bVar4 = *pbVar5;\n    pbVar6 = pbVar5;\n  }" ({ "{") (expression_statement "*param_1 = (int)pbVar5;" (assignment_expression "*param_1 = (int)pbVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5"))) (; ";")) (expression_statement "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;" (assignment_expression "iVar3 = (*pbVar6 - 0x30) + iVar3 * 10" (identifier "iVar3") (= "=") (binary_expression "(*pbVar6 - 0x30) + iVar3 * 10" (parenthesized_expression "(*pbVar6 - 0x30)" (( "(") (binary_expression "*pbVar6 - 0x30" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (- "-") (number_literal "0x30")) () ")")) (+ "+") (binary_expression "iVar3 * 10" (identifier "iVar3") (* "*") (number_literal "10")))) (; ";")) (expression_statement "bVar4 = *pbVar5;" (assignment_expression "bVar4 = *pbVar5" (identifier "bVar4") (= "=") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5"))) (; ";")) (expression_statement "pbVar6 = pbVar5;" (assignment_expression "pbVar6 = pbVar5" (identifier "pbVar6") (= "=") (identifier "pbVar5")) (; ";")) (} "}"))) (if_statement "if (bVar7) {\n    iVar3 = -iVar3;\n  }" (if "if") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (compound_statement "{\n    iVar3 = -iVar3;\n  }" ({ "{") (expression_statement "iVar3 = -iVar3;" (assignment_expression "iVar3 = -iVar3" (identifier "iVar3") (= "=") (unary_expression "-iVar3" (- "-") (identifier "iVar3"))) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

long function_1(char **str)

{
  type_1 *puVar1;
  type_1 **ppuVar2;
  int var_5;
  type_2 var_1;
  type_2 *var_2;
  type_2 *var_4;
  bool bVar7;
  
  var_2 = (type_2 *)*str;
  var_1 = *var_2;
  bVar7 = var_1 == 0x2d;
  var_4 = var_2;
  if (bVar7) {
    var_4 = var_2 + 1;
    *str = (char *)var_4;
    var_1 = var_2[1];
  }
  ppuVar2 = var_3();
  puVar1 = *ppuVar2;
  var_5 = 0;
  while (var_2 = var_4 + 1, (*(type_2 *)((int)puVar1 + (type_3)var_1 * 2 + 1) & 8) != 0) {
    *str = (char *)var_2;
    var_5 = (*var_4 - 0x30) + var_5 * 10;
    var_1 = *var_2;
    var_4 = var_2;
  }
  if (bVar7) {
    var_5 = -var_5;
  }
  return var_5;
}


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

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

int MASKED(int *param_1)

{
  ushort *puVar1;
  ushort **ppuVar2;
  int iVar3;
  byte bVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  
  pbVar5 = (byte *)*param_1;
  bVar4 = *pbVar5;
  bVar7 = bVar4 == 0x2d;
  pbVar6 = pbVar5;
  if (bVar7) {
    pbVar6 = pbVar5 + 1;
    *param_1 = (int)pbVar6;
    bVar4 = pbVar5[1];
  }
  ppuVar2 = __ctype_b_loc();
  puVar1 = *ppuVar2;
  iVar3 = 0;
  while (pbVar5 = pbVar6 + 1, (*(byte *)((int)puVar1 + (uint)bVar4 * 2 + 1) & 8) != 0) {
    *param_1 = (int)pbVar5;
    iVar3 = (*pbVar6 - 0x30) + iVar3 * 10;
    bVar4 = *pbVar5;
    pbVar6 = pbVar5;
  }
  if (bVar7) {
    iVar3 = -iVar3;
  }
  return iVar3;
}

