
void __regparm3 walChecksumBytes(int nativeCksum,u8 *a,int nByte,u32 *aIn,u32 *aOut)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  u32 *aData;
  uint *puVar4;
  u32 uVar5;
  u32 uVar6;
  
  puVar3 = (uint *)(a + nByte);
  if (aIn == (u32 *)0x0) {
    uVar5 = 0;
    uVar6 = 0;
  }
  else {
    uVar6 = *aIn;
    uVar5 = aIn[1];
  }
  if (nativeCksum == 0) {
    do {
      uVar1 = *(uint *)a;
      puVar4 = (uint *)((int)a + 8);
      uVar2 = *(uint *)((int)a + 4);
      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +
                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;
      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +
              (uVar2 >> 8 & 0xff00) + uVar6;
      a = (u8 *)puVar4;
    } while (puVar4 < puVar3);
  }
  else {
    do {
      puVar4 = (uint *)((int)a + 8);
      uVar6 = uVar6 + *(uint *)a + uVar5;
      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;
      a = (u8 *)puVar4;
    } while (puVar4 < puVar3);
  }
  *aOut = uVar6;
  aOut[1] = uVar5;
  return;
}



void __regparm3 FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  uint *puVar4;
  int iVar5;
  int iVar6;
  
  puVar3 = (uint *)(param_3 + (int)param_2);
  if (param_4 == (int *)0x0) {
    iVar5 = 0;
    iVar6 = 0;
  }
  else {
    iVar6 = *param_4;
    iVar5 = param_4[1];
  }
  if (param_1 == 0) {
    do {
      uVar1 = *param_2;
      puVar4 = param_2 + 2;
      uVar2 = param_2[1];
      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +
                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;
      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +
              (uVar2 >> 8 & 0xff00) + iVar6;
      param_2 = puVar4;
    } while (puVar4 < puVar3);
  }
  else {
    do {
      puVar4 = param_2 + 2;
      iVar6 = iVar6 + *param_2 + iVar5;
      iVar5 = iVar5 + param_2[1] + iVar6;
      param_2 = puVar4;
    } while (puVar4 < puVar3);
  }
  *param_5 = iVar6;
  param_5[1] = iVar5;
  return;
}


