
void random_get_savedata(void **data,int *len)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  
  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);
  random_stir();
  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);
  puVar5 = puVar3;
  puVar1 = puVar2;
  do {
    puVar6 = puVar1;
    puVar4 = puVar5;
    uVar9 = puVar4[1];
    uVar8 = puVar4[2];
    uVar7 = puVar4[3];
    *puVar6 = *puVar4;
    puVar6[1] = uVar9;
    puVar6[2] = uVar8;
    puVar6[3] = uVar7;
    puVar5 = puVar4 + 4;
    puVar1 = puVar6 + 4;
  } while (puVar5 != puVar3 + 0x94);
  uVar7 = puVar4[5];
  puVar6[4] = *puVar5;
  puVar6[5] = uVar7;
  *len = 600;
  *data = puVar2;
  random_stir();
  return;
}



void random_get_savedata(int *param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  
  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);
  FUN_0006e7b0();
  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);
  puVar5 = puVar3;
  puVar1 = puVar2;
  do {
    puVar6 = puVar1;
    puVar4 = puVar5;
    uVar9 = puVar4[1];
    uVar8 = puVar4[2];
    uVar7 = puVar4[3];
    *puVar6 = *puVar4;
    puVar6[1] = uVar9;
    puVar6[2] = uVar8;
    puVar6[3] = uVar7;
    puVar5 = puVar4 + 4;
    puVar1 = puVar6 + 4;
  } while (puVar5 != puVar3 + 0x94);
  uVar7 = puVar4[5];
  puVar6[4] = *puVar5;
  puVar6[5] = uVar7;
  *param_2 = 600;
  *param_1 = (int)puVar2;
  FUN_0006e7b0();
  return;
}


