
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int __regparm3 next_bits(int number_of_bits)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = littlenums_left;
  if (littlenums_left != 0) {
    if (number_of_bits < bits_left_in_littlenum) {
      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;
      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &
             mask[number_of_bits];
    }
    iVar1 = number_of_bits - bits_left_in_littlenum;
    littlenums_left = littlenums_left + -1;
    uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f);
    if (littlenums_left != 0) {
      bits_left_in_littlenum = 0x10 - iVar1;
      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &
                      mask[iVar1];
      littlenum_pointer = littlenum_pointer + -1;
    }
  }
  return uVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint __regparm3 FUN_00058510(int param_1)

{
  uint uVar1;
  
  uVar1 = DAT_00089678;
  if (DAT_00089678 != 0) {
    if (param_1 < DAT_0008967c) {
      DAT_0008967c = DAT_0008967c - param_1;
      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &
             *(uint *)(&DAT_00066380 + param_1 * 4);
    }
    param_1 = param_1 - DAT_0008967c;
    DAT_00089678 = DAT_00089678 - 1;
    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<
            ((byte)param_1 & 0x1f);
    if (DAT_00089678 != 0) {
      DAT_0008967c = 0x10 - param_1;
      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &
                      *(uint *)(&DAT_00066380 + param_1 * 4);
      DAT_00089674 = DAT_00089674 + -1;
    }
  }
  return uVar1;
}


