
undefined8 __divdi3(uint param_1,uint param_2,uint param_3,uint param_4)

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



undefined8 FUN_00214fe0(uint param_1,uint param_2,uint param_3,uint param_4)

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


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EBX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x8],0x0
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP],ECX
MOV EBP,EBX
MOV dword ptr [ESP + 0x4],EBX
TEST EBX,EBX
JNS 0x00215024
NEG ECX
MOV dword ptr [ESP + 0x8],0xffffffff
ADC EBX,0x0
MOV dword ptr [ESP],ECX
NEG EBX
MOV dword ptr [ESP + 0x4],EBX
MOV EBP,EBX
MOV EBX,EDX
TEST EDX,EDX
JNS 0x00215037
NEG EAX
NOT dword ptr [ESP + 0x8]
ADC EDX,0x0
NEG EDX
MOV EBX,EDX
MOV EDI,EAX
MOV EAX,dword ptr [ESP]
TEST EBX,EBX
JNZ 0x00215090
CMP EDI,EBP
JBE 0x00215070
MOV EDX,EBP
XOR ESI,ESI
DIV EDI
MOV ECX,EAX
MOV EAX,ECX
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,ESI
TEST ECX,ECX
JZ 0x0021505f
NEG EAX
ADC EDX,0x0
NEG EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EDI,EDI
JNZ 0x0021507f
MOV EAX,0x1
XOR EDX,EDX
DIV EBX
MOV EDI,EAX
XOR EDX,EDX
MOV EAX,EBP
DIV EDI
MOV ESI,EAX
MOV EAX,dword ptr [ESP]
DIV EDI
MOV ECX,EAX
JMP 0x0021504c
CMP EBX,EBP
JA 0x002150b0
BSR ESI,EBX
XOR ESI,0x1f
JNZ 0x002150c0
CMP EBX,EBP
JC 0x002150a7
XOR ECX,ECX
CMP EDI,dword ptr [ESP]
JA 0x0021504c
MOV ECX,0x1
JMP 0x0021504c
XOR ESI,ESI
XOR ECX,ECX
JMP 0x0021504c
MOV EAX,0x20
MOV ECX,ESI
MOV EDX,EDI
SUB EAX,ESI
SHL EBX,CL
MOV ECX,EAX
SHR EDX,CL
MOV ECX,ESI
OR EDX,EBX
SHL EDI,CL
MOV EBX,EBP
MOV ECX,EAX
SHR EBX,CL
MOV dword ptr [ESP + 0xc],EDX
MOV ECX,ESI
MOV EDX,dword ptr [ESP]
SHL EBP,CL
MOV ECX,EAX
SHR EDX,CL
OR EBP,EDX
MOV EDX,EBX
MOV EAX,EBP
DIV dword ptr [ESP + 0xc]
MOV EBX,EDX
MOV EBP,EAX
MUL EDI
CMP EBX,EDX
JC 0x00215120
MOV EDI,dword ptr [ESP]
MOV ECX,ESI
SHL EDI,CL
CMP EDI,EAX
JNC 0x0021510f
CMP EBX,EDX
JZ 0x00215120
MOV ECX,EBP
XOR ESI,ESI
JMP 0x0021504c
LEA ECX,[EBP + -0x1]
XOR ESI,ESI
JMP 0x0021504c
(translation_unit "undefined8 FUN_00214fe0(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\n}\n\n" (function_definition "undefined8 FUN_00214fe0(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\n}" type_identifier (function_declarator "FUN_00214fe0(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\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 "int iVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" identifier = identifier) ;) (if_statement "if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" { (expression_statement "local_2c = -param_1;" (assignment_expression "local_2c = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "local_24 = 0xffffffff;" (assignment_expression "local_24 = 0xffffffff" identifier = number_literal) ;) (expression_statement "param_2 = -(param_2 + (param_1 != 0));" (assignment_expression "param_2 = -(param_2 + (param_1 != 0))" identifier = (unary_expression "-(param_2 + (param_1 != 0))" - (parenthesized_expression "(param_2 + (param_1 != 0))" ( (binary_expression "param_2 + (param_1 != 0)" identifier + (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )))) ;) })) (if_statement "if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" if (parenthesized_expression "((int)param_4 < 0)" ( (binary_expression "(int)param_4 < 0" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" { (expression_statement "bVar10 = param_3 != 0;" (assignment_expression "bVar10 = param_3 != 0" identifier = (binary_expression "param_3 != 0" identifier != number_literal)) ;) (expression_statement "param_3 = -param_3;" (assignment_expression "param_3 = -param_3" identifier = (unary_expression "-param_3" - identifier)) ;) (expression_statement "local_24 = ~local_24;" (assignment_expression "local_24 = ~local_24" identifier = (unary_expression "~local_24" ~ identifier)) ;) (expression_statement "param_4 = -(param_4 + bVar10);" (assignment_expression "param_4 = -(param_4 + bVar10)" identifier = (unary_expression "-(param_4 + bVar10)" - (parenthesized_expression "(param_4 + bVar10)" ( (binary_expression "param_4 + bVar10" identifier + identifier) )))) ;) })) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }" { (if_statement "if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" identifier = (cast_expression "(int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,local_2c) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,local_2c)" identifier (argument_list "(param_2,local_2c)" ( identifier , identifier ))) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" else (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\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)) ;) })) (expression_statement "uVar9 = param_2 / param_3;" (assignment_expression "uVar9 = param_2 / param_3" identifier = (binary_expression "param_2 / param_3" identifier / identifier)) ;) (expression_statement "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" identifier = (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c" (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)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }))) }) (else_clause "else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" else (if_statement "if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < param_4)" ( (binary_expression "param_2 < param_4" identifier < identifier) )) (compound_statement "{\n    uVar9 = 0;\n    iVar6 = 0;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" else (compound_statement "{\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" { (expression_statement "uVar9 = 0x1f;" (assignment_expression "uVar9 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar9 == 0" (binary_expression "param_4 >> uVar9" identifier >> identifier) == number_literal) ; (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" if (parenthesized_expression "((uVar9 ^ 0x1f) == 0)" ( (binary_expression "(uVar9 ^ 0x1f) == 0" (parenthesized_expression "(uVar9 ^ 0x1f)" ( (binary_expression "uVar9 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }" if (parenthesized_expression "((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c))" ( (binary_expression "(param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(iVar6 = 0, param_3 <= local_2c)" ( (comma_expression "iVar6 = 0, param_3 <= local_2c" (assignment_expression "iVar6 = 0" identifier = number_literal) , (binary_expression "param_3 <= local_2c" identifier <= identifier)) ))) )) (compound_statement "{\n        iVar6 = 1;\n      }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" else (compound_statement "{\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" { (expression_statement "bVar5 = (byte)(uVar9 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar9 ^ 0x1f)" identifier = (call_expression "(byte)(uVar9 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar9 ^ 0x1f)" ( (binary_expression "uVar9 ^ 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_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" identifier = (call_expression "(ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" ( (binary_expression "param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f)" (binary_expression "param_3 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_4 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" identifier (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (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) | local_2c >> (bVar7 & 0x1f)" (binary_expression "param_2 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "local_2c >> (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 "iVar6 = (int)uVar3;" (assignment_expression "iVar6 = (int)uVar3" identifier = (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar9 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar9 = (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 "uVar8 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar8 = (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 ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }" if (parenthesized_expression "((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))))" ( (binary_expression "(uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) || (parenthesized_expression "((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" ( (parenthesized_expression "(local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))" ( (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)" (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "local_2c << (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 "(uVar9 == uVar8)" ( (binary_expression "uVar9 == uVar8" identifier == identifier) ))) )) ))) )) (compound_statement "{\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }" { (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar9 = 0;\n      }" else (compound_statement "{\n        uVar9 = 0;\n      }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }))) }))) }))))) (if_statement "if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" { (expression_statement "bVar10 = iVar6 != 0;" (assignment_expression "bVar10 = iVar6 != 0" identifier = (binary_expression "iVar6 != 0" identifier != number_literal)) ;) (expression_statement "iVar6 = -iVar6;" (assignment_expression "iVar6 = -iVar6" identifier = (unary_expression "-iVar6" - identifier)) ;) (expression_statement "uVar9 = -(uVar9 + bVar10);" (assignment_expression "uVar9 = -(uVar9 + bVar10)" identifier = (unary_expression "-(uVar9 + bVar10)" - (parenthesized_expression "(uVar9 + bVar10)" ( (binary_expression "uVar9 + bVar10" identifier + identifier) )))) ;) })) (return_statement "return CONCAT44(uVar9,iVar6);" return (call_expression "CONCAT44(uVar9,iVar6)" identifier (argument_list "(uVar9,iVar6)" ( identifier , identifier ))) ;) })))
(translation_unit "undefined8 __divdi3(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\n}\n\n" (function_definition "undefined8 __divdi3(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\n}" type_identifier (function_declarator "__divdi3(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\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 "int iVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" identifier = identifier) ;) (if_statement "if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" { (expression_statement "local_2c = -param_1;" (assignment_expression "local_2c = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "local_24 = 0xffffffff;" (assignment_expression "local_24 = 0xffffffff" identifier = number_literal) ;) (expression_statement "param_2 = -(param_2 + (param_1 != 0));" (assignment_expression "param_2 = -(param_2 + (param_1 != 0))" identifier = (unary_expression "-(param_2 + (param_1 != 0))" - (parenthesized_expression "(param_2 + (param_1 != 0))" ( (binary_expression "param_2 + (param_1 != 0)" identifier + (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )))) ;) })) (if_statement "if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" if (parenthesized_expression "((int)param_4 < 0)" ( (binary_expression "(int)param_4 < 0" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" { (expression_statement "bVar10 = param_3 != 0;" (assignment_expression "bVar10 = param_3 != 0" identifier = (binary_expression "param_3 != 0" identifier != number_literal)) ;) (expression_statement "param_3 = -param_3;" (assignment_expression "param_3 = -param_3" identifier = (unary_expression "-param_3" - identifier)) ;) (expression_statement "local_24 = ~local_24;" (assignment_expression "local_24 = ~local_24" identifier = (unary_expression "~local_24" ~ identifier)) ;) (expression_statement "param_4 = -(param_4 + bVar10);" (assignment_expression "param_4 = -(param_4 + bVar10)" identifier = (unary_expression "-(param_4 + bVar10)" - (parenthesized_expression "(param_4 + bVar10)" ( (binary_expression "param_4 + bVar10" identifier + identifier) )))) ;) })) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }" { (if_statement "if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" identifier = (cast_expression "(int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,local_2c) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,local_2c)" identifier (argument_list "(param_2,local_2c)" ( identifier , identifier ))) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" else (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\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)) ;) })) (expression_statement "uVar9 = param_2 / param_3;" (assignment_expression "uVar9 = param_2 / param_3" identifier = (binary_expression "param_2 / param_3" identifier / identifier)) ;) (expression_statement "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" identifier = (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c" (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)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }))) }) (else_clause "else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" else (if_statement "if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < param_4)" ( (binary_expression "param_2 < param_4" identifier < identifier) )) (compound_statement "{\n    uVar9 = 0;\n    iVar6 = 0;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" else (compound_statement "{\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" { (expression_statement "uVar9 = 0x1f;" (assignment_expression "uVar9 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar9 == 0" (binary_expression "param_4 >> uVar9" identifier >> identifier) == number_literal) ; (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" if (parenthesized_expression "((uVar9 ^ 0x1f) == 0)" ( (binary_expression "(uVar9 ^ 0x1f) == 0" (parenthesized_expression "(uVar9 ^ 0x1f)" ( (binary_expression "uVar9 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }" if (parenthesized_expression "((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c))" ( (binary_expression "(param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(iVar6 = 0, param_3 <= local_2c)" ( (comma_expression "iVar6 = 0, param_3 <= local_2c" (assignment_expression "iVar6 = 0" identifier = number_literal) , (binary_expression "param_3 <= local_2c" identifier <= identifier)) ))) )) (compound_statement "{\n        iVar6 = 1;\n      }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" else (compound_statement "{\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" { (expression_statement "bVar5 = (byte)(uVar9 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar9 ^ 0x1f)" identifier = (call_expression "(byte)(uVar9 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar9 ^ 0x1f)" ( (binary_expression "uVar9 ^ 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_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" identifier = (call_expression "(ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" ( (binary_expression "param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f)" (binary_expression "param_3 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_4 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" identifier (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (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) | local_2c >> (bVar7 & 0x1f)" (binary_expression "param_2 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "local_2c >> (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 "iVar6 = (int)uVar3;" (assignment_expression "iVar6 = (int)uVar3" identifier = (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar9 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar9 = (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 "uVar8 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar8 = (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 ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }" if (parenthesized_expression "((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))))" ( (binary_expression "(uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) || (parenthesized_expression "((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" ( (parenthesized_expression "(local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))" ( (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)" (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "local_2c << (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 "(uVar9 == uVar8)" ( (binary_expression "uVar9 == uVar8" identifier == identifier) ))) )) ))) )) (compound_statement "{\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }" { (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar9 = 0;\n      }" else (compound_statement "{\n        uVar9 = 0;\n      }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }))) }))) }))))) (if_statement "if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" { (expression_statement "bVar10 = iVar6 != 0;" (assignment_expression "bVar10 = iVar6 != 0" identifier = (binary_expression "iVar6 != 0" identifier != number_literal)) ;) (expression_statement "iVar6 = -iVar6;" (assignment_expression "iVar6 = -iVar6" identifier = (unary_expression "-iVar6" - identifier)) ;) (expression_statement "uVar9 = -(uVar9 + bVar10);" (assignment_expression "uVar9 = -(uVar9 + bVar10)" identifier = (unary_expression "-(uVar9 + bVar10)" - (parenthesized_expression "(uVar9 + bVar10)" ( (binary_expression "uVar9 + bVar10" identifier + identifier) )))) ;) })) (return_statement "return CONCAT44(uVar9,iVar6);" return (call_expression "CONCAT44(uVar9,iVar6)" identifier (argument_list "(uVar9,iVar6)" ( identifier , identifier ))) ;) })))
(translation_unit "undefined8 FUN_00214fe0(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\n}\n\n" (function_definition "undefined8 FUN_00214fe0(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\n}" type_identifier (function_declarator "FUN_00214fe0(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\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 "int iVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" identifier = identifier) ;) (if_statement "if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" { (expression_statement "local_2c = -param_1;" (assignment_expression "local_2c = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "local_24 = 0xffffffff;" (assignment_expression "local_24 = 0xffffffff" identifier = number_literal) ;) (expression_statement "param_2 = -(param_2 + (param_1 != 0));" (assignment_expression "param_2 = -(param_2 + (param_1 != 0))" identifier = (unary_expression "-(param_2 + (param_1 != 0))" - (parenthesized_expression "(param_2 + (param_1 != 0))" ( (binary_expression "param_2 + (param_1 != 0)" identifier + (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )))) ;) })) (if_statement "if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" if (parenthesized_expression "((int)param_4 < 0)" ( (binary_expression "(int)param_4 < 0" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" { (expression_statement "bVar10 = param_3 != 0;" (assignment_expression "bVar10 = param_3 != 0" identifier = (binary_expression "param_3 != 0" identifier != number_literal)) ;) (expression_statement "param_3 = -param_3;" (assignment_expression "param_3 = -param_3" identifier = (unary_expression "-param_3" - identifier)) ;) (expression_statement "local_24 = ~local_24;" (assignment_expression "local_24 = ~local_24" identifier = (unary_expression "~local_24" ~ identifier)) ;) (expression_statement "param_4 = -(param_4 + bVar10);" (assignment_expression "param_4 = -(param_4 + bVar10)" identifier = (unary_expression "-(param_4 + bVar10)" - (parenthesized_expression "(param_4 + bVar10)" ( (binary_expression "param_4 + bVar10" identifier + identifier) )))) ;) })) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }" { (if_statement "if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" identifier = (cast_expression "(int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,local_2c) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,local_2c)" identifier (argument_list "(param_2,local_2c)" ( identifier , identifier ))) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" else (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\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)) ;) })) (expression_statement "uVar9 = param_2 / param_3;" (assignment_expression "uVar9 = param_2 / param_3" identifier = (binary_expression "param_2 / param_3" identifier / identifier)) ;) (expression_statement "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" identifier = (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c" (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)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) / (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }))) }) (else_clause "else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" else (if_statement "if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < param_4)" ( (binary_expression "param_2 < param_4" identifier < identifier) )) (compound_statement "{\n    uVar9 = 0;\n    iVar6 = 0;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" else (compound_statement "{\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" { (expression_statement "uVar9 = 0x1f;" (assignment_expression "uVar9 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar9 == 0" (binary_expression "param_4 >> uVar9" identifier >> identifier) == number_literal) ; (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" if (parenthesized_expression "((uVar9 ^ 0x1f) == 0)" ( (binary_expression "(uVar9 ^ 0x1f) == 0" (parenthesized_expression "(uVar9 ^ 0x1f)" ( (binary_expression "uVar9 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }" if (parenthesized_expression "((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c))" ( (binary_expression "(param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(iVar6 = 0, param_3 <= local_2c)" ( (comma_expression "iVar6 = 0, param_3 <= local_2c" (assignment_expression "iVar6 = 0" identifier = number_literal) , (binary_expression "param_3 <= local_2c" identifier <= identifier)) ))) )) (compound_statement "{\n        iVar6 = 1;\n      }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" else (compound_statement "{\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" { (expression_statement "bVar5 = (byte)(uVar9 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar9 ^ 0x1f)" identifier = (call_expression "(byte)(uVar9 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar9 ^ 0x1f)" ( (binary_expression "uVar9 ^ 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_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" identifier = (call_expression "(ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" ( (binary_expression "param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f)" (binary_expression "param_3 >> (bVar7 & 0x1f)" identifier >> (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_4 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" identifier (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (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) | local_2c >> (bVar7 & 0x1f)" (binary_expression "param_2 << (bVar5 & 0x1f)" identifier << (parenthesized_expression "(bVar5 & 0x1f)" ( (binary_expression "bVar5 & 0x1f" identifier & number_literal) ))) | (binary_expression "local_2c >> (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 "iVar6 = (int)uVar3;" (assignment_expression "iVar6 = (int)uVar3" identifier = (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar9 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar9 = (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 "uVar8 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar8 = (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 ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }" if (parenthesized_expression "((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))))" ( (binary_expression "(uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" (parenthesized_expression "(uVar9 < uVar8)" ( (binary_expression "uVar9 < uVar8" identifier < identifier) )) || (parenthesized_expression "((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" ( (parenthesized_expression "(local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))" ( (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)" (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "local_2c << (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 "(uVar9 == uVar8)" ( (binary_expression "uVar9 == uVar8" identifier == identifier) ))) )) ))) )) (compound_statement "{\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }" { (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar9 = 0;\n      }" else (compound_statement "{\n        uVar9 = 0;\n      }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }))) }))) }))))) (if_statement "if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" { (expression_statement "bVar10 = iVar6 != 0;" (assignment_expression "bVar10 = iVar6 != 0" identifier = (binary_expression "iVar6 != 0" identifier != number_literal)) ;) (expression_statement "iVar6 = -iVar6;" (assignment_expression "iVar6 = -iVar6" identifier = (unary_expression "-iVar6" - identifier)) ;) (expression_statement "uVar9 = -(uVar9 + bVar10);" (assignment_expression "uVar9 = -(uVar9 + bVar10)" identifier = (unary_expression "-(uVar9 + bVar10)" - (parenthesized_expression "(uVar9 + bVar10)" ( (binary_expression "uVar9 + bVar10" identifier + identifier) )))) ;) })) (return_statement "return CONCAT44(uVar9,iVar6);" return (call_expression "CONCAT44(uVar9,iVar6)" identifier (argument_list "(uVar9,iVar6)" ( 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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression ~ IDENT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (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 == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT / LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / IDENT)) ;) (expression_statement (assignment_expression 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)) )))) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (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 { (expression_statement (assignment_expression IDENT = LIT) ;) (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)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) })) (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "undefined8 FUN_00214fe0(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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\n}" (type_identifier "undefined8") (function_declarator "FUN_00214fe0(uint param_1,uint param_2,uint param_3,uint param_4)" (identifier "FUN_00214fe0") (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  int iVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  bool bVar10;\n  undefined4 local_2c;\n  undefined4 local_24;\n  \n  local_24 = 0;\n  local_2c = param_1;\n  if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }\n  if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }\n  if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }\n  return CONCAT44(uVar9,iVar6);\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 "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "bool bVar10;" (primitive_type "bool") (identifier "bVar10") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = param_1;" (assignment_expression "local_2c = param_1" (identifier "local_2c") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((int)param_2 < 0) {\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" (if "if") (parenthesized_expression "((int)param_2 < 0)" (( "(") (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    local_2c = -param_1;\n    local_24 = 0xffffffff;\n    param_2 = -(param_2 + (param_1 != 0));\n  }" ({ "{") (expression_statement "local_2c = -param_1;" (assignment_expression "local_2c = -param_1" (identifier "local_2c") (= "=") (unary_expression "-param_1" (- "-") (identifier "param_1"))) (; ";")) (expression_statement "local_24 = 0xffffffff;" (assignment_expression "local_24 = 0xffffffff" (identifier "local_24") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "param_2 = -(param_2 + (param_1 != 0));" (assignment_expression "param_2 = -(param_2 + (param_1 != 0))" (identifier "param_2") (= "=") (unary_expression "-(param_2 + (param_1 != 0))" (- "-") (parenthesized_expression "(param_2 + (param_1 != 0))" (( "(") (binary_expression "param_2 + (param_1 != 0)" (identifier "param_2") (+ "+") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")"))) () ")")))) (; ";")) (} "}"))) (if_statement "if ((int)param_4 < 0) {\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" (if "if") (parenthesized_expression "((int)param_4 < 0)" (( "(") (binary_expression "(int)param_4 < 0" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    bVar10 = param_3 != 0;\n    param_3 = -param_3;\n    local_24 = ~local_24;\n    param_4 = -(param_4 + bVar10);\n  }" ({ "{") (expression_statement "bVar10 = param_3 != 0;" (assignment_expression "bVar10 = param_3 != 0" (identifier "bVar10") (= "=") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "param_3 = -param_3;" (assignment_expression "param_3 = -param_3" (identifier "param_3") (= "=") (unary_expression "-param_3" (- "-") (identifier "param_3"))) (; ";")) (expression_statement "local_24 = ~local_24;" (assignment_expression "local_24 = ~local_24" (identifier "local_24") (= "=") (unary_expression "~local_24" (~ "~") (identifier "local_24"))) (; ";")) (expression_statement "param_4 = -(param_4 + bVar10);" (assignment_expression "param_4 = -(param_4 + bVar10)" (identifier "param_4") (= "=") (unary_expression "-(param_4 + bVar10)" (- "-") (parenthesized_expression "(param_4 + bVar10)" (( "(") (binary_expression "param_4 + bVar10" (identifier "param_4") (+ "+") (identifier "bVar10")) () ")")))) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }\n  else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\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_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }\n  }" ({ "{") (if_statement "if (param_2 < param_3) {\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }\n    else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" (if "if") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      uVar9 = 0;\n      iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);\n    }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" (identifier "iVar6") (= "=") (cast_expression "(int)(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(CONCAT44(param_2,local_2c) / (ulonglong)param_3)" (( "(") (binary_expression "CONCAT44(param_2,local_2c) / (ulonglong)param_3" (call_expression "CONCAT44(param_2,local_2c)" (identifier "CONCAT44") (argument_list "(param_2,local_2c)" (( "(") (identifier "param_2") (, ",") (identifier "local_2c") () ")"))) (/ "/") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);\n    }" (else "else") (compound_statement "{\n      if (param_3 == 0) {\n        param_3 = 1 / 0;\n      }\n      uVar9 = param_2 / param_3;\n      iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\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"))) (; ";")) (} "}"))) (expression_statement "uVar9 = param_2 / param_3;" (assignment_expression "uVar9 = param_2 / param_3" (identifier "uVar9") (= "=") (binary_expression "param_2 / param_3" (identifier "param_2") (/ "/") (identifier "param_3"))) (; ";")) (expression_statement "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3);" (assignment_expression "iVar6 = (int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" (identifier "iVar6") (= "=") (cast_expression "(int)(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3)" (( "(") (binary_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c) /\n                   (ulonglong)param_3" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c)" (( "(") (binary_expression "(ulonglong)param_2 % (ulonglong)param_3 << 0x20 | (ulonglong)local_2c" (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)local_2c" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "local_2c"))) () ")")) (/ "/") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) () ")")))) (; ";")) (} "}")))) (} "}")) (else_clause "else if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" (else "else") (if_statement "if (param_2 < param_4) {\n    uVar9 = 0;\n    iVar6 = 0;\n  }\n  else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < param_4)" (( "(") (binary_expression "param_2 < param_4" (identifier "param_2") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n    uVar9 = 0;\n    iVar6 = 0;\n  }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    uVar9 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }\n    if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar9 = 0x1f;" (assignment_expression "uVar9 = 0x1f" (identifier "uVar9") (= "=") (number_literal "0x1f")) (; ";")) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 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 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }\n    }" ({ "{") (for_statement "for (; param_4 >> uVar9 == 0; uVar9 = uVar9 - 1) {\n      }" (for "for") (( "(") (; ";") (binary_expression "param_4 >> uVar9 == 0" (binary_expression "param_4 >> uVar9" (identifier "param_4") (>> ">>") (identifier "uVar9")) (== "==") (number_literal "0")) (; ";") (assignment_expression "uVar9 = uVar9 - 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 - 1" (identifier "uVar9") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      }" ({ "{") (} "}"))) (} "}"))) (if_statement "if ((uVar9 ^ 0x1f) == 0) {\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }\n    else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" (if "if") (parenthesized_expression "((uVar9 ^ 0x1f) == 0)" (( "(") (binary_expression "(uVar9 ^ 0x1f) == 0" (parenthesized_expression "(uVar9 ^ 0x1f)" (( "(") (binary_expression "uVar9 ^ 0x1f" (identifier "uVar9") (^ "^") (number_literal "0x1f")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar9 = 0;\n      if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }\n    }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)) {\n        iVar6 = 1;\n      }" (if "if") (parenthesized_expression "((param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c))" (( "(") (binary_expression "(param_4 < param_2) || (iVar6 = 0, param_3 <= local_2c)" (parenthesized_expression "(param_4 < param_2)" (( "(") (binary_expression "param_4 < param_2" (identifier "param_4") (< "<") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(iVar6 = 0, param_3 <= local_2c)" (( "(") (comma_expression "iVar6 = 0, param_3 <= local_2c" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (, ",") (binary_expression "param_3 <= local_2c" (identifier "param_3") (<= "<=") (identifier "local_2c"))) () ")"))) () ")")) (compound_statement "{\n        iVar6 = 1;\n      }" ({ "{") (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" (else "else") (compound_statement "{\n      bVar5 = (byte)(uVar9 ^ 0x1f);\n      bVar7 = 0x20 - bVar5;\n      uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));\n      uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));\n      uVar3 = uVar2 / uVar1;\n      iVar6 = (int)uVar3;\n      uVar9 = (uint)(uVar2 % uVar1);\n      lVar4 = (uVar3 & 0xffffffff) * (ulonglong)(param_3 << (bVar5 & 0x1f));\n      uVar8 = (uint)((ulonglong)lVar4 >> 0x20);\n      if ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }\n    }" ({ "{") (expression_statement "bVar5 = (byte)(uVar9 ^ 0x1f);" (assignment_expression "bVar5 = (byte)(uVar9 ^ 0x1f)" (identifier "bVar5") (= "=") (call_expression "(byte)(uVar9 ^ 0x1f)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar9 ^ 0x1f)" (( "(") (binary_expression "uVar9 ^ 0x1f" (identifier "uVar9") (^ "^") (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_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f));" (assignment_expression "uVar1 = (ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" (identifier "uVar1") (= "=") (call_expression "(ulonglong)(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "(param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f))" (( "(") (binary_expression "param_3 >> (bVar7 & 0x1f) | param_4 << (bVar5 & 0x1f)" (binary_expression "param_3 >> (bVar7 & 0x1f)" (identifier "param_3") (>> ">>") (parenthesized_expression "(bVar7 & 0x1f)" (( "(") (binary_expression "bVar7 & 0x1f" (identifier "bVar7") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "param_4 << (bVar5 & 0x1f)" (identifier "param_4") (<< "<<") (parenthesized_expression "(bVar5 & 0x1f)" (( "(") (binary_expression "bVar5 & 0x1f" (identifier "bVar5") (& "&") (number_literal "0x1f")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f));" (assignment_expression "uVar2 = CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" (identifier "uVar2") (= "=") (call_expression "CONCAT44(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (bVar7 & 0x1f))" (identifier "CONCAT44") (argument_list "(param_2 >> (bVar7 & 0x1f),\n                       param_2 << (bVar5 & 0x1f) | local_2c >> (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) | local_2c >> (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 "local_2c >> (bVar7 & 0x1f)" (identifier "local_2c") (>> ">>") (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 "iVar6 = (int)uVar3;" (assignment_expression "iVar6 = (int)uVar3" (identifier "iVar6") (= "=") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "uVar9 = (uint)(uVar2 % uVar1);" (assignment_expression "uVar9 = (uint)(uVar2 % uVar1)" (identifier "uVar9") (= "=") (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 "uVar8 = (uint)((ulonglong)lVar4 >> 0x20);" (assignment_expression "uVar8 = (uint)((ulonglong)lVar4 >> 0x20)" (identifier "uVar8") (= "=") (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 ((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))) {\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = 0;\n      }" (if "if") (parenthesized_expression "((uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))))" (( "(") (binary_expression "(uVar9 < uVar8) || ((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" (parenthesized_expression "(uVar9 < uVar8)" (( "(") (binary_expression "uVar9 < uVar8" (identifier "uVar9") (< "<") (identifier "uVar8")) () ")")) (|| "||") (parenthesized_expression "((local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)))" (( "(") (parenthesized_expression "(local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8))" (( "(") (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4 && (uVar9 == uVar8)" (binary_expression "local_2c << (bVar5 & 0x1f) < (uint)lVar4" (binary_expression "local_2c << (bVar5 & 0x1f)" (identifier "local_2c") (<< "<<") (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 "(uVar9 == uVar8)" (( "(") (binary_expression "uVar9 == uVar8" (identifier "uVar9") (== "==") (identifier "uVar8")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        iVar6 = iVar6 + -1;\n        uVar9 = 0;\n      }" ({ "{") (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar9 = 0;\n      }" (else "else") (compound_statement "{\n        uVar9 = 0;\n      }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (} "}")))))) (if_statement "if (local_24 != 0) {\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar10 = iVar6 != 0;\n    iVar6 = -iVar6;\n    uVar9 = -(uVar9 + bVar10);\n  }" ({ "{") (expression_statement "bVar10 = iVar6 != 0;" (assignment_expression "bVar10 = iVar6 != 0" (identifier "bVar10") (= "=") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "iVar6 = -iVar6;" (assignment_expression "iVar6 = -iVar6" (identifier "iVar6") (= "=") (unary_expression "-iVar6" (- "-") (identifier "iVar6"))) (; ";")) (expression_statement "uVar9 = -(uVar9 + bVar10);" (assignment_expression "uVar9 = -(uVar9 + bVar10)" (identifier "uVar9") (= "=") (unary_expression "-(uVar9 + bVar10)" (- "-") (parenthesized_expression "(uVar9 + bVar10)" (( "(") (binary_expression "uVar9 + bVar10" (identifier "uVar9") (+ "+") (identifier "bVar10")) () ")")))) (; ";")) (} "}"))) (return_statement "return CONCAT44(uVar9,iVar6);" (return "return") (call_expression "CONCAT44(uVar9,iVar6)" (identifier "CONCAT44") (argument_list "(uVar9,iVar6)" (( "(") (identifier "uVar9") (, ",") (identifier "iVar6") () ")"))) (; ";")) (} "}")))

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

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


(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) 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: (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))))))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (primitive_type)) 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)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))

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

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

