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

long __regparm3 get_char(FILE *stream,file_ptr *address,int *magiccount,char **magic)

{
  byte *pbVar1;
  file_ptr fVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  
  if (encoding_bytes < 1) {
    uVar4 = 0;
  }
  else {
    uVar4 = 0;
    iVar5 = 0;
    do {
      if (*magiccount == 0) {
        if (stream == (FILE *)0x0) {
          return -1;
        }
        pbVar1 = (byte *)stream->_IO_read_ptr;
        if (pbVar1 < stream->_IO_read_end) {
          stream->_IO_read_ptr = (char *)(pbVar1 + 1);
          uVar3 = (uint)*pbVar1;
        }
        else {
          uVar3 = __uflow((_IO_FILE *)stream);
          if (uVar3 == 0xffffffff) {
            return -1;
          }
          uVar3 = uVar3 & 0xff;
        }
      }
      else {
        *magiccount = *magiccount + -1;
        pbVar1 = (byte *)*magic;
        *magic = (char *)(pbVar1 + 1);
        uVar3 = (uint)*pbVar1;
      }
      fVar2 = *address;
      *(int *)address = (int)*address + 1;
      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);
      iVar5 = iVar5 + 1;
      uVar4 = uVar4 << 8 | uVar3;
    } while (iVar5 < encoding_bytes);
  }
  if (encoding != 'L') {
    if (encoding == 'l') {
      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;
    }
    return uVar4;
  }
  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
}



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

uint __regparm3 FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)

{
  uint uVar1;
  byte *pbVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  
  if (DAT_0001920c < 1) {
    uVar4 = 0;
  }
  else {
    uVar4 = 0;
    iVar5 = 0;
    do {
      if (*param_3 == 0) {
        if (param_1 == (_IO_FILE *)0x0) {
          return 0xffffffff;
        }
        pbVar2 = (byte *)param_1->_IO_read_ptr;
        if (pbVar2 < param_1->_IO_read_end) {
          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);
          uVar3 = (uint)*pbVar2;
        }
        else {
          uVar3 = __uflow(param_1);
          if (uVar3 == 0xffffffff) {
            return 0xffffffff;
          }
          uVar3 = uVar3 & 0xff;
        }
      }
      else {
        *param_3 = *param_3 + -1;
        pbVar2 = (byte *)*param_4;
        *param_4 = (int)(pbVar2 + 1);
        uVar3 = (uint)*pbVar2;
      }
      uVar1 = *param_2;
      *param_2 = *param_2 + 1;
      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);
      iVar5 = iVar5 + 1;
      uVar4 = uVar4 << 8 | uVar3;
    } while (iVar5 < DAT_0001920c);
  }
  if (DAT_00019210 != 'L') {
    if (DAT_00019210 == 'l') {
      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;
    }
    return uVar4;
  }
  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011ca0
