
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

uint __regparm3
PNMInteger(Image *image,CommentInfo *comment_info,uint base,ExceptionInfo *exception)

{
  int iVar1;
  ushort **ppuVar2;
  ExceptionInfo *exception_00;
  uint uVar3;
  
  do {
    iVar1 = ReadBlobByte(image);
    if (iVar1 == -1) {
      return 0;
    }
    if (iVar1 == 0x23) {
      iVar1 = PNMComment(image,comment_info,exception_00);
    }
  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));
  uVar3 = iVar1 - 0x30;
  if (base != 2) {
    ppuVar2 = __ctype_b_loc();
    uVar3 = 0;
    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {
      if (uVar3 < 0xccccccd) {
        uVar3 = uVar3 * 10;
        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {
          uVar3 = iVar1 + -0x30 + uVar3;
        }
      }
      iVar1 = ReadBlobByte(image);
      if (iVar1 == -1) {
        return 0;
      }
    }
    if (iVar1 == 0x23) {
      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);
    }
  }
  return uVar3;
}



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

uint __regparm3 FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  ushort **ppuVar2;
  uint uVar3;
  
  do {
    iVar1 = ReadBlobByte(param_1);
    if (iVar1 == -1) {
      return 0;
    }
    if (iVar1 == 0x23) {
      iVar1 = FUN_002438d0();
    }
  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));
  uVar3 = iVar1 - 0x30;
  if (param_3 != 2) {
    ppuVar2 = __ctype_b_loc();
    uVar3 = 0;
    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {
      if (uVar3 < 0xccccccd) {
        uVar3 = uVar3 * 10;
        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {
          uVar3 = iVar1 + -0x30 + uVar3;
        }
      }
      iVar1 = ReadBlobByte(param_1);
      if (iVar1 == -1) {
        return 0;
      }
    }
    if (iVar1 == 0x23) {
      FUN_002438d0();
    }
  }
  return uVar3;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,0x800013
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00038830
ADD EBX,0x19566e
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EDX
NOP
SUB ESP,0xc
PUSH ESI
CALL 0x00030c90
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00243a70
CMP EAX,0x23
JZ 0x00243a60
LEA EDX,[EAX + -0x9]
CMP EDX,0x17
JBE 0x00243a50
LEA EDI,[EAX + -0x30]
MOV dword ptr [ESP + 0x8],EAX
CMP EBP,0x2
JZ 0x00243a44
CALL 0x00031ac0
XOR EDI,EDI
MOV ECX,0x7fffffff
MOV EDX,dword ptr [ESP + 0x8]
MOV EBP,EAX
JMP 0x00243a35
CMP EDI,0xccccccc
JA 0x00243a1a
LEA EDI,[EDI + EDI*0x4]
LEA EAX,[EDI + EDI*0x1]
MOV dword ptr [ESP + 0x8],EAX
LEA EDI,[EDX + -0x30]
MOV EAX,ECX
SUB EAX,EDI
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x8]
LEA EDX,[EDX + EAX*0x1 + -0x30]
CMP EAX,EDI
CMOVBE EAX,EDX
MOV EDI,EAX
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0xc
PUSH ESI
CALL 0x00030c90
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
CMP EAX,-0x1
MOV EDX,EAX
JZ 0x00243a70
MOV EAX,dword ptr [EBP]
TEST byte ptr [EAX + EDX*0x2 + 0x1],0x8
JNZ 0x002439f0
CMP EDX,0x23
JZ 0x00243a7c
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
BT EDI,EDX
JC 0x002439a0
JMP 0x002439ca
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,ESI
CALL 0x002438d0
JMP 0x002439be
ADD ESP,0x1c
XOR EDI,EDI
POP EBX
MOV EAX,EDI
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,ESI
CALL 0x002438d0
JMP 0x00243a44
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint __regparm3 FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}\n\n" comment (function_definition "uint __regparm3 FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "uint uVar3;" type_identifier identifier ;) (do_statement "do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));" do (compound_statement "{\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  }" { (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" identifier = (call_expression "ReadBlobByte(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }" if (parenthesized_expression "(iVar1 == 0x23)" ( (binary_expression "iVar1 == 0x23" identifier == number_literal) )) (compound_statement "{\n      iVar1 = FUN_002438d0();\n    }" { (expression_statement "iVar1 = FUN_002438d0();" (assignment_expression "iVar1 = FUN_002438d0()" identifier = (call_expression "FUN_002438d0()" identifier (argument_list "()" ( )))) ;) })) }) while (parenthesized_expression "((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0))" ( (binary_expression "(iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" (parenthesized_expression "(iVar1 - 9U < 0x18)" ( (binary_expression "iVar1 - 9U < 0x18" (binary_expression "iVar1 - 9U" identifier - number_literal) < number_literal) )) && (parenthesized_expression "((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" ( (binary_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0" (parenthesized_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1)" ( (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f) & 1" (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 - 9U & 0x1f)" ( (binary_expression "iVar1 - 9U & 0x1f" (binary_expression "iVar1 - 9U" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) ))) )) ;) (expression_statement "uVar3 = iVar1 - 0x30;" (assignment_expression "uVar3 = iVar1 - 0x30" identifier = (binary_expression "iVar1 - 0x30" identifier - number_literal)) ;) (if_statement "if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" while (parenthesized_expression "((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8)" ( (binary_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + iVar1 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + iVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + iVar1 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "iVar1 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" { (if_statement "if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" if (parenthesized_expression "(uVar3 < 0xccccccd)" ( (binary_expression "uVar3 < 0xccccccd" identifier < number_literal) )) (compound_statement "{\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" { (expression_statement "uVar3 = uVar3 * 10;" (assignment_expression "uVar3 = uVar3 * 10" identifier = (binary_expression "uVar3 * 10" identifier * number_literal)) ;) (if_statement "if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" if (parenthesized_expression "(uVar3 <= 0x7fffffffU - (iVar1 + -0x30))" ( (binary_expression "uVar3 <= 0x7fffffffU - (iVar1 + -0x30)" identifier <= (binary_expression "0x7fffffffU - (iVar1 + -0x30)" number_literal - (parenthesized_expression "(iVar1 + -0x30)" ( (binary_expression "iVar1 + -0x30" identifier + number_literal) )))) )) (compound_statement "{\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" { (expression_statement "uVar3 = iVar1 + -0x30 + uVar3;" (assignment_expression "uVar3 = iVar1 + -0x30 + uVar3" identifier = (binary_expression "iVar1 + -0x30 + uVar3" (binary_expression "iVar1 + -0x30" identifier + number_literal) + identifier)) ;) })) })) (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" identifier = (call_expression "ReadBlobByte(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }" if (parenthesized_expression "(iVar1 == 0x23)" ( (binary_expression "iVar1 == 0x23" identifier == number_literal) )) (compound_statement "{\n      FUN_002438d0();\n    }" { (expression_statement "FUN_002438d0();" (call_expression "FUN_002438d0()" identifier (argument_list "()" ( ))) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nuint __regparm3\nPNMInteger(Image *image,CommentInfo *comment_info,uint base,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  ExceptionInfo *exception_00;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = PNMComment(image,comment_info,exception_00);\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (base != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(image);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);\n    }\n  }\n  return uVar3;\n}\n\n" comment comment comment comment comment comment (function_definition "uint __regparm3\nPNMInteger(Image *image,CommentInfo *comment_info,uint base,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  ExceptionInfo *exception_00;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = PNMComment(image,comment_info,exception_00);\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (base != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(image);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);\n    }\n  }\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "PNMInteger(Image *image,CommentInfo *comment_info,uint base,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,CommentInfo *comment_info,uint base,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "CommentInfo *comment_info" type_identifier (pointer_declarator "*comment_info" * identifier)) , (parameter_declaration "uint base" type_identifier identifier) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  ushort **ppuVar2;\n  ExceptionInfo *exception_00;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = PNMComment(image,comment_info,exception_00);\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (base != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(image);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);\n    }\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "ExceptionInfo *exception_00;" type_identifier (pointer_declarator "*exception_00" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (do_statement "do {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = PNMComment(image,comment_info,exception_00);\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));" do (compound_statement "{\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = PNMComment(image,comment_info,exception_00);\n    }\n  }" { (expression_statement "iVar1 = ReadBlobByte(image);" (assignment_expression "iVar1 = ReadBlobByte(image)" identifier = (call_expression "ReadBlobByte(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 == 0x23) {\n      iVar1 = PNMComment(image,comment_info,exception_00);\n    }" if (parenthesized_expression "(iVar1 == 0x23)" ( (binary_expression "iVar1 == 0x23" identifier == number_literal) )) (compound_statement "{\n      iVar1 = PNMComment(image,comment_info,exception_00);\n    }" { (expression_statement "iVar1 = PNMComment(image,comment_info,exception_00);" (assignment_expression "iVar1 = PNMComment(image,comment_info,exception_00)" identifier = (call_expression "PNMComment(image,comment_info,exception_00)" identifier (argument_list "(image,comment_info,exception_00)" ( identifier , identifier , identifier )))) ;) })) }) while (parenthesized_expression "((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0))" ( (binary_expression "(iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" (parenthesized_expression "(iVar1 - 9U < 0x18)" ( (binary_expression "iVar1 - 9U < 0x18" (binary_expression "iVar1 - 9U" identifier - number_literal) < number_literal) )) && (parenthesized_expression "((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" ( (binary_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0" (parenthesized_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1)" ( (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f) & 1" (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 - 9U & 0x1f)" ( (binary_expression "iVar1 - 9U & 0x1f" (binary_expression "iVar1 - 9U" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) ))) )) ;) (expression_statement "uVar3 = iVar1 - 0x30;" (assignment_expression "uVar3 = iVar1 - 0x30" identifier = (binary_expression "iVar1 - 0x30" identifier - number_literal)) ;) (if_statement "if (base != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(image);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);\n    }\n  }" if (parenthesized_expression "(base != 2)" ( (binary_expression "base != 2" identifier != number_literal) )) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(image);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);\n    }\n  }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(image);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" while (parenthesized_expression "((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8)" ( (binary_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + iVar1 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + iVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + iVar1 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "iVar1 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(image);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" { (if_statement "if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" if (parenthesized_expression "(uVar3 < 0xccccccd)" ( (binary_expression "uVar3 < 0xccccccd" identifier < number_literal) )) (compound_statement "{\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" { (expression_statement "uVar3 = uVar3 * 10;" (assignment_expression "uVar3 = uVar3 * 10" identifier = (binary_expression "uVar3 * 10" identifier * number_literal)) ;) (if_statement "if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" if (parenthesized_expression "(uVar3 <= 0x7fffffffU - (iVar1 + -0x30))" ( (binary_expression "uVar3 <= 0x7fffffffU - (iVar1 + -0x30)" identifier <= (binary_expression "0x7fffffffU - (iVar1 + -0x30)" number_literal - (parenthesized_expression "(iVar1 + -0x30)" ( (binary_expression "iVar1 + -0x30" identifier + number_literal) )))) )) (compound_statement "{\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" { (expression_statement "uVar3 = iVar1 + -0x30 + uVar3;" (assignment_expression "uVar3 = iVar1 + -0x30 + uVar3" identifier = (binary_expression "iVar1 + -0x30 + uVar3" (binary_expression "iVar1 + -0x30" identifier + number_literal) + identifier)) ;) })) })) (expression_statement "iVar1 = ReadBlobByte(image);" (assignment_expression "iVar1 = ReadBlobByte(image)" identifier = (call_expression "ReadBlobByte(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (iVar1 == 0x23) {\n      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);\n    }" if (parenthesized_expression "(iVar1 == 0x23)" ( (binary_expression "iVar1 == 0x23" identifier == number_literal) )) (compound_statement "{\n      PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);\n    }" { (expression_statement "PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff);" (call_expression "PNMComment(image,comment_info,(ExceptionInfo *)0x7fffffff)" identifier (argument_list "(image,comment_info,(ExceptionInfo *)0x7fffffff)" ( identifier , identifier , (cast_expression "(ExceptionInfo *)0x7fffffff" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "uint __regparm3 FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "uint __regparm3 FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "uint uVar3;" type_identifier identifier ;) (do_statement "do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));" do (compound_statement "{\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  }" { (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" identifier = (call_expression "ReadBlobByte(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }" if (parenthesized_expression "(iVar1 == 0x23)" ( (binary_expression "iVar1 == 0x23" identifier == number_literal) )) (compound_statement "{\n      iVar1 = FUN_002438d0();\n    }" { (expression_statement "iVar1 = FUN_002438d0();" (assignment_expression "iVar1 = FUN_002438d0()" identifier = (call_expression "FUN_002438d0()" identifier (argument_list "()" ( )))) ;) })) }) while (parenthesized_expression "((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0))" ( (binary_expression "(iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" (parenthesized_expression "(iVar1 - 9U < 0x18)" ( (binary_expression "iVar1 - 9U < 0x18" (binary_expression "iVar1 - 9U" identifier - number_literal) < number_literal) )) && (parenthesized_expression "((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" ( (binary_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0" (parenthesized_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1)" ( (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f) & 1" (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f)" number_literal >> (parenthesized_expression "(iVar1 - 9U & 0x1f)" ( (binary_expression "iVar1 - 9U & 0x1f" (binary_expression "iVar1 - 9U" identifier - number_literal) & number_literal) ))) & number_literal) )) != number_literal) ))) )) ;) (expression_statement "uVar3 = iVar1 - 0x30;" (assignment_expression "uVar3 = iVar1 - 0x30" identifier = (binary_expression "iVar1 - 0x30" identifier - number_literal)) ;) (if_statement "if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" while (parenthesized_expression "((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8)" ( (binary_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + iVar1 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + iVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + iVar1 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "iVar1 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" { (if_statement "if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" if (parenthesized_expression "(uVar3 < 0xccccccd)" ( (binary_expression "uVar3 < 0xccccccd" identifier < number_literal) )) (compound_statement "{\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" { (expression_statement "uVar3 = uVar3 * 10;" (assignment_expression "uVar3 = uVar3 * 10" identifier = (binary_expression "uVar3 * 10" identifier * number_literal)) ;) (if_statement "if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" if (parenthesized_expression "(uVar3 <= 0x7fffffffU - (iVar1 + -0x30))" ( (binary_expression "uVar3 <= 0x7fffffffU - (iVar1 + -0x30)" identifier <= (binary_expression "0x7fffffffU - (iVar1 + -0x30)" number_literal - (parenthesized_expression "(iVar1 + -0x30)" ( (binary_expression "iVar1 + -0x30" identifier + number_literal) )))) )) (compound_statement "{\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" { (expression_statement "uVar3 = iVar1 + -0x30 + uVar3;" (assignment_expression "uVar3 = iVar1 + -0x30 + uVar3" identifier = (binary_expression "iVar1 + -0x30 + uVar3" (binary_expression "iVar1 + -0x30" identifier + number_literal) + identifier)) ;) })) })) (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" identifier = (call_expression "ReadBlobByte(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }" if (parenthesized_expression "(iVar1 == 0x23)" ( (binary_expression "iVar1 == 0x23" identifier == number_literal) )) (compound_statement "{\n      FUN_002438d0();\n    }" { (expression_statement "FUN_002438d0();" (call_expression "FUN_002438d0()" identifier (argument_list "()" ( ))) ;) })) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT >> (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) & LIT) )) != LIT) ))) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (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) ) (pointer_expression * IDENT)) + (binary_expression IDENT * LIT)) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00243980(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00243980") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  ushort **ppuVar2;\n  uint uVar3;\n  \n  do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));\n  uVar3 = iVar1 - 0x30;\n  if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ushort **ppuVar2;" (type_identifier "ushort") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (do_statement "do {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));" (do "do") (compound_statement "{\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      return 0;\n    }\n    if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }\n  }" ({ "{") (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" (identifier "iVar1") (= "=") (call_expression "ReadBlobByte(param_1)" (identifier "ReadBlobByte") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar1 == 0x23) {\n      iVar1 = FUN_002438d0();\n    }" (if "if") (parenthesized_expression "(iVar1 == 0x23)" (( "(") (binary_expression "iVar1 == 0x23" (identifier "iVar1") (== "==") (number_literal "0x23")) () ")")) (compound_statement "{\n      iVar1 = FUN_002438d0();\n    }" ({ "{") (expression_statement "iVar1 = FUN_002438d0();" (assignment_expression "iVar1 = FUN_002438d0()" (identifier "iVar1") (= "=") (call_expression "FUN_002438d0()" (identifier "FUN_002438d0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0))" (( "(") (binary_expression "(iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" (parenthesized_expression "(iVar1 - 9U < 0x18)" (( "(") (binary_expression "iVar1 - 9U < 0x18" (binary_expression "iVar1 - 9U" (identifier "iVar1") (- "-") (number_literal "9U")) (< "<") (number_literal "0x18")) () ")")) (&& "&&") (parenthesized_expression "((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0)" (( "(") (binary_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0" (parenthesized_expression "(0x800013U >> (iVar1 - 9U & 0x1f) & 1)" (( "(") (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f) & 1" (binary_expression "0x800013U >> (iVar1 - 9U & 0x1f)" (number_literal "0x800013U") (>> ">>") (parenthesized_expression "(iVar1 - 9U & 0x1f)" (( "(") (binary_expression "iVar1 - 9U & 0x1f" (binary_expression "iVar1 - 9U" (identifier "iVar1") (- "-") (number_literal "9U")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (; ";")) (expression_statement "uVar3 = iVar1 - 0x30;" (assignment_expression "uVar3 = iVar1 - 0x30" (identifier "uVar3") (= "=") (binary_expression "iVar1 - 0x30" (identifier "iVar1") (- "-") (number_literal "0x30"))) (; ";")) (if_statement "if (param_3 != 2) {\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }" (if "if") (parenthesized_expression "(param_3 != 2)" (( "(") (binary_expression "param_3 != 2" (identifier "param_3") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    ppuVar2 = __ctype_b_loc();\n    uVar3 = 0;\n    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }\n    if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }\n  }" ({ "{") (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 "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" (while "while") (parenthesized_expression "((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0)" (( "(") (binary_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8)" (( "(") (binary_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8" (pointer_expression "*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar2 + iVar1 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar2 + iVar1 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar2 + iVar1 * 2 + 1" (binary_expression "(int)*ppuVar2 + iVar1 * 2" (cast_expression "(int)*ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar2" (* "*") (identifier "ppuVar2"))) (+ "+") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }\n      iVar1 = ReadBlobByte(param_1);\n      if (iVar1 == -1) {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if (uVar3 < 0xccccccd) {\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" (if "if") (parenthesized_expression "(uVar3 < 0xccccccd)" (( "(") (binary_expression "uVar3 < 0xccccccd" (identifier "uVar3") (< "<") (number_literal "0xccccccd")) () ")")) (compound_statement "{\n        uVar3 = uVar3 * 10;\n        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }\n      }" ({ "{") (expression_statement "uVar3 = uVar3 * 10;" (assignment_expression "uVar3 = uVar3 * 10" (identifier "uVar3") (= "=") (binary_expression "uVar3 * 10" (identifier "uVar3") (* "*") (number_literal "10"))) (; ";")) (if_statement "if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" (if "if") (parenthesized_expression "(uVar3 <= 0x7fffffffU - (iVar1 + -0x30))" (( "(") (binary_expression "uVar3 <= 0x7fffffffU - (iVar1 + -0x30)" (identifier "uVar3") (<= "<=") (binary_expression "0x7fffffffU - (iVar1 + -0x30)" (number_literal "0x7fffffffU") (- "-") (parenthesized_expression "(iVar1 + -0x30)" (( "(") (binary_expression "iVar1 + -0x30" (identifier "iVar1") (+ "+") (number_literal "-0x30")) () ")")))) () ")")) (compound_statement "{\n          uVar3 = iVar1 + -0x30 + uVar3;\n        }" ({ "{") (expression_statement "uVar3 = iVar1 + -0x30 + uVar3;" (assignment_expression "uVar3 = iVar1 + -0x30 + uVar3" (identifier "uVar3") (= "=") (binary_expression "iVar1 + -0x30 + uVar3" (binary_expression "iVar1 + -0x30" (identifier "iVar1") (+ "+") (number_literal "-0x30")) (+ "+") (identifier "uVar3"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" (identifier "iVar1") (= "=") (call_expression "ReadBlobByte(param_1)" (identifier "ReadBlobByte") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar1 == 0x23) {\n      FUN_002438d0();\n    }" (if "if") (parenthesized_expression "(iVar1 == 0x23)" (( "(") (binary_expression "iVar1 == 0x23" (identifier "iVar1") (== "==") (number_literal "0x23")) () ")")) (compound_statement "{\n      FUN_002438d0();\n    }" ({ "{") (expression_statement "FUN_002438d0();" (call_expression "FUN_002438d0()" (identifier "FUN_002438d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

type_1 __regparm3
function_1(type_2 *image,type_3 *comment_info,type_1 var_4,type_4 *exception)

{
  int var_2;
  type_5 **ppuVar2;
  type_4 *exception_00;
  type_1 var_6;
  
  do {
    var_2 = var_1(image);
    if (var_2 == -1) {
      return 0;
    }
    if (var_2 == 0x23) {
      var_2 = var_3(image,comment_info,exception_00);
    }
  } while ((var_2 - 9U < 0x18) && ((0x800013U >> (var_2 - 9U & 0x1f) & 1) != 0));
  var_6 = var_2 - 0x30;
  if (var_4 != 2) {
    ppuVar2 = var_5();
    var_6 = 0;
    while ((*(type_6 *)((int)*ppuVar2 + var_2 * 2 + 1) & 8) != 0) {
      if (var_6 < 0xccccccd) {
        var_6 = var_6 * 10;
        if (var_6 <= 0x7fffffffU - (var_2 + -0x30)) {
          var_6 = var_2 + -0x30 + var_6;
        }
      }
      var_2 = var_1(image);
      if (var_2 == -1) {
        return 0;
      }
    }
    if (var_2 == 0x23) {
      var_3(image,comment_info,(type_4 *)0x7fffffff);
    }
  }
  return var_6;
}


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

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

uint __regparm3 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  ushort **ppuVar2;
  uint uVar3;
  
  do {
    iVar1 = ReadBlobByte(param_1);
    if (iVar1 == -1) {
      return 0;
    }
    if (iVar1 == 0x23) {
      iVar1 = FUN_002438d0();
    }
  } while ((iVar1 - 9U < 0x18) && ((0x800013U >> (iVar1 - 9U & 0x1f) & 1) != 0));
  uVar3 = iVar1 - 0x30;
  if (param_3 != 2) {
    ppuVar2 = __ctype_b_loc();
    uVar3 = 0;
    while ((*(byte *)((int)*ppuVar2 + iVar1 * 2 + 1) & 8) != 0) {
      if (uVar3 < 0xccccccd) {
        uVar3 = uVar3 * 10;
        if (uVar3 <= 0x7fffffffU - (iVar1 + -0x30)) {
          uVar3 = iVar1 + -0x30 + uVar3;
        }
      }
      iVar1 = ReadBlobByte(param_1);
      if (iVar1 == -1) {
        return 0;
      }
    }
    if (iVar1 == 0x23) {
      FUN_002438d0();
    }
  }
  return uVar3;
}

