
void __regparm3 walEncodeFrame(Wal *pWal,u32 iPage,u32 nTruncate,u8 *aData,u8 *aFrame)

{
  u32 *aIn;
  u32 uVar1;
  uint uVar2;
  
  *(u32 *)aFrame = iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8 | iPage << 0x18;
  *(u32 *)(aFrame + 4) =
       nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8 |
       nTruncate << 0x18;
  if (pWal->iReCksum != 0) {
    aFrame[8] = '\0';
    aFrame[9] = '\0';
    aFrame[10] = '\0';
    aFrame[0xb] = '\0';
    aFrame[0xc] = '\0';
    aFrame[0xd] = '\0';
    aFrame[0xe] = '\0';
    aFrame[0xf] = '\0';
    aFrame[0x10] = '\0';
    aFrame[0x11] = '\0';
    aFrame[0x12] = '\0';
    aFrame[0x13] = '\0';
    aFrame[0x14] = '\0';
    aFrame[0x15] = '\0';
    aFrame[0x16] = '\0';
    aFrame[0x17] = '\0';
    return;
  }
  aIn = (pWal->hdr).aFrameCksum;
  uVar1 = (pWal->hdr).aSalt[1];
  *(u32 *)(aFrame + 8) = (pWal->hdr).aSalt[0];
  *(u32 *)(aFrame + 0xc) = uVar1;
  uVar2 = (uint)((pWal->hdr).bigEndCksum == '\0');
  walChecksumBytes(uVar2,aFrame,8,aIn,aIn);
  walChecksumBytes(uVar2,aData,pWal->szPage,aIn,aIn);
  uVar2 = (pWal->hdr).aFrameCksum[0];
  *(uint *)(aFrame + 0x10) =
       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  uVar2 = (pWal->hdr).aFrameCksum[1];
  *(uint *)(aFrame + 0x14) =
       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  return;
}



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

{
  int iVar1;
  uint uVar2;
  
  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18
  ;
  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |
               param_3 << 0x18;
  if (*(int *)(param_1 + 0x68) != 0) {
    param_5[2] = 0;
    param_5[3] = 0;
    param_5[4] = 0;
    param_5[5] = 0;
    return;
  }
  iVar1 = param_1 + 0x4c;
  uVar2 = *(uint *)(param_1 + 0x58);
  param_5[2] = *(uint *)(param_1 + 0x54);
  param_5[3] = uVar2;
  FUN_0001f1b0(iVar1,iVar1);
  FUN_0001f1b0(iVar1,iVar1);
  uVar2 = *(uint *)(param_1 + 0x4c);
  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  uVar2 = *(uint *)(param_1 + 0x50);
  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  return;
}


