
void blowfish_initkey(BlowfishContext *ctx)

{
  word32 *pwVar1;
  word32 *pwVar2;
  word32 *pwVar3;
  word32 wVar4;
  word32 *pwVar5;
  word32 wVar6;
  word32 wVar7;
  word32 wVar8;
  word32 *pwVar9;
  
  pwVar2 = ctx->P;
  wVar4 = 0x243f6a88;
  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x2384);
  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x23c8);
  while( true ) {
    *pwVar2 = wVar4;
    pwVar2 = pwVar2 + 1;
    if (pwVar1 == pwVar5) break;
    wVar4 = *pwVar1;
    pwVar1 = pwVar1 + 1;
  }
  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x1f84);
  pwVar3 = (word32 *)(PTR_D0_238__0006a068 + 0x1384);
  pwVar9 = (word32 *)(PTR_D0_238__0006a068 + 0x2380);
  wVar8 = 0x3a39ce37;
  wVar7 = 0xe93d5a68;
  wVar6 = 0x4b7a70e9;
  wVar4 = 0xd1310ba6;
  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x1784);
  pwVar2 = (word32 *)(PTR_D0_238__0006a068 + 0x1b84);
  while( true ) {
    ctx->S0[0] = wVar4;
    ctx->S1[0] = wVar6;
    ctx->S2[0] = wVar7;
    ctx->S3[0] = wVar8;
    if (pwVar5 == pwVar9) break;
    wVar8 = *pwVar3;
    pwVar3 = pwVar3 + 1;
    wVar6 = *pwVar2;
    wVar4 = *pwVar5;
    wVar7 = *pwVar1;
    pwVar5 = pwVar5 + 1;
    ctx = (BlowfishContext *)(ctx->S0 + 1);
    pwVar1 = pwVar1 + 1;
    pwVar2 = pwVar2 + 1;
  }
  return;
}



void blowfish_initkey(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 *puVar9;
  
  puVar2 = param_1 + 0x400;
  uVar4 = 0x243f6a88;
  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);
  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);
  while( true ) {
    *puVar2 = uVar4;
    puVar2 = puVar2 + 1;
    if (puVar1 == puVar5) break;
    uVar4 = *puVar1;
    puVar1 = puVar1 + 1;
  }
  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);
  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);
  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);
  uVar8 = 0x3a39ce37;
  uVar7 = 0xe93d5a68;
  uVar6 = 0x4b7a70e9;
  uVar4 = 0xd1310ba6;
  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);
  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);
  while( true ) {
    *param_1 = uVar4;
    param_1[0x100] = uVar6;
    param_1[0x200] = uVar7;
    param_1[0x300] = uVar8;
    if (puVar5 == puVar9) break;
    uVar8 = *puVar3;
    puVar3 = puVar3 + 1;
    uVar6 = *puVar2;
    uVar4 = *puVar5;
    uVar7 = *puVar1;
    puVar5 = puVar5 + 1;
    param_1 = param_1 + 1;
    puVar1 = puVar1 + 1;
    puVar2 = puVar2 + 1;
  }
  return;
}