CALL 0x00016135
ADD EDX,0x27aeb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [EDX + 0x9678]
TEST EBX,EBX
JZ 0x00058584
MOV ESI,dword ptr [EDX + 0x9674]
MOV ECX,dword ptr [EDX + 0x967c]
MOVZX EDI,word ptr [ESI]
CMP ECX,EAX
JG 0x00058590
LEA EBP,[EDX + 0xfffe6380]
SUB EAX,ECX
AND EDI,dword ptr [EBP + ECX*0x4]
MOV ECX,EAX
MOV dword ptr [ESP],EDI
LEA EDI,[EBX + -0x1]
MOV EBX,dword ptr [ESP]
MOV dword ptr [EDX + 0x9678],EDI
SHL EBX,CL
TEST EDI,EDI
JZ 0x00058584
MOV ECX,0x10
LEA EDI,[ESI + -0x2]
SUB ECX,EAX
MOV dword ptr [EDX + 0x9674],EDI
MOV dword ptr [EDX + 0x967c],ECX
MOVZX EDX,word ptr [ESI + -0x2]
SAR EDX,CL
AND EDX,dword ptr [EBP + EAX*0x4]
OR EBX,EDX
ADD ESP,0x4
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ECX,EAX
MOVZX EBX,DI
MOV dword ptr [EDX + 0x967c],ECX
SAR EBX,CL
AND EBX,dword ptr [EDX + EAX*0x4 + 0xfffe6380]
ADD ESP,0x4
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nuint __regparm3 FUN_00058510(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}\n\n" comment (function_definition "uint __regparm3 FUN_00058510(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00058510(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = DAT_00089678;" (assignment_expression "uVar1 = DAT_00089678" identifier = identifier) ;) (if_statement "if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }" if (parenthesized_expression "(DAT_00089678 != 0)" ( (binary_expression "DAT_00089678 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }" { (if_statement "if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }" if (parenthesized_expression "(param_1 < DAT_0008967c)" ( (binary_expression "param_1 < DAT_0008967c" identifier < identifier) )) (compound_statement "{\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }" { (expression_statement "DAT_0008967c = DAT_0008967c - param_1;" (assignment_expression "DAT_0008967c = DAT_0008967c - param_1" identifier = (binary_expression "DAT_0008967c - param_1" identifier - identifier)) ;) (return_statement "return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);" return (binary_expression "(int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4)" (binary_expression "(int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f)" (binary_expression "(int)(uint)*DAT_00089674" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier) >> (parenthesized_expression "((byte)DAT_0008967c & 0x1f)" ( (binary_expression "(byte)DAT_0008967c & 0x1f" (cast_expression "(byte)DAT_0008967c" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (pointer_expression "*(uint *)(&DAT_00066380 + param_1 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + param_1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + param_1 * 4)" ( (binary_expression "&DAT_00066380 + param_1 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "param_1 * 4" identifier * number_literal)) ))))) ;) })) (expression_statement "param_1 = param_1 - DAT_0008967c;" (assignment_expression "param_1 = param_1 - DAT_0008967c" identifier = (binary_expression "param_1 - DAT_0008967c" identifier - identifier)) ;) (expression_statement "DAT_00089678 = DAT_00089678 - 1;" (assignment_expression "DAT_00089678 = DAT_00089678 - 1" identifier = (binary_expression "DAT_00089678 - 1" identifier - number_literal)) ;) (expression_statement "uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);" (assignment_expression "uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f)" identifier = (binary_expression "((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f)" (parenthesized_expression "((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4))" ( (binary_expression "(uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)" (binary_expression "(uint)*DAT_00089674" (parenthesized_expression "(uint)" ( identifier )) * identifier) & (pointer_expression "*(uint *)(&DAT_00066380 + DAT_0008967c * 4)" * (cast_expression "(uint *)(&DAT_00066380 + DAT_0008967c * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + DAT_0008967c * 4)" ( (binary_expression "&DAT_00066380 + DAT_0008967c * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "DAT_0008967c * 4" identifier * number_literal)) ))))) )) << (parenthesized_expression "((byte)param_1 & 0x1f)" ( (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (if_statement "if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }" if (parenthesized_expression "(DAT_00089678 != 0)" ( (binary_expression "DAT_00089678 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }" { (expression_statement "DAT_0008967c = 0x10 - param_1;" (assignment_expression "DAT_0008967c = 0x10 - param_1" identifier = (binary_expression "0x10 - param_1" number_literal - identifier)) ;) (expression_statement "uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);" (assignment_expression "uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" identifier = (binary_expression "uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" identifier | (binary_expression "(int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" (binary_expression "(int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f)" (cast_expression "(int)(uint)DAT_00089674[-1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)DAT_00089674[-1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "DAT_00089674[-1]" identifier [ number_literal ]))) >> (parenthesized_expression "((byte)DAT_0008967c & 0x1f)" ( (binary_expression "(byte)DAT_0008967c & 0x1f" (cast_expression "(byte)DAT_0008967c" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (pointer_expression "*(uint *)(&DAT_00066380 + param_1 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + param_1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + param_1 * 4)" ( (binary_expression "&DAT_00066380 + param_1 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "param_1 * 4" identifier * number_literal)) ))))))) ;) (expression_statement "DAT_00089674 = DAT_00089674 + -1;" (assignment_expression "DAT_00089674 = DAT_00089674 + -1" identifier = (binary_expression "DAT_00089674 + -1" identifier + number_literal)) ;) })) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nint __regparm3 next_bits(int number_of_bits)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = littlenums_left;\n  if (littlenums_left != 0) {\n    if (number_of_bits < bits_left_in_littlenum) {\n      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;\n      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];\n    }\n    iVar1 = number_of_bits - bits_left_in_littlenum;\n    littlenums_left = littlenums_left + -1;\n    uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f);\n    if (littlenums_left != 0) {\n      bits_left_in_littlenum = 0x10 - iVar1;\n      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];\n      littlenum_pointer = littlenum_pointer + -1;\n    }\n  }\n  return uVar2;\n}\n\n" comment (function_definition "int __regparm3 next_bits(int number_of_bits)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = littlenums_left;\n  if (littlenums_left != 0) {\n    if (number_of_bits < bits_left_in_littlenum) {\n      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;\n      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];\n    }\n    iVar1 = number_of_bits - bits_left_in_littlenum;\n    littlenums_left = littlenums_left + -1;\n    uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f);\n    if (littlenums_left != 0) {\n      bits_left_in_littlenum = 0x10 - iVar1;\n      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];\n      littlenum_pointer = littlenum_pointer + -1;\n    }\n  }\n  return uVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "next_bits(int number_of_bits)" identifier (parameter_list "(int number_of_bits)" ( (parameter_declaration "int number_of_bits" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = littlenums_left;\n  if (littlenums_left != 0) {\n    if (number_of_bits < bits_left_in_littlenum) {\n      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;\n      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];\n    }\n    iVar1 = number_of_bits - bits_left_in_littlenum;\n    littlenums_left = littlenums_left + -1;\n    uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f);\n    if (littlenums_left != 0) {\n      bits_left_in_littlenum = 0x10 - iVar1;\n      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];\n      littlenum_pointer = littlenum_pointer + -1;\n    }\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = littlenums_left;" (assignment_expression "uVar2 = littlenums_left" identifier = identifier) ;) (if_statement "if (littlenums_left != 0) {\n    if (number_of_bits < bits_left_in_littlenum) {\n      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;\n      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];\n    }\n    iVar1 = number_of_bits - bits_left_in_littlenum;\n    littlenums_left = littlenums_left + -1;\n    uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f);\n    if (littlenums_left != 0) {\n      bits_left_in_littlenum = 0x10 - iVar1;\n      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];\n      littlenum_pointer = littlenum_pointer + -1;\n    }\n  }" if (parenthesized_expression "(littlenums_left != 0)" ( (binary_expression "littlenums_left != 0" identifier != number_literal) )) (compound_statement "{\n    if (number_of_bits < bits_left_in_littlenum) {\n      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;\n      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];\n    }\n    iVar1 = number_of_bits - bits_left_in_littlenum;\n    littlenums_left = littlenums_left + -1;\n    uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f);\n    if (littlenums_left != 0) {\n      bits_left_in_littlenum = 0x10 - iVar1;\n      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];\n      littlenum_pointer = littlenum_pointer + -1;\n    }\n  }" { (if_statement "if (number_of_bits < bits_left_in_littlenum) {\n      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;\n      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];\n    }" if (parenthesized_expression "(number_of_bits < bits_left_in_littlenum)" ( (binary_expression "number_of_bits < bits_left_in_littlenum" identifier < identifier) )) (compound_statement "{\n      bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;\n      return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];\n    }" { (expression_statement "bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits;" (assignment_expression "bits_left_in_littlenum = bits_left_in_littlenum - number_of_bits" identifier = (binary_expression "bits_left_in_littlenum - number_of_bits" identifier - identifier)) ;) (return_statement "return (int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits];" return (binary_expression "(int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f) &\n             mask[number_of_bits]" (binary_expression "(int)(uint)*littlenum_pointer >> ((byte)bits_left_in_littlenum & 0x1f)" (binary_expression "(int)(uint)*littlenum_pointer" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier) >> (parenthesized_expression "((byte)bits_left_in_littlenum & 0x1f)" ( (binary_expression "(byte)bits_left_in_littlenum & 0x1f" (cast_expression "(byte)bits_left_in_littlenum" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (subscript_expression "mask[number_of_bits]" identifier [ identifier ])) ;) })) (expression_statement "iVar1 = number_of_bits - bits_left_in_littlenum;" (assignment_expression "iVar1 = number_of_bits - bits_left_in_littlenum" identifier = (binary_expression "number_of_bits - bits_left_in_littlenum" identifier - identifier)) ;) (expression_statement "littlenums_left = littlenums_left + -1;" (assignment_expression "littlenums_left = littlenums_left + -1" identifier = (binary_expression "littlenums_left + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f);" (assignment_expression "uVar2 = ((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f)" identifier = (binary_expression "((uint)*littlenum_pointer & mask[bits_left_in_littlenum]) << ((byte)iVar1 & 0x1f)" (parenthesized_expression "((uint)*littlenum_pointer & mask[bits_left_in_littlenum])" ( (binary_expression "(uint)*littlenum_pointer & mask[bits_left_in_littlenum]" (binary_expression "(uint)*littlenum_pointer" (parenthesized_expression "(uint)" ( identifier )) * identifier) & (subscript_expression "mask[bits_left_in_littlenum]" identifier [ identifier ])) )) << (parenthesized_expression "((byte)iVar1 & 0x1f)" ( (binary_expression "(byte)iVar1 & 0x1f" (cast_expression "(byte)iVar1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (if_statement "if (littlenums_left != 0) {\n      bits_left_in_littlenum = 0x10 - iVar1;\n      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];\n      littlenum_pointer = littlenum_pointer + -1;\n    }" if (parenthesized_expression "(littlenums_left != 0)" ( (binary_expression "littlenums_left != 0" identifier != number_literal) )) (compound_statement "{\n      bits_left_in_littlenum = 0x10 - iVar1;\n      uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];\n      littlenum_pointer = littlenum_pointer + -1;\n    }" { (expression_statement "bits_left_in_littlenum = 0x10 - iVar1;" (assignment_expression "bits_left_in_littlenum = 0x10 - iVar1" identifier = (binary_expression "0x10 - iVar1" number_literal - identifier)) ;) (expression_statement "uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1];" (assignment_expression "uVar2 = uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1]" identifier = (binary_expression "uVar2 | (int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1]" identifier | (binary_expression "(int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f) &\n                      mask[iVar1]" (binary_expression "(int)(uint)littlenum_pointer[-1] >> ((byte)bits_left_in_littlenum & 0x1f)" (cast_expression "(int)(uint)littlenum_pointer[-1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)littlenum_pointer[-1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "littlenum_pointer[-1]" identifier [ number_literal ]))) >> (parenthesized_expression "((byte)bits_left_in_littlenum & 0x1f)" ( (binary_expression "(byte)bits_left_in_littlenum & 0x1f" (cast_expression "(byte)bits_left_in_littlenum" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (subscript_expression "mask[iVar1]" identifier [ identifier ])))) ;) (expression_statement "littlenum_pointer = littlenum_pointer + -1;" (assignment_expression "littlenum_pointer = littlenum_pointer + -1" identifier = (binary_expression "littlenum_pointer + -1" identifier + number_literal)) ;) })) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "uint __regparm3 FUN_00058510(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "uint __regparm3 FUN_00058510(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00058510(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = DAT_00089678;" (assignment_expression "uVar1 = DAT_00089678" identifier = identifier) ;) (if_statement "if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }" if (parenthesized_expression "(DAT_00089678 != 0)" ( (binary_expression "DAT_00089678 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }" { (if_statement "if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }" if (parenthesized_expression "(param_1 < DAT_0008967c)" ( (binary_expression "param_1 < DAT_0008967c" identifier < identifier) )) (compound_statement "{\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }" { (expression_statement "DAT_0008967c = DAT_0008967c - param_1;" (assignment_expression "DAT_0008967c = DAT_0008967c - param_1" identifier = (binary_expression "DAT_0008967c - param_1" identifier - identifier)) ;) (return_statement "return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);" return (binary_expression "(int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4)" (binary_expression "(int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f)" (binary_expression "(int)(uint)*DAT_00089674" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * identifier) >> (parenthesized_expression "((byte)DAT_0008967c & 0x1f)" ( (binary_expression "(byte)DAT_0008967c & 0x1f" (cast_expression "(byte)DAT_0008967c" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (pointer_expression "*(uint *)(&DAT_00066380 + param_1 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + param_1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + param_1 * 4)" ( (binary_expression "&DAT_00066380 + param_1 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "param_1 * 4" identifier * number_literal)) ))))) ;) })) (expression_statement "param_1 = param_1 - DAT_0008967c;" (assignment_expression "param_1 = param_1 - DAT_0008967c" identifier = (binary_expression "param_1 - DAT_0008967c" identifier - identifier)) ;) (expression_statement "DAT_00089678 = DAT_00089678 - 1;" (assignment_expression "DAT_00089678 = DAT_00089678 - 1" identifier = (binary_expression "DAT_00089678 - 1" identifier - number_literal)) ;) (expression_statement "uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);" (assignment_expression "uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f)" identifier = (binary_expression "((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f)" (parenthesized_expression "((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4))" ( (binary_expression "(uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)" (binary_expression "(uint)*DAT_00089674" (parenthesized_expression "(uint)" ( identifier )) * identifier) & (pointer_expression "*(uint *)(&DAT_00066380 + DAT_0008967c * 4)" * (cast_expression "(uint *)(&DAT_00066380 + DAT_0008967c * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + DAT_0008967c * 4)" ( (binary_expression "&DAT_00066380 + DAT_0008967c * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "DAT_0008967c * 4" identifier * number_literal)) ))))) )) << (parenthesized_expression "((byte)param_1 & 0x1f)" ( (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (if_statement "if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }" if (parenthesized_expression "(DAT_00089678 != 0)" ( (binary_expression "DAT_00089678 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }" { (expression_statement "DAT_0008967c = 0x10 - param_1;" (assignment_expression "DAT_0008967c = 0x10 - param_1" identifier = (binary_expression "0x10 - param_1" number_literal - identifier)) ;) (expression_statement "uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);" (assignment_expression "uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" identifier = (binary_expression "uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" identifier | (binary_expression "(int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" (binary_expression "(int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f)" (cast_expression "(int)(uint)DAT_00089674[-1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)DAT_00089674[-1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "DAT_00089674[-1]" identifier [ number_literal ]))) >> (parenthesized_expression "((byte)DAT_0008967c & 0x1f)" ( (binary_expression "(byte)DAT_0008967c & 0x1f" (cast_expression "(byte)DAT_0008967c" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & (pointer_expression "*(uint *)(&DAT_00066380 + param_1 * 4)" * (cast_expression "(uint *)(&DAT_00066380 + param_1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00066380 + param_1 * 4)" ( (binary_expression "&DAT_00066380 + param_1 * 4" (pointer_expression "&DAT_00066380" & identifier) + (binary_expression "param_1 * 4" identifier * number_literal)) ))))))) ;) (expression_statement "DAT_00089674 = DAT_00089674 + -1;" (assignment_expression "DAT_00089674 = DAT_00089674 + -1" identifier = (binary_expression "DAT_00089674 + -1" identifier + number_literal)) ;) })) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (return_statement return (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * IDENT) >> (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) )) << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) >> (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 FUN_00058510(int param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00058510(int param_1)" (identifier "FUN_00058510") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = DAT_00089678;\n  if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = DAT_00089678;" (assignment_expression "uVar1 = DAT_00089678" (identifier "uVar1") (= "=") (identifier "DAT_00089678")) (; ";")) (if_statement "if (DAT_00089678 != 0) {\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_00089678 != 0)" (( "(") (binary_expression "DAT_00089678 != 0" (identifier "DAT_00089678") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }\n    param_1 = param_1 - DAT_0008967c;\n    DAT_00089678 = DAT_00089678 - 1;\n    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);\n    if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }\n  }" ({ "{") (if_statement "if (param_1 < DAT_0008967c) {\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }" (if "if") (parenthesized_expression "(param_1 < DAT_0008967c)" (( "(") (binary_expression "param_1 < DAT_0008967c" (identifier "param_1") (< "<") (identifier "DAT_0008967c")) () ")")) (compound_statement "{\n      DAT_0008967c = DAT_0008967c - param_1;\n      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);\n    }" ({ "{") (expression_statement "DAT_0008967c = DAT_0008967c - param_1;" (assignment_expression "DAT_0008967c = DAT_0008967c - param_1" (identifier "DAT_0008967c") (= "=") (binary_expression "DAT_0008967c - param_1" (identifier "DAT_0008967c") (- "-") (identifier "param_1"))) (; ";")) (return_statement "return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4);" (return "return") (binary_expression "(int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &\n             *(uint *)(&DAT_00066380 + param_1 * 4)" (binary_expression "(int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f)" (binary_expression "(int)(uint)*DAT_00089674" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "DAT_00089674")) (>> ">>") (parenthesized_expression "((byte)DAT_0008967c & 0x1f)" (( "(") (binary_expression "(byte)DAT_0008967c & 0x1f" (cast_expression "(byte)DAT_0008967c" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "DAT_0008967c")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (pointer_expression "*(uint *)(&DAT_00066380 + param_1 * 4)" (* "*") (cast_expression "(uint *)(&DAT_00066380 + param_1 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00066380 + param_1 * 4)" (( "(") (binary_expression "&DAT_00066380 + param_1 * 4" (pointer_expression "&DAT_00066380" (& "&") (identifier "DAT_00066380")) (+ "+") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 - DAT_0008967c;" (assignment_expression "param_1 = param_1 - DAT_0008967c" (identifier "param_1") (= "=") (binary_expression "param_1 - DAT_0008967c" (identifier "param_1") (- "-") (identifier "DAT_0008967c"))) (; ";")) (expression_statement "DAT_00089678 = DAT_00089678 - 1;" (assignment_expression "DAT_00089678 = DAT_00089678 - 1" (identifier "DAT_00089678") (= "=") (binary_expression "DAT_00089678 - 1" (identifier "DAT_00089678") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f);" (assignment_expression "uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f)" (identifier "uVar1") (= "=") (binary_expression "((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<\n            ((byte)param_1 & 0x1f)" (parenthesized_expression "((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4))" (( "(") (binary_expression "(uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)" (binary_expression "(uint)*DAT_00089674" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "DAT_00089674")) (& "&") (pointer_expression "*(uint *)(&DAT_00066380 + DAT_0008967c * 4)" (* "*") (cast_expression "(uint *)(&DAT_00066380 + DAT_0008967c * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00066380 + DAT_0008967c * 4)" (( "(") (binary_expression "&DAT_00066380 + DAT_0008967c * 4" (pointer_expression "&DAT_00066380" (& "&") (identifier "DAT_00066380")) (+ "+") (binary_expression "DAT_0008967c * 4" (identifier "DAT_0008967c") (* "*") (number_literal "4"))) () ")"))))) () ")")) (<< "<<") (parenthesized_expression "((byte)param_1 & 0x1f)" (( "(") (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_1")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (DAT_00089678 != 0) {\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }" (if "if") (parenthesized_expression "(DAT_00089678 != 0)" (( "(") (binary_expression "DAT_00089678 != 0" (identifier "DAT_00089678") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_0008967c = 0x10 - param_1;\n      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);\n      DAT_00089674 = DAT_00089674 + -1;\n    }" ({ "{") (expression_statement "DAT_0008967c = 0x10 - param_1;" (assignment_expression "DAT_0008967c = 0x10 - param_1" (identifier "DAT_0008967c") (= "=") (binary_expression "0x10 - param_1" (number_literal "0x10") (- "-") (identifier "param_1"))) (; ";")) (expression_statement "uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4);" (assignment_expression "uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" (identifier "uVar1") (= "=") (binary_expression "uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" (identifier "uVar1") (| "|") (binary_expression "(int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &\n                      *(uint *)(&DAT_00066380 + param_1 * 4)" (binary_expression "(int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f)" (cast_expression "(int)(uint)DAT_00089674[-1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(uint)DAT_00089674[-1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "DAT_00089674[-1]" (identifier "DAT_00089674") ([ "[") (number_literal "-1") (] "]")))) (>> ">>") (parenthesized_expression "((byte)DAT_0008967c & 0x1f)" (( "(") (binary_expression "(byte)DAT_0008967c & 0x1f" (cast_expression "(byte)DAT_0008967c" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "DAT_0008967c")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (pointer_expression "*(uint *)(&DAT_00066380 + param_1 * 4)" (* "*") (cast_expression "(uint *)(&DAT_00066380 + param_1 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00066380 + param_1 * 4)" (( "(") (binary_expression "&DAT_00066380 + param_1 * 4" (pointer_expression "&DAT_00066380" (& "&") (identifier "DAT_00066380")) (+ "+") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) () ")"))))))) (; ";")) (expression_statement "DAT_00089674 = DAT_00089674 + -1;" (assignment_expression "DAT_00089674 = DAT_00089674 + -1" (identifier "DAT_00089674") (= "=") (binary_expression "DAT_00089674 + -1" (identifier "DAT_00089674") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int __regparm3 function_1(int var_2)

{
  int var_5;
  type_1 var_6;
  
  var_6 = var_1;
  if (var_1 != 0) {
    if (var_2 < var_3) {
      var_3 = var_3 - var_2;
      return (int)(type_1)*var_4 >> ((type_2)var_3 & 0x1f) &
             mask[var_2];
    }
    var_5 = var_2 - var_3;
    var_1 = var_1 + -1;
    var_6 = ((type_1)*var_4 & mask[var_3]) << ((type_2)var_5 & 0x1f);
    if (var_1 != 0) {
      var_3 = 0x10 - var_5;
      var_6 = var_6 | (int)(type_1)var_4[-1] >> ((type_2)var_3 & 0x1f) &
                      mask[var_5];
      var_4 = var_4 + -1;
    }
  }
  return var_6;
}


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

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint __regparm3 MASKED(int param_1)

{
  uint uVar1;
  
  uVar1 = DAT_00089678;
  if (DAT_00089678 != 0) {
    if (param_1 < DAT_0008967c) {
      DAT_0008967c = DAT_0008967c - param_1;
      return (int)(uint)*DAT_00089674 >> ((byte)DAT_0008967c & 0x1f) &
             *(uint *)(&DAT_00066380 + param_1 * 4);
    }
    param_1 = param_1 - DAT_0008967c;
    DAT_00089678 = DAT_00089678 - 1;
    uVar1 = ((uint)*DAT_00089674 & *(uint *)(&DAT_00066380 + DAT_0008967c * 4)) <<
            ((byte)param_1 & 0x1f);
    if (DAT_00089678 != 0) {
      DAT_0008967c = 0x10 - param_1;
      uVar1 = uVar1 | (int)(uint)DAT_00089674[-1] >> ((byte)DAT_0008967c & 0x1f) &
                      *(uint *)(&DAT_00066380 + param_1 * 4);
      DAT_00089674 = DAT_00089674 + -1;
    }
  }
  return uVar1;
}