PUSH EBP
PUSH EDI
BSWAP EDX
PUSH ESI
PUSH EBX
BSWAP ECX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x1c]
MOV dword ptr [EBX],EDX
MOV dword ptr [EBX + 0x4],ECX
MOV EDX,dword ptr [EAX + 0x68]
TEST EDX,EDX
JZ 0x00023350
MOV dword ptr [EBX + 0x8],0x0
MOV dword ptr [EBX + 0xc],0x0
MOV dword ptr [EBX + 0x10],0x0
MOV dword ptr [EBX + 0x14],0x0
ADD ESP,0x4
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,EAX
LEA EDI,[EAX + 0x4c]
MOV EAX,dword ptr [EAX + 0x54]
MOV EDX,dword ptr [ESI + 0x58]
MOV ECX,0x8
MOV dword ptr [EBX + 0x8],EAX
XOR EAX,EAX
MOV dword ptr [EBX + 0xc],EDX
CMP byte ptr [ESI + 0x41],0x0
MOV EDX,EBX
PUSH EDI
PUSH EDI
SETZ AL
MOV EBP,EAX
CALL 0x0001f1b0
MOV ECX,dword ptr [ESI + 0x24]
PUSH EDI
MOV EAX,EBP
PUSH EDI
MOV EDX,dword ptr [ESP + 0x28]
CALL 0x0001f1b0
MOV EAX,dword ptr [ESI + 0x4c]
ADD ESP,0x10
BSWAP EAX
MOV dword ptr [EBX + 0x10],EAX
MOV EAX,dword ptr [ESI + 0x50]
BSWAP EAX
MOV dword ptr [EBX + 0x14],EAX
ADD ESP,0x4
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void __regparm3 FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)" identifier (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "*param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;" (assignment_expression "*param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18" (pointer_expression "*param_5" * identifier) = (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18" (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8" (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8" (binary_expression "param_2 >> 0x18" identifier >> number_literal) | (binary_expression "(param_2 & 0xff0000) >> 8" (parenthesized_expression "(param_2 & 0xff0000)" ( (binary_expression "param_2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_2 & 0xff00) << 8" (parenthesized_expression "(param_2 & 0xff00)" ( (binary_expression "param_2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_2 << 0x18" identifier << number_literal))) ;) (expression_statement "param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;" (assignment_expression "param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18" (subscript_expression "param_5[1]" identifier [ number_literal ]) = (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18" (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8" (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8" (binary_expression "param_3 >> 0x18" identifier >> number_literal) | (binary_expression "(param_3 & 0xff0000) >> 8" (parenthesized_expression "(param_3 & 0xff0000)" ( (binary_expression "param_3 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_3 & 0xff00) << 8" (parenthesized_expression "(param_3 & 0xff00)" ( (binary_expression "param_3 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_3 << 0x18" identifier << number_literal))) ;) (if_statement "if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x68) != 0)" ( (binary_expression "*(int *)(param_1 + 0x68) != 0" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }" { (expression_statement "param_5[2] = 0;" (assignment_expression "param_5[2] = 0" (subscript_expression "param_5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_5[3] = 0;" (assignment_expression "param_5[3] = 0" (subscript_expression "param_5[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_5[4] = 0;" (assignment_expression "param_5[4] = 0" (subscript_expression "param_5[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_5[5] = 0;" (assignment_expression "param_5[5] = 0" (subscript_expression "param_5[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = param_1 + 0x4c;" (assignment_expression "iVar1 = param_1 + 0x4c" identifier = (binary_expression "param_1 + 0x4c" identifier + number_literal)) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x58);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x58)" identifier = (pointer_expression "*(uint *)(param_1 + 0x58)" * (cast_expression "(uint *)(param_1 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "param_5[2] = *(uint *)(param_1 + 0x54);" (assignment_expression "param_5[2] = *(uint *)(param_1 + 0x54)" (subscript_expression "param_5[2]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "param_5[3] = uVar2;" (assignment_expression "param_5[3] = uVar2" (subscript_expression "param_5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0001f1b0(iVar1,iVar1);" (call_expression "FUN_0001f1b0(iVar1,iVar1)" identifier (argument_list "(iVar1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001f1b0(iVar1,iVar1);" (call_expression "FUN_0001f1b0(iVar1,iVar1)" identifier (argument_list "(iVar1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (subscript_expression "param_5[4]" identifier [ number_literal ]) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x50)" identifier = (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (subscript_expression "param_5[5]" identifier [ number_literal ]) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 walEncodeFrame(Wal *pWal,u32 iPage,u32 nTruncate,u8 *aData,u8 *aFrame)\n\n{\n  u32 *aIn;\n  u32 uVar1;\n  uint uVar2;\n  \n  *(u32 *)aFrame = iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8 | iPage << 0x18;\n  *(u32 *)(aFrame + 4) =\n       nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8 |\n       nTruncate << 0x18;\n  if (pWal->iReCksum != 0) {\n    aFrame[8] = '\0';\n    aFrame[9] = '\0';\n    aFrame[10] = '\0';\n    aFrame[0xb] = '\0';\n    aFrame[0xc] = '\0';\n    aFrame[0xd] = '\0';\n    aFrame[0xe] = '\0';\n    aFrame[0xf] = '\0';\n    aFrame[0x10] = '\0';\n    aFrame[0x11] = '\0';\n    aFrame[0x12] = '\0';\n    aFrame[0x13] = '\0';\n    aFrame[0x14] = '\0';\n    aFrame[0x15] = '\0';\n    aFrame[0x16] = '\0';\n    aFrame[0x17] = '\0';\n    return;\n  }\n  aIn = (pWal->hdr).aFrameCksum;\n  uVar1 = (pWal->hdr).aSalt[1];\n  *(u32 *)(aFrame + 8) = (pWal->hdr).aSalt[0];\n  *(u32 *)(aFrame + 0xc) = uVar1;\n  uVar2 = (uint)((pWal->hdr).bigEndCksum == '\0');\n  walChecksumBytes(uVar2,aFrame,8,aIn,aIn);\n  walChecksumBytes(uVar2,aData,pWal->szPage,aIn,aIn);\n  uVar2 = (pWal->hdr).aFrameCksum[0];\n  *(uint *)(aFrame + 0x10) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = (pWal->hdr).aFrameCksum[1];\n  *(uint *)(aFrame + 0x14) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}\n\n" (function_definition "void __regparm3 walEncodeFrame(Wal *pWal,u32 iPage,u32 nTruncate,u8 *aData,u8 *aFrame)\n\n{\n  u32 *aIn;\n  u32 uVar1;\n  uint uVar2;\n  \n  *(u32 *)aFrame = iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8 | iPage << 0x18;\n  *(u32 *)(aFrame + 4) =\n       nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8 |\n       nTruncate << 0x18;\n  if (pWal->iReCksum != 0) {\n    aFrame[8] = '\0';\n    aFrame[9] = '\0';\n    aFrame[10] = '\0';\n    aFrame[0xb] = '\0';\n    aFrame[0xc] = '\0';\n    aFrame[0xd] = '\0';\n    aFrame[0xe] = '\0';\n    aFrame[0xf] = '\0';\n    aFrame[0x10] = '\0';\n    aFrame[0x11] = '\0';\n    aFrame[0x12] = '\0';\n    aFrame[0x13] = '\0';\n    aFrame[0x14] = '\0';\n    aFrame[0x15] = '\0';\n    aFrame[0x16] = '\0';\n    aFrame[0x17] = '\0';\n    return;\n  }\n  aIn = (pWal->hdr).aFrameCksum;\n  uVar1 = (pWal->hdr).aSalt[1];\n  *(u32 *)(aFrame + 8) = (pWal->hdr).aSalt[0];\n  *(u32 *)(aFrame + 0xc) = uVar1;\n  uVar2 = (uint)((pWal->hdr).bigEndCksum == '\0');\n  walChecksumBytes(uVar2,aFrame,8,aIn,aIn);\n  walChecksumBytes(uVar2,aData,pWal->szPage,aIn,aIn);\n  uVar2 = (pWal->hdr).aFrameCksum[0];\n  *(uint *)(aFrame + 0x10) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = (pWal->hdr).aFrameCksum[1];\n  *(uint *)(aFrame + 0x14) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "walEncodeFrame(Wal *pWal,u32 iPage,u32 nTruncate,u8 *aData,u8 *aFrame)" identifier (parameter_list "(Wal *pWal,u32 iPage,u32 nTruncate,u8 *aData,u8 *aFrame)" ( (parameter_declaration "Wal *pWal" type_identifier (pointer_declarator "*pWal" * identifier)) , (parameter_declaration "u32 iPage" type_identifier identifier) , (parameter_declaration "u32 nTruncate" type_identifier identifier) , (parameter_declaration "u8 *aData" type_identifier (pointer_declarator "*aData" * identifier)) , (parameter_declaration "u8 *aFrame" type_identifier (pointer_declarator "*aFrame" * identifier)) ))) (compound_statement "{\n  u32 *aIn;\n  u32 uVar1;\n  uint uVar2;\n  \n  *(u32 *)aFrame = iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8 | iPage << 0x18;\n  *(u32 *)(aFrame + 4) =\n       nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8 |\n       nTruncate << 0x18;\n  if (pWal->iReCksum != 0) {\n    aFrame[8] = '\0';\n    aFrame[9] = '\0';\n    aFrame[10] = '\0';\n    aFrame[0xb] = '\0';\n    aFrame[0xc] = '\0';\n    aFrame[0xd] = '\0';\n    aFrame[0xe] = '\0';\n    aFrame[0xf] = '\0';\n    aFrame[0x10] = '\0';\n    aFrame[0x11] = '\0';\n    aFrame[0x12] = '\0';\n    aFrame[0x13] = '\0';\n    aFrame[0x14] = '\0';\n    aFrame[0x15] = '\0';\n    aFrame[0x16] = '\0';\n    aFrame[0x17] = '\0';\n    return;\n  }\n  aIn = (pWal->hdr).aFrameCksum;\n  uVar1 = (pWal->hdr).aSalt[1];\n  *(u32 *)(aFrame + 8) = (pWal->hdr).aSalt[0];\n  *(u32 *)(aFrame + 0xc) = uVar1;\n  uVar2 = (uint)((pWal->hdr).bigEndCksum == '\0');\n  walChecksumBytes(uVar2,aFrame,8,aIn,aIn);\n  walChecksumBytes(uVar2,aData,pWal->szPage,aIn,aIn);\n  uVar2 = (pWal->hdr).aFrameCksum[0];\n  *(uint *)(aFrame + 0x10) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = (pWal->hdr).aFrameCksum[1];\n  *(uint *)(aFrame + 0x14) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" { (declaration "u32 *aIn;" type_identifier (pointer_declarator "*aIn" * identifier) ;) (declaration "u32 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "*(u32 *)aFrame = iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8 | iPage << 0x18;" (assignment_expression "*(u32 *)aFrame = iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8 | iPage << 0x18" (pointer_expression "*(u32 *)aFrame" * (cast_expression "(u32 *)aFrame" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8 | iPage << 0x18" (binary_expression "iPage >> 0x18 | (iPage & 0xff0000) >> 8 | (iPage & 0xff00) << 8" (binary_expression "iPage >> 0x18 | (iPage & 0xff0000) >> 8" (binary_expression "iPage >> 0x18" identifier >> number_literal) | (binary_expression "(iPage & 0xff0000) >> 8" (parenthesized_expression "(iPage & 0xff0000)" ( (binary_expression "iPage & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(iPage & 0xff00) << 8" (parenthesized_expression "(iPage & 0xff00)" ( (binary_expression "iPage & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "iPage << 0x18" identifier << number_literal))) ;) (expression_statement "*(u32 *)(aFrame + 4) =\n       nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8 |\n       nTruncate << 0x18;" (assignment_expression "*(u32 *)(aFrame + 4) =\n       nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8 |\n       nTruncate << 0x18" (pointer_expression "*(u32 *)(aFrame + 4)" * (cast_expression "(u32 *)(aFrame + 4)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(aFrame + 4)" ( (binary_expression "aFrame + 4" identifier + number_literal) )))) = (binary_expression "nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8 |\n       nTruncate << 0x18" (binary_expression "nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8 | (nTruncate & 0xff00) << 8" (binary_expression "nTruncate >> 0x18 | (nTruncate & 0xff0000) >> 8" (binary_expression "nTruncate >> 0x18" identifier >> number_literal) | (binary_expression "(nTruncate & 0xff0000) >> 8" (parenthesized_expression "(nTruncate & 0xff0000)" ( (binary_expression "nTruncate & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(nTruncate & 0xff00) << 8" (parenthesized_expression "(nTruncate & 0xff00)" ( (binary_expression "nTruncate & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "nTruncate << 0x18" identifier << number_literal))) ;) (if_statement "if (pWal->iReCksum != 0) {\n    aFrame[8] = '\0';\n    aFrame[9] = '\0';\n    aFrame[10] = '\0';\n    aFrame[0xb] = '\0';\n    aFrame[0xc] = '\0';\n    aFrame[0xd] = '\0';\n    aFrame[0xe] = '\0';\n    aFrame[0xf] = '\0';\n    aFrame[0x10] = '\0';\n    aFrame[0x11] = '\0';\n    aFrame[0x12] = '\0';\n    aFrame[0x13] = '\0';\n    aFrame[0x14] = '\0';\n    aFrame[0x15] = '\0';\n    aFrame[0x16] = '\0';\n    aFrame[0x17] = '\0';\n    return;\n  }" if (parenthesized_expression "(pWal->iReCksum != 0)" ( (binary_expression "pWal->iReCksum != 0" (field_expression "pWal->iReCksum" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    aFrame[8] = '\0';\n    aFrame[9] = '\0';\n    aFrame[10] = '\0';\n    aFrame[0xb] = '\0';\n    aFrame[0xc] = '\0';\n    aFrame[0xd] = '\0';\n    aFrame[0xe] = '\0';\n    aFrame[0xf] = '\0';\n    aFrame[0x10] = '\0';\n    aFrame[0x11] = '\0';\n    aFrame[0x12] = '\0';\n    aFrame[0x13] = '\0';\n    aFrame[0x14] = '\0';\n    aFrame[0x15] = '\0';\n    aFrame[0x16] = '\0';\n    aFrame[0x17] = '\0';\n    return;\n  }" { (expression_statement "aFrame[8] = '\0';" (assignment_expression "aFrame[8] = '\0'" (subscript_expression "aFrame[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[9] = '\0';" (assignment_expression "aFrame[9] = '\0'" (subscript_expression "aFrame[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[10] = '\0';" (assignment_expression "aFrame[10] = '\0'" (subscript_expression "aFrame[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0xb] = '\0';" (assignment_expression "aFrame[0xb] = '\0'" (subscript_expression "aFrame[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0xc] = '\0';" (assignment_expression "aFrame[0xc] = '\0'" (subscript_expression "aFrame[0xc]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0xd] = '\0';" (assignment_expression "aFrame[0xd] = '\0'" (subscript_expression "aFrame[0xd]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0xe] = '\0';" (assignment_expression "aFrame[0xe] = '\0'" (subscript_expression "aFrame[0xe]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0xf] = '\0';" (assignment_expression "aFrame[0xf] = '\0'" (subscript_expression "aFrame[0xf]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x10] = '\0';" (assignment_expression "aFrame[0x10] = '\0'" (subscript_expression "aFrame[0x10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x11] = '\0';" (assignment_expression "aFrame[0x11] = '\0'" (subscript_expression "aFrame[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x12] = '\0';" (assignment_expression "aFrame[0x12] = '\0'" (subscript_expression "aFrame[0x12]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x13] = '\0';" (assignment_expression "aFrame[0x13] = '\0'" (subscript_expression "aFrame[0x13]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x14] = '\0';" (assignment_expression "aFrame[0x14] = '\0'" (subscript_expression "aFrame[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x15] = '\0';" (assignment_expression "aFrame[0x15] = '\0'" (subscript_expression "aFrame[0x15]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x16] = '\0';" (assignment_expression "aFrame[0x16] = '\0'" (subscript_expression "aFrame[0x16]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "aFrame[0x17] = '\0';" (assignment_expression "aFrame[0x17] = '\0'" (subscript_expression "aFrame[0x17]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (expression_statement "aIn = (pWal->hdr).aFrameCksum;" (assignment_expression "aIn = (pWal->hdr).aFrameCksum" identifier = (field_expression "(pWal->hdr).aFrameCksum" (parenthesized_expression "(pWal->hdr)" ( (field_expression "pWal->hdr" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "uVar1 = (pWal->hdr).aSalt[1];" (assignment_expression "uVar1 = (pWal->hdr).aSalt[1]" identifier = (subscript_expression "(pWal->hdr).aSalt[1]" (field_expression "(pWal->hdr).aSalt" (parenthesized_expression "(pWal->hdr)" ( (field_expression "pWal->hdr" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "*(u32 *)(aFrame + 8) = (pWal->hdr).aSalt[0];" (assignment_expression "*(u32 *)(aFrame + 8) = (pWal->hdr).aSalt[0]" (pointer_expression "*(u32 *)(aFrame + 8)" * (cast_expression "(u32 *)(aFrame + 8)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(aFrame + 8)" ( (binary_expression "aFrame + 8" identifier + number_literal) )))) = (subscript_expression "(pWal->hdr).aSalt[0]" (field_expression "(pWal->hdr).aSalt" (parenthesized_expression "(pWal->hdr)" ( (field_expression "pWal->hdr" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "*(u32 *)(aFrame + 0xc) = uVar1;" (assignment_expression "*(u32 *)(aFrame + 0xc) = uVar1" (pointer_expression "*(u32 *)(aFrame + 0xc)" * (cast_expression "(u32 *)(aFrame + 0xc)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(aFrame + 0xc)" ( (binary_expression "aFrame + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (uint)((pWal->hdr).bigEndCksum == '\0');" (assignment_expression "uVar2 = (uint)((pWal->hdr).bigEndCksum == '\0')" identifier = (call_expression "(uint)((pWal->hdr).bigEndCksum == '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((pWal->hdr).bigEndCksum == '\0')" ( (binary_expression "(pWal->hdr).bigEndCksum == '\0'" (field_expression "(pWal->hdr).bigEndCksum" (parenthesized_expression "(pWal->hdr)" ( (field_expression "pWal->hdr" identifier -> field_identifier) )) . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )))) ;) (expression_statement "walChecksumBytes(uVar2,aFrame,8,aIn,aIn);" (call_expression "walChecksumBytes(uVar2,aFrame,8,aIn,aIn)" identifier (argument_list "(uVar2,aFrame,8,aIn,aIn)" ( identifier , identifier , number_literal , identifier , identifier ))) ;) (expression_statement "walChecksumBytes(uVar2,aData,pWal->szPage,aIn,aIn);" (call_expression "walChecksumBytes(uVar2,aData,pWal->szPage,aIn,aIn)" identifier (argument_list "(uVar2,aData,pWal->szPage,aIn,aIn)" ( identifier , identifier , (field_expression "pWal->szPage" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "uVar2 = (pWal->hdr).aFrameCksum[0];" (assignment_expression "uVar2 = (pWal->hdr).aFrameCksum[0]" identifier = (subscript_expression "(pWal->hdr).aFrameCksum[0]" (field_expression "(pWal->hdr).aFrameCksum" (parenthesized_expression "(pWal->hdr)" ( (field_expression "pWal->hdr" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "*(uint *)(aFrame + 0x10) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "*(uint *)(aFrame + 0x10) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (pointer_expression "*(uint *)(aFrame + 0x10)" * (cast_expression "(uint *)(aFrame + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(aFrame + 0x10)" ( (binary_expression "aFrame + 0x10" identifier + number_literal) )))) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar2 = (pWal->hdr).aFrameCksum[1];" (assignment_expression "uVar2 = (pWal->hdr).aFrameCksum[1]" identifier = (subscript_expression "(pWal->hdr).aFrameCksum[1]" (field_expression "(pWal->hdr).aFrameCksum" (parenthesized_expression "(pWal->hdr)" ( (field_expression "pWal->hdr" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "*(uint *)(aFrame + 0x14) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "*(uint *)(aFrame + 0x14) =\n       uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (pointer_expression "*(uint *)(aFrame + 0x14)" * (cast_expression "(uint *)(aFrame + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(aFrame + 0x14)" ( (binary_expression "aFrame + 0x14" identifier + number_literal) )))) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)" identifier (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "*param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;" (assignment_expression "*param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18" (pointer_expression "*param_5" * identifier) = (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18" (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8" (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8" (binary_expression "param_2 >> 0x18" identifier >> number_literal) | (binary_expression "(param_2 & 0xff0000) >> 8" (parenthesized_expression "(param_2 & 0xff0000)" ( (binary_expression "param_2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_2 & 0xff00) << 8" (parenthesized_expression "(param_2 & 0xff00)" ( (binary_expression "param_2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_2 << 0x18" identifier << number_literal))) ;) (expression_statement "param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;" (assignment_expression "param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18" (subscript_expression "param_5[1]" identifier [ number_literal ]) = (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18" (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8" (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8" (binary_expression "param_3 >> 0x18" identifier >> number_literal) | (binary_expression "(param_3 & 0xff0000) >> 8" (parenthesized_expression "(param_3 & 0xff0000)" ( (binary_expression "param_3 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_3 & 0xff00) << 8" (parenthesized_expression "(param_3 & 0xff00)" ( (binary_expression "param_3 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_3 << 0x18" identifier << number_literal))) ;) (if_statement "if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x68) != 0)" ( (binary_expression "*(int *)(param_1 + 0x68) != 0" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }" { (expression_statement "param_5[2] = 0;" (assignment_expression "param_5[2] = 0" (subscript_expression "param_5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_5[3] = 0;" (assignment_expression "param_5[3] = 0" (subscript_expression "param_5[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_5[4] = 0;" (assignment_expression "param_5[4] = 0" (subscript_expression "param_5[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_5[5] = 0;" (assignment_expression "param_5[5] = 0" (subscript_expression "param_5[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = param_1 + 0x4c;" (assignment_expression "iVar1 = param_1 + 0x4c" identifier = (binary_expression "param_1 + 0x4c" identifier + number_literal)) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x58);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x58)" identifier = (pointer_expression "*(uint *)(param_1 + 0x58)" * (cast_expression "(uint *)(param_1 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "param_5[2] = *(uint *)(param_1 + 0x54);" (assignment_expression "param_5[2] = *(uint *)(param_1 + 0x54)" (subscript_expression "param_5[2]" identifier [ number_literal ]) = (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "param_5[3] = uVar2;" (assignment_expression "param_5[3] = uVar2" (subscript_expression "param_5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0001f1b0(iVar1,iVar1);" (call_expression "FUN_0001f1b0(iVar1,iVar1)" identifier (argument_list "(iVar1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001f1b0(iVar1,iVar1);" (call_expression "FUN_0001f1b0(iVar1,iVar1)" identifier (argument_list "(iVar1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (subscript_expression "param_5[4]" identifier [ number_literal ]) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x50)" identifier = (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (subscript_expression "param_5[5]" identifier [ number_literal ]) = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023310(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)" (identifier "FUN_00023310") (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 param_4,uint *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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 "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;\n  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;\n  if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }\n  iVar1 = param_1 + 0x4c;\n  uVar2 = *(uint *)(param_1 + 0x58);\n  param_5[2] = *(uint *)(param_1 + 0x54);\n  param_5[3] = uVar2;\n  FUN_0001f1b0(iVar1,iVar1);\n  FUN_0001f1b0(iVar1,iVar1);\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  uVar2 = *(uint *)(param_1 + 0x50);\n  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "*param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18\n  ;" (assignment_expression "*param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18" (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8" (binary_expression "param_2 >> 0x18 | (param_2 & 0xff0000) >> 8" (binary_expression "param_2 >> 0x18" (identifier "param_2") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_2 & 0xff0000) >> 8" (parenthesized_expression "(param_2 & 0xff0000)" (( "(") (binary_expression "param_2 & 0xff0000" (identifier "param_2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_2 & 0xff00) << 8" (parenthesized_expression "(param_2 & 0xff00)" (( "(") (binary_expression "param_2 & 0xff00" (identifier "param_2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_2 << 0x18" (identifier "param_2") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18;" (assignment_expression "param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18" (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |\n               param_3 << 0x18" (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8" (binary_expression "param_3 >> 0x18 | (param_3 & 0xff0000) >> 8" (binary_expression "param_3 >> 0x18" (identifier "param_3") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_3 & 0xff0000) >> 8" (parenthesized_expression "(param_3 & 0xff0000)" (( "(") (binary_expression "param_3 & 0xff0000" (identifier "param_3") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_3 & 0xff00) << 8" (parenthesized_expression "(param_3 & 0xff00)" (( "(") (binary_expression "param_3 & 0xff00" (identifier "param_3") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_3 << 0x18" (identifier "param_3") (<< "<<") (number_literal "0x18")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x68) != 0) {\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x68) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x68) != 0" (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_5[2] = 0;\n    param_5[3] = 0;\n    param_5[4] = 0;\n    param_5[5] = 0;\n    return;\n  }" ({ "{") (expression_statement "param_5[2] = 0;" (assignment_expression "param_5[2] = 0" (subscript_expression "param_5[2]" (identifier "param_5") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5[3] = 0;" (assignment_expression "param_5[3] = 0" (subscript_expression "param_5[3]" (identifier "param_5") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5[4] = 0;" (assignment_expression "param_5[4] = 0" (subscript_expression "param_5[4]" (identifier "param_5") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_5[5] = 0;" (assignment_expression "param_5[5] = 0" (subscript_expression "param_5[5]" (identifier "param_5") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = param_1 + 0x4c;" (assignment_expression "iVar1 = param_1 + 0x4c" (identifier "iVar1") (= "=") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c"))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x58);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x58)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x58)" (* "*") (cast_expression "(uint *)(param_1 + 0x58)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (expression_statement "param_5[2] = *(uint *)(param_1 + 0x54);" (assignment_expression "param_5[2] = *(uint *)(param_1 + 0x54)" (subscript_expression "param_5[2]" (identifier "param_5") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(uint *)(param_1 + 0x54)" (* "*") (cast_expression "(uint *)(param_1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "param_5[3] = uVar2;" (assignment_expression "param_5[3] = uVar2" (subscript_expression "param_5[3]" (identifier "param_5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "FUN_0001f1b0(iVar1,iVar1);" (call_expression "FUN_0001f1b0(iVar1,iVar1)" (identifier "FUN_0001f1b0") (argument_list "(iVar1,iVar1)" (( "(") (identifier "iVar1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0001f1b0(iVar1,iVar1);" (call_expression "FUN_0001f1b0(iVar1,iVar1)" (identifier "FUN_0001f1b0") (argument_list "(iVar1,iVar1)" (( "(") (identifier "iVar1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x4c)" (* "*") (cast_expression "(uint *)(param_1 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (expression_statement "param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (subscript_expression "param_5[4]" (identifier "param_5") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x18" (identifier "uVar2") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x50)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x50)" (* "*") (cast_expression "(uint *)(param_1 + 0x50)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (expression_statement "param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (subscript_expression "param_5[5]" (identifier "param_5") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x18" (identifier "uVar2") (<< "<<") (number_literal "0x18")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *pWal,type_2 var_1,type_2 var_3,type_3 *aData,type_3 *var_2)

{
  type_2 *aIn;
  type_2 uVar1;
  type_4 var_5;
  
  *(type_2 *)var_2 = var_1 >> 0x18 | (var_1 & 0xff0000) >> 8 | (var_1 & 0xff00) << 8 | var_1 << 0x18;
  *(type_2 *)(var_2 + 4) =
       var_3 >> 0x18 | (var_3 & 0xff0000) >> 8 | (var_3 & 0xff00) << 8 |
       var_3 << 0x18;
  if (pWal->iReCksum != 0) {
    var_2[8] = '\0';
    var_2[9] = '\0';
    var_2[10] = '\0';
    var_2[0xb] = '\0';
    var_2[0xc] = '\0';
    var_2[0xd] = '\0';
    var_2[0xe] = '\0';
    var_2[0xf] = '\0';
    var_2[0x10] = '\0';
    var_2[0x11] = '\0';
    var_2[0x12] = '\0';
    var_2[0x13] = '\0';
    var_2[0x14] = '\0';
    var_2[0x15] = '\0';
    var_2[0x16] = '\0';
    var_2[0x17] = '\0';
    return;
  }
  aIn = (pWal->hdr).aFrameCksum;
  uVar1 = (pWal->hdr).aSalt[1];
  *(type_2 *)(var_2 + 8) = (pWal->hdr).aSalt[0];
  *(type_2 *)(var_2 + 0xc) = uVar1;
  var_5 = (type_4)((pWal->hdr).bigEndCksum == '\0');
  var_4(var_5,var_2,8,aIn,aIn);
  var_4(var_5,aData,pWal->szPage,aIn,aIn);
  var_5 = (pWal->hdr).aFrameCksum[0];
  *(type_4 *)(var_2 + 0x10) =
       var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
  var_5 = (pWal->hdr).aFrameCksum[1];
  *(type_4 *)(var_2 + 0x14) =
       var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
  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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (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))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (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))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (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))))) (return_statement))))

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

{
  int iVar1;
  uint uVar2;
  
  *param_5 = param_2 >> 0x18 | (param_2 & 0xff0000) >> 8 | (param_2 & 0xff00) << 8 | param_2 << 0x18
  ;
  param_5[1] = param_3 >> 0x18 | (param_3 & 0xff0000) >> 8 | (param_3 & 0xff00) << 8 |
               param_3 << 0x18;
  if (*(int *)(param_1 + 0x68) != 0) {
    param_5[2] = 0;
    param_5[3] = 0;
    param_5[4] = 0;
    param_5[5] = 0;
    return;
  }
  iVar1 = param_1 + 0x4c;
  uVar2 = *(uint *)(param_1 + 0x58);
  param_5[2] = *(uint *)(param_1 + 0x54);
  param_5[3] = uVar2;
  FUN_0001f1b0(iVar1,iVar1);
  FUN_0001f1b0(iVar1,iVar1);
  uVar2 = *(uint *)(param_1 + 0x4c);
  param_5[4] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  uVar2 = *(uint *)(param_1 + 0x50);
  param_5[5] = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  return;
}