lui gp,0x5
addiu gp,gp,-0x345c
addu gp,gp,t9
lw v0,-0x7fc8(gp)
lui a1,0x243f
lw a2,-0x7fc8(gp)
addiu v1,a0,0x1000
addiu a1,a1,0x6a88
addiu v0,v0,0x2384
b 0x000254c0
_addiu a2,a2,0x23c8
lw a1,0x0(v0)
addiu v0,v0,0x4
sw a1,0x0(v1)
bne v0,a2,0x000254b8
_addiu v1,v1,0x4
lw v0,-0x7fc8(gp)
lui t2,0x3a39
lw a2,-0x7fc8(gp)
lui t1,0xe93d
lw a1,-0x7fc8(gp)
lui t0,0x4b7a
lw v1,-0x7fc8(gp)
lui a3,0xd131
lw t3,-0x7fc8(gp)
addiu v0,v0,0x1f84
addiu a2,a2,0x1b84
addiu a1,a1,0x1784
addiu v1,v1,0x1384
addiu t3,t3,0x2380
ori t2,t2,0xce37
addiu t1,t1,0x5a68
addiu t0,t0,0x70e9
b 0x00025538
_addiu a3,a3,0xba6
addiu a2,a2,0x4
lw t2,0x0(v1)
addiu v1,v1,0x4
lw t0,-0x4(a2)
lw a3,0x0(v0)
addiu a1,a1,0x4
lw t1,-0x4(a1)
addiu v0,v0,0x4
sw a3,0x0(a0)
addiu a0,a0,0x4
sw t0,0x3fc(a0)
sw t1,0x7fc(a0)
bne v0,t3,0x00025518
_sw t2,0xbfc(a0)
jr ra
_nop
(translation_unit "void blowfish_initkey(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void blowfish_initkey(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "blowfish_initkey(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "puVar2 = param_1 + 0x400;" (assignment_expression "puVar2 = param_1 + 0x400" identifier = (binary_expression "param_1 + 0x400" identifier + number_literal)) ;) (expression_statement "uVar4 = 0x243f6a88;" (assignment_expression "uVar4 = 0x243f6a88" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x2384)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x2384)" ( (binary_expression "PTR_DAT_0006a068 + 0x2384" identifier + number_literal) )))) ;) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x23c8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x23c8)" ( (binary_expression "PTR_DAT_0006a068 + 0x23c8" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }" { (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar1 == puVar5) break;" if (parenthesized_expression "(puVar1 == puVar5)" ( (binary_expression "puVar1 == puVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1f84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1f84)" ( (binary_expression "PTR_DAT_0006a068 + 0x1f84" identifier + number_literal) )))) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1384)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1384)" ( (binary_expression "PTR_DAT_0006a068 + 0x1384" identifier + number_literal) )))) ;) (expression_statement "puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);" (assignment_expression "puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x2380)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x2380)" ( (binary_expression "PTR_DAT_0006a068 + 0x2380" identifier + number_literal) )))) ;) (expression_statement "uVar8 = 0x3a39ce37;" (assignment_expression "uVar8 = 0x3a39ce37" identifier = number_literal) ;) (expression_statement "uVar7 = 0xe93d5a68;" (assignment_expression "uVar7 = 0xe93d5a68" identifier = number_literal) ;) (expression_statement "uVar6 = 0x4b7a70e9;" (assignment_expression "uVar6 = 0x4b7a70e9" identifier = number_literal) ;) (expression_statement "uVar4 = 0xd1310ba6;" (assignment_expression "uVar4 = 0xd1310ba6" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1784)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1784)" ( (binary_expression "PTR_DAT_0006a068 + 0x1784" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);" (assignment_expression "puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1b84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1b84)" ( (binary_expression "PTR_DAT_0006a068 + 0x1b84" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }" { (expression_statement "*param_1 = uVar4;" (assignment_expression "*param_1 = uVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[0x100] = uVar6;" (assignment_expression "param_1[0x100] = uVar6" (subscript_expression "param_1[0x100]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x200] = uVar7;" (assignment_expression "param_1[0x200] = uVar7" (subscript_expression "param_1[0x200]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x300] = uVar8;" (assignment_expression "param_1[0x300] = uVar8" (subscript_expression "param_1[0x300]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar5 == puVar9) break;" if (parenthesized_expression "(puVar5 == puVar9)" ( (binary_expression "puVar5 == puVar9" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = *puVar3;" (assignment_expression "uVar8 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = *puVar2;" (assignment_expression "uVar6 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar4 = *puVar5;" (assignment_expression "uVar4 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar7 = *puVar1;" (assignment_expression "uVar7 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void blowfish_initkey(BlowfishContext *ctx)\n\n{\n  word32 *pwVar1;\n  word32 *pwVar2;\n  word32 *pwVar3;\n  word32 wVar4;\n  word32 *pwVar5;\n  word32 wVar6;\n  word32 wVar7;\n  word32 wVar8;\n  word32 *pwVar9;\n  \n  pwVar2 = ctx->P;\n  wVar4 = 0x243f6a88;\n  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x2384);\n  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x23c8);\n  while( true ) {\n    *pwVar2 = wVar4;\n    pwVar2 = pwVar2 + 1;\n    if (pwVar1 == pwVar5) break;\n    wVar4 = *pwVar1;\n    pwVar1 = pwVar1 + 1;\n  }\n  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x1f84);\n  pwVar3 = (word32 *)(PTR_D0_238__0006a068 + 0x1384);\n  pwVar9 = (word32 *)(PTR_D0_238__0006a068 + 0x2380);\n  wVar8 = 0x3a39ce37;\n  wVar7 = 0xe93d5a68;\n  wVar6 = 0x4b7a70e9;\n  wVar4 = 0xd1310ba6;\n  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x1784);\n  pwVar2 = (word32 *)(PTR_D0_238__0006a068 + 0x1b84);\n  while( true ) {\n    ctx->S0[0] = wVar4;\n    ctx->S1[0] = wVar6;\n    ctx->S2[0] = wVar7;\n    ctx->S3[0] = wVar8;\n    if (pwVar5 == pwVar9) break;\n    wVar8 = *pwVar3;\n    pwVar3 = pwVar3 + 1;\n    wVar6 = *pwVar2;\n    wVar4 = *pwVar5;\n    wVar7 = *pwVar1;\n    pwVar5 = pwVar5 + 1;\n    ctx = (BlowfishContext *)(ctx->S0 + 1);\n    pwVar1 = pwVar1 + 1;\n    pwVar2 = pwVar2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void blowfish_initkey(BlowfishContext *ctx)\n\n{\n  word32 *pwVar1;\n  word32 *pwVar2;\n  word32 *pwVar3;\n  word32 wVar4;\n  word32 *pwVar5;\n  word32 wVar6;\n  word32 wVar7;\n  word32 wVar8;\n  word32 *pwVar9;\n  \n  pwVar2 = ctx->P;\n  wVar4 = 0x243f6a88;\n  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x2384);\n  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x23c8);\n  while( true ) {\n    *pwVar2 = wVar4;\n    pwVar2 = pwVar2 + 1;\n    if (pwVar1 == pwVar5) break;\n    wVar4 = *pwVar1;\n    pwVar1 = pwVar1 + 1;\n  }\n  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x1f84);\n  pwVar3 = (word32 *)(PTR_D0_238__0006a068 + 0x1384);\n  pwVar9 = (word32 *)(PTR_D0_238__0006a068 + 0x2380);\n  wVar8 = 0x3a39ce37;\n  wVar7 = 0xe93d5a68;\n  wVar6 = 0x4b7a70e9;\n  wVar4 = 0xd1310ba6;\n  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x1784);\n  pwVar2 = (word32 *)(PTR_D0_238__0006a068 + 0x1b84);\n  while( true ) {\n    ctx->S0[0] = wVar4;\n    ctx->S1[0] = wVar6;\n    ctx->S2[0] = wVar7;\n    ctx->S3[0] = wVar8;\n    if (pwVar5 == pwVar9) break;\n    wVar8 = *pwVar3;\n    pwVar3 = pwVar3 + 1;\n    wVar6 = *pwVar2;\n    wVar4 = *pwVar5;\n    wVar7 = *pwVar1;\n    pwVar5 = pwVar5 + 1;\n    ctx = (BlowfishContext *)(ctx->S0 + 1);\n    pwVar1 = pwVar1 + 1;\n    pwVar2 = pwVar2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "blowfish_initkey(BlowfishContext *ctx)" identifier (parameter_list "(BlowfishContext *ctx)" ( (parameter_declaration "BlowfishContext *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  word32 *pwVar1;\n  word32 *pwVar2;\n  word32 *pwVar3;\n  word32 wVar4;\n  word32 *pwVar5;\n  word32 wVar6;\n  word32 wVar7;\n  word32 wVar8;\n  word32 *pwVar9;\n  \n  pwVar2 = ctx->P;\n  wVar4 = 0x243f6a88;\n  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x2384);\n  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x23c8);\n  while( true ) {\n    *pwVar2 = wVar4;\n    pwVar2 = pwVar2 + 1;\n    if (pwVar1 == pwVar5) break;\n    wVar4 = *pwVar1;\n    pwVar1 = pwVar1 + 1;\n  }\n  pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x1f84);\n  pwVar3 = (word32 *)(PTR_D0_238__0006a068 + 0x1384);\n  pwVar9 = (word32 *)(PTR_D0_238__0006a068 + 0x2380);\n  wVar8 = 0x3a39ce37;\n  wVar7 = 0xe93d5a68;\n  wVar6 = 0x4b7a70e9;\n  wVar4 = 0xd1310ba6;\n  pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x1784);\n  pwVar2 = (word32 *)(PTR_D0_238__0006a068 + 0x1b84);\n  while( true ) {\n    ctx->S0[0] = wVar4;\n    ctx->S1[0] = wVar6;\n    ctx->S2[0] = wVar7;\n    ctx->S3[0] = wVar8;\n    if (pwVar5 == pwVar9) break;\n    wVar8 = *pwVar3;\n    pwVar3 = pwVar3 + 1;\n    wVar6 = *pwVar2;\n    wVar4 = *pwVar5;\n    wVar7 = *pwVar1;\n    pwVar5 = pwVar5 + 1;\n    ctx = (BlowfishContext *)(ctx->S0 + 1);\n    pwVar1 = pwVar1 + 1;\n    pwVar2 = pwVar2 + 1;\n  }\n  return;\n}" { (declaration "word32 *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "word32 *pwVar2;" type_identifier (pointer_declarator "*pwVar2" * identifier) ;) (declaration "word32 *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "word32 wVar4;" type_identifier identifier ;) (declaration "word32 *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "word32 wVar6;" type_identifier identifier ;) (declaration "word32 wVar7;" type_identifier identifier ;) (declaration "word32 wVar8;" type_identifier identifier ;) (declaration "word32 *pwVar9;" type_identifier (pointer_declarator "*pwVar9" * identifier) ;) (expression_statement "pwVar2 = ctx->P;" (assignment_expression "pwVar2 = ctx->P" identifier = (field_expression "ctx->P" identifier -> field_identifier)) ;) (expression_statement "wVar4 = 0x243f6a88;" (assignment_expression "wVar4 = 0x243f6a88" identifier = number_literal) ;) (expression_statement "pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x2384);" (assignment_expression "pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x2384)" identifier = (cast_expression "(word32 *)(PTR_D0_238__0006a068 + 0x2384)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_D0_238__0006a068 + 0x2384)" ( (binary_expression "PTR_D0_238__0006a068 + 0x2384" identifier + number_literal) )))) ;) (expression_statement "pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x23c8);" (assignment_expression "pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x23c8)" identifier = (cast_expression "(word32 *)(PTR_D0_238__0006a068 + 0x23c8)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_D0_238__0006a068 + 0x23c8)" ( (binary_expression "PTR_D0_238__0006a068 + 0x23c8" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    *pwVar2 = wVar4;\n    pwVar2 = pwVar2 + 1;\n    if (pwVar1 == pwVar5) break;\n    wVar4 = *pwVar1;\n    pwVar1 = pwVar1 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *pwVar2 = wVar4;\n    pwVar2 = pwVar2 + 1;\n    if (pwVar1 == pwVar5) break;\n    wVar4 = *pwVar1;\n    pwVar1 = pwVar1 + 1;\n  }" { (expression_statement "*pwVar2 = wVar4;" (assignment_expression "*pwVar2 = wVar4" (pointer_expression "*pwVar2" * identifier) = identifier) ;) (expression_statement "pwVar2 = pwVar2 + 1;" (assignment_expression "pwVar2 = pwVar2 + 1" identifier = (binary_expression "pwVar2 + 1" identifier + number_literal)) ;) (if_statement "if (pwVar1 == pwVar5) break;" if (parenthesized_expression "(pwVar1 == pwVar5)" ( (binary_expression "pwVar1 == pwVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "wVar4 = *pwVar1;" (assignment_expression "wVar4 = *pwVar1" identifier = (pointer_expression "*pwVar1" * identifier)) ;) (expression_statement "pwVar1 = pwVar1 + 1;" (assignment_expression "pwVar1 = pwVar1 + 1" identifier = (binary_expression "pwVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x1f84);" (assignment_expression "pwVar5 = (word32 *)(PTR_D0_238__0006a068 + 0x1f84)" identifier = (cast_expression "(word32 *)(PTR_D0_238__0006a068 + 0x1f84)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_D0_238__0006a068 + 0x1f84)" ( (binary_expression "PTR_D0_238__0006a068 + 0x1f84" identifier + number_literal) )))) ;) (expression_statement "pwVar3 = (word32 *)(PTR_D0_238__0006a068 + 0x1384);" (assignment_expression "pwVar3 = (word32 *)(PTR_D0_238__0006a068 + 0x1384)" identifier = (cast_expression "(word32 *)(PTR_D0_238__0006a068 + 0x1384)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_D0_238__0006a068 + 0x1384)" ( (binary_expression "PTR_D0_238__0006a068 + 0x1384" identifier + number_literal) )))) ;) (expression_statement "pwVar9 = (word32 *)(PTR_D0_238__0006a068 + 0x2380);" (assignment_expression "pwVar9 = (word32 *)(PTR_D0_238__0006a068 + 0x2380)" identifier = (cast_expression "(word32 *)(PTR_D0_238__0006a068 + 0x2380)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_D0_238__0006a068 + 0x2380)" ( (binary_expression "PTR_D0_238__0006a068 + 0x2380" identifier + number_literal) )))) ;) (expression_statement "wVar8 = 0x3a39ce37;" (assignment_expression "wVar8 = 0x3a39ce37" identifier = number_literal) ;) (expression_statement "wVar7 = 0xe93d5a68;" (assignment_expression "wVar7 = 0xe93d5a68" identifier = number_literal) ;) (expression_statement "wVar6 = 0x4b7a70e9;" (assignment_expression "wVar6 = 0x4b7a70e9" identifier = number_literal) ;) (expression_statement "wVar4 = 0xd1310ba6;" (assignment_expression "wVar4 = 0xd1310ba6" identifier = number_literal) ;) (expression_statement "pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x1784);" (assignment_expression "pwVar1 = (word32 *)(PTR_D0_238__0006a068 + 0x1784)" identifier = (cast_expression "(word32 *)(PTR_D0_238__0006a068 + 0x1784)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_D0_238__0006a068 + 0x1784)" ( (binary_expression "PTR_D0_238__0006a068 + 0x1784" identifier + number_literal) )))) ;) (expression_statement "pwVar2 = (word32 *)(PTR_D0_238__0006a068 + 0x1b84);" (assignment_expression "pwVar2 = (word32 *)(PTR_D0_238__0006a068 + 0x1b84)" identifier = (cast_expression "(word32 *)(PTR_D0_238__0006a068 + 0x1b84)" ( (type_descriptor "word32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_D0_238__0006a068 + 0x1b84)" ( (binary_expression "PTR_D0_238__0006a068 + 0x1b84" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    ctx->S0[0] = wVar4;\n    ctx->S1[0] = wVar6;\n    ctx->S2[0] = wVar7;\n    ctx->S3[0] = wVar8;\n    if (pwVar5 == pwVar9) break;\n    wVar8 = *pwVar3;\n    pwVar3 = pwVar3 + 1;\n    wVar6 = *pwVar2;\n    wVar4 = *pwVar5;\n    wVar7 = *pwVar1;\n    pwVar5 = pwVar5 + 1;\n    ctx = (BlowfishContext *)(ctx->S0 + 1);\n    pwVar1 = pwVar1 + 1;\n    pwVar2 = pwVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    ctx->S0[0] = wVar4;\n    ctx->S1[0] = wVar6;\n    ctx->S2[0] = wVar7;\n    ctx->S3[0] = wVar8;\n    if (pwVar5 == pwVar9) break;\n    wVar8 = *pwVar3;\n    pwVar3 = pwVar3 + 1;\n    wVar6 = *pwVar2;\n    wVar4 = *pwVar5;\n    wVar7 = *pwVar1;\n    pwVar5 = pwVar5 + 1;\n    ctx = (BlowfishContext *)(ctx->S0 + 1);\n    pwVar1 = pwVar1 + 1;\n    pwVar2 = pwVar2 + 1;\n  }" { (expression_statement "ctx->S0[0] = wVar4;" (assignment_expression "ctx->S0[0] = wVar4" (subscript_expression "ctx->S0[0]" (field_expression "ctx->S0" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (expression_statement "ctx->S1[0] = wVar6;" (assignment_expression "ctx->S1[0] = wVar6" (subscript_expression "ctx->S1[0]" (field_expression "ctx->S1" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (expression_statement "ctx->S2[0] = wVar7;" (assignment_expression "ctx->S2[0] = wVar7" (subscript_expression "ctx->S2[0]" (field_expression "ctx->S2" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (expression_statement "ctx->S3[0] = wVar8;" (assignment_expression "ctx->S3[0] = wVar8" (subscript_expression "ctx->S3[0]" (field_expression "ctx->S3" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (if_statement "if (pwVar5 == pwVar9) break;" if (parenthesized_expression "(pwVar5 == pwVar9)" ( (binary_expression "pwVar5 == pwVar9" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "wVar8 = *pwVar3;" (assignment_expression "wVar8 = *pwVar3" identifier = (pointer_expression "*pwVar3" * identifier)) ;) (expression_statement "pwVar3 = pwVar3 + 1;" (assignment_expression "pwVar3 = pwVar3 + 1" identifier = (binary_expression "pwVar3 + 1" identifier + number_literal)) ;) (expression_statement "wVar6 = *pwVar2;" (assignment_expression "wVar6 = *pwVar2" identifier = (pointer_expression "*pwVar2" * identifier)) ;) (expression_statement "wVar4 = *pwVar5;" (assignment_expression "wVar4 = *pwVar5" identifier = (pointer_expression "*pwVar5" * identifier)) ;) (expression_statement "wVar7 = *pwVar1;" (assignment_expression "wVar7 = *pwVar1" identifier = (pointer_expression "*pwVar1" * identifier)) ;) (expression_statement "pwVar5 = pwVar5 + 1;" (assignment_expression "pwVar5 = pwVar5 + 1" identifier = (binary_expression "pwVar5 + 1" identifier + number_literal)) ;) (expression_statement "ctx = (BlowfishContext *)(ctx->S0 + 1);" (assignment_expression "ctx = (BlowfishContext *)(ctx->S0 + 1)" identifier = (cast_expression "(BlowfishContext *)(ctx->S0 + 1)" ( (type_descriptor "BlowfishContext *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ctx->S0 + 1)" ( (binary_expression "ctx->S0 + 1" (field_expression "ctx->S0" identifier -> field_identifier) + number_literal) )))) ;) (expression_statement "pwVar1 = pwVar1 + 1;" (assignment_expression "pwVar1 = pwVar1 + 1" identifier = (binary_expression "pwVar1 + 1" identifier + number_literal)) ;) (expression_statement "pwVar2 = pwVar2 + 1;" (assignment_expression "pwVar2 = pwVar2 + 1" identifier = (binary_expression "pwVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void blowfish_initkey(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void blowfish_initkey(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "blowfish_initkey(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "puVar2 = param_1 + 0x400;" (assignment_expression "puVar2 = param_1 + 0x400" identifier = (binary_expression "param_1 + 0x400" identifier + number_literal)) ;) (expression_statement "uVar4 = 0x243f6a88;" (assignment_expression "uVar4 = 0x243f6a88" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x2384)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x2384)" ( (binary_expression "PTR_DAT_0006a068 + 0x2384" identifier + number_literal) )))) ;) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x23c8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x23c8)" ( (binary_expression "PTR_DAT_0006a068 + 0x23c8" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }" { (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar1 == puVar5) break;" if (parenthesized_expression "(puVar1 == puVar5)" ( (binary_expression "puVar1 == puVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1f84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1f84)" ( (binary_expression "PTR_DAT_0006a068 + 0x1f84" identifier + number_literal) )))) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1384)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1384)" ( (binary_expression "PTR_DAT_0006a068 + 0x1384" identifier + number_literal) )))) ;) (expression_statement "puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);" (assignment_expression "puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x2380)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x2380)" ( (binary_expression "PTR_DAT_0006a068 + 0x2380" identifier + number_literal) )))) ;) (expression_statement "uVar8 = 0x3a39ce37;" (assignment_expression "uVar8 = 0x3a39ce37" identifier = number_literal) ;) (expression_statement "uVar7 = 0xe93d5a68;" (assignment_expression "uVar7 = 0xe93d5a68" identifier = number_literal) ;) (expression_statement "uVar6 = 0x4b7a70e9;" (assignment_expression "uVar6 = 0x4b7a70e9" identifier = number_literal) ;) (expression_statement "uVar4 = 0xd1310ba6;" (assignment_expression "uVar4 = 0xd1310ba6" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1784)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1784)" ( (binary_expression "PTR_DAT_0006a068 + 0x1784" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);" (assignment_expression "puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1b84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0006a068 + 0x1b84)" ( (binary_expression "PTR_DAT_0006a068 + 0x1b84" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }" { (expression_statement "*param_1 = uVar4;" (assignment_expression "*param_1 = uVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[0x100] = uVar6;" (assignment_expression "param_1[0x100] = uVar6" (subscript_expression "param_1[0x100]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x200] = uVar7;" (assignment_expression "param_1[0x200] = uVar7" (subscript_expression "param_1[0x200]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x300] = uVar8;" (assignment_expression "param_1[0x300] = uVar8" (subscript_expression "param_1[0x300]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar5 == puVar9) break;" if (parenthesized_expression "(puVar5 == puVar9)" ( (binary_expression "puVar5 == puVar9" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = *puVar3;" (assignment_expression "uVar8 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = *puVar2;" (assignment_expression "uVar6 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar4 = *puVar5;" (assignment_expression "uVar4 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar7 = *puVar1;" (assignment_expression "uVar7 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void blowfish_initkey(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "blowfish_initkey(undefined4 *param_1)" (identifier "blowfish_initkey") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 *puVar9;\n  \n  puVar2 = param_1 + 0x400;\n  uVar4 = 0x243f6a88;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);\n  while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }\n  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);\n  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);\n  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);\n  uVar8 = 0x3a39ce37;\n  uVar7 = 0xe93d5a68;\n  uVar6 = 0x4b7a70e9;\n  uVar4 = 0xd1310ba6;\n  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);\n  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);\n  while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (expression_statement "puVar2 = param_1 + 0x400;" (assignment_expression "puVar2 = param_1 + 0x400" (identifier "puVar2") (= "=") (binary_expression "param_1 + 0x400" (identifier "param_1") (+ "+") (number_literal "0x400"))) (; ";")) (expression_statement "uVar4 = 0x243f6a88;" (assignment_expression "uVar4 = 0x243f6a88" (identifier "uVar4") (= "=") (number_literal "0x243f6a88")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x2384)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0006a068 + 0x2384)" (( "(") (binary_expression "PTR_DAT_0006a068 + 0x2384" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x2384")) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x23c8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0006a068 + 0x23c8)" (( "(") (binary_expression "PTR_DAT_0006a068 + 0x23c8" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x23c8")) () ")")))) (; ";")) (while_statement "while( true ) {\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    *puVar2 = uVar4;\n    puVar2 = puVar2 + 1;\n    if (puVar1 == puVar5) break;\n    uVar4 = *puVar1;\n    puVar1 = puVar1 + 1;\n  }" ({ "{") (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar1 == puVar5) break;" (if "if") (parenthesized_expression "(puVar1 == puVar5)" (( "(") (binary_expression "puVar1 == puVar5" (identifier "puVar1") (== "==") (identifier "puVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" (identifier "uVar4") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1f84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0006a068 + 0x1f84)" (( "(") (binary_expression "PTR_DAT_0006a068 + 0x1f84" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x1f84")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1384)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0006a068 + 0x1384)" (( "(") (binary_expression "PTR_DAT_0006a068 + 0x1384" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x1384")) () ")")))) (; ";")) (expression_statement "puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);" (assignment_expression "puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380)" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x2380)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0006a068 + 0x2380)" (( "(") (binary_expression "PTR_DAT_0006a068 + 0x2380" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x2380")) () ")")))) (; ";")) (expression_statement "uVar8 = 0x3a39ce37;" (assignment_expression "uVar8 = 0x3a39ce37" (identifier "uVar8") (= "=") (number_literal "0x3a39ce37")) (; ";")) (expression_statement "uVar7 = 0xe93d5a68;" (assignment_expression "uVar7 = 0xe93d5a68" (identifier "uVar7") (= "=") (number_literal "0xe93d5a68")) (; ";")) (expression_statement "uVar6 = 0x4b7a70e9;" (assignment_expression "uVar6 = 0x4b7a70e9" (identifier "uVar6") (= "=") (number_literal "0x4b7a70e9")) (; ";")) (expression_statement "uVar4 = 0xd1310ba6;" (assignment_expression "uVar4 = 0xd1310ba6" (identifier "uVar4") (= "=") (number_literal "0xd1310ba6")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);" (assignment_expression "puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1784)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0006a068 + 0x1784)" (( "(") (binary_expression "PTR_DAT_0006a068 + 0x1784" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x1784")) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);" (assignment_expression "puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_0006a068 + 0x1b84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0006a068 + 0x1b84)" (( "(") (binary_expression "PTR_DAT_0006a068 + 0x1b84" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x1b84")) () ")")))) (; ";")) (while_statement "while( true ) {\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    *param_1 = uVar4;\n    param_1[0x100] = uVar6;\n    param_1[0x200] = uVar7;\n    param_1[0x300] = uVar8;\n    if (puVar5 == puVar9) break;\n    uVar8 = *puVar3;\n    puVar3 = puVar3 + 1;\n    uVar6 = *puVar2;\n    uVar4 = *puVar5;\n    uVar7 = *puVar1;\n    puVar5 = puVar5 + 1;\n    param_1 = param_1 + 1;\n    puVar1 = puVar1 + 1;\n    puVar2 = puVar2 + 1;\n  }" ({ "{") (expression_statement "*param_1 = uVar4;" (assignment_expression "*param_1 = uVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "param_1[0x100] = uVar6;" (assignment_expression "param_1[0x100] = uVar6" (subscript_expression "param_1[0x100]" (identifier "param_1") ([ "[") (number_literal "0x100") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "param_1[0x200] = uVar7;" (assignment_expression "param_1[0x200] = uVar7" (subscript_expression "param_1[0x200]" (identifier "param_1") ([ "[") (number_literal "0x200") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "param_1[0x300] = uVar8;" (assignment_expression "param_1[0x300] = uVar8" (subscript_expression "param_1[0x300]" (identifier "param_1") ([ "[") (number_literal "0x300") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (if_statement "if (puVar5 == puVar9) break;" (if "if") (parenthesized_expression "(puVar5 == puVar9)" (( "(") (binary_expression "puVar5 == puVar9" (identifier "puVar5") (== "==") (identifier "puVar9")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar8 = *puVar3;" (assignment_expression "uVar8 = *puVar3" (identifier "uVar8") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = *puVar2;" (assignment_expression "uVar6 = *puVar2" (identifier "uVar6") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "uVar4 = *puVar5;" (assignment_expression "uVar4 = *puVar5" (identifier "uVar4") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "uVar7 = *puVar1;" (assignment_expression "uVar7 = *puVar1" (identifier "uVar7") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *ctx)

{
  type_2 *var_3;
  type_2 *var_2;
  type_2 *var_6;
  type_2 wVar4;
  type_2 *var_4;
  type_2 wVar6;
  type_2 wVar7;
  type_2 wVar8;
  type_2 *var_5;
  
  var_2 = ctx->P;
  wVar4 = 0x243f6a88;
  var_3 = (type_2 *)(var_1 + 0x2384);
  var_4 = (type_2 *)(var_1 + 0x23c8);
  while( true ) {
    *var_2 = wVar4;
    var_2 = var_2 + 1;
    if (var_3 == var_4) break;
    wVar4 = *var_3;
    var_3 = var_3 + 1;
  }
  var_4 = (type_2 *)(var_1 + 0x1f84);
  var_6 = (type_2 *)(var_1 + 0x1384);
  var_5 = (type_2 *)(var_1 + 0x2380);
  wVar8 = 0x3a39ce37;
  wVar7 = 0xe93d5a68;
  wVar6 = 0x4b7a70e9;
  wVar4 = 0xd1310ba6;
  var_3 = (type_2 *)(var_1 + 0x1784);
  var_2 = (type_2 *)(var_1 + 0x1b84);
  while( true ) {
    ctx->S0[0] = wVar4;
    ctx->S1[0] = wVar6;
    ctx->S2[0] = wVar7;
    ctx->S3[0] = wVar8;
    if (var_4 == var_5) break;
    wVar8 = *var_6;
    var_6 = var_6 + 1;
    wVar6 = *var_2;
    wVar4 = *var_4;
    wVar7 = *var_3;
    var_4 = var_4 + 1;
    ctx = (type_1 *)(ctx->S0 + 1);
    var_3 = var_3 + 1;
    var_2 = var_2 + 1;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (number_literal)))))) (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: (number_literal)))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_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: (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: (identifier) right: (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: (identifier) right: (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: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (number_literal)))))) (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: (number_literal)))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (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))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))))

void MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 *puVar9;
  
  puVar2 = param_1 + 0x400;
  uVar4 = 0x243f6a88;
  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x2384);
  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x23c8);
  while( true ) {
    *puVar2 = uVar4;
    puVar2 = puVar2 + 1;
    if (puVar1 == puVar5) break;
    uVar4 = *puVar1;
    puVar1 = puVar1 + 1;
  }
  puVar5 = (undefined4 *)(PTR_DAT_0006a068 + 0x1f84);
  puVar3 = (undefined4 *)(PTR_DAT_0006a068 + 0x1384);
  puVar9 = (undefined4 *)(PTR_DAT_0006a068 + 0x2380);
  uVar8 = 0x3a39ce37;
  uVar7 = 0xe93d5a68;
  uVar6 = 0x4b7a70e9;
  uVar4 = 0xd1310ba6;
  puVar1 = (undefined4 *)(PTR_DAT_0006a068 + 0x1784);
  puVar2 = (undefined4 *)(PTR_DAT_0006a068 + 0x1b84);
  while( true ) {
    *param_1 = uVar4;
    param_1[0x100] = uVar6;
    param_1[0x200] = uVar7;
    param_1[0x300] = uVar8;
    if (puVar5 == puVar9) break;
    uVar8 = *puVar3;
    puVar3 = puVar3 + 1;
    uVar6 = *puVar2;
    uVar4 = *puVar5;
    uVar7 = *puVar1;
    puVar5 = puVar5 + 1;
    param_1 = param_1 + 1;
    puVar1 = puVar1 + 1;
    puVar2 = puVar2 + 1;
  }
  return;
}

