
/* WARNING: Removing unreachable block (ram,0x00442b5f) */

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

{
  ulonglong uVar1;
  byte bVar2;
  byte bVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  bool bVar7;
  undefined4 local_30;
  undefined4 local_2c;
  
  local_30 = 0;
  if ((int)param_2 < 0) {
    bVar7 = param_1 != 0;
    param_1 = -param_1;
    local_30 = -1;
    param_2 = -(param_2 + bVar7);
  }
  if ((int)param_4 < 0) {
    bVar7 = param_3 != 0;
    param_3 = -param_3;
    param_4 = -(param_4 + bVar7);
  }
  if (param_4 == 0) {
    if (param_2 < param_3) {
      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);
    }
    else {
      local_2c = param_3;
      if (param_3 == 0) {
        local_2c = 1 / 0;
      }
      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %
                      (ulonglong)local_2c);
    }
    param_2 = 0;
  }
  else if (param_4 <= param_2) {
    uVar5 = 0x1f;
    if (param_4 != 0) {
      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {
      }
    }
    if ((uVar5 ^ 0x1f) == 0) {
      if ((param_4 < param_2) || (param_3 <= param_1)) {
        bVar7 = param_1 < param_3;
        param_1 = param_1 - param_3;
        param_2 = (param_2 - param_4) - (uint)bVar7;
      }
    }
    else {
      bVar2 = (byte)(uVar5 ^ 0x1f);
      bVar3 = 0x20 - bVar2;
      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);
      param_3 = param_3 << (bVar2 & 0x1f);
      uVar5 = param_1 << (bVar2 & 0x1f);
      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),
                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));
      iVar4 = (int)(uVar1 % (ulonglong)uVar6);
      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;
      if (CONCAT44(iVar4,uVar5) < uVar1) {
        uVar1 = uVar1 - CONCAT44(uVar6,param_3);
      }
      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);
      param_2 = uVar6 >> (bVar2 & 0x1f);
      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);
    }
  }
  if (local_30 != 0) {
    bVar7 = param_1 != 0;
    param_1 = -param_1;
    param_2 = -(param_2 + bVar7);
  }
  return CONCAT44(param_2,param_1);
}



/* WARNING: Removing unreachable block (ram,0x00442b5f) */

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