lui gp,0x5
addiu gp,gp,0x1268
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s1,a0,zero
or s2,a1,zero
li a1,0x1
li a0,0x258
lw t9,-0x7f98(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
lw t9,-0x7a10(gp)
addiu t9,t9,-0x1850
bal 0x0006e7b0
_nop
lw gp,0x10(sp)
lw v0,-0x7fd8(gp)
addiu v0,v0,-0x70dc
lw v1,0x4b0(v0)
addu v0,v0,v1
or v1,s0,zero
addiu t0,v0,0x250
lwl a3,0x0(v0)
lwr a3,0x3(v0)
lwl a2,0x4(v0)
lwr a2,0x7(v0)
lwl a1,0x8(v0)
lwr a1,0xb(v0)
lwl a0,0xc(v0)
lwr a0,0xf(v0)
swl a3,0x0(v1)
swr a3,0x3(v1)
swl a2,0x4(v1)
swr a2,0x7(v1)
swl a1,0x8(v1)
swr a1,0xb(v1)
swl a0,0xc(v1)
swr a0,0xf(v1)
addiu v0,v0,0x10
bne v0,t0,0x0006f09c
_addiu v1,v1,0x10
lwl a1,0x0(v0)
lwr a1,0x3(v0)
lwl a0,0x4(v0)
lwr a0,0x7(v0)
swl a1,0x0(v1)
swr a1,0x3(v1)
swl a0,0x4(v1)
swr a0,0x7(v1)
li v0,0x258
sw v0,0x0(s2)
sw s0,0x0(s1)
lw t9,-0x7a10(gp)
addiu t9,t9,-0x1850
bal 0x0006e7b0
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void random_get_savedata(int *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\n  return;\n}\n\n" (function_definition "void random_get_savedata(int *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\n  return;\n}" primitive_type (function_declarator "random_get_savedata(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\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 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b82f8)(600,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b82f8" * (cast_expression "(code *)PTR_safemalloc_000b82f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(600,1)" ( number_literal , number_literal ))))) ;) (expression_statement "FUN_0006e7b0();" (call_expression "FUN_0006e7b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" ( (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc" (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c)" identifier + (pointer_expression "*(int *)(PTR_DAT_000b82b8 + -0x6c2c)" * (cast_expression "(int *)(PTR_DAT_000b82b8 + -0x6c2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b82b8 + -0x6c2c)" ( (binary_expression "PTR_DAT_000b82b8 + -0x6c2c" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (do_statement "do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);" do (compound_statement "{\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  }" { (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" identifier = identifier) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) (expression_statement "uVar9 = puVar4[1];" (assignment_expression "uVar9 = puVar4[1]" identifier = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = puVar4[3];" (assignment_expression "uVar7 = puVar4[3]" identifier = (subscript_expression "puVar4[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar6 = *puVar4;" (assignment_expression "*puVar6 = *puVar4" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar6[1] = uVar9;" (assignment_expression "puVar6[1] = uVar9" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[2] = uVar8;" (assignment_expression "puVar6[2] = uVar8" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[3] = uVar7;" (assignment_expression "puVar6[3] = uVar7" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5 = puVar4 + 4;" (assignment_expression "puVar5 = puVar4 + 4" identifier = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar6 + 4;" (assignment_expression "puVar1 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != puVar3 + 0x94)" ( (binary_expression "puVar5 != puVar3 + 0x94" identifier != (binary_expression "puVar3 + 0x94" identifier + number_literal)) )) ;) (expression_statement "uVar7 = puVar4[5];" (assignment_expression "uVar7 = puVar4[5]" identifier = (subscript_expression "puVar4[5]" identifier [ number_literal ])) ;) (expression_statement "puVar6[4] = *puVar5;" (assignment_expression "puVar6[4] = *puVar5" (subscript_expression "puVar6[4]" identifier [ number_literal ]) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar6[5] = uVar7;" (assignment_expression "puVar6[5] = uVar7" (subscript_expression "puVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = 600;" (assignment_expression "*param_2 = 600" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "*param_1 = (int)puVar2;" (assignment_expression "*param_1 = (int)puVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "FUN_0006e7b0();" (call_expression "FUN_0006e7b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void random_get_savedata(void **data,int *len)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  random_stir();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *len = 600;\n  *data = puVar2;\n  random_stir();\n  return;\n}\n\n" (function_definition "void random_get_savedata(void **data,int *len)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  random_stir();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *len = 600;\n  *data = puVar2;\n  random_stir();\n  return;\n}" primitive_type (function_declarator "random_get_savedata(void **data,int *len)" identifier (parameter_list "(void **data,int *len)" ( (parameter_declaration "void **data" primitive_type (pointer_declarator "**data" * (pointer_declarator "*data" * identifier))) , (parameter_declaration "int *len" primitive_type (pointer_declarator "*len" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  random_stir();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *len = 600;\n  *data = puVar2;\n  random_stir();\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 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b82f8)(600,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b82f8" * (cast_expression "(code *)PTR_safemalloc_000b82f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(600,1)" ( number_literal , number_literal ))))) ;) (expression_statement "random_stir();" (call_expression "random_stir()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" ( (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc" (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c)" identifier + (pointer_expression "*(int *)(PTR_DAT_000b82b8 + -0x6c2c)" * (cast_expression "(int *)(PTR_DAT_000b82b8 + -0x6c2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b82b8 + -0x6c2c)" ( (binary_expression "PTR_DAT_000b82b8 + -0x6c2c" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (do_statement "do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);" do (compound_statement "{\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  }" { (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" identifier = identifier) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) (expression_statement "uVar9 = puVar4[1];" (assignment_expression "uVar9 = puVar4[1]" identifier = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = puVar4[3];" (assignment_expression "uVar7 = puVar4[3]" identifier = (subscript_expression "puVar4[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar6 = *puVar4;" (assignment_expression "*puVar6 = *puVar4" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar6[1] = uVar9;" (assignment_expression "puVar6[1] = uVar9" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[2] = uVar8;" (assignment_expression "puVar6[2] = uVar8" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[3] = uVar7;" (assignment_expression "puVar6[3] = uVar7" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5 = puVar4 + 4;" (assignment_expression "puVar5 = puVar4 + 4" identifier = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar6 + 4;" (assignment_expression "puVar1 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != puVar3 + 0x94)" ( (binary_expression "puVar5 != puVar3 + 0x94" identifier != (binary_expression "puVar3 + 0x94" identifier + number_literal)) )) ;) (expression_statement "uVar7 = puVar4[5];" (assignment_expression "uVar7 = puVar4[5]" identifier = (subscript_expression "puVar4[5]" identifier [ number_literal ])) ;) (expression_statement "puVar6[4] = *puVar5;" (assignment_expression "puVar6[4] = *puVar5" (subscript_expression "puVar6[4]" identifier [ number_literal ]) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar6[5] = uVar7;" (assignment_expression "puVar6[5] = uVar7" (subscript_expression "puVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*len = 600;" (assignment_expression "*len = 600" (pointer_expression "*len" * identifier) = number_literal) ;) (expression_statement "*data = puVar2;" (assignment_expression "*data = puVar2" (pointer_expression "*data" * identifier) = identifier) ;) (expression_statement "random_stir();" (call_expression "random_stir()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void random_get_savedata(int *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\n  return;\n}\n\n" (function_definition "void random_get_savedata(int *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\n  return;\n}" primitive_type (function_declarator "random_get_savedata(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\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 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b82f8)(600,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b82f8" * (cast_expression "(code *)PTR_safemalloc_000b82f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(600,1)" ( number_literal , number_literal ))))) ;) (expression_statement "FUN_0006e7b0();" (call_expression "FUN_0006e7b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" ( (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc" (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c)" identifier + (pointer_expression "*(int *)(PTR_DAT_000b82b8 + -0x6c2c)" * (cast_expression "(int *)(PTR_DAT_000b82b8 + -0x6c2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b82b8 + -0x6c2c)" ( (binary_expression "PTR_DAT_000b82b8 + -0x6c2c" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" identifier = identifier) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (do_statement "do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);" do (compound_statement "{\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  }" { (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" identifier = identifier) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) (expression_statement "uVar9 = puVar4[1];" (assignment_expression "uVar9 = puVar4[1]" identifier = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = puVar4[3];" (assignment_expression "uVar7 = puVar4[3]" identifier = (subscript_expression "puVar4[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar6 = *puVar4;" (assignment_expression "*puVar6 = *puVar4" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar6[1] = uVar9;" (assignment_expression "puVar6[1] = uVar9" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[2] = uVar8;" (assignment_expression "puVar6[2] = uVar8" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[3] = uVar7;" (assignment_expression "puVar6[3] = uVar7" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5 = puVar4 + 4;" (assignment_expression "puVar5 = puVar4 + 4" identifier = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar6 + 4;" (assignment_expression "puVar1 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != puVar3 + 0x94)" ( (binary_expression "puVar5 != puVar3 + 0x94" identifier != (binary_expression "puVar3 + 0x94" identifier + number_literal)) )) ;) (expression_statement "uVar7 = puVar4[5];" (assignment_expression "uVar7 = puVar4[5]" identifier = (subscript_expression "puVar4[5]" identifier [ number_literal ])) ;) (expression_statement "puVar6[4] = *puVar5;" (assignment_expression "puVar6[4] = *puVar5" (subscript_expression "puVar6[4]" identifier [ number_literal ]) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar6[5] = uVar7;" (assignment_expression "puVar6[5] = uVar7" (subscript_expression "puVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = 600;" (assignment_expression "*param_2 = 600" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "*param_1 = (int)puVar2;" (assignment_expression "*param_1 = (int)puVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "FUN_0006e7b0();" (call_expression "FUN_0006e7b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * 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) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void random_get_savedata(int *param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\n  return;\n}" (primitive_type "void") (function_declarator "random_get_savedata(int *param_1,undefined4 *param_2)" (identifier "random_get_savedata") (parameter_list "(int *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);\n  FUN_0006e7b0();\n  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);\n  puVar5 = puVar3;\n  puVar1 = puVar2;\n  do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);\n  uVar7 = puVar4[5];\n  puVar6[4] = *puVar5;\n  puVar6[5] = uVar7;\n  *param_2 = 600;\n  *param_1 = (int)puVar2;\n  FUN_0006e7b0();\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 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000b82f8)(600,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b82f8" (* "*") (cast_expression "(code *)PTR_safemalloc_000b82f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b82f8"))) () ")")) (argument_list "(600,1)" (( "(") (number_literal "600") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "FUN_0006e7b0();" (call_expression "FUN_0006e7b0()" (identifier "FUN_0006e7b0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc)" (( "(") (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc" (binary_expression "PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c)" (identifier "PTR_DAT_000b82b8") (+ "+") (pointer_expression "*(int *)(PTR_DAT_000b82b8 + -0x6c2c)" (* "*") (cast_expression "(int *)(PTR_DAT_000b82b8 + -0x6c2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b82b8 + -0x6c2c)" (( "(") (binary_expression "PTR_DAT_000b82b8 + -0x6c2c" (identifier "PTR_DAT_000b82b8") (+ "+") (number_literal "-0x6c2c")) () ")"))))) (+ "+") (number_literal "-0x70dc")) () ")")))) (; ";")) (expression_statement "puVar5 = puVar3;" (assignment_expression "puVar5 = puVar3" (identifier "puVar5") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" (identifier "puVar1") (= "=") (identifier "puVar2")) (; ";")) (do_statement "do {\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  } while (puVar5 != puVar3 + 0x94);" (do "do") (compound_statement "{\n    puVar6 = puVar1;\n    puVar4 = puVar5;\n    uVar9 = puVar4[1];\n    uVar8 = puVar4[2];\n    uVar7 = puVar4[3];\n    *puVar6 = *puVar4;\n    puVar6[1] = uVar9;\n    puVar6[2] = uVar8;\n    puVar6[3] = uVar7;\n    puVar5 = puVar4 + 4;\n    puVar1 = puVar6 + 4;\n  }" ({ "{") (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" (identifier "puVar6") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" (identifier "puVar4") (= "=") (identifier "puVar5")) (; ";")) (expression_statement "uVar9 = puVar4[1];" (assignment_expression "uVar9 = puVar4[1]" (identifier "uVar9") (= "=") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar8 = puVar4[2];" (assignment_expression "uVar8 = puVar4[2]" (identifier "uVar8") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar7 = puVar4[3];" (assignment_expression "uVar7 = puVar4[3]" (identifier "uVar7") (= "=") (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*puVar6 = *puVar4;" (assignment_expression "*puVar6 = *puVar4" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "puVar6[1] = uVar9;" (assignment_expression "puVar6[1] = uVar9" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "puVar6[2] = uVar8;" (assignment_expression "puVar6[2] = uVar8" (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "puVar6[3] = uVar7;" (assignment_expression "puVar6[3] = uVar7" (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar5 = puVar4 + 4;" (assignment_expression "puVar5 = puVar4 + 4" (identifier "puVar5") (= "=") (binary_expression "puVar4 + 4" (identifier "puVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar1 = puVar6 + 4;" (assignment_expression "puVar1 = puVar6 + 4" (identifier "puVar1") (= "=") (binary_expression "puVar6 + 4" (identifier "puVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar5 != puVar3 + 0x94)" (( "(") (binary_expression "puVar5 != puVar3 + 0x94" (identifier "puVar5") (!= "!=") (binary_expression "puVar3 + 0x94" (identifier "puVar3") (+ "+") (number_literal "0x94"))) () ")")) (; ";")) (expression_statement "uVar7 = puVar4[5];" (assignment_expression "uVar7 = puVar4[5]" (identifier "uVar7") (= "=") (subscript_expression "puVar4[5]" (identifier "puVar4") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "puVar6[4] = *puVar5;" (assignment_expression "puVar6[4] = *puVar5" (subscript_expression "puVar6[4]" (identifier "puVar6") ([ "[") (number_literal "4") (] "]")) (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "puVar6[5] = uVar7;" (assignment_expression "puVar6[5] = uVar7" (subscript_expression "puVar6[5]" (identifier "puVar6") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*param_2 = 600;" (assignment_expression "*param_2 = 600" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "600")) (; ";")) (expression_statement "*param_1 = (int)puVar2;" (assignment_expression "*param_1 = (int)puVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (expression_statement "FUN_0006e7b0();" (call_expression "FUN_0006e7b0()" (identifier "FUN_0006e7b0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void **data,int *len)

{
  type_1 *puVar1;
  type_1 *puVar2;
  type_1 *var_6;
  type_1 *var_3;
  type_1 *var_5;
  type_1 *var_4;
  type_1 uVar7;
  type_1 uVar8;
  type_1 uVar9;
  
  puVar2 = (type_1 *)(*(type_2 *)PTR_safemalloc_000b82f8)(600,1);
  var_1();
  var_6 = (type_1 *)(var_2 + *(int *)(var_2 + -0x6c2c) + -0x70dc);
  var_5 = var_6;
  puVar1 = puVar2;
  do {
    var_4 = puVar1;
    var_3 = var_5;
    uVar9 = var_3[1];
    uVar8 = var_3[2];
    uVar7 = var_3[3];
    *var_4 = *var_3;
    var_4[1] = uVar9;
    var_4[2] = uVar8;
    var_4[3] = uVar7;
    var_5 = var_3 + 4;
    puVar1 = var_4 + 4;
  } while (var_5 != var_6 + 0x94);
  uVar7 = var_3[5];
  var_4[4] = *var_5;
  var_4[5] = uVar7;
  *len = 600;
  *data = puVar2;
  var_1();
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (binary_expression left: (identifier) right: (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)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (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))) (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))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int *param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  
  puVar2 = (undefined4 *)(*(code *)PTR_safemalloc_000b82f8)(600,1);
  FUN_0006e7b0();
  puVar3 = (undefined4 *)(PTR_DAT_000b82b8 + *(int *)(PTR_DAT_000b82b8 + -0x6c2c) + -0x70dc);
  puVar5 = puVar3;
  puVar1 = puVar2;
  do {
    puVar6 = puVar1;
    puVar4 = puVar5;
    uVar9 = puVar4[1];
    uVar8 = puVar4[2];
    uVar7 = puVar4[3];
    *puVar6 = *puVar4;
    puVar6[1] = uVar9;
    puVar6[2] = uVar8;
    puVar6[3] = uVar7;
    puVar5 = puVar4 + 4;
    puVar1 = puVar6 + 4;
  } while (puVar5 != puVar3 + 0x94);
  uVar7 = puVar4[5];
  puVar6[4] = *puVar5;
  puVar6[5] = uVar7;
  *param_2 = 600;
  *param_1 = (int)puVar2;
  FUN_0006e7b0();
  return;
}