ADD EBX,0x7217
SUB ESP,0x1c
MOV dword ptr [ESP + 0x4],EBX
MOV EBX,dword ptr [EBX + 0x20c]
TEST EBX,EBX
JLE 0x00011e8a
MOV EBP,EAX
XOR ESI,ESI
XOR EDI,EDI
MOV dword ptr [ESP + 0x8],EDX
JMP 0x00011e46
SUB EAX,0x1
MOV EDX,dword ptr [ESP + 0x30]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
LEA EBX,[EAX + 0x1]
MOV dword ptr [EDX],EBX
MOVZX EAX,byte ptr [EAX]
MOV EDX,dword ptr [ESP + 0x8]
ADD dword ptr [EDX],0x1
ADC dword ptr [EDX + 0x4],0x0
SHL ESI,0x8
ADD EDI,0x1
OR ESI,EAX
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [EAX + 0x20c],EDI
JLE 0x00011e90
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JNZ 0x00011e10
TEST EBP,EBP
JZ 0x00011eb0
MOV EAX,dword ptr [EBP + 0x4]
CMP EAX,dword ptr [EBP + 0x8]
JNC 0x00011e68
LEA EBX,[EAX + 0x1]
MOV dword ptr [EBP + 0x4],EBX
MOVZX EAX,byte ptr [EAX]
JMP 0x00011e27
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH EBP
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x00011350
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00011eb0
MOVZX EAX,AL
MOV ECX,dword ptr [ESP + 0xc]
JMP 0x00011e27
XOR ESI,ESI
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x4]
MOVZX EAX,byte ptr [EAX + 0x210]
CMP AL,0x4c
JZ 0x00011ee0
CMP AL,0x6c
JZ 0x00011ec0
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
MOV ESI,0xffffffff
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
MOV EAX,ESI
MOV EDX,ESI
ADD ESP,0x1c
SHL EAX,0x8
MOVZX ESI,DH
POP EBX
MOVZX EAX,AX
OR ESI,EAX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
BSWAP ESI
MOV EAX,ESI
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\nuint __regparm3 FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}\n\n" comment (function_definition "uint __regparm3 FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)" identifier (parameter_list "(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)" ( (parameter_declaration "_IO_FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" if (parenthesized_expression "(DAT_0001920c < 1)" ( (binary_expression "DAT_0001920c < 1" identifier < number_literal) )) (compound_statement "{\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" else (compound_statement "{\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);" do (compound_statement "{\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    }" { (if_statement "if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" if (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) (compound_statement "{\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }" { (if_statement "if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }" if (parenthesized_expression "(param_1 == (_IO_FILE *)0x0)" ( (binary_expression "param_1 == (_IO_FILE *)0x0" identifier == (cast_expression "(_IO_FILE *)0x0" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 0xffffffff;\n        }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar2 = (byte *)param_1->_IO_read_ptr;" (assignment_expression "pbVar2 = (byte *)param_1->_IO_read_ptr" identifier = (cast_expression "(byte *)param_1->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "param_1->_IO_read_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" if (parenthesized_expression "(pbVar2 < param_1->_IO_read_end)" ( (binary_expression "pbVar2 < param_1->_IO_read_end" identifier < (field_expression "param_1->_IO_read_end" identifier -> field_identifier)) )) (compound_statement "{\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }" { (expression_statement "param_1->_IO_read_ptr = (char *)(pbVar2 + 1);" (assignment_expression "param_1->_IO_read_ptr = (char *)(pbVar2 + 1)" (field_expression "param_1->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" else (compound_statement "{\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" { (expression_statement "uVar3 = __uflow(param_1);" (assignment_expression "uVar3 = __uflow(param_1)" identifier = (call_expression "__uflow(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n            return 0xffffffff;\n          }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar3 = uVar3 & 0xff;" (assignment_expression "uVar3 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) }))) }) (else_clause "else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" else (compound_statement "{\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" { (expression_statement "*param_3 = *param_3 + -1;" (assignment_expression "*param_3 = *param_3 + -1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + -1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_4;" (assignment_expression "pbVar2 = (byte *)*param_4" identifier = (cast_expression "(byte *)*param_4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier))) ;) (expression_statement "*param_4 = (int)(pbVar2 + 1);" (assignment_expression "*param_4 = (int)(pbVar2 + 1)" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);" (assignment_expression "param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + (uint)(0xfffffffe < uVar1)" (subscript_expression "param_2[1]" identifier [ number_literal ]) + (call_expression "(uint)(0xfffffffe < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar1)" ( (binary_expression "0xfffffffe < uVar1" number_literal < identifier) ))))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar4 << 8 | uVar3;" (assignment_expression "uVar4 = uVar4 << 8 | uVar3" identifier = (binary_expression "uVar4 << 8 | uVar3" (binary_expression "uVar4 << 8" identifier << number_literal) | identifier)) ;) }) while (parenthesized_expression "(iVar5 < DAT_0001920c)" ( (binary_expression "iVar5 < DAT_0001920c" identifier < identifier) )) ;) }))) (if_statement "if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(DAT_00019210 != 'L')" ( (binary_expression "DAT_00019210 != 'L'" identifier != (char_literal "'L'" ' character ')) )) (compound_statement "{\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" { (if_statement "if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" if (parenthesized_expression "(DAT_00019210 == 'l')" ( (binary_expression "DAT_00019210 == 'l'" identifier == (char_literal "'l'" ' character ')) )) (compound_statement "{\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" { (return_statement "return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;" return (binary_expression "uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8" (binary_expression "uVar4 >> 8 & 0xff" (binary_expression "uVar4 >> 8" identifier >> number_literal) & number_literal) | (binary_expression "(uVar4 & 0xff) << 8" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) << number_literal)) ;) })) (return_statement "return uVar4;" return identifier ;) })) (return_statement "return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" return (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 << 0x18" identifier << number_literal)) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nlong __regparm3 get_char(FILE *stream,file_ptr *address,int *magiccount,char **magic)\n\n{\n  byte *pbVar1;\n  file_ptr fVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (encoding_bytes < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < encoding_bytes);\n  }\n  if (encoding != 'L') {\n    if (encoding == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}\n\n" comment (function_definition "long __regparm3 get_char(FILE *stream,file_ptr *address,int *magiccount,char **magic)\n\n{\n  byte *pbVar1;\n  file_ptr fVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (encoding_bytes < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < encoding_bytes);\n  }\n  if (encoding != 'L') {\n    if (encoding == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" (sized_type_specifier "long __regparm3" long type_identifier) (function_declarator "get_char(FILE *stream,file_ptr *address,int *magiccount,char **magic)" identifier (parameter_list "(FILE *stream,file_ptr *address,int *magiccount,char **magic)" ( (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) , (parameter_declaration "file_ptr *address" type_identifier (pointer_declarator "*address" * identifier)) , (parameter_declaration "int *magiccount" primitive_type (pointer_declarator "*magiccount" * identifier)) , (parameter_declaration "char **magic" primitive_type (pointer_declarator "**magic" * (pointer_declarator "*magic" * identifier))) ))) (compound_statement "{\n  byte *pbVar1;\n  file_ptr fVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (encoding_bytes < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < encoding_bytes);\n  }\n  if (encoding != 'L') {\n    if (encoding == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "file_ptr fVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (encoding_bytes < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < encoding_bytes);\n  }" if (parenthesized_expression "(encoding_bytes < 1)" ( (binary_expression "encoding_bytes < 1" identifier < number_literal) )) (compound_statement "{\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < encoding_bytes);\n  }" else (compound_statement "{\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < encoding_bytes);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < encoding_bytes);" do (compound_statement "{\n      if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }\n      fVar2 = *address;\n      *(int *)address = (int)*address + 1;\n      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    }" { (if_statement "if (*magiccount == 0) {\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }" if (parenthesized_expression "(*magiccount == 0)" ( (binary_expression "*magiccount == 0" (pointer_expression "*magiccount" * identifier) == number_literal) )) (compound_statement "{\n        if (stream == (FILE *)0x0) {\n          return -1;\n        }\n        pbVar1 = (byte *)stream->_IO_read_ptr;\n        if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }" { (if_statement "if (stream == (FILE *)0x0) {\n          return -1;\n        }" if (parenthesized_expression "(stream == (FILE *)0x0)" ( (binary_expression "stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "pbVar1 = (byte *)stream->_IO_read_ptr;" (assignment_expression "pbVar1 = (byte *)stream->_IO_read_ptr" identifier = (cast_expression "(byte *)stream->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "stream->_IO_read_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar1 < stream->_IO_read_end) {\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }\n        else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" if (parenthesized_expression "(pbVar1 < stream->_IO_read_end)" ( (binary_expression "pbVar1 < stream->_IO_read_end" identifier < (field_expression "stream->_IO_read_end" identifier -> field_identifier)) )) (compound_statement "{\n          stream->_IO_read_ptr = (char *)(pbVar1 + 1);\n          uVar3 = (uint)*pbVar1;\n        }" { (expression_statement "stream->_IO_read_ptr = (char *)(pbVar1 + 1);" (assignment_expression "stream->_IO_read_ptr = (char *)(pbVar1 + 1)" (field_expression "stream->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar1 + 1)" ( (binary_expression "pbVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (uint)*pbVar1;" (assignment_expression "uVar3 = (uint)*pbVar1" identifier = (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" else (compound_statement "{\n          uVar3 = __uflow((_IO_FILE *)stream);\n          if (uVar3 == 0xffffffff) {\n            return -1;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" { (expression_statement "uVar3 = __uflow((_IO_FILE *)stream);" (assignment_expression "uVar3 = __uflow((_IO_FILE *)stream)" identifier = (call_expression "__uflow((_IO_FILE *)stream)" identifier (argument_list "((_IO_FILE *)stream)" ( (cast_expression "(_IO_FILE *)stream" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (uVar3 == 0xffffffff) {\n            return -1;\n          }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n            return -1;\n          }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "uVar3 = uVar3 & 0xff;" (assignment_expression "uVar3 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) }))) }) (else_clause "else {\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }" else (compound_statement "{\n        *magiccount = *magiccount + -1;\n        pbVar1 = (byte *)*magic;\n        *magic = (char *)(pbVar1 + 1);\n        uVar3 = (uint)*pbVar1;\n      }" { (expression_statement "*magiccount = *magiccount + -1;" (assignment_expression "*magiccount = *magiccount + -1" (pointer_expression "*magiccount" * identifier) = (binary_expression "*magiccount + -1" (pointer_expression "*magiccount" * identifier) + number_literal)) ;) (expression_statement "pbVar1 = (byte *)*magic;" (assignment_expression "pbVar1 = (byte *)*magic" identifier = (cast_expression "(byte *)*magic" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*magic" * identifier))) ;) (expression_statement "*magic = (char *)(pbVar1 + 1);" (assignment_expression "*magic = (char *)(pbVar1 + 1)" (pointer_expression "*magic" * identifier) = (cast_expression "(char *)(pbVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar1 + 1)" ( (binary_expression "pbVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (uint)*pbVar1;" (assignment_expression "uVar3 = (uint)*pbVar1" identifier = (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (expression_statement "fVar2 = *address;" (assignment_expression "fVar2 = *address" identifier = (pointer_expression "*address" * identifier)) ;) (expression_statement "*(int *)address = (int)*address + 1;" (assignment_expression "*(int *)address = (int)*address + 1" (pointer_expression "*(int *)address" * (cast_expression "(int *)address" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*address + 1" (cast_expression "(int)*address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*address" * identifier)) + number_literal)) ;) (expression_statement "*(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2);" (assignment_expression "*(int *)((int)address + 4) = *(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2)" (pointer_expression "*(int *)((int)address + 4)" * (cast_expression "(int *)((int)address + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)address + 4)" ( (binary_expression "(int)address + 4" (cast_expression "(int)address" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)address + 4) + (uint)(0xfffffffe < (uint)fVar2)" (pointer_expression "*(int *)((int)address + 4)" * (cast_expression "(int *)((int)address + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)address + 4)" ( (binary_expression "(int)address + 4" (cast_expression "(int)address" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (call_expression "(uint)(0xfffffffe < (uint)fVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < (uint)fVar2)" ( (binary_expression "0xfffffffe < (uint)fVar2" number_literal < (cast_expression "(uint)fVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar4 << 8 | uVar3;" (assignment_expression "uVar4 = uVar4 << 8 | uVar3" identifier = (binary_expression "uVar4 << 8 | uVar3" (binary_expression "uVar4 << 8" identifier << number_literal) | identifier)) ;) }) while (parenthesized_expression "(iVar5 < encoding_bytes)" ( (binary_expression "iVar5 < encoding_bytes" identifier < identifier) )) ;) }))) (if_statement "if (encoding != 'L') {\n    if (encoding == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(encoding != 'L')" ( (binary_expression "encoding != 'L'" identifier != (char_literal "'L'" ' character ')) )) (compound_statement "{\n    if (encoding == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" { (if_statement "if (encoding == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" if (parenthesized_expression "(encoding == 'l')" ( (binary_expression "encoding == 'l'" identifier == (char_literal "'l'" ' character ')) )) (compound_statement "{\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" { (return_statement "return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;" return (binary_expression "uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8" (binary_expression "uVar4 >> 8 & 0xff" (binary_expression "uVar4 >> 8" identifier >> number_literal) & number_literal) | (binary_expression "(uVar4 & 0xff) << 8" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) << number_literal)) ;) })) (return_statement "return uVar4;" return identifier ;) })) (return_statement "return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" return (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 << 0x18" identifier << number_literal)) ;) })))
(translation_unit "uint __regparm3 FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}\n\n" (function_definition "uint __regparm3 FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)" identifier (parameter_list "(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)" ( (parameter_declaration "_IO_FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" if (parenthesized_expression "(DAT_0001920c < 1)" ( (binary_expression "DAT_0001920c < 1" identifier < number_literal) )) (compound_statement "{\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" else (compound_statement "{\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);" do (compound_statement "{\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    }" { (if_statement "if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" if (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) (compound_statement "{\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }" { (if_statement "if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }" if (parenthesized_expression "(param_1 == (_IO_FILE *)0x0)" ( (binary_expression "param_1 == (_IO_FILE *)0x0" identifier == (cast_expression "(_IO_FILE *)0x0" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 0xffffffff;\n        }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar2 = (byte *)param_1->_IO_read_ptr;" (assignment_expression "pbVar2 = (byte *)param_1->_IO_read_ptr" identifier = (cast_expression "(byte *)param_1->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "param_1->_IO_read_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" if (parenthesized_expression "(pbVar2 < param_1->_IO_read_end)" ( (binary_expression "pbVar2 < param_1->_IO_read_end" identifier < (field_expression "param_1->_IO_read_end" identifier -> field_identifier)) )) (compound_statement "{\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }" { (expression_statement "param_1->_IO_read_ptr = (char *)(pbVar2 + 1);" (assignment_expression "param_1->_IO_read_ptr = (char *)(pbVar2 + 1)" (field_expression "param_1->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" else (compound_statement "{\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" { (expression_statement "uVar3 = __uflow(param_1);" (assignment_expression "uVar3 = __uflow(param_1)" identifier = (call_expression "__uflow(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n            return 0xffffffff;\n          }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar3 = uVar3 & 0xff;" (assignment_expression "uVar3 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) }))) }) (else_clause "else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" else (compound_statement "{\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" { (expression_statement "*param_3 = *param_3 + -1;" (assignment_expression "*param_3 = *param_3 + -1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + -1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_4;" (assignment_expression "pbVar2 = (byte *)*param_4" identifier = (cast_expression "(byte *)*param_4" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_4" * identifier))) ;) (expression_statement "*param_4 = (int)(pbVar2 + 1);" (assignment_expression "*param_4 = (int)(pbVar2 + 1)" (pointer_expression "*param_4" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);" (assignment_expression "param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + (uint)(0xfffffffe < uVar1)" (subscript_expression "param_2[1]" identifier [ number_literal ]) + (call_expression "(uint)(0xfffffffe < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar1)" ( (binary_expression "0xfffffffe < uVar1" number_literal < identifier) ))))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar4 << 8 | uVar3;" (assignment_expression "uVar4 = uVar4 << 8 | uVar3" identifier = (binary_expression "uVar4 << 8 | uVar3" (binary_expression "uVar4 << 8" identifier << number_literal) | identifier)) ;) }) while (parenthesized_expression "(iVar5 < DAT_0001920c)" ( (binary_expression "iVar5 < DAT_0001920c" identifier < identifier) )) ;) }))) (if_statement "if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(DAT_00019210 != 'L')" ( (binary_expression "DAT_00019210 != 'L'" identifier != (char_literal "'L'" ' character ')) )) (compound_statement "{\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" { (if_statement "if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" if (parenthesized_expression "(DAT_00019210 == 'l')" ( (binary_expression "DAT_00019210 == 'l'" identifier == (char_literal "'l'" ' character ')) )) (compound_statement "{\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" { (return_statement "return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;" return (binary_expression "uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8" (binary_expression "uVar4 >> 8 & 0xff" (binary_expression "uVar4 >> 8" identifier >> number_literal) & number_literal) | (binary_expression "(uVar4 & 0xff) << 8" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) << number_literal)) ;) })) (return_statement "return uVar4;" return identifier ;) })) (return_statement "return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" return (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 << 0x18" identifier << number_literal)) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) (else_clause else (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 ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) | IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (return_statement return (binary_expression (binary_expression (binary_expression IDENT >> LIT) & LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) ;) })) (return_statement return IDENT ;) })) (return_statement return (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ;) })))
(function_definition "uint __regparm3 FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)\n\n{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00011de0(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)" (identifier "FUN_00011de0") (parameter_list "(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)" (( "(") (parameter_declaration "_IO_FILE *param_1" (type_identifier "_IO_FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }\n  if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }\n  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (if_statement "if (DAT_0001920c < 1) {\n    uVar4 = 0;\n  }\n  else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" (if "if") (parenthesized_expression "(DAT_0001920c < 1)" (( "(") (binary_expression "DAT_0001920c < 1" (identifier "DAT_0001920c") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    uVar4 = 0;\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" (else "else") (compound_statement "{\n    uVar4 = 0;\n    iVar5 = 0;\n    do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    } while (iVar5 < DAT_0001920c);" (do "do") (compound_statement "{\n      if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }\n      uVar1 = *param_2;\n      *param_2 = *param_2 + 1;\n      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);\n      iVar5 = iVar5 + 1;\n      uVar4 = uVar4 << 8 | uVar3;\n    }" ({ "{") (if_statement "if (*param_3 == 0) {\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }\n      else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" (if "if") (parenthesized_expression "(*param_3 == 0)" (( "(") (binary_expression "*param_3 == 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }\n        pbVar2 = (byte *)param_1->_IO_read_ptr;\n        if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }\n      }" ({ "{") (if_statement "if (param_1 == (_IO_FILE *)0x0) {\n          return 0xffffffff;\n        }" (if "if") (parenthesized_expression "(param_1 == (_IO_FILE *)0x0)" (( "(") (binary_expression "param_1 == (_IO_FILE *)0x0" (identifier "param_1") (== "==") (cast_expression "(_IO_FILE *)0x0" (( "(") (type_descriptor "_IO_FILE *" (type_identifier "_IO_FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          return 0xffffffff;\n        }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "pbVar2 = (byte *)param_1->_IO_read_ptr;" (assignment_expression "pbVar2 = (byte *)param_1->_IO_read_ptr" (identifier "pbVar2") (= "=") (cast_expression "(byte *)param_1->_IO_read_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "param_1->_IO_read_ptr" (identifier "param_1") (-> "->") (field_identifier "_IO_read_ptr")))) (; ";")) (if_statement "if (pbVar2 < param_1->_IO_read_end) {\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }\n        else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" (if "if") (parenthesized_expression "(pbVar2 < param_1->_IO_read_end)" (( "(") (binary_expression "pbVar2 < param_1->_IO_read_end" (identifier "pbVar2") (< "<") (field_expression "param_1->_IO_read_end" (identifier "param_1") (-> "->") (field_identifier "_IO_read_end"))) () ")")) (compound_statement "{\n          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);\n          uVar3 = (uint)*pbVar2;\n        }" ({ "{") (expression_statement "param_1->_IO_read_ptr = (char *)(pbVar2 + 1);" (assignment_expression "param_1->_IO_read_ptr = (char *)(pbVar2 + 1)" (field_expression "param_1->_IO_read_ptr" (identifier "param_1") (-> "->") (field_identifier "_IO_read_ptr")) (= "=") (cast_expression "(char *)(pbVar2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2"))) (; ";")) (} "}")) (else_clause "else {\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" (else "else") (compound_statement "{\n          uVar3 = __uflow(param_1);\n          if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }\n          uVar3 = uVar3 & 0xff;\n        }" ({ "{") (expression_statement "uVar3 = __uflow(param_1);" (assignment_expression "uVar3 = __uflow(param_1)" (identifier "uVar3") (= "=") (call_expression "__uflow(param_1)" (identifier "__uflow") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (uVar3 == 0xffffffff) {\n            return 0xffffffff;\n          }" (if "if") (parenthesized_expression "(uVar3 == 0xffffffff)" (( "(") (binary_expression "uVar3 == 0xffffffff" (identifier "uVar3") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n            return 0xffffffff;\n          }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "uVar3 = uVar3 & 0xff;" (assignment_expression "uVar3 = uVar3 & 0xff" (identifier "uVar3") (= "=") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" (else "else") (compound_statement "{\n        *param_3 = *param_3 + -1;\n        pbVar2 = (byte *)*param_4;\n        *param_4 = (int)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n      }" ({ "{") (expression_statement "*param_3 = *param_3 + -1;" (assignment_expression "*param_3 = *param_3 + -1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + -1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_4;" (assignment_expression "pbVar2 = (byte *)*param_4" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_4" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_4" (* "*") (identifier "param_4")))) (; ";")) (expression_statement "*param_4 = (int)(pbVar2 + 1);" (assignment_expression "*param_4 = (int)(pbVar2 + 1)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2"))) (; ";")) (} "}")))) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);" (assignment_expression "param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1)" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2[1] + (uint)(0xfffffffe < uVar1)" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (call_expression "(uint)(0xfffffffe < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0xfffffffe < uVar1)" (( "(") (binary_expression "0xfffffffe < uVar1" (number_literal "0xfffffffe") (< "<") (identifier "uVar1")) () ")"))))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = uVar4 << 8 | uVar3;" (assignment_expression "uVar4 = uVar4 << 8 | uVar3" (identifier "uVar4") (= "=") (binary_expression "uVar4 << 8 | uVar3" (binary_expression "uVar4 << 8" (identifier "uVar4") (<< "<<") (number_literal "8")) (| "|") (identifier "uVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < DAT_0001920c)" (( "(") (binary_expression "iVar5 < DAT_0001920c" (identifier "iVar5") (< "<") (identifier "DAT_0001920c")) () ")")) (; ";")) (} "}")))) (if_statement "if (DAT_00019210 != 'L') {\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(DAT_00019210 != 'L')" (( "(") (binary_expression "DAT_00019210 != 'L'" (identifier "DAT_00019210") (!= "!=") (char_literal "'L'" (' "'") (character "L") (' "'"))) () ")")) (compound_statement "{\n    if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }\n    return uVar4;\n  }" ({ "{") (if_statement "if (DAT_00019210 == 'l') {\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" (if "if") (parenthesized_expression "(DAT_00019210 == 'l')" (( "(") (binary_expression "DAT_00019210 == 'l'" (identifier "DAT_00019210") (== "==") (char_literal "'l'" (' "'") (character "l") (' "'"))) () ")")) (compound_statement "{\n      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;\n    }" ({ "{") (return_statement "return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;" (return "return") (binary_expression "uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8" (binary_expression "uVar4 >> 8 & 0xff" (binary_expression "uVar4 >> 8" (identifier "uVar4") (>> ">>") (number_literal "8")) (& "&") (number_literal "0xff")) (| "|") (binary_expression "(uVar4 & 0xff) << 8" (parenthesized_expression "(uVar4 & 0xff)" (( "(") (binary_expression "uVar4 & 0xff" (identifier "uVar4") (& "&") (number_literal "0xff")) () ")")) (<< "<<") (number_literal "8"))) (; ";")) (} "}"))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (return_statement "return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (return "return") (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" (( "(") (binary_expression "uVar4 & 0xff0000" (identifier "uVar4") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" (( "(") (binary_expression "uVar4 & 0xff00" (identifier "uVar4") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar4 << 0x18" (identifier "uVar4") (<< "<<") (number_literal "0x18"))) (; ";")) (} "}")))

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

long type_1 function_1(type_2 *var_2,type_3 *address,int *magiccount,char **magic)

{
  type_4 *var_3;
  type_3 fVar2;
  type_5 var_5;
  type_5 var_7;
  int var_6;
  
  if (var_1 < 1) {
    var_7 = 0;
  }
  else {
    var_7 = 0;
    var_6 = 0;
    do {
      if (*magiccount == 0) {
        if (var_2 == (type_2 *)0x0) {
          return -1;
        }
        var_3 = (type_4 *)var_2->_IO_read_ptr;
        if (var_3 < var_2->_IO_read_end) {
          var_2->_IO_read_ptr = (char *)(var_3 + 1);
          var_5 = (type_5)*var_3;
        }
        else {
          var_5 = var_4((type_6 *)var_2);
          if (var_5 == 0xffffffff) {
            return -1;
          }
          var_5 = var_5 & 0xff;
        }
      }
      else {
        *magiccount = *magiccount + -1;
        var_3 = (type_4 *)*magic;
        *magic = (char *)(var_3 + 1);
        var_5 = (type_5)*var_3;
      }
      fVar2 = *address;
      *(int *)address = (int)*address + 1;
      *(int *)((int)address + 4) = *(int *)((int)address + 4) + (type_5)(0xfffffffe < (type_5)fVar2);
      var_6 = var_6 + 1;
      var_7 = var_7 << 8 | var_5;
    } while (var_6 < var_1);
  }
  if (var_8 != 'L') {
    if (var_8 == 'l') {
      return var_7 >> 8 & 0xff | (var_7 & 0xff) << 8;
    }
    return var_7;
  }
  return var_7 >> 0x18 | (var_7 & 0xff0000) >> 8 | (var_7 & 0xff00) << 8 | var_7 << 0x18;
}


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

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

uint __regparm3 MASKED(_IO_FILE *param_1,uint *param_2,int *param_3,int *param_4)

{
  uint uVar1;
  byte *pbVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  
  if (DAT_0001920c < 1) {
    uVar4 = 0;
  }
  else {
    uVar4 = 0;
    iVar5 = 0;
    do {
      if (*param_3 == 0) {
        if (param_1 == (_IO_FILE *)0x0) {
          return 0xffffffff;
        }
        pbVar2 = (byte *)param_1->_IO_read_ptr;
        if (pbVar2 < param_1->_IO_read_end) {
          param_1->_IO_read_ptr = (char *)(pbVar2 + 1);
          uVar3 = (uint)*pbVar2;
        }
        else {
          uVar3 = __uflow(param_1);
          if (uVar3 == 0xffffffff) {
            return 0xffffffff;
          }
          uVar3 = uVar3 & 0xff;
        }
      }
      else {
        *param_3 = *param_3 + -1;
        pbVar2 = (byte *)*param_4;
        *param_4 = (int)(pbVar2 + 1);
        uVar3 = (uint)*pbVar2;
      }
      uVar1 = *param_2;
      *param_2 = *param_2 + 1;
      param_2[1] = param_2[1] + (uint)(0xfffffffe < uVar1);
      iVar5 = iVar5 + 1;
      uVar4 = uVar4 << 8 | uVar3;
    } while (iVar5 < DAT_0001920c);
  }
  if (DAT_00019210 != 'L') {
    if (DAT_00019210 == 'l') {
      return uVar4 >> 8 & 0xff | (uVar4 & 0xff) << 8;
    }
    return uVar4;
  }
  return uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
}

