
ulonglong __udivdi3(uint param_1,uint param_2,uint param_3,uint param_4)

{
  ulonglong uVar1;
  ulonglong uVar2;
  ulonglong uVar3;
  longlong lVar4;
  byte bVar5;
  uint uVar6;
  byte bVar7;
  uint uVar8;
  uint uVar9;
  
  if (param_4 == 0) {
    if (param_3 <= param_2) {
      if (param_3 == 0) {
        param_3 = 1 / 0;
      }
      return CONCAT44(param_2 / param_3,
                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /
                           (ulonglong)param_3));
    }
    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);
  }
  else {
    if (param_2 < param_4) {
      return 0;
    }
    uVar6 = 0x1f;
    if (param_4 != 0) {
      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {
      }
    }
    if ((uVar6 ^ 0x1f) == 0) {
      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {
        uVar6 = 1;
      }
    }
    else {
      bVar5 = (byte)(uVar6 ^ 0x1f);
      bVar7 = 0x20 - bVar5;
      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));
      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),
                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));
      uVar3 = uVar2 / uVar1;
      uVar6 = (uint)uVar3;
      uVar8 = (uint)(uVar2 % uVar1);
      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));
      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);
      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {
        uVar6 = uVar6 - 1;
      }
    }
  }
  return (ulonglong)uVar6;
}



ulonglong FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)

{
  ulonglong uVar1;
  ulonglong uVar2;
  ulonglong uVar3;
  longlong lVar4;
  byte bVar5;
  uint uVar6;
  byte bVar7;
  uint uVar8;
  uint uVar9;
  
  if (param_4 == 0) {
    if (param_3 <= param_2) {
      if (param_3 == 0) {
        param_3 = 1 / 0;
      }
      return CONCAT44(param_2 / param_3,
                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /
                           (ulonglong)param_3));
    }
    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);
  }
  else {
    if (param_2 < param_4) {
      return 0;
    }
    uVar6 = 0x1f;
    if (param_4 != 0) {
      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {
      }
    }
    if ((uVar6 ^ 0x1f) == 0) {
      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {
        uVar6 = 1;
      }
    }
    else {
      bVar5 = (byte)(uVar6 ^ 0x1f);
      bVar7 = 0x20 - bVar5;
      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));
      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),
                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));
      uVar3 = uVar2 / uVar1;
      uVar6 = (uint)uVar3;
      uVar8 = (uint)(uVar2 % uVar1);
      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));
      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);
      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {
        uVar6 = uVar6 - 1;
      }
    }
  }
  return (ulonglong)uVar6;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