{
  ulonglong uVar1;
  byte bVar2;
  byte bVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  bool bVar7;
  undefined4 local_30;
  undefined4 local_2c;
  
  local_30 = 0;
  if ((int)param_2 < 0) {
    bVar7 = param_1 != 0;
    param_1 = -param_1;
    local_30 = -1;
    param_2 = -(param_2 + bVar7);
  }
  if ((int)param_4 < 0) {
    bVar7 = param_3 != 0;
    param_3 = -param_3;
    param_4 = -(param_4 + bVar7);
  }
  if (param_4 == 0) {
    if (param_2 < param_3) {
      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);
    }
    else {
      local_2c = param_3;
      if (param_3 == 0) {
        local_2c = 1 / 0;
      }
      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %
                      (ulonglong)local_2c);
    }
    param_2 = 0;
  }
  else if (param_4 <= param_2) {
    uVar5 = 0x1f;
    if (param_4 != 0) {
      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {
      }
    }
    if ((uVar5 ^ 0x1f) == 0) {
      if ((param_4 < param_2) || (param_3 <= param_1)) {
        bVar7 = param_1 < param_3;
        param_1 = param_1 - param_3;
        param_2 = (param_2 - param_4) - (uint)bVar7;
      }
    }
    else {
      bVar2 = (byte)(uVar5 ^ 0x1f);
      bVar3 = 0x20 - bVar2;
      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);
      param_3 = param_3 << (bVar2 & 0x1f);
      uVar5 = param_1 << (bVar2 & 0x1f);
      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),
                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));
      iVar4 = (int)(uVar1 % (ulonglong)uVar6);
      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;
      if (CONCAT44(iVar4,uVar5) < uVar1) {
        uVar1 = uVar1 - CONCAT44(uVar6,param_3);
      }
      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);
      param_2 = uVar6 >> (bVar2 & 0x1f);
      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);
    }
  }
  if (local_30 != 0) {
    bVar7 = param_1 != 0;
    param_1 = -param_1;
    param_2 = -(param_2 + bVar7);
  }
  return CONCAT44(param_2,param_1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV EBX,dword ptr [ESP + 0x44]
MOV ECX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0xc],0x0
MOV EAX,dword ptr [ESP + 0x48]
MOV EDX,dword ptr [ESP + 0x4c]
MOV ESI,EBX
TEST EBX,EBX
JNS 0x00442a46
NEG ECX
MOV dword ptr [ESP + 0xc],0xffffffff
ADC EBX,0x0
NEG EBX
MOV ESI,EBX
MOV EDI,EDX
TEST EDX,EDX
JNS 0x00442a55
NEG EAX
ADC EDX,0x0
NEG EDX
MOV EDI,EDX
MOV dword ptr [ESP + 0x10],EAX
MOV EBP,ECX
TEST EDI,EDI
JNZ 0x00442ac0
MOV EBX,EAX
CMP EAX,ESI
JBE 0x00442a90
MOV EDX,ESI
MOV EAX,ECX
DIV EBX
MOV ESI,EDX
MOV EAX,ESI
XOR EDX,EDX
MOV ECX,dword ptr [ESP + 0xc]
TEST ECX,ECX
JZ 0x00442a80
NEG EAX
ADC EDX,0x0
NEG EDX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [ESP + 0x10]
TEST EBX,EBX
JNZ 0x00442aa5
MOV EAX,0x1
XOR EDX,EDX
DIV EDI
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,ESI
MOV EDI,dword ptr [ESP + 0x10]
XOR EDX,EDX
DIV EDI
MOV EAX,EBP
DIV EDI
MOV ESI,EDX
JMP 0x00442a6d
MOV dword ptr [ESP + 0x14],ECX
CMP EDI,ESI
JBE 0x00442ad0
MOV EAX,ECX
MOV EDX,ESI
JMP 0x00442a71
BSR EAX,EDI
XOR EAX,0x1f
MOV dword ptr [ESP + 0x18],EAX
JNZ 0x00442b00
CMP EDI,ESI
JC 0x00442b98
CMP dword ptr [ESP + 0x10],ECX
JBE 0x00442b98
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,ESI
JMP 0x00442a71
MOV EBX,dword ptr [ESP + 0x18]
MOV EAX,0x20
MOV EDX,EAX
MOV EAX,dword ptr [ESP + 0x10]
SUB EDX,EBX
MOV ECX,EBX
SHL EDI,CL
MOV ECX,EDX
MOV dword ptr [ESP + 0x1c],EDX
SHR EAX,CL
MOV ECX,EBX
OR EDI,EAX
MOV EAX,EBX
MOV EBX,ESI
MOV dword ptr [ESP + 0x14],EDI
MOV EDI,dword ptr [ESP + 0x10]
SHL EDI,CL
MOV ECX,EDX
SHR EBX,CL
MOV ECX,EAX
MOV dword ptr [ESP + 0x10],EDI
MOV EDI,EAX
SHL ESI,CL
MOV EAX,EBP
MOV ECX,EDX
MOV EDX,EBX
SHR EAX,CL
MOV ECX,EDI
OR EAX,ESI
SHL EBP,CL
DIV dword ptr [ESP + 0x14]
MOV EBX,EDX
MUL dword ptr [ESP + 0x10]
MOV ESI,EAX
MOV ECX,EDX
CMP EBX,EDX
JC 0x00442b63
JNZ 0x00442b6f
CMP EBP,EAX
JNC 0x00442b6f
SUB EAX,dword ptr [ESP + 0x10]
SBB EDX,dword ptr [ESP + 0x14]
MOV ECX,EDX
MOV ESI,EAX
SUB EBP,ESI
SBB EBX,ECX
MOV EDI,dword ptr [ESP + 0x18]
MOVZX ECX,byte ptr [ESP + 0x1c]
MOV ESI,EBX
SHL ESI,CL
MOV ECX,EDI
SHR EBP,CL
SHR EBX,CL
OR ESI,EBP
MOV EDX,EBX
MOV EAX,ESI
JMP 0x00442a71
MOV ECX,EBP
SUB ECX,dword ptr [ESP + 0x10]
SBB ESI,EDI
MOV dword ptr [ESP + 0x14],ECX
JMP 0x00442aee
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00442b5f) */\n\nundefined8 FUN_00442a10(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}\n\n" comment (function_definition "undefined8 FUN_00442a10(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" type_identifier (function_declarator "FUN_00442a10(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  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (if_statement "if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\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    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }" { (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" identifier = (binary_expression "param_1 != 0" identifier != number_literal)) ;) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "local_30 = -1;" (assignment_expression "local_30 = -1" identifier = number_literal) ;) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" identifier = (unary_expression "-(param_2 + bVar7)" - (parenthesized_expression "(param_2 + bVar7)" ( (binary_expression "param_2 + bVar7" identifier + identifier) )))) ;) })) (if_statement "if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\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    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }" { (expression_statement "bVar7 = param_3 != 0;" (assignment_expression "bVar7 = 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 "param_4 = -(param_4 + bVar7);" (assignment_expression "param_4 = -(param_4 + bVar7)" identifier = (unary_expression "-(param_4 + bVar7)" - (parenthesized_expression "(param_4 + bVar7)" ( (binary_expression "param_4 + bVar7" identifier + identifier) )))) ;) })) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\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      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }" { (if_statement "if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }" { (expression_statement "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);" (assignment_expression "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" identifier = (call_expression "(uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(CONCAT44(param_2,param_1) % (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,param_1) % (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) % (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" else (compound_statement "{\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" { (expression_statement "local_2c = param_3;" (assignment_expression "local_2c = param_3" identifier = identifier) ;) (if_statement "if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_2c = 1 / 0;\n      }" { (expression_statement "local_2c = 1 / 0;" (assignment_expression "local_2c = 1 / 0" identifier = (binary_expression "1 / 0" number_literal / number_literal)) ;) })) (expression_statement "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);" (assignment_expression "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" identifier = (call_expression "(uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) % (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) << number_literal) | (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) % (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }))) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" else (if_statement "if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" if (parenthesized_expression "(param_4 <= param_2)" ( (binary_expression "param_4 <= param_2" identifier <= identifier) )) (compound_statement "{\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" { (expression_statement "uVar5 = 0x1f;" (assignment_expression "uVar5 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar5 == 0" (binary_expression "param_4 >> uVar5" identifier >> identifier) == number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" if (parenthesized_expression "((uVar5 ^ 0x1f) == 0)" ( (binary_expression "(uVar5 ^ 0x1f) == 0" (parenthesized_expression "(uVar5 ^ 0x1f)" ( (binary_expression "uVar5 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }" { (if_statement "if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" if (parenthesized_expression "((param_4 < param_2) || (param_3 <= param_1))" ( (binary_expression "(param_4 < param_2) || (param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(param_3 <= param_1)" ( (binary_expression "param_3 <= param_1" identifier <= identifier) ))) )) (compound_statement "{\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" { (expression_statement "bVar7 = param_1 < param_3;" (assignment_expression "bVar7 = param_1 < param_3" identifier = (binary_expression "param_1 < param_3" identifier < identifier)) ;) (expression_statement "param_1 = param_1 - param_3;" (assignment_expression "param_1 = param_1 - param_3" identifier = (binary_expression "param_1 - param_3" identifier - identifier)) ;) (expression_statement "param_2 = (param_2 - param_4) - (uint)bVar7;" (assignment_expression "param_2 = (param_2 - param_4) - (uint)bVar7" identifier = (binary_expression "(param_2 - param_4) - (uint)bVar7" (parenthesized_expression "(param_2 - param_4)" ( (binary_expression "param_2 - param_4" identifier - identifier) )) - (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) })) }) (else_clause "else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" else (compound_statement "{\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" { (expression_statement "bVar2 = (byte)(uVar5 ^ 0x1f);" (assignment_expression "bVar2 = (byte)(uVar5 ^ 0x1f)" identifier = (call_expression "(byte)(uVar5 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar5 ^ 0x1f)" ( (binary_expression "uVar5 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "bVar3 = 0x20 - bVar2;" (assignment_expression "bVar3 = 0x20 - bVar2" identifier = (binary_expression "0x20 - bVar2" number_literal - identifier)) ;) (expression_statement "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);" (assignment_expression "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" identifier = (binary_expression "param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" (binary_expression "param_4 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_3 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "param_3 = param_3 << (bVar2 & 0x1f);" (assignment_expression "param_3 = param_3 << (bVar2 & 0x1f)" identifier = (binary_expression "param_3 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = param_1 << (bVar2 & 0x1f);" (assignment_expression "uVar5 = param_1 << (bVar2 & 0x1f)" identifier = (binary_expression "param_1 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));" (assignment_expression "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" identifier (argument_list "(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" ( (binary_expression "param_2 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) , (binary_expression "param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f)" (binary_expression "param_1 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_2 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "iVar4 = (int)(uVar1 % (ulonglong)uVar6);" (assignment_expression "iVar4 = (int)(uVar1 % (ulonglong)uVar6)" identifier = (cast_expression "(int)(uVar1 % (ulonglong)uVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 % (ulonglong)uVar6)" ( (binary_expression "uVar1 % (ulonglong)uVar6" identifier % (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;" (assignment_expression "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" identifier = (binary_expression "(uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" (parenthesized_expression "(uVar1 / uVar6 & 0xffffffff)" ( (binary_expression "uVar1 / uVar6 & 0xffffffff" (binary_expression "uVar1 / uVar6" identifier / identifier) & number_literal) )) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (if_statement "if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" if (parenthesized_expression "(CONCAT44(iVar4,uVar5) < uVar1)" ( (binary_expression "CONCAT44(iVar4,uVar5) < uVar1" (call_expression "CONCAT44(iVar4,uVar5)" identifier (argument_list "(iVar4,uVar5)" ( identifier , identifier ))) < identifier) )) (compound_statement "{\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" { (expression_statement "uVar1 = uVar1 - CONCAT44(uVar6,param_3);" (assignment_expression "uVar1 = uVar1 - CONCAT44(uVar6,param_3)" identifier = (binary_expression "uVar1 - CONCAT44(uVar6,param_3)" identifier - (call_expression "CONCAT44(uVar6,param_3)" identifier (argument_list "(uVar6,param_3)" ( identifier , identifier ))))) ;) })) (expression_statement "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);" (assignment_expression "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" identifier = (binary_expression "(iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(iVar4 - (int)(uVar1 >> 0x20))" ( (binary_expression "iVar4 - (int)(uVar1 >> 0x20)" identifier - (cast_expression "(int)(uVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 >> 0x20)" ( (binary_expression "uVar1 >> 0x20" identifier >> number_literal) )))) )) - (call_expression "(uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < (uint)uVar1)" ( (binary_expression "uVar5 < (uint)uVar1" identifier < (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) ;) (expression_statement "param_2 = uVar6 >> (bVar2 & 0x1f);" (assignment_expression "param_2 = uVar6 >> (bVar2 & 0x1f)" identifier = (binary_expression "uVar6 >> (bVar2 & 0x1f)" identifier >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);" (assignment_expression "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" identifier = (binary_expression "uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar6 << (bVar3 & 0x1f)" identifier << (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) | (binary_expression "uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar5 - (uint)uVar1" identifier - (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))))) ;) }))) })))) (if_statement "if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" { (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" identifier = (binary_expression "param_1 != 0" identifier != number_literal)) ;) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" identifier = (unary_expression "-(param_2 + bVar7)" - (parenthesized_expression "(param_2 + bVar7)" ( (binary_expression "param_2 + bVar7" identifier + identifier) )))) ;) })) (return_statement "return CONCAT44(param_2,param_1);" return (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00442b5f) */\n\nundefined8 __moddi3(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}\n\n" comment (function_definition "undefined8 __moddi3(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" type_identifier (function_declarator "__moddi3(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  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (if_statement "if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\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    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }" { (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" identifier = (binary_expression "param_1 != 0" identifier != number_literal)) ;) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "local_30 = -1;" (assignment_expression "local_30 = -1" identifier = number_literal) ;) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" identifier = (unary_expression "-(param_2 + bVar7)" - (parenthesized_expression "(param_2 + bVar7)" ( (binary_expression "param_2 + bVar7" identifier + identifier) )))) ;) })) (if_statement "if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\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    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }" { (expression_statement "bVar7 = param_3 != 0;" (assignment_expression "bVar7 = 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 "param_4 = -(param_4 + bVar7);" (assignment_expression "param_4 = -(param_4 + bVar7)" identifier = (unary_expression "-(param_4 + bVar7)" - (parenthesized_expression "(param_4 + bVar7)" ( (binary_expression "param_4 + bVar7" identifier + identifier) )))) ;) })) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\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      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }" { (if_statement "if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }" { (expression_statement "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);" (assignment_expression "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" identifier = (call_expression "(uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(CONCAT44(param_2,param_1) % (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,param_1) % (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) % (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" else (compound_statement "{\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" { (expression_statement "local_2c = param_3;" (assignment_expression "local_2c = param_3" identifier = identifier) ;) (if_statement "if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_2c = 1 / 0;\n      }" { (expression_statement "local_2c = 1 / 0;" (assignment_expression "local_2c = 1 / 0" identifier = (binary_expression "1 / 0" number_literal / number_literal)) ;) })) (expression_statement "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);" (assignment_expression "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" identifier = (call_expression "(uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) % (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) << number_literal) | (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) % (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }))) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" else (if_statement "if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" if (parenthesized_expression "(param_4 <= param_2)" ( (binary_expression "param_4 <= param_2" identifier <= identifier) )) (compound_statement "{\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" { (expression_statement "uVar5 = 0x1f;" (assignment_expression "uVar5 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar5 == 0" (binary_expression "param_4 >> uVar5" identifier >> identifier) == number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" if (parenthesized_expression "((uVar5 ^ 0x1f) == 0)" ( (binary_expression "(uVar5 ^ 0x1f) == 0" (parenthesized_expression "(uVar5 ^ 0x1f)" ( (binary_expression "uVar5 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }" { (if_statement "if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" if (parenthesized_expression "((param_4 < param_2) || (param_3 <= param_1))" ( (binary_expression "(param_4 < param_2) || (param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(param_3 <= param_1)" ( (binary_expression "param_3 <= param_1" identifier <= identifier) ))) )) (compound_statement "{\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" { (expression_statement "bVar7 = param_1 < param_3;" (assignment_expression "bVar7 = param_1 < param_3" identifier = (binary_expression "param_1 < param_3" identifier < identifier)) ;) (expression_statement "param_1 = param_1 - param_3;" (assignment_expression "param_1 = param_1 - param_3" identifier = (binary_expression "param_1 - param_3" identifier - identifier)) ;) (expression_statement "param_2 = (param_2 - param_4) - (uint)bVar7;" (assignment_expression "param_2 = (param_2 - param_4) - (uint)bVar7" identifier = (binary_expression "(param_2 - param_4) - (uint)bVar7" (parenthesized_expression "(param_2 - param_4)" ( (binary_expression "param_2 - param_4" identifier - identifier) )) - (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) })) }) (else_clause "else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" else (compound_statement "{\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" { (expression_statement "bVar2 = (byte)(uVar5 ^ 0x1f);" (assignment_expression "bVar2 = (byte)(uVar5 ^ 0x1f)" identifier = (call_expression "(byte)(uVar5 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar5 ^ 0x1f)" ( (binary_expression "uVar5 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "bVar3 = 0x20 - bVar2;" (assignment_expression "bVar3 = 0x20 - bVar2" identifier = (binary_expression "0x20 - bVar2" number_literal - identifier)) ;) (expression_statement "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);" (assignment_expression "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" identifier = (binary_expression "param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" (binary_expression "param_4 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_3 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "param_3 = param_3 << (bVar2 & 0x1f);" (assignment_expression "param_3 = param_3 << (bVar2 & 0x1f)" identifier = (binary_expression "param_3 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = param_1 << (bVar2 & 0x1f);" (assignment_expression "uVar5 = param_1 << (bVar2 & 0x1f)" identifier = (binary_expression "param_1 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));" (assignment_expression "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" identifier (argument_list "(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" ( (binary_expression "param_2 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) , (binary_expression "param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f)" (binary_expression "param_1 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_2 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "iVar4 = (int)(uVar1 % (ulonglong)uVar6);" (assignment_expression "iVar4 = (int)(uVar1 % (ulonglong)uVar6)" identifier = (cast_expression "(int)(uVar1 % (ulonglong)uVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 % (ulonglong)uVar6)" ( (binary_expression "uVar1 % (ulonglong)uVar6" identifier % (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;" (assignment_expression "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" identifier = (binary_expression "(uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" (parenthesized_expression "(uVar1 / uVar6 & 0xffffffff)" ( (binary_expression "uVar1 / uVar6 & 0xffffffff" (binary_expression "uVar1 / uVar6" identifier / identifier) & number_literal) )) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (if_statement "if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" if (parenthesized_expression "(CONCAT44(iVar4,uVar5) < uVar1)" ( (binary_expression "CONCAT44(iVar4,uVar5) < uVar1" (call_expression "CONCAT44(iVar4,uVar5)" identifier (argument_list "(iVar4,uVar5)" ( identifier , identifier ))) < identifier) )) (compound_statement "{\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" { (expression_statement "uVar1 = uVar1 - CONCAT44(uVar6,param_3);" (assignment_expression "uVar1 = uVar1 - CONCAT44(uVar6,param_3)" identifier = (binary_expression "uVar1 - CONCAT44(uVar6,param_3)" identifier - (call_expression "CONCAT44(uVar6,param_3)" identifier (argument_list "(uVar6,param_3)" ( identifier , identifier ))))) ;) })) (expression_statement "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);" (assignment_expression "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" identifier = (binary_expression "(iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(iVar4 - (int)(uVar1 >> 0x20))" ( (binary_expression "iVar4 - (int)(uVar1 >> 0x20)" identifier - (cast_expression "(int)(uVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 >> 0x20)" ( (binary_expression "uVar1 >> 0x20" identifier >> number_literal) )))) )) - (call_expression "(uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < (uint)uVar1)" ( (binary_expression "uVar5 < (uint)uVar1" identifier < (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) ;) (expression_statement "param_2 = uVar6 >> (bVar2 & 0x1f);" (assignment_expression "param_2 = uVar6 >> (bVar2 & 0x1f)" identifier = (binary_expression "uVar6 >> (bVar2 & 0x1f)" identifier >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);" (assignment_expression "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" identifier = (binary_expression "uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar6 << (bVar3 & 0x1f)" identifier << (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) | (binary_expression "uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar5 - (uint)uVar1" identifier - (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))))) ;) }))) })))) (if_statement "if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" { (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" identifier = (binary_expression "param_1 != 0" identifier != number_literal)) ;) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" identifier = (unary_expression "-(param_2 + bVar7)" - (parenthesized_expression "(param_2 + bVar7)" ( (binary_expression "param_2 + bVar7" identifier + identifier) )))) ;) })) (return_statement "return CONCAT44(param_2,param_1);" return (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) ;) })))
(translation_unit "undefined8 FUN_00442a10(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}\n\n" (function_definition "undefined8 FUN_00442a10(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" type_identifier (function_declarator "FUN_00442a10(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  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (if_statement "if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\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    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }" { (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" identifier = (binary_expression "param_1 != 0" identifier != number_literal)) ;) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "local_30 = -1;" (assignment_expression "local_30 = -1" identifier = number_literal) ;) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" identifier = (unary_expression "-(param_2 + bVar7)" - (parenthesized_expression "(param_2 + bVar7)" ( (binary_expression "param_2 + bVar7" identifier + identifier) )))) ;) })) (if_statement "if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\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    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }" { (expression_statement "bVar7 = param_3 != 0;" (assignment_expression "bVar7 = 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 "param_4 = -(param_4 + bVar7);" (assignment_expression "param_4 = -(param_4 + bVar7)" identifier = (unary_expression "-(param_4 + bVar7)" - (parenthesized_expression "(param_4 + bVar7)" ( (binary_expression "param_4 + bVar7" identifier + identifier) )))) ;) })) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\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      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }" { (if_statement "if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }" { (expression_statement "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);" (assignment_expression "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" identifier = (call_expression "(uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(CONCAT44(param_2,param_1) % (ulonglong)param_3)" ( (binary_expression "CONCAT44(param_2,param_1) % (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))) % (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }) (else_clause "else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" else (compound_statement "{\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" { (expression_statement "local_2c = param_3;" (assignment_expression "local_2c = param_3" identifier = identifier) ;) (if_statement "if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_2c = 1 / 0;\n      }" { (expression_statement "local_2c = 1 / 0;" (assignment_expression "local_2c = 1 / 0" identifier = (binary_expression "1 / 0" number_literal / number_literal)) ;) })) (expression_statement "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);" (assignment_expression "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" identifier = (call_expression "(uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" ( (binary_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1)" ( (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) % (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) << number_literal) | (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )) % (cast_expression "(ulonglong)local_2c" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) }))) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" else (if_statement "if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" if (parenthesized_expression "(param_4 <= param_2)" ( (binary_expression "param_4 <= param_2" identifier <= identifier) )) (compound_statement "{\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" { (expression_statement "uVar5 = 0x1f;" (assignment_expression "uVar5 = 0x1f" identifier = number_literal) ;) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }" { (for_statement "for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }" for ( ; (binary_expression "param_4 >> uVar5 == 0" (binary_expression "param_4 >> uVar5" identifier >> identifier) == number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      }" { })) })) (if_statement "if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" if (parenthesized_expression "((uVar5 ^ 0x1f) == 0)" ( (binary_expression "(uVar5 ^ 0x1f) == 0" (parenthesized_expression "(uVar5 ^ 0x1f)" ( (binary_expression "uVar5 ^ 0x1f" identifier ^ number_literal) )) == number_literal) )) (compound_statement "{\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }" { (if_statement "if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" if (parenthesized_expression "((param_4 < param_2) || (param_3 <= param_1))" ( (binary_expression "(param_4 < param_2) || (param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" ( (binary_expression "param_4 < param_2" identifier < identifier) )) || (parenthesized_expression "(param_3 <= param_1)" ( (binary_expression "param_3 <= param_1" identifier <= identifier) ))) )) (compound_statement "{\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" { (expression_statement "bVar7 = param_1 < param_3;" (assignment_expression "bVar7 = param_1 < param_3" identifier = (binary_expression "param_1 < param_3" identifier < identifier)) ;) (expression_statement "param_1 = param_1 - param_3;" (assignment_expression "param_1 = param_1 - param_3" identifier = (binary_expression "param_1 - param_3" identifier - identifier)) ;) (expression_statement "param_2 = (param_2 - param_4) - (uint)bVar7;" (assignment_expression "param_2 = (param_2 - param_4) - (uint)bVar7" identifier = (binary_expression "(param_2 - param_4) - (uint)bVar7" (parenthesized_expression "(param_2 - param_4)" ( (binary_expression "param_2 - param_4" identifier - identifier) )) - (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) })) }) (else_clause "else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" else (compound_statement "{\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" { (expression_statement "bVar2 = (byte)(uVar5 ^ 0x1f);" (assignment_expression "bVar2 = (byte)(uVar5 ^ 0x1f)" identifier = (call_expression "(byte)(uVar5 ^ 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar5 ^ 0x1f)" ( (binary_expression "uVar5 ^ 0x1f" identifier ^ number_literal) )))) ;) (expression_statement "bVar3 = 0x20 - bVar2;" (assignment_expression "bVar3 = 0x20 - bVar2" identifier = (binary_expression "0x20 - bVar2" number_literal - identifier)) ;) (expression_statement "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);" (assignment_expression "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" identifier = (binary_expression "param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" (binary_expression "param_4 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_3 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "param_3 = param_3 << (bVar2 & 0x1f);" (assignment_expression "param_3 = param_3 << (bVar2 & 0x1f)" identifier = (binary_expression "param_3 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = param_1 << (bVar2 & 0x1f);" (assignment_expression "uVar5 = param_1 << (bVar2 & 0x1f)" identifier = (binary_expression "param_1 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));" (assignment_expression "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" identifier = (call_expression "CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" identifier (argument_list "(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" ( (binary_expression "param_2 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) , (binary_expression "param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f)" (binary_expression "param_1 >> (bVar3 & 0x1f)" identifier >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) | (binary_expression "param_2 << (bVar2 & 0x1f)" identifier << (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) )))) ;) (expression_statement "iVar4 = (int)(uVar1 % (ulonglong)uVar6);" (assignment_expression "iVar4 = (int)(uVar1 % (ulonglong)uVar6)" identifier = (cast_expression "(int)(uVar1 % (ulonglong)uVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 % (ulonglong)uVar6)" ( (binary_expression "uVar1 % (ulonglong)uVar6" identifier % (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;" (assignment_expression "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" identifier = (binary_expression "(uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" (parenthesized_expression "(uVar1 / uVar6 & 0xffffffff)" ( (binary_expression "uVar1 / uVar6 & 0xffffffff" (binary_expression "uVar1 / uVar6" identifier / identifier) & number_literal) )) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (if_statement "if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" if (parenthesized_expression "(CONCAT44(iVar4,uVar5) < uVar1)" ( (binary_expression "CONCAT44(iVar4,uVar5) < uVar1" (call_expression "CONCAT44(iVar4,uVar5)" identifier (argument_list "(iVar4,uVar5)" ( identifier , identifier ))) < identifier) )) (compound_statement "{\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" { (expression_statement "uVar1 = uVar1 - CONCAT44(uVar6,param_3);" (assignment_expression "uVar1 = uVar1 - CONCAT44(uVar6,param_3)" identifier = (binary_expression "uVar1 - CONCAT44(uVar6,param_3)" identifier - (call_expression "CONCAT44(uVar6,param_3)" identifier (argument_list "(uVar6,param_3)" ( identifier , identifier ))))) ;) })) (expression_statement "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);" (assignment_expression "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" identifier = (binary_expression "(iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(iVar4 - (int)(uVar1 >> 0x20))" ( (binary_expression "iVar4 - (int)(uVar1 >> 0x20)" identifier - (cast_expression "(int)(uVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 >> 0x20)" ( (binary_expression "uVar1 >> 0x20" identifier >> number_literal) )))) )) - (call_expression "(uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < (uint)uVar1)" ( (binary_expression "uVar5 < (uint)uVar1" identifier < (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) ;) (expression_statement "param_2 = uVar6 >> (bVar2 & 0x1f);" (assignment_expression "param_2 = uVar6 >> (bVar2 & 0x1f)" identifier = (binary_expression "uVar6 >> (bVar2 & 0x1f)" identifier >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);" (assignment_expression "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" identifier = (binary_expression "uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar6 << (bVar3 & 0x1f)" identifier << (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) | (binary_expression "uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar5 - (uint)uVar1" identifier - (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))))) ;) }))) })))) (if_statement "if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" { (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" identifier = (binary_expression "param_1 != 0" identifier != number_literal)) ;) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" identifier = (unary_expression "-param_1" - identifier)) ;) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" identifier = (unary_expression "-(param_2 + bVar7)" - (parenthesized_expression "(param_2 + bVar7)" ( (binary_expression "param_2 + bVar7" identifier + identifier) )))) ;) })) (return_statement "return CONCAT44(param_2,param_1);" return (call_expression "CONCAT44(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( 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 ;) (expression_statement (assignment_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 = LIT) ;) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) })) (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 - (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 = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) % (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) % (cast_expression ( (type_descriptor TYPE) ) IDENT)) << LIT) | (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) % (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (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 { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) }) (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 = (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 << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (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 = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT % (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT / IDENT) & LIT) )) * (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) | (binary_expression (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> (parenthesized_expression ( (binary_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_00442a10(uint param_1,uint param_2,uint param_3,uint param_4)\n\n{\n  ulonglong uVar1;\n  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" (type_identifier "undefined8") (function_declarator "FUN_00442a10(uint param_1,uint param_2,uint param_3,uint param_4)" (identifier "FUN_00442a10") (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  byte bVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  bool bVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  \n  local_30 = 0;\n  if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }\n  if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }\n  if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }\n  if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }\n  return CONCAT44(param_2,param_1);\n}" ({ "{") (declaration "ulonglong uVar1;" (type_identifier "ulonglong") (identifier "uVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((int)param_2 < 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\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    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    local_30 = -1;\n    param_2 = -(param_2 + bVar7);\n  }" ({ "{") (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" (identifier "bVar7") (= "=") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" (identifier "param_1") (= "=") (unary_expression "-param_1" (- "-") (identifier "param_1"))) (; ";")) (expression_statement "local_30 = -1;" (assignment_expression "local_30 = -1" (identifier "local_30") (= "=") (number_literal "-1")) (; ";")) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" (identifier "param_2") (= "=") (unary_expression "-(param_2 + bVar7)" (- "-") (parenthesized_expression "(param_2 + bVar7)" (( "(") (binary_expression "param_2 + bVar7" (identifier "param_2") (+ "+") (identifier "bVar7")) () ")")))) (; ";")) (} "}"))) (if_statement "if ((int)param_4 < 0) {\n    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\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    bVar7 = param_3 != 0;\n    param_3 = -param_3;\n    param_4 = -(param_4 + bVar7);\n  }" ({ "{") (expression_statement "bVar7 = param_3 != 0;" (assignment_expression "bVar7 = param_3 != 0" (identifier "bVar7") (= "=") (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 "param_4 = -(param_4 + bVar7);" (assignment_expression "param_4 = -(param_4 + bVar7)" (identifier "param_4") (= "=") (unary_expression "-(param_4 + bVar7)" (- "-") (parenthesized_expression "(param_4 + bVar7)" (( "(") (binary_expression "param_4 + bVar7" (identifier "param_4") (+ "+") (identifier "bVar7")) () ")")))) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n    if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }\n  else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\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      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }\n    param_2 = 0;\n  }" ({ "{") (if_statement "if (param_2 < param_3) {\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }\n    else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" (if "if") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);\n    }" ({ "{") (expression_statement "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);" (assignment_expression "param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" (identifier "param_1") (= "=") (call_expression "(uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(CONCAT44(param_2,param_1) % (ulonglong)param_3)" (( "(") (binary_expression "CONCAT44(param_2,param_1) % (ulonglong)param_3" (call_expression "CONCAT44(param_2,param_1)" (identifier "CONCAT44") (argument_list "(param_2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") () ")"))) (% "%") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" (else "else") (compound_statement "{\n      local_2c = param_3;\n      if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }\n      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);\n    }" ({ "{") (expression_statement "local_2c = param_3;" (assignment_expression "local_2c = param_3" (identifier "local_2c") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 == 0) {\n        local_2c = 1 / 0;\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_2c = 1 / 0;\n      }" ({ "{") (expression_statement "local_2c = 1 / 0;" (assignment_expression "local_2c = 1 / 0" (identifier "local_2c") (= "=") (binary_expression "1 / 0" (number_literal "1") (/ "/") (number_literal "0"))) (; ";")) (} "}"))) (expression_statement "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c);" (assignment_expression "param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" (identifier "param_1") (= "=") (call_expression "(uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c)" (( "(") (binary_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %\n                      (ulonglong)local_2c" (parenthesized_expression "((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1)" (( "(") (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c << 0x20" (binary_expression "(ulonglong)param_2 % (ulonglong)local_2c" (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2")) (% "%") (cast_expression "(ulonglong)local_2c" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "local_2c"))) (<< "<<") (number_literal "0x20")) (| "|") (cast_expression "(ulonglong)param_1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_1"))) () ")")) (% "%") (cast_expression "(ulonglong)local_2c" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "local_2c"))) () ")")))) (; ";")) (} "}")))) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" (else "else") (if_statement "if (param_4 <= param_2) {\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" (if "if") (parenthesized_expression "(param_4 <= param_2)" (( "(") (binary_expression "param_4 <= param_2" (identifier "param_4") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    uVar5 = 0x1f;\n    if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }\n    if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }\n  }" ({ "{") (expression_statement "uVar5 = 0x1f;" (assignment_expression "uVar5 = 0x1f" (identifier "uVar5") (= "=") (number_literal "0x1f")) (; ";")) (if_statement "if (param_4 != 0) {\n      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 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 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }\n    }" ({ "{") (for_statement "for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {\n      }" (for "for") (( "(") (; ";") (binary_expression "param_4 >> uVar5 == 0" (binary_expression "param_4 >> uVar5" (identifier "param_4") (>> ">>") (identifier "uVar5")) (== "==") (number_literal "0")) (; ";") (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      }" ({ "{") (} "}"))) (} "}"))) (if_statement "if ((uVar5 ^ 0x1f) == 0) {\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }\n    else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" (if "if") (parenthesized_expression "((uVar5 ^ 0x1f) == 0)" (( "(") (binary_expression "(uVar5 ^ 0x1f) == 0" (parenthesized_expression "(uVar5 ^ 0x1f)" (( "(") (binary_expression "uVar5 ^ 0x1f" (identifier "uVar5") (^ "^") (number_literal "0x1f")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }\n    }" ({ "{") (if_statement "if ((param_4 < param_2) || (param_3 <= param_1)) {\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" (if "if") (parenthesized_expression "((param_4 < param_2) || (param_3 <= param_1))" (( "(") (binary_expression "(param_4 < param_2) || (param_3 <= param_1)" (parenthesized_expression "(param_4 < param_2)" (( "(") (binary_expression "param_4 < param_2" (identifier "param_4") (< "<") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(param_3 <= param_1)" (( "(") (binary_expression "param_3 <= param_1" (identifier "param_3") (<= "<=") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n        bVar7 = param_1 < param_3;\n        param_1 = param_1 - param_3;\n        param_2 = (param_2 - param_4) - (uint)bVar7;\n      }" ({ "{") (expression_statement "bVar7 = param_1 < param_3;" (assignment_expression "bVar7 = param_1 < param_3" (identifier "bVar7") (= "=") (binary_expression "param_1 < param_3" (identifier "param_1") (< "<") (identifier "param_3"))) (; ";")) (expression_statement "param_1 = param_1 - param_3;" (assignment_expression "param_1 = param_1 - param_3" (identifier "param_1") (= "=") (binary_expression "param_1 - param_3" (identifier "param_1") (- "-") (identifier "param_3"))) (; ";")) (expression_statement "param_2 = (param_2 - param_4) - (uint)bVar7;" (assignment_expression "param_2 = (param_2 - param_4) - (uint)bVar7" (identifier "param_2") (= "=") (binary_expression "(param_2 - param_4) - (uint)bVar7" (parenthesized_expression "(param_2 - param_4)" (( "(") (binary_expression "param_2 - param_4" (identifier "param_2") (- "-") (identifier "param_4")) () ")")) (- "-") (cast_expression "(uint)bVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar7")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" (else "else") (compound_statement "{\n      bVar2 = (byte)(uVar5 ^ 0x1f);\n      bVar3 = 0x20 - bVar2;\n      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);\n      param_3 = param_3 << (bVar2 & 0x1f);\n      uVar5 = param_1 << (bVar2 & 0x1f);\n      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));\n      iVar4 = (int)(uVar1 % (ulonglong)uVar6);\n      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;\n      if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }\n      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);\n      param_2 = uVar6 >> (bVar2 & 0x1f);\n      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);\n    }" ({ "{") (expression_statement "bVar2 = (byte)(uVar5 ^ 0x1f);" (assignment_expression "bVar2 = (byte)(uVar5 ^ 0x1f)" (identifier "bVar2") (= "=") (call_expression "(byte)(uVar5 ^ 0x1f)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar5 ^ 0x1f)" (( "(") (binary_expression "uVar5 ^ 0x1f" (identifier "uVar5") (^ "^") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "bVar3 = 0x20 - bVar2;" (assignment_expression "bVar3 = 0x20 - bVar2" (identifier "bVar3") (= "=") (binary_expression "0x20 - bVar2" (number_literal "0x20") (- "-") (identifier "bVar2"))) (; ";")) (expression_statement "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);" (assignment_expression "uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" (identifier "uVar6") (= "=") (binary_expression "param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f)" (binary_expression "param_4 << (bVar2 & 0x1f)" (identifier "param_4") (<< "<<") (parenthesized_expression "(bVar2 & 0x1f)" (( "(") (binary_expression "bVar2 & 0x1f" (identifier "bVar2") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "param_3 >> (bVar3 & 0x1f)" (identifier "param_3") (>> ">>") (parenthesized_expression "(bVar3 & 0x1f)" (( "(") (binary_expression "bVar3 & 0x1f" (identifier "bVar3") (& "&") (number_literal "0x1f")) () ")"))))) (; ";")) (expression_statement "param_3 = param_3 << (bVar2 & 0x1f);" (assignment_expression "param_3 = param_3 << (bVar2 & 0x1f)" (identifier "param_3") (= "=") (binary_expression "param_3 << (bVar2 & 0x1f)" (identifier "param_3") (<< "<<") (parenthesized_expression "(bVar2 & 0x1f)" (( "(") (binary_expression "bVar2 & 0x1f" (identifier "bVar2") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar5 = param_1 << (bVar2 & 0x1f);" (assignment_expression "uVar5 = param_1 << (bVar2 & 0x1f)" (identifier "uVar5") (= "=") (binary_expression "param_1 << (bVar2 & 0x1f)" (identifier "param_1") (<< "<<") (parenthesized_expression "(bVar2 & 0x1f)" (( "(") (binary_expression "bVar2 & 0x1f" (identifier "bVar2") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));" (assignment_expression "uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" (identifier "uVar1") (= "=") (call_expression "CONCAT44(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" (identifier "CONCAT44") (argument_list "(param_2 >> (bVar3 & 0x1f),\n                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f))" (( "(") (binary_expression "param_2 >> (bVar3 & 0x1f)" (identifier "param_2") (>> ">>") (parenthesized_expression "(bVar3 & 0x1f)" (( "(") (binary_expression "bVar3 & 0x1f" (identifier "bVar3") (& "&") (number_literal "0x1f")) () ")"))) (, ",") (binary_expression "param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f)" (binary_expression "param_1 >> (bVar3 & 0x1f)" (identifier "param_1") (>> ">>") (parenthesized_expression "(bVar3 & 0x1f)" (( "(") (binary_expression "bVar3 & 0x1f" (identifier "bVar3") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "param_2 << (bVar2 & 0x1f)" (identifier "param_2") (<< "<<") (parenthesized_expression "(bVar2 & 0x1f)" (( "(") (binary_expression "bVar2 & 0x1f" (identifier "bVar2") (& "&") (number_literal "0x1f")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar4 = (int)(uVar1 % (ulonglong)uVar6);" (assignment_expression "iVar4 = (int)(uVar1 % (ulonglong)uVar6)" (identifier "iVar4") (= "=") (cast_expression "(int)(uVar1 % (ulonglong)uVar6)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 % (ulonglong)uVar6)" (( "(") (binary_expression "uVar1 % (ulonglong)uVar6" (identifier "uVar1") (% "%") (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6"))) () ")")))) (; ";")) (expression_statement "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;" (assignment_expression "uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" (identifier "uVar1") (= "=") (binary_expression "(uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3" (parenthesized_expression "(uVar1 / uVar6 & 0xffffffff)" (( "(") (binary_expression "uVar1 / uVar6 & 0xffffffff" (binary_expression "uVar1 / uVar6" (identifier "uVar1") (/ "/") (identifier "uVar6")) (& "&") (number_literal "0xffffffff")) () ")")) (* "*") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3")))) (; ";")) (if_statement "if (CONCAT44(iVar4,uVar5) < uVar1) {\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" (if "if") (parenthesized_expression "(CONCAT44(iVar4,uVar5) < uVar1)" (( "(") (binary_expression "CONCAT44(iVar4,uVar5) < uVar1" (call_expression "CONCAT44(iVar4,uVar5)" (identifier "CONCAT44") (argument_list "(iVar4,uVar5)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar5") () ")"))) (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n        uVar1 = uVar1 - CONCAT44(uVar6,param_3);\n      }" ({ "{") (expression_statement "uVar1 = uVar1 - CONCAT44(uVar6,param_3);" (assignment_expression "uVar1 = uVar1 - CONCAT44(uVar6,param_3)" (identifier "uVar1") (= "=") (binary_expression "uVar1 - CONCAT44(uVar6,param_3)" (identifier "uVar1") (- "-") (call_expression "CONCAT44(uVar6,param_3)" (identifier "CONCAT44") (argument_list "(uVar6,param_3)" (( "(") (identifier "uVar6") (, ",") (identifier "param_3") () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);" (assignment_expression "uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" (identifier "uVar6") (= "=") (binary_expression "(iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(iVar4 - (int)(uVar1 >> 0x20))" (( "(") (binary_expression "iVar4 - (int)(uVar1 >> 0x20)" (identifier "iVar4") (- "-") (cast_expression "(int)(uVar1 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 >> 0x20)" (( "(") (binary_expression "uVar1 >> 0x20" (identifier "uVar1") (>> ">>") (number_literal "0x20")) () ")")))) () ")")) (- "-") (call_expression "(uint)(uVar5 < (uint)uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 < (uint)uVar1)" (( "(") (binary_expression "uVar5 < (uint)uVar1" (identifier "uVar5") (< "<") (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1"))) () ")"))))) (; ";")) (expression_statement "param_2 = uVar6 >> (bVar2 & 0x1f);" (assignment_expression "param_2 = uVar6 >> (bVar2 & 0x1f)" (identifier "param_2") (= "=") (binary_expression "uVar6 >> (bVar2 & 0x1f)" (identifier "uVar6") (>> ">>") (parenthesized_expression "(bVar2 & 0x1f)" (( "(") (binary_expression "bVar2 & 0x1f" (identifier "bVar2") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);" (assignment_expression "param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (identifier "param_1") (= "=") (binary_expression "uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar6 << (bVar3 & 0x1f)" (identifier "uVar6") (<< "<<") (parenthesized_expression "(bVar3 & 0x1f)" (( "(") (binary_expression "bVar3 & 0x1f" (identifier "bVar3") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "uVar5 - (uint)uVar1 >> (bVar2 & 0x1f)" (binary_expression "uVar5 - (uint)uVar1" (identifier "uVar5") (- "-") (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1"))) (>> ">>") (parenthesized_expression "(bVar2 & 0x1f)" (( "(") (binary_expression "bVar2 & 0x1f" (identifier "bVar2") (& "&") (number_literal "0x1f")) () ")"))))) (; ";")) (} "}")))) (} "}"))))) (if_statement "if (local_30 != 0) {\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar7 = param_1 != 0;\n    param_1 = -param_1;\n    param_2 = -(param_2 + bVar7);\n  }" ({ "{") (expression_statement "bVar7 = param_1 != 0;" (assignment_expression "bVar7 = param_1 != 0" (identifier "bVar7") (= "=") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "param_1 = -param_1;" (assignment_expression "param_1 = -param_1" (identifier "param_1") (= "=") (unary_expression "-param_1" (- "-") (identifier "param_1"))) (; ";")) (expression_statement "param_2 = -(param_2 + bVar7);" (assignment_expression "param_2 = -(param_2 + bVar7)" (identifier "param_2") (= "=") (unary_expression "-(param_2 + bVar7)" (- "-") (parenthesized_expression "(param_2 + bVar7)" (( "(") (binary_expression "param_2 + bVar7" (identifier "param_2") (+ "+") (identifier "bVar7")) () ")")))) (; ";")) (} "}"))) (return_statement "return CONCAT44(param_2,param_1);" (return "return") (call_expression "CONCAT44(param_2,param_1)" (identifier "CONCAT44") (argument_list "(param_2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))

/* WARNING: Removing unreachable block (ram,0x00442b5f) */

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

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


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

/* WARNING: Removing unreachable block (ram,0x00442b5f) */

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

{
  ulonglong uVar1;
  byte bVar2;
  byte bVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  bool bVar7;
  undefined4 local_30;
  undefined4 local_2c;
  
  local_30 = 0;
  if ((int)param_2 < 0) {
    bVar7 = param_1 != 0;
    param_1 = -param_1;
    local_30 = -1;
    param_2 = -(param_2 + bVar7);
  }
  if ((int)param_4 < 0) {
    bVar7 = param_3 != 0;
    param_3 = -param_3;
    param_4 = -(param_4 + bVar7);
  }
  if (param_4 == 0) {
    if (param_2 < param_3) {
      param_1 = (uint)(CONCAT44(param_2,param_1) % (ulonglong)param_3);
    }
    else {
      local_2c = param_3;
      if (param_3 == 0) {
        local_2c = 1 / 0;
      }
      param_1 = (uint)(((ulonglong)param_2 % (ulonglong)local_2c << 0x20 | (ulonglong)param_1) %
                      (ulonglong)local_2c);
    }
    param_2 = 0;
  }
  else if (param_4 <= param_2) {
    uVar5 = 0x1f;
    if (param_4 != 0) {
      for (; param_4 >> uVar5 == 0; uVar5 = uVar5 - 1) {
      }
    }
    if ((uVar5 ^ 0x1f) == 0) {
      if ((param_4 < param_2) || (param_3 <= param_1)) {
        bVar7 = param_1 < param_3;
        param_1 = param_1 - param_3;
        param_2 = (param_2 - param_4) - (uint)bVar7;
      }
    }
    else {
      bVar2 = (byte)(uVar5 ^ 0x1f);
      bVar3 = 0x20 - bVar2;
      uVar6 = param_4 << (bVar2 & 0x1f) | param_3 >> (bVar3 & 0x1f);
      param_3 = param_3 << (bVar2 & 0x1f);
      uVar5 = param_1 << (bVar2 & 0x1f);
      uVar1 = CONCAT44(param_2 >> (bVar3 & 0x1f),
                       param_1 >> (bVar3 & 0x1f) | param_2 << (bVar2 & 0x1f));
      iVar4 = (int)(uVar1 % (ulonglong)uVar6);
      uVar1 = (uVar1 / uVar6 & 0xffffffff) * (ulonglong)param_3;
      if (CONCAT44(iVar4,uVar5) < uVar1) {
        uVar1 = uVar1 - CONCAT44(uVar6,param_3);
      }
      uVar6 = (iVar4 - (int)(uVar1 >> 0x20)) - (uint)(uVar5 < (uint)uVar1);
      param_2 = uVar6 >> (bVar2 & 0x1f);
      param_1 = uVar6 << (bVar3 & 0x1f) | uVar5 - (uint)uVar1 >> (bVar2 & 0x1f);
    }
  }
  if (local_30 != 0) {
    bVar7 = param_1 != 0;
    param_1 = -param_1;
    param_2 = -(param_2 + bVar7);
  }
  return CONCAT44(param_2,param_1);
}