PUSH EBP
PUSH EDI
ADD ECX,EDX
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x14]
TEST EBX,EBX
JZ 0x0001f260
MOV EBP,dword ptr [EBX]
MOV EBX,dword ptr [EBX + 0x4]
TEST EAX,EAX
JZ 0x0001f1f8
NOP
LEA ESI,[ESI]
MOV EAX,dword ptr [EDX]
ADD EDX,0x8
ADD EAX,EBX
ADD EBP,EAX
MOV EAX,dword ptr [EDX + -0x4]
ADD EAX,EBP
ADD EBX,EAX
CMP ECX,EDX
JA 0x0001f1d0
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX],EBP
MOV dword ptr [EAX + 0x4],EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,dword ptr [EDX]
ADD EDX,0x8
MOV EAX,ESI
MOV EDI,ESI
SHR EDI,0x18
SHL EAX,0x18
ADD EAX,EDI
LEA EDI,[EAX + EBX*0x1]
MOV EAX,ESI
SHR ESI,0x8
SHL EAX,0x8
AND ESI,0xff00
AND EAX,0xff0000
ADD EAX,EDI
MOV EDI,dword ptr [EDX + -0x4]
ADD ESI,EAX
ADD EBP,ESI
MOV EAX,EDI
MOV ESI,EDI
SHR ESI,0x18
SHL EAX,0x18
ADD EAX,ESI
LEA ESI,[EAX + EBX*0x1]
MOV EBX,EDI
SHR EDI,0x8
SHL EBX,0x8
AND EDI,0xff00
AND EBX,0xff0000
LEA EAX,[ESI + EBX*0x1]
LEA EBX,[EAX + EDI*0x1]
ADD EBX,EBP
CMP ECX,EDX
JA 0x0001f1f8
JMP 0x0001f1e4
XOR EBX,EBX
XOR EBP,EBP
JMP 0x0001f1c7
(translation_unit "void __regparm3 FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)" identifier (parameter_list "(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar3 = (uint *)(param_3 + (int)param_2);" (assignment_expression "puVar3 = (uint *)(param_3 + (int)param_2)" identifier = (cast_expression "(uint *)(param_3 + (int)param_2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + (int)param_2)" ( (binary_expression "param_3 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" if (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = 0;\n    iVar6 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" else (compound_statement "{\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" { (expression_statement "iVar6 = *param_4;" (assignment_expression "iVar6 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "iVar5 = param_4[1];" (assignment_expression "iVar5 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) }))) (if_statement "if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" { (do_statement "do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);" do (compound_statement "{\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    }" { (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;" (assignment_expression "iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5" identifier = (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18)" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00)" identifier + (parenthesized_expression "(uVar1 >> 8 & 0xff00)" ( (binary_expression "uVar1 >> 8 & 0xff00" (binary_expression "uVar1 >> 8" identifier >> number_literal) & number_literal) ))) + (binary_expression "(uVar1 & 0xff00) * 0x100" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) * number_literal)) + (binary_expression "uVar1 * 0x1000000" identifier * number_literal)) + (parenthesized_expression "(uVar1 >> 0x18)" ( (binary_expression "uVar1 >> 0x18" identifier >> number_literal) ))) + identifier)) ;) (expression_statement "iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;" (assignment_expression "iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6" identifier = (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00)" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18)" (binary_expression "uVar2 * 0x1000000" identifier * number_literal) + (parenthesized_expression "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) + identifier) + (binary_expression "(uVar2 & 0xff00) * 0x100" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) * number_literal)) + (parenthesized_expression "(uVar2 >> 8 & 0xff00)" ( (binary_expression "uVar2 >> 8 & 0xff00" (binary_expression "uVar2 >> 8" identifier >> number_literal) & number_literal) ))) + identifier)) ;) (expression_statement "param_2 = puVar4;" (assignment_expression "param_2 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(puVar4 < puVar3)" ( (binary_expression "puVar4 < puVar3" identifier < identifier) )) ;) }) (else_clause "else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" else (compound_statement "{\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" { (do_statement "do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);" do (compound_statement "{\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    }" { (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + *param_2 + iVar5;" (assignment_expression "iVar6 = iVar6 + *param_2 + iVar5" identifier = (binary_expression "iVar6 + *param_2 + iVar5" (binary_expression "iVar6 + *param_2" identifier + (pointer_expression "*param_2" * identifier)) + identifier)) ;) (expression_statement "iVar5 = iVar5 + param_2[1] + iVar6;" (assignment_expression "iVar5 = iVar5 + param_2[1] + iVar6" identifier = (binary_expression "iVar5 + param_2[1] + iVar6" (binary_expression "iVar5 + param_2[1]" identifier + (subscript_expression "param_2[1]" identifier [ number_literal ])) + identifier)) ;) (expression_statement "param_2 = puVar4;" (assignment_expression "param_2 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(puVar4 < puVar3)" ( (binary_expression "puVar4 < puVar3" identifier < identifier) )) ;) }))) (expression_statement "*param_5 = iVar6;" (assignment_expression "*param_5 = iVar6" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "param_5[1] = iVar5;" (assignment_expression "param_5[1] = iVar5" (subscript_expression "param_5[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 walChecksumBytes(int nativeCksum,u8 *a,int nByte,u32 *aIn,u32 *aOut)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  u32 *aData;\n  uint *puVar4;\n  u32 uVar5;\n  u32 uVar6;\n  \n  puVar3 = (uint *)(a + nByte);\n  if (aIn == (u32 *)0x0) {\n    uVar5 = 0;\n    uVar6 = 0;\n  }\n  else {\n    uVar6 = *aIn;\n    uVar5 = aIn[1];\n  }\n  if (nativeCksum == 0) {\n    do {\n      uVar1 = *(uint *)a;\n      puVar4 = (uint *)((int)a + 8);\n      uVar2 = *(uint *)((int)a + 4);\n      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;\n      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *aOut = uVar6;\n  aOut[1] = uVar5;\n  return;\n}\n\n" (function_definition "void __regparm3 walChecksumBytes(int nativeCksum,u8 *a,int nByte,u32 *aIn,u32 *aOut)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  u32 *aData;\n  uint *puVar4;\n  u32 uVar5;\n  u32 uVar6;\n  \n  puVar3 = (uint *)(a + nByte);\n  if (aIn == (u32 *)0x0) {\n    uVar5 = 0;\n    uVar6 = 0;\n  }\n  else {\n    uVar6 = *aIn;\n    uVar5 = aIn[1];\n  }\n  if (nativeCksum == 0) {\n    do {\n      uVar1 = *(uint *)a;\n      puVar4 = (uint *)((int)a + 8);\n      uVar2 = *(uint *)((int)a + 4);\n      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;\n      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *aOut = uVar6;\n  aOut[1] = uVar5;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "walChecksumBytes(int nativeCksum,u8 *a,int nByte,u32 *aIn,u32 *aOut)" identifier (parameter_list "(int nativeCksum,u8 *a,int nByte,u32 *aIn,u32 *aOut)" ( (parameter_declaration "int nativeCksum" primitive_type identifier) , (parameter_declaration "u8 *a" type_identifier (pointer_declarator "*a" * identifier)) , (parameter_declaration "int nByte" primitive_type identifier) , (parameter_declaration "u32 *aIn" type_identifier (pointer_declarator "*aIn" * identifier)) , (parameter_declaration "u32 *aOut" type_identifier (pointer_declarator "*aOut" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  u32 *aData;\n  uint *puVar4;\n  u32 uVar5;\n  u32 uVar6;\n  \n  puVar3 = (uint *)(a + nByte);\n  if (aIn == (u32 *)0x0) {\n    uVar5 = 0;\n    uVar6 = 0;\n  }\n  else {\n    uVar6 = *aIn;\n    uVar5 = aIn[1];\n  }\n  if (nativeCksum == 0) {\n    do {\n      uVar1 = *(uint *)a;\n      puVar4 = (uint *)((int)a + 8);\n      uVar2 = *(uint *)((int)a + 4);\n      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;\n      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *aOut = uVar6;\n  aOut[1] = uVar5;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "u32 *aData;" type_identifier (pointer_declarator "*aData" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "u32 uVar5;" type_identifier identifier ;) (declaration "u32 uVar6;" type_identifier identifier ;) (expression_statement "puVar3 = (uint *)(a + nByte);" (assignment_expression "puVar3 = (uint *)(a + nByte)" identifier = (cast_expression "(uint *)(a + nByte)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(a + nByte)" ( (binary_expression "a + nByte" identifier + identifier) )))) ;) (if_statement "if (aIn == (u32 *)0x0) {\n    uVar5 = 0;\n    uVar6 = 0;\n  }\n  else {\n    uVar6 = *aIn;\n    uVar5 = aIn[1];\n  }" if (parenthesized_expression "(aIn == (u32 *)0x0)" ( (binary_expression "aIn == (u32 *)0x0" identifier == (cast_expression "(u32 *)0x0" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = 0;\n    uVar6 = 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = *aIn;\n    uVar5 = aIn[1];\n  }" else (compound_statement "{\n    uVar6 = *aIn;\n    uVar5 = aIn[1];\n  }" { (expression_statement "uVar6 = *aIn;" (assignment_expression "uVar6 = *aIn" identifier = (pointer_expression "*aIn" * identifier)) ;) (expression_statement "uVar5 = aIn[1];" (assignment_expression "uVar5 = aIn[1]" identifier = (subscript_expression "aIn[1]" identifier [ number_literal ])) ;) }))) (if_statement "if (nativeCksum == 0) {\n    do {\n      uVar1 = *(uint *)a;\n      puVar4 = (uint *)((int)a + 8);\n      uVar2 = *(uint *)((int)a + 4);\n      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;\n      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }" if (parenthesized_expression "(nativeCksum == 0)" ( (binary_expression "nativeCksum == 0" identifier == number_literal) )) (compound_statement "{\n    do {\n      uVar1 = *(uint *)a;\n      puVar4 = (uint *)((int)a + 8);\n      uVar2 = *(uint *)((int)a + 4);\n      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;\n      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }" { (do_statement "do {\n      uVar1 = *(uint *)a;\n      puVar4 = (uint *)((int)a + 8);\n      uVar2 = *(uint *)((int)a + 4);\n      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;\n      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);" do (compound_statement "{\n      uVar1 = *(uint *)a;\n      puVar4 = (uint *)((int)a + 8);\n      uVar2 = *(uint *)((int)a + 4);\n      uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;\n      uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;\n      a = (u8 *)puVar4;\n    }" { (expression_statement "uVar1 = *(uint *)a;" (assignment_expression "uVar1 = *(uint *)a" identifier = (pointer_expression "*(uint *)a" * (cast_expression "(uint *)a" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar4 = (uint *)((int)a + 8);" (assignment_expression "puVar4 = (uint *)((int)a + 8)" identifier = (cast_expression "(uint *)((int)a + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 8)" ( (binary_expression "(int)a + 8" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "uVar2 = *(uint *)((int)a + 4);" (assignment_expression "uVar2 = *(uint *)((int)a + 4)" identifier = (pointer_expression "*(uint *)((int)a + 4)" * (cast_expression "(uint *)((int)a + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 4)" ( (binary_expression "(int)a + 4" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5;" (assignment_expression "uVar6 = uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5" identifier = (binary_expression "uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + uVar5" (binary_expression "uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18)" (binary_expression "uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000" (binary_expression "uVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100" (binary_expression "uVar6 + (uVar1 >> 8 & 0xff00)" identifier + (parenthesized_expression "(uVar1 >> 8 & 0xff00)" ( (binary_expression "uVar1 >> 8 & 0xff00" (binary_expression "uVar1 >> 8" identifier >> number_literal) & number_literal) ))) + (binary_expression "(uVar1 & 0xff00) * 0x100" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) * number_literal)) + (binary_expression "uVar1 * 0x1000000" identifier * number_literal)) + (parenthesized_expression "(uVar1 >> 0x18)" ( (binary_expression "uVar1 >> 0x18" identifier >> number_literal) ))) + identifier)) ;) (expression_statement "uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6;" (assignment_expression "uVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6" identifier = (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + uVar6" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00)" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5 + (uVar2 & 0xff00) * 0x100" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + uVar5" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18)" (binary_expression "uVar2 * 0x1000000" identifier * number_literal) + (parenthesized_expression "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) + identifier) + (binary_expression "(uVar2 & 0xff00) * 0x100" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) * number_literal)) + (parenthesized_expression "(uVar2 >> 8 & 0xff00)" ( (binary_expression "uVar2 >> 8 & 0xff00" (binary_expression "uVar2 >> 8" identifier >> number_literal) & number_literal) ))) + identifier)) ;) (expression_statement "a = (u8 *)puVar4;" (assignment_expression "a = (u8 *)puVar4" identifier = (cast_expression "(u8 *)puVar4" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) while (parenthesized_expression "(puVar4 < puVar3)" ( (binary_expression "puVar4 < puVar3" identifier < identifier) )) ;) }) (else_clause "else {\n    do {\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }" else (compound_statement "{\n    do {\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);\n  }" { (do_statement "do {\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    } while (puVar4 < puVar3);" do (compound_statement "{\n      puVar4 = (uint *)((int)a + 8);\n      uVar6 = uVar6 + *(uint *)a + uVar5;\n      uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;\n      a = (u8 *)puVar4;\n    }" { (expression_statement "puVar4 = (uint *)((int)a + 8);" (assignment_expression "puVar4 = (uint *)((int)a + 8)" identifier = (cast_expression "(uint *)((int)a + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 8)" ( (binary_expression "(int)a + 8" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "uVar6 = uVar6 + *(uint *)a + uVar5;" (assignment_expression "uVar6 = uVar6 + *(uint *)a + uVar5" identifier = (binary_expression "uVar6 + *(uint *)a + uVar5" (binary_expression "uVar6 + *(uint *)a" identifier + (pointer_expression "*(uint *)a" * (cast_expression "(uint *)a" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) + identifier)) ;) (expression_statement "uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6;" (assignment_expression "uVar5 = uVar5 + *(uint *)((int)a + 4) + uVar6" identifier = (binary_expression "uVar5 + *(uint *)((int)a + 4) + uVar6" (binary_expression "uVar5 + *(uint *)((int)a + 4)" identifier + (pointer_expression "*(uint *)((int)a + 4)" * (cast_expression "(uint *)((int)a + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)a + 4)" ( (binary_expression "(int)a + 4" (cast_expression "(int)a" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) + identifier)) ;) (expression_statement "a = (u8 *)puVar4;" (assignment_expression "a = (u8 *)puVar4" identifier = (cast_expression "(u8 *)puVar4" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) while (parenthesized_expression "(puVar4 < puVar3)" ( (binary_expression "puVar4 < puVar3" identifier < identifier) )) ;) }))) (expression_statement "*aOut = uVar6;" (assignment_expression "*aOut = uVar6" (pointer_expression "*aOut" * identifier) = identifier) ;) (expression_statement "aOut[1] = uVar5;" (assignment_expression "aOut[1] = uVar5" (subscript_expression "aOut[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)" identifier (parameter_list "(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar3 = (uint *)(param_3 + (int)param_2);" (assignment_expression "puVar3 = (uint *)(param_3 + (int)param_2)" identifier = (cast_expression "(uint *)(param_3 + (int)param_2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + (int)param_2)" ( (binary_expression "param_3 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" if (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = 0;\n    iVar6 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" else (compound_statement "{\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" { (expression_statement "iVar6 = *param_4;" (assignment_expression "iVar6 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "iVar5 = param_4[1];" (assignment_expression "iVar5 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) }))) (if_statement "if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" { (do_statement "do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);" do (compound_statement "{\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    }" { (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;" (assignment_expression "iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5" identifier = (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18)" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00)" identifier + (parenthesized_expression "(uVar1 >> 8 & 0xff00)" ( (binary_expression "uVar1 >> 8 & 0xff00" (binary_expression "uVar1 >> 8" identifier >> number_literal) & number_literal) ))) + (binary_expression "(uVar1 & 0xff00) * 0x100" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) * number_literal)) + (binary_expression "uVar1 * 0x1000000" identifier * number_literal)) + (parenthesized_expression "(uVar1 >> 0x18)" ( (binary_expression "uVar1 >> 0x18" identifier >> number_literal) ))) + identifier)) ;) (expression_statement "iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;" (assignment_expression "iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6" identifier = (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00)" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18)" (binary_expression "uVar2 * 0x1000000" identifier * number_literal) + (parenthesized_expression "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) ))) + identifier) + (binary_expression "(uVar2 & 0xff00) * 0x100" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) * number_literal)) + (parenthesized_expression "(uVar2 >> 8 & 0xff00)" ( (binary_expression "uVar2 >> 8 & 0xff00" (binary_expression "uVar2 >> 8" identifier >> number_literal) & number_literal) ))) + identifier)) ;) (expression_statement "param_2 = puVar4;" (assignment_expression "param_2 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(puVar4 < puVar3)" ( (binary_expression "puVar4 < puVar3" identifier < identifier) )) ;) }) (else_clause "else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" else (compound_statement "{\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" { (do_statement "do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);" do (compound_statement "{\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    }" { (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + *param_2 + iVar5;" (assignment_expression "iVar6 = iVar6 + *param_2 + iVar5" identifier = (binary_expression "iVar6 + *param_2 + iVar5" (binary_expression "iVar6 + *param_2" identifier + (pointer_expression "*param_2" * identifier)) + identifier)) ;) (expression_statement "iVar5 = iVar5 + param_2[1] + iVar6;" (assignment_expression "iVar5 = iVar5 + param_2[1] + iVar6" identifier = (binary_expression "iVar5 + param_2[1] + iVar6" (binary_expression "iVar5 + param_2[1]" identifier + (subscript_expression "param_2[1]" identifier [ number_literal ])) + identifier)) ;) (expression_statement "param_2 = puVar4;" (assignment_expression "param_2 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(puVar4 < puVar3)" ( (binary_expression "puVar4 < puVar3" identifier < identifier) )) ;) }))) (expression_statement "*param_5 = iVar6;" (assignment_expression "*param_5 = iVar6" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "param_5[1] = iVar5;" (assignment_expression "param_5[1] = iVar5" (subscript_expression "param_5[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) ))) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) + (binary_expression IDENT * LIT)) + (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT * LIT) + (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) + IDENT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) + (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) ))) + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (pointer_expression * IDENT)) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001f1b0(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)" (identifier "FUN_0001f1b0") (parameter_list "(int param_1,uint *param_2,int param_3,int *param_4,int *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar3 = (uint *)(param_3 + (int)param_2);\n  if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }\n  if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  *param_5 = iVar6;\n  param_5[1] = iVar5;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar3 = (uint *)(param_3 + (int)param_2);" (assignment_expression "puVar3 = (uint *)(param_3 + (int)param_2)" (identifier "puVar3") (= "=") (cast_expression "(uint *)(param_3 + (int)param_2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + (int)param_2)" (( "(") (binary_expression "param_3 + (int)param_2" (identifier "param_3") (+ "+") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")))) (; ";")) (if_statement "if (param_4 == (int *)0x0) {\n    iVar5 = 0;\n    iVar6 = 0;\n  }\n  else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" (if "if") (parenthesized_expression "(param_4 == (int *)0x0)" (( "(") (binary_expression "param_4 == (int *)0x0" (identifier "param_4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = 0;\n    iVar6 = 0;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" (else "else") (compound_statement "{\n    iVar6 = *param_4;\n    iVar5 = param_4[1];\n  }" ({ "{") (expression_statement "iVar6 = *param_4;" (assignment_expression "iVar6 = *param_4" (identifier "iVar6") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "iVar5 = param_4[1];" (assignment_expression "iVar5 = param_4[1]" (identifier "iVar5") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (if_statement "if (param_1 == 0) {\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }\n  else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" ({ "{") (do_statement "do {\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);" (do "do") (compound_statement "{\n      uVar1 = *param_2;\n      puVar4 = param_2 + 2;\n      uVar2 = param_2[1];\n      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;\n      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;\n      param_2 = puVar4;\n    }" ({ "{") (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" (identifier "puVar4") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar2 = param_2[1];" (assignment_expression "uVar2 = param_2[1]" (identifier "uVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;" (assignment_expression "iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5" (identifier "iVar6") (= "=") (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18)" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00) +\n                      (uVar1 & 0xff00) * 0x100" (binary_expression "iVar6 + (uVar1 >> 8 & 0xff00)" (identifier "iVar6") (+ "+") (parenthesized_expression "(uVar1 >> 8 & 0xff00)" (( "(") (binary_expression "uVar1 >> 8 & 0xff00" (binary_expression "uVar1 >> 8" (identifier "uVar1") (>> ">>") (number_literal "8")) (& "&") (number_literal "0xff00")) () ")"))) (+ "+") (binary_expression "(uVar1 & 0xff00) * 0x100" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (* "*") (number_literal "0x100"))) (+ "+") (binary_expression "uVar1 * 0x1000000" (identifier "uVar1") (* "*") (number_literal "0x1000000"))) (+ "+") (parenthesized_expression "(uVar1 >> 0x18)" (( "(") (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) () ")"))) (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6;" (assignment_expression "iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6" (identifier "iVar5") (= "=") (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00) + iVar6" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +\n              (uVar2 >> 8 & 0xff00)" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5" (binary_expression "uVar2 * 0x1000000 + (uVar2 >> 0x18)" (binary_expression "uVar2 * 0x1000000" (identifier "uVar2") (* "*") (number_literal "0x1000000")) (+ "+") (parenthesized_expression "(uVar2 >> 0x18)" (( "(") (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) () ")"))) (+ "+") (identifier "iVar5")) (+ "+") (binary_expression "(uVar2 & 0xff00) * 0x100" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (* "*") (number_literal "0x100"))) (+ "+") (parenthesized_expression "(uVar2 >> 8 & 0xff00)" (( "(") (binary_expression "uVar2 >> 8 & 0xff00" (binary_expression "uVar2 >> 8" (identifier "uVar2") (>> ">>") (number_literal "8")) (& "&") (number_literal "0xff00")) () ")"))) (+ "+") (identifier "iVar6"))) (; ";")) (expression_statement "param_2 = puVar4;" (assignment_expression "param_2 = puVar4" (identifier "param_2") (= "=") (identifier "puVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 < puVar3)" (( "(") (binary_expression "puVar4 < puVar3" (identifier "puVar4") (< "<") (identifier "puVar3")) () ")")) (; ";")) (} "}")) (else_clause "else {\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" (else "else") (compound_statement "{\n    do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);\n  }" ({ "{") (do_statement "do {\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    } while (puVar4 < puVar3);" (do "do") (compound_statement "{\n      puVar4 = param_2 + 2;\n      iVar6 = iVar6 + *param_2 + iVar5;\n      iVar5 = iVar5 + param_2[1] + iVar6;\n      param_2 = puVar4;\n    }" ({ "{") (expression_statement "puVar4 = param_2 + 2;" (assignment_expression "puVar4 = param_2 + 2" (identifier "puVar4") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar6 = iVar6 + *param_2 + iVar5;" (assignment_expression "iVar6 = iVar6 + *param_2 + iVar5" (identifier "iVar6") (= "=") (binary_expression "iVar6 + *param_2 + iVar5" (binary_expression "iVar6 + *param_2" (identifier "iVar6") (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "iVar5 = iVar5 + param_2[1] + iVar6;" (assignment_expression "iVar5 = iVar5 + param_2[1] + iVar6" (identifier "iVar5") (= "=") (binary_expression "iVar5 + param_2[1] + iVar6" (binary_expression "iVar5 + param_2[1]" (identifier "iVar5") (+ "+") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (+ "+") (identifier "iVar6"))) (; ";")) (expression_statement "param_2 = puVar4;" (assignment_expression "param_2 = puVar4" (identifier "param_2") (= "=") (identifier "puVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 < puVar3)" (( "(") (binary_expression "puVar4 < puVar3" (identifier "puVar4") (< "<") (identifier "puVar3")) () ")")) (; ";")) (} "}")))) (expression_statement "*param_5 = iVar6;" (assignment_expression "*param_5 = iVar6" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "param_5[1] = iVar5;" (assignment_expression "param_5[1] = iVar5" (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(int var_4,type_1 *var_1,int var_2,type_2 *var_3,type_2 *aOut)

{
  type_3 var_6;
  type_3 var_8;
  type_3 *var_10;
  type_2 *aData;
  type_3 *var_9;
  type_2 var_7;
  type_2 var_5;
  
  var_10 = (type_3 *)(var_1 + var_2);
  if (var_3 == (type_2 *)0x0) {
    var_7 = 0;
    var_5 = 0;
  }
  else {
    var_5 = *var_3;
    var_7 = var_3[1];
  }
  if (var_4 == 0) {
    do {
      var_6 = *(type_3 *)var_1;
      var_9 = (type_3 *)((int)var_1 + 8);
      var_8 = *(type_3 *)((int)var_1 + 4);
      var_5 = var_5 + (var_6 >> 8 & 0xff00) +
                      (var_6 & 0xff00) * 0x100 + var_6 * 0x1000000 + (var_6 >> 0x18) + var_7;
      var_7 = var_8 * 0x1000000 + (var_8 >> 0x18) + var_7 + (var_8 & 0xff00) * 0x100 +
              (var_8 >> 8 & 0xff00) + var_5;
      var_1 = (type_1 *)var_9;
    } while (var_9 < var_10);
  }
  else {
    do {
      var_9 = (type_3 *)((int)var_1 + 8);
      var_5 = var_5 + *(type_3 *)var_1 + var_7;
      var_7 = var_7 + *(type_3 *)((int)var_1 + 4) + var_5;
      var_1 = (type_1 *)var_9;
    } while (var_9 < var_10);
  }
  *aOut = var_5;
  aOut[1] = var_7;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

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

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  uint *puVar4;
  int iVar5;
  int iVar6;
  
  puVar3 = (uint *)(param_3 + (int)param_2);
  if (param_4 == (int *)0x0) {
    iVar5 = 0;
    iVar6 = 0;
  }
  else {
    iVar6 = *param_4;
    iVar5 = param_4[1];
  }
  if (param_1 == 0) {
    do {
      uVar1 = *param_2;
      puVar4 = param_2 + 2;
      uVar2 = param_2[1];
      iVar6 = iVar6 + (uVar1 >> 8 & 0xff00) +
                      (uVar1 & 0xff00) * 0x100 + uVar1 * 0x1000000 + (uVar1 >> 0x18) + iVar5;
      iVar5 = uVar2 * 0x1000000 + (uVar2 >> 0x18) + iVar5 + (uVar2 & 0xff00) * 0x100 +
              (uVar2 >> 8 & 0xff00) + iVar6;
      param_2 = puVar4;
    } while (puVar4 < puVar3);
  }
  else {
    do {
      puVar4 = param_2 + 2;
      iVar6 = iVar6 + *param_2 + iVar5;
      iVar5 = iVar5 + param_2[1] + iVar6;
      param_2 = puVar4;
    } while (puVar4 < puVar3);
  }
  *param_5 = iVar6;
  param_5[1] = iVar5;
  return;
}