MOV EBX,dword ptr [ESP + 0x38]
TEST EDX,EDX
JNZ 0x0004c748
CMP EBX,ESI
JBE 0x0004c718
XOR EDI,EDI
MOV EAX,EBP
MOV EDX,ESI
DIV EBX
MOV EDX,EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,EBX
TEST EBX,EBX
JNZ 0x0004c729
MOV EAX,0x1
XOR EDX,EDX
DIV EBX
MOV ECX,EAX
XOR EDX,EDX
MOV EAX,ESI
DIV ECX
MOV ESI,EAX
MOV EAX,EBP
MOV EDI,ESI
DIV ECX
MOV EDX,EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EDX,ESI
JA 0x0004c768
BSR EDI,EDX
XOR EDI,0x1f
JNZ 0x0004c780
CMP EDX,ESI
JC 0x0004c75e
XOR EAX,EAX
CMP EBX,EBP
JA 0x0004c707
MOV EAX,0x1
JMP 0x0004c707
XOR EDI,EDI
XOR EAX,EAX
MOV EDX,EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,EDI
MOV EAX,0x20
SUB EAX,EDI
SHL EDX,CL
MOV dword ptr [ESP + 0x8],EDX
MOV ECX,EAX
MOV EDX,EBX
SHR EDX,CL
MOV ECX,dword ptr [ESP + 0x8]
OR ECX,EDX
MOV EDX,ESI
MOV dword ptr [ESP + 0x8],ECX
MOV ECX,EDI
SHL EBX,CL
MOV ECX,EAX
SHR EDX,CL
MOV ECX,EDI
MOV dword ptr [ESP + 0xc],EBX
MOV EBX,EBP
SHL ESI,CL
MOV ECX,EAX
SHR EBX,CL
OR ESI,EBX
MOV EAX,ESI
DIV dword ptr [ESP + 0x8]
MOV ESI,EDX
MOV EBX,EAX
MUL dword ptr [ESP + 0xc]
CMP ESI,EDX
JC 0x0004c7e0
MOV ECX,EDI
SHL EBP,CL
CMP EBP,EAX
JNC 0x0004c7d7
CMP ESI,EDX
JZ 0x0004c7e0
MOV EAX,EBX
XOR EDI,EDI
JMP 0x0004c707
LEA EAX,[EBX + -0x1]
XOR EDI,EDI
JMP 0x0004c707
(translation_unit "ulonglong FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}\n\n" (function_definition "ulonglong FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" type_identifier (function_declarator "FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)" identifier (parameter_list "(uint param_1,uint param_2,uint param_3,uint param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "ulonglong uVar2;" type_identifier identifier ;) (declaration "ulonglong uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (if_statement "if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }" { (if_statement "if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" if (parenthesized_expression "(param_3 <= param_2)" ( (binary_expression "param_3 <= param_2" identifier <= identifier) )) (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" { (if_statement "if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        param_3 = 1 / 0;\n      }" { (expression_statement "param_3 = 1 / 0;" (assignment_expression "param_3 = 1 / 0" identifier = (binary_expression "1 / 0" number_literal / number_literal)) ;) })) (return_statement "return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));" return (call_expression "CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" identifier (argument_list "(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" ( (binary_expression "param_2 / param_3" identifier / identifier) , (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) % (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) << number_literal) | (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ))) ))) ;) })) (expression_statement "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);" (assignment_expression "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" identifier = (call_expression "(uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(CONCAT44(param_2,param_1) / (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,param_1) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" else (compound_statement "{\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" { (if_statement "if (param_2 < param_4) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 < param_4)" ( (binary_expression "param_2 < param_4" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = 0x1f;" (assignment_expression "uVar6 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar6 == 0" (binary_expression "param_4 >> uVar6" identifier >> identifier) == number_literal) ; (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" if (parenthesized_expression "((uVar6 ^ 0x1f) == 0)" ( (binary_expression "(uVar6 ^ 0x1f) == 0" (parenthesized_expression "(uVar6 ^ 0x1f)" ( (binary_expression "uVar6 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }" { (if_statement "if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }" if (parenthesized_expression "((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1))" ( (binary_expression "(param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(uVar6 = 0, param_3 <= param_1)" ( (comma_expression "uVar6 = 0, param_3 <= param_1" (assignment_expression "uVar6 = 0" identifier = number_literal) , (binary_expression "param_3 <= param_1" identifier <= identifier)) ))) )) (compound_statement "{\n        uVar6 = 1;\n      }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" else (compound_statement "{\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" { (expression_statement "bVar5 = (byte)(uVar6 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar6 ^ 0x1f)" identifier = (call_expression "(byte)(uVar6 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 ^ 0x1f)" ( (binary_expression "uVar6 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "bVar7 = 0x20 - bVar5;" (assignment_expression "bVar7 = 0x20 - bVar5" identifier = (binary_expression "0x20 - bVar5" number_literal - identifier)) ;) (expression_statement "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" identifier = (call_expression "(ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" ( (binary_expression "param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f)" (binary_expression "param_4 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_3 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" identifier (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" ( (binary_expression "param_2 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) ))) , (binary_expression "param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f)" (binary_expression "param_2 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_1 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar3 = uVar2 / uVar1;" (assignment_expression "uVar3 = uVar2 / uVar1" identifier = (binary_expression "uVar2 / uVar1" identifier / identifier)) ;) (expression_statement "uVar6 = (uint)uVar3;" (assignment_expression "uVar6 = (uint)uVar3" identifier = (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar8 = (uint)(uVar2 % uVar1)" identifier = (call_expression "(uint)(uVar2 % uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 % uVar1)" ( (binary_expression "uVar2 % uVar1" identifier % identifier) )))) ;) (expression_statement "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));" (assignment_expression "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" identifier = (binary_expression "(uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(uVar3 & 0xffffffff)" ( (binary_expression "uVar3 & 0xffffffff" identifier & number_literal) )) * (call_expression "(ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_3 << (bVar5 & 0x1f))" ( (binary_expression "param_3 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) ))))) ;) (expression_statement "uVar9 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar9 = (uint)((ulonglong)lVar4 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar4 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar4 >> 0x20)" ( (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }" if (parenthesized_expression "((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))))" ( (binary_expression "(uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" (parenthesized_expression "(uVar8 < uVar9)" ( (binary_expression "uVar8 < uVar9" identifier < identifier) )) || (parenthesized_expression "((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" ( (parenthesized_expression "(param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))" ( (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)" (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "param_1 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) < (cast_expression "(uint)lVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) && (parenthesized_expression "(uVar8 == uVar9)" ( (binary_expression "uVar8 == uVar9" identifier == identifier) ))) )) ))) )) (compound_statement "{\n        uVar6 = uVar6 - 1;\n      }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) })) }))) }))) (return_statement "return (ulonglong)uVar6;" return (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ;) })))
(translation_unit "ulonglong __udivdi3(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}\n\n" (function_definition "ulonglong __udivdi3(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" type_identifier (function_declarator "__udivdi3(uint param_1,uint param_2,uint param_3,uint param_4)" identifier (parameter_list "(uint param_1,uint param_2,uint param_3,uint param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "ulonglong uVar2;" type_identifier identifier ;) (declaration "ulonglong uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (if_statement "if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }" { (if_statement "if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" if (parenthesized_expression "(param_3 <= param_2)" ( (binary_expression "param_3 <= param_2" identifier <= identifier) )) (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" { (if_statement "if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        param_3 = 1 / 0;\n      }" { (expression_statement "param_3 = 1 / 0;" (assignment_expression "param_3 = 1 / 0" identifier = (binary_expression "1 / 0" number_literal / number_literal)) ;) })) (return_statement "return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));" return (call_expression "CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" identifier (argument_list "(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" ( (binary_expression "param_2 / param_3" identifier / identifier) , (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) % (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) << number_literal) | (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ))) ))) ;) })) (expression_statement "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);" (assignment_expression "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" identifier = (call_expression "(uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(CONCAT44(param_2,param_1) / (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,param_1) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" else (compound_statement "{\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" { (if_statement "if (param_2 < param_4) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 < param_4)" ( (binary_expression "param_2 < param_4" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = 0x1f;" (assignment_expression "uVar6 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar6 == 0" (binary_expression "param_4 >> uVar6" identifier >> identifier) == number_literal) ; (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" if (parenthesized_expression "((uVar6 ^ 0x1f) == 0)" ( (binary_expression "(uVar6 ^ 0x1f) == 0" (parenthesized_expression "(uVar6 ^ 0x1f)" ( (binary_expression "uVar6 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }" { (if_statement "if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }" if (parenthesized_expression "((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1))" ( (binary_expression "(param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(uVar6 = 0, param_3 <= param_1)" ( (comma_expression "uVar6 = 0, param_3 <= param_1" (assignment_expression "uVar6 = 0" identifier = number_literal) , (binary_expression "param_3 <= param_1" identifier <= identifier)) ))) )) (compound_statement "{\n        uVar6 = 1;\n      }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" else (compound_statement "{\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" { (expression_statement "bVar5 = (byte)(uVar6 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar6 ^ 0x1f)" identifier = (call_expression "(byte)(uVar6 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 ^ 0x1f)" ( (binary_expression "uVar6 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "bVar7 = 0x20 - bVar5;" (assignment_expression "bVar7 = 0x20 - bVar5" identifier = (binary_expression "0x20 - bVar5" number_literal - identifier)) ;) (expression_statement "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" identifier = (call_expression "(ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" ( (binary_expression "param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f)" (binary_expression "param_4 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_3 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" identifier (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" ( (binary_expression "param_2 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) ))) , (binary_expression "param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f)" (binary_expression "param_2 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_1 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar3 = uVar2 / uVar1;" (assignment_expression "uVar3 = uVar2 / uVar1" identifier = (binary_expression "uVar2 / uVar1" identifier / identifier)) ;) (expression_statement "uVar6 = (uint)uVar3;" (assignment_expression "uVar6 = (uint)uVar3" identifier = (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar8 = (uint)(uVar2 % uVar1)" identifier = (call_expression "(uint)(uVar2 % uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 % uVar1)" ( (binary_expression "uVar2 % uVar1" identifier % identifier) )))) ;) (expression_statement "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));" (assignment_expression "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" identifier = (binary_expression "(uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(uVar3 & 0xffffffff)" ( (binary_expression "uVar3 & 0xffffffff" identifier & number_literal) )) * (call_expression "(ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_3 << (bVar5 & 0x1f))" ( (binary_expression "param_3 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) ))))) ;) (expression_statement "uVar9 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar9 = (uint)((ulonglong)lVar4 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar4 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar4 >> 0x20)" ( (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }" if (parenthesized_expression "((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))))" ( (binary_expression "(uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" (parenthesized_expression "(uVar8 < uVar9)" ( (binary_expression "uVar8 < uVar9" identifier < identifier) )) || (parenthesized_expression "((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" ( (parenthesized_expression "(param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))" ( (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)" (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "param_1 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) < (cast_expression "(uint)lVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) && (parenthesized_expression "(uVar8 == uVar9)" ( (binary_expression "uVar8 == uVar9" identifier == identifier) ))) )) ))) )) (compound_statement "{\n        uVar6 = uVar6 - 1;\n      }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) })) }))) }))) (return_statement "return (ulonglong)uVar6;" return (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ;) })))
(translation_unit "ulonglong FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}\n\n" (function_definition "ulonglong FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" type_identifier (function_declarator "FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)" identifier (parameter_list "(uint param_1,uint param_2,uint param_3,uint param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "ulonglong uVar2;" type_identifier identifier ;) (declaration "ulonglong uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (if_statement "if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }" { (if_statement "if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" if (parenthesized_expression "(param_3 <= param_2)" ( (binary_expression "param_3 <= param_2" identifier <= identifier) )) (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" { (if_statement "if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        param_3 = 1 / 0;\n      }" { (expression_statement "param_3 = 1 / 0;" (assignment_expression "param_3 = 1 / 0" identifier = (binary_expression "1 / 0" number_literal / number_literal)) ;) })) (return_statement "return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));" return (call_expression "CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" identifier (argument_list "(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" ( (binary_expression "param_2 / param_3" identifier / identifier) , (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) % (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) << number_literal) | (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ))) ))) ;) })) (expression_statement "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);" (assignment_expression "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" identifier = (call_expression "(uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(CONCAT44(param_2,param_1) / (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,param_1) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" else (compound_statement "{\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" { (if_statement "if (param_2 < param_4) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 < param_4)" ( (binary_expression "param_2 < param_4" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = 0x1f;" (assignment_expression "uVar6 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar6 == 0" (binary_expression "param_4 >> uVar6" identifier >> identifier) == number_literal) ; (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" if (parenthesized_expression "((uVar6 ^ 0x1f) == 0)" ( (binary_expression "(uVar6 ^ 0x1f) == 0" (parenthesized_expression "(uVar6 ^ 0x1f)" ( (binary_expression "uVar6 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }" { (if_statement "if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }" if (parenthesized_expression "((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1))" ( (binary_expression "(param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(uVar6 = 0, param_3 <= param_1)" ( (comma_expression "uVar6 = 0, param_3 <= param_1" (assignment_expression "uVar6 = 0" identifier = number_literal) , (binary_expression "param_3 <= param_1" identifier <= identifier)) ))) )) (compound_statement "{\n        uVar6 = 1;\n      }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" else (compound_statement "{\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" { (expression_statement "bVar5 = (byte)(uVar6 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar6 ^ 0x1f)" identifier = (call_expression "(byte)(uVar6 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 ^ 0x1f)" ( (binary_expression "uVar6 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "bVar7 = 0x20 - bVar5;" (assignment_expression "bVar7 = 0x20 - bVar5" identifier = (binary_expression "0x20 - bVar5" number_literal - identifier)) ;) (expression_statement "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" identifier = (call_expression "(ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" ( (binary_expression "param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f)" (binary_expression "param_4 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_3 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" identifier (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" ( (binary_expression "param_2 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) ))) , (binary_expression "param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f)" (binary_expression "param_2 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_1 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar3 = uVar2 / uVar1;" (assignment_expression "uVar3 = uVar2 / uVar1" identifier = (binary_expression "uVar2 / uVar1" identifier / identifier)) ;) (expression_statement "uVar6 = (uint)uVar3;" (assignment_expression "uVar6 = (uint)uVar3" identifier = (cast_expression "(uint)uVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar8 = (uint)(uVar2 % uVar1)" identifier = (call_expression "(uint)(uVar2 % uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 % uVar1)" ( (binary_expression "uVar2 % uVar1" identifier % identifier) )))) ;) (expression_statement "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));" (assignment_expression "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" identifier = (binary_expression "(uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(uVar3 & 0xffffffff)" ( (binary_expression "uVar3 & 0xffffffff" identifier & number_literal) )) * (call_expression "(ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_3 << (bVar5 & 0x1f))" ( (binary_expression "param_3 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) ))))) ;) (expression_statement "uVar9 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar9 = (uint)((ulonglong)lVar4 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)lVar4 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)lVar4 >> 0x20)" ( (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }" if (parenthesized_expression "((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))))" ( (binary_expression "(uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" (parenthesized_expression "(uVar8 < uVar9)" ( (binary_expression "uVar8 < uVar9" identifier < identifier) )) || (parenthesized_expression "((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" ( (parenthesized_expression "(param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))" ( (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)" (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "param_1 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) < (cast_expression "(uint)lVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) && (parenthesized_expression "(uVar8 == uVar9)" ( (binary_expression "uVar8 == uVar9" identifier == identifier) ))) )) ))) )) (compound_statement "{\n        uVar6 = uVar6 - 1;\n      }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) })) }))) }))) (return_statement "return (ulonglong)uVar6;" return (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT / LIT)) ;) })) (return_statement return (call_expression IDENT (argument_list ( (binary_expression IDENT / IDENT) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) % (cast_expression ( (type_descriptor TYPE) ) IDENT)) << LIT) | (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) / (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) / (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (for_statement for ( ; (binary_expression (binary_expression IDENT >> IDENT) == LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT <= IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT ^ LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) | (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) , (binary_expression (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) | (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT % IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) })) }))) }))) (return_statement return (cast_expression ( (type_descriptor TYPE) ) IDENT) ;) })))
(function_definition "ulonglong FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" (type_identifier "ulonglong") (function_declarator "FUN_0004c6e0(uint param_1,uint param_2,uint param_3,uint param_4)" (identifier "FUN_0004c6e0") (parameter_list "(uint param_1,uint param_2,uint param_3,uint param_4)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  ulonglong uVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  longlong lVar4;\n  byte bVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }\n  return (ulonglong)uVar6;\n}" ({ "{") (declaration "ulonglong uVar1;" (type_identifier "ulonglong") (identifier "uVar1") (; ";")) (declaration "ulonglong uVar2;" (type_identifier "ulonglong") (identifier "uVar2") (; ";")) (declaration "ulonglong uVar3;" (type_identifier "ulonglong") (identifier "uVar3") (; ";")) (declaration "longlong lVar4;" (type_identifier "longlong") (identifier "lVar4") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (if_statement "if (param_4 == 0) {\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }\n  else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }\n    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);\n  }" ({ "{") (if_statement "if (param_3 <= param_2) {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" (if "if") (parenthesized_expression "(param_3 <= param_2)" (( "(") (binary_expression "param_3 <= param_2" (identifier "param_3") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));\n    }" ({ "{") (if_statement "if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        param_3 = 1 / 0;\n      }" ({ "{") (expression_statement "param_3 = 1 / 0;" (assignment_expression "param_3 = 1 / 0" (identifier "param_3") (= "=") (binary_expression "1 / 0" (number_literal "1") (/ "/") (number_literal "0"))) (; ";")) (} "}"))) (return_statement "return CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3));" (return "return") (call_expression "CONCAT44(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" (identifier "CONCAT44") (argument_list "(param_2 / param_3,\n                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3))" (( "(") (binary_expression "param_2 / param_3" (identifier "param_2") (/ "/") (identifier "param_3")) (, ",") (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3)" (( "(") (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /\n                           (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1)" (( "(") (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)param_3" (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2")) (% "%") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) (<< "<<") (number_literal "0x20")) (| "|") (cast_expression "(ulonglong)param_1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_1"))) () ")")) (/ "/") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) () ")"))) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);" (assignment_expression "uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" (identifier "uVar6") (= "=") (call_expression "(uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(CONCAT44(param_2,param_1) / (ulonglong)param_3)" (( "(") (binary_expression "CONCAT44(param_2,param_1) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" (identifier "CONCAT44") (argument_list "(param_2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") () ")"))) (/ "/") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    if (param_2 < param_4) {\n      return 0;\n    }\n    uVar6 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }\n    if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }\n  }" ({ "{") (if_statement "if (param_2 < param_4) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 < param_4)" (( "(") (binary_expression "param_2 < param_4" (identifier "param_2") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar6 = 0x1f;" (assignment_expression "uVar6 = 0x1f" (identifier "uVar6") (= "=") (number_literal "0x1f")) (; ";")) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }\n    }" ({ "{") (for_statement "for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {\n      }" (for "for") (( "(") (; ";") (binary_expression "param_4 >> uVar6 == 0" (binary_expression "param_4 >> uVar6" (identifier "param_4") (>> ">>") (identifier "uVar6")) (== "==") (number_literal "0")) (; ";") (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      }" ({ "{") (} "}"))) (} "}"))) (if_statement "if ((uVar6 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" (if "if") (parenthesized_expression "((uVar6 ^ 0x1f) == 0)" (( "(") (binary_expression "(uVar6 ^ 0x1f) == 0" (parenthesized_expression "(uVar6 ^ 0x1f)" (( "(") (binary_expression "uVar6 ^ 0x1f" (identifier "uVar6") (^ "^") (number_literal "0x1f")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }\n    }" ({ "{") (if_statement "if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {\n        uVar6 = 1;\n      }" (if "if") (parenthesized_expression "((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1))" (( "(") (binary_expression "(param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" (( "(") (binary_expression "param_4 < param_2" (identifier "param_4") (< "<") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(uVar6 = 0, param_3 <= param_1)" (( "(") (comma_expression "uVar6 = 0, param_3 <= param_1" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (, ",") (binary_expression "param_3 <= param_1" (identifier "param_3") (<= "<=") (identifier "param_1"))) () ")"))) () ")")) (compound_statement "{\n        uVar6 = 1;\n      }" ({ "{") (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" (else "else") (compound_statement "{\n      bVar5 = (byte)(uVar6 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      uVar6 = (uint)uVar3;\n      uVar8 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }\n    }" ({ "{") (expression_statement "bVar5 = (byte)(uVar6 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar6 ^ 0x1f)" (identifier "bVar5") (= "=") (call_expression "(byte)(uVar6 ^ 0x1f)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 ^ 0x1f)" (( "(") (binary_expression "uVar6 ^ 0x1f" (identifier "uVar6") (^ "^") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "bVar7 = 0x20 - bVar5;" (assignment_expression "bVar7 = 0x20 - bVar5" (identifier "bVar7") (= "=") (binary_expression "0x20 - bVar5" (number_literal "0x20") (- "-") (identifier "bVar5"))) (; ";")) (expression_statement "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" (identifier "uVar1") (= "=") (call_expression "(ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f))" (( "(") (binary_expression "param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f)" (binary_expression "param_4 << (bVar5 & 0x1f)" (identifier "param_4") (<< "<<") (parenthesized_expression "(bVar5 & 0x1f)" (( "(") (binary_expression "bVar5 & 0x1f" (identifier "bVar5") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "param_3 >> (bVar7 & 0x1f)" (identifier "param_3") (>> ">>") (parenthesized_expression "(bVar7 & 0x1f)" (( "(") (binary_expression "bVar7 & 0x1f" (identifier "bVar7") (& "&") (number_literal "0x1f")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" (identifier "uVar2") (= "=") (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" (identifier "CONCAT44") (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f))" (( "(") (binary_expression "param_2 >> (bVar7 & 0x1f)" (identifier "param_2") (>> ">>") (parenthesized_expression "(bVar7 & 0x1f)" (( "(") (binary_expression "bVar7 & 0x1f" (identifier "bVar7") (& "&") (number_literal "0x1f")) () ")"))) (, ",") (binary_expression "param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f)" (binary_expression "param_2 << (bVar5 & 0x1f)" (identifier "param_2") (<< "<<") (parenthesized_expression "(bVar5 & 0x1f)" (( "(") (binary_expression "bVar5 & 0x1f" (identifier "bVar5") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "param_1 >> (bVar7 & 0x1f)" (identifier "param_1") (>> ">>") (parenthesized_expression "(bVar7 & 0x1f)" (( "(") (binary_expression "bVar7 & 0x1f" (identifier "bVar7") (& "&") (number_literal "0x1f")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar3 = uVar2 / uVar1;" (assignment_expression "uVar3 = uVar2 / uVar1" (identifier "uVar3") (= "=") (binary_expression "uVar2 / uVar1" (identifier "uVar2") (/ "/") (identifier "uVar1"))) (; ";")) (expression_statement "uVar6 = (uint)uVar3;" (assignment_expression "uVar6 = (uint)uVar3" (identifier "uVar6") (= "=") (cast_expression "(uint)uVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "uVar8 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar8 = (uint)(uVar2 % uVar1)" (identifier "uVar8") (= "=") (call_expression "(uint)(uVar2 % uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar2 % uVar1)" (( "(") (binary_expression "uVar2 % uVar1" (identifier "uVar2") (% "%") (identifier "uVar1")) () ")")))) (; ";")) (expression_statement "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));" (assignment_expression "lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" (identifier "lVar4") (= "=") (binary_expression "(uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(uVar3 & 0xffffffff)" (( "(") (binary_expression "uVar3 & 0xffffffff" (identifier "uVar3") (& "&") (number_literal "0xffffffff")) () ")")) (* "*") (call_expression "(ulonglong)(param_3 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "(param_3 << (bVar5 & 0x1f))" (( "(") (binary_expression "param_3 << (bVar5 & 0x1f)" (identifier "param_3") (<< "<<") (parenthesized_expression "(bVar5 & 0x1f)" (( "(") (binary_expression "bVar5 & 0x1f" (identifier "bVar5") (& "&") (number_literal "0x1f")) () ")"))) () ")"))))) (; ";")) (expression_statement "uVar9 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar9 = (uint)((ulonglong)lVar4 >> 0x20)" (identifier "uVar9") (= "=") (call_expression "(uint)((ulonglong)lVar4 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)lVar4 >> 0x20)" (( "(") (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "lVar4")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (if_statement "if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {\n        uVar6 = uVar6 - 1;\n      }" (if "if") (parenthesized_expression "((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))))" (( "(") (binary_expression "(uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" (parenthesized_expression "(uVar8 < uVar9)" (( "(") (binary_expression "uVar8 < uVar9" (identifier "uVar8") (< "<") (identifier "uVar9")) () ")")) (|| "||") (parenthesized_expression "((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))" (( "(") (parenthesized_expression "(param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9))" (( "(") (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)" (binary_expression "param_1 << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "param_1 << (bVar5 & 0x1f)" (identifier "param_1") (<< "<<") (parenthesized_expression "(bVar5 & 0x1f)" (( "(") (binary_expression "bVar5 & 0x1f" (identifier "bVar5") (& "&") (number_literal "0x1f")) () ")"))) (< "<") (cast_expression "(uint)lVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar4"))) (&& "&&") (parenthesized_expression "(uVar8 == uVar9)" (( "(") (binary_expression "uVar8 == uVar9" (identifier "uVar8") (== "==") (identifier "uVar9")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        uVar6 = uVar6 - 1;\n      }" ({ "{") (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (} "}"))) (} "}")))) (} "}")))) (return_statement "return (ulonglong)uVar6;" (return "return") (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6")) (; ";")) (} "}")))

type_1 function_1(type_2 var_6,type_2 var_3,type_2 var_2,type_2 var_1)

{
  type_1 var_10;
  type_1 var_9;
  type_1 var_11;
  type_3 lVar4;
  type_4 var_7;
  type_2 var_5;
  type_4 var_8;
  type_2 var_12;
  type_2 var_13;
  
  if (var_1 == 0) {
    if (var_2 <= var_3) {
      if (var_2 == 0) {
        var_2 = 1 / 0;
      }
      return var_4(var_3 / var_2,
                      (int)(((type_1)var_3 % (type_1)var_2 << 0x20 | (type_1)var_6) /
                           (type_1)var_2));
    }
    var_5 = (type_2)(var_4(var_3,var_6) / (type_1)var_2);
  }
  else {
    if (var_3 < var_1) {
      return 0;
    }
    var_5 = 0x1f;
    if (var_1 != 0) {
      for (; var_1 >> var_5 == 0; var_5 = var_5 - 1) {
      }
    }
    if ((var_5 ^ 0x1f) == 0) {
      if ((var_1 < var_3) || (var_5 = 0, var_2 <= var_6)) {
        var_5 = 1;
      }
    }
    else {
      var_7 = (type_4)(var_5 ^ 0x1f);
      var_8 = 0x20 - var_7;
      var_10 = (type_1)(var_1 << (var_7 & 0x1f) | var_2 >> (var_8 & 0x1f));
      var_9 = var_4(var_3 >> (var_8 & 0x1f),
                       var_3 << (var_7 & 0x1f) | var_6 >> (var_8 & 0x1f));
      var_11 = var_9 / var_10;
      var_5 = (type_2)var_11;
      var_12 = (type_2)(var_9 % var_10);
      lVar4 = (var_11 & 0xffffffff) * (type_1)(var_2 << (var_7 & 0x1f));
      var_13 = (type_2)((type_1)lVar4 >> 0x20);
      if ((var_12 < var_13) || ((var_6 << (var_7 & 0x1f) < (type_2)lVar4 && (var_12 == var_13)))) {
        var_5 = var_5 - 1;
      }
    }
  }
  return (type_1)var_5;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (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 (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: (number_literal)))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (for_statement condition: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (binary_expression left: (identifier) right: (parenthesized_expression (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))

ulonglong MASKED(uint param_1,uint param_2,uint param_3,uint param_4)

{
  ulonglong uVar1;
  ulonglong uVar2;
  ulonglong uVar3;
  longlong lVar4;
  byte bVar5;
  uint uVar6;
  byte bVar7;
  uint uVar8;
  uint uVar9;
  
  if (param_4 == 0) {
    if (param_3 <= param_2) {
      if (param_3 == 0) {
        param_3 = 1 / 0;
      }
      return CONCAT44(param_2 / param_3,
                      (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)param_1) /
                           (ulonglong)param_3));
    }
    uVar6 = (uint)(CONCAT44(param_2,param_1) / (ulonglong)param_3);
  }
  else {
    if (param_2 < param_4) {
      return 0;
    }
    uVar6 = 0x1f;
    if (param_4 != 0) {
      for (; param_4 >> uVar6 == 0; uVar6 = uVar6 - 1) {
      }
    }
    if ((uVar6 ^ 0x1f) == 0) {
      if ((param_4 < param_2) || (uVar6 = 0, param_3 <= param_1)) {
        uVar6 = 1;
      }
    }
    else {
      bVar5 = (byte)(uVar6 ^ 0x1f);
      bVar7 = 0x20 - bVar5;
      uVar1 = (ulonglong)(param_4 << (bVar5 & 0x1f) | param_3 >> (bVar7 & 0x1f));
      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),
                       param_2 << (bVar5 & 0x1f) | param_1 >> (bVar7 & 0x1f));
      uVar3 = uVar2 / uVar1;
      uVar6 = (uint)uVar3;
      uVar8 = (uint)(uVar2 % uVar1);
      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));
      uVar9 = (uint)((ulonglong)lVar4 >> 0x20);
      if ((uVar8 < uVar9) || ((param_1 << (bVar5 & 0x1f) < (uint)lVar4 && (uVar8 == uVar9)))) {
        uVar6 = uVar6 - 1;
      }
    }
  }
  return (ulonglong)uVar6;
}

