
void blowfish_sesskey(void *handle,uchar *key)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  blowfish_setkey((BlowfishContext *)handle,key,0x20);
  *(undefined4 *)((int)handle + 0x1048) = 0;
  *(undefined4 *)((int)handle + 0x104c) = 0;
  puVar1 = (undefined4 *)handle;
  puVar3 = (undefined4 *)((int)handle + 0x1050);
  do {
    puVar2 = puVar1 + 4;
    uVar6 = puVar1[1];
    uVar5 = puVar1[2];
    uVar4 = puVar1[3];
    *puVar3 = *puVar1;
    puVar3[1] = uVar6;
    puVar3[2] = uVar5;
    puVar3[3] = uVar4;
    puVar1 = puVar2;
    puVar3 = puVar3 + 4;
  } while (puVar2 != (undefined4 *)((int)handle + 0x1050));
  return;
}



void FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  FUN_0004e404(param_1,param_2,0x20);
  param_1[0x412] = 0;
  param_1[0x413] = 0;
  puVar1 = param_1;
  puVar3 = param_1 + 0x414;
  do {
    puVar2 = puVar1 + 4;
    uVar6 = puVar1[1];
    uVar5 = puVar1[2];
    uVar4 = puVar1[3];
    *puVar3 = *puVar1;
    puVar3[1] = uVar6;
    puVar3[2] = uVar5;
    puVar3[3] = uVar4;
    puVar1 = puVar2;
    puVar3 = puVar3 + 4;
  } while (puVar2 != param_1 + 0x414);
  return;
}


lui gp,0x6
addiu gp,gp,0x6d9c
addu gp,gp,t9
lw t9,-0x7bc0(gp)
addiu sp,sp,-0x20
li a2,0x20
addiu t9,t9,-0x1bfc
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x0004e404
_or s0,a0,zero
addiu v1,s0,0x1050
or v0,s0,zero
sw zero,0x1048(s0)
sw zero,0x104c(s0)
or a0,v1,zero
lw t0,0x0(v0)
addiu v0,v0,0x10
addiu v1,v1,0x10
lw a3,-0xc(v0)
lw a2,-0x8(v0)
lw a1,-0x4(v0)
sw t0,-0x10(v1)
sw a3,-0xc(v1)
sw a2,-0x8(v1)
bne v0,a0,0x0004e538
_sw a1,-0x4(v1)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\n  return;\n}\n\n" (function_definition "void FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\n  return;\n}" primitive_type (function_declarator "FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\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 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "FUN_0004e404(param_1,param_2,0x20);" (call_expression "FUN_0004e404(param_1,param_2,0x20)" identifier (argument_list "(param_1,param_2,0x20)" ( identifier , identifier , number_literal ))) ;) (expression_statement "param_1[0x412] = 0;" (assignment_expression "param_1[0x412] = 0" (subscript_expression "param_1[0x412]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x413] = 0;" (assignment_expression "param_1[0x413] = 0" (subscript_expression "param_1[0x413]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" identifier = identifier) ;) (expression_statement "puVar3 = param_1 + 0x414;" (assignment_expression "puVar3 = param_1 + 0x414" identifier = (binary_expression "param_1 + 0x414" identifier + number_literal)) ;) (do_statement "do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);" do (compound_statement "{\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  }" { (expression_statement "puVar2 = puVar1 + 4;" (assignment_expression "puVar2 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = puVar1[2];" (assignment_expression "uVar5 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = puVar1[3];" (assignment_expression "uVar4 = puVar1[3]" identifier = (subscript_expression "puVar1[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar3 = *puVar1;" (assignment_expression "*puVar3 = *puVar1" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar3[1] = uVar6;" (assignment_expression "puVar3[1] = uVar6" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = uVar5;" (assignment_expression "puVar3[2] = uVar5" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = uVar4;" (assignment_expression "puVar3[3] = uVar4" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "puVar3 = puVar3 + 4;" (assignment_expression "puVar3 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != param_1 + 0x414)" ( (binary_expression "puVar2 != param_1 + 0x414" identifier != (binary_expression "param_1 + 0x414" identifier + number_literal)) )) ;) (return_statement "return;" return ;) })))
(translation_unit "void blowfish_sesskey(void *handle,uchar *key)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  blowfish_setkey((BlowfishContext *)handle,key,0x20);\n  *(undefined4 *)((int)handle + 0x1048) = 0;\n  *(undefined4 *)((int)handle + 0x104c) = 0;\n  puVar1 = (undefined4 *)handle;\n  puVar3 = (undefined4 *)((int)handle + 0x1050);\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != (undefined4 *)((int)handle + 0x1050));\n  return;\n}\n\n" (function_definition "void blowfish_sesskey(void *handle,uchar *key)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  blowfish_setkey((BlowfishContext *)handle,key,0x20);\n  *(undefined4 *)((int)handle + 0x1048) = 0;\n  *(undefined4 *)((int)handle + 0x104c) = 0;\n  puVar1 = (undefined4 *)handle;\n  puVar3 = (undefined4 *)((int)handle + 0x1050);\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != (undefined4 *)((int)handle + 0x1050));\n  return;\n}" primitive_type (function_declarator "blowfish_sesskey(void *handle,uchar *key)" identifier (parameter_list "(void *handle,uchar *key)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  blowfish_setkey((BlowfishContext *)handle,key,0x20);\n  *(undefined4 *)((int)handle + 0x1048) = 0;\n  *(undefined4 *)((int)handle + 0x104c) = 0;\n  puVar1 = (undefined4 *)handle;\n  puVar3 = (undefined4 *)((int)handle + 0x1050);\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != (undefined4 *)((int)handle + 0x1050));\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 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "blowfish_setkey((BlowfishContext *)handle,key,0x20);" (call_expression "blowfish_setkey((BlowfishContext *)handle,key,0x20)" identifier (argument_list "((BlowfishContext *)handle,key,0x20)" ( (cast_expression "(BlowfishContext *)handle" ( (type_descriptor "BlowfishContext *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)((int)handle + 0x1048) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x1048) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x1048)" * (cast_expression "(undefined4 *)((int)handle + 0x1048)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1048)" ( (binary_expression "(int)handle + 0x1048" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)handle + 0x104c) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x104c) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x104c)" * (cast_expression "(undefined4 *)((int)handle + 0x104c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x104c)" ( (binary_expression "(int)handle + 0x104c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)handle;" (assignment_expression "puVar1 = (undefined4 *)handle" identifier = (cast_expression "(undefined4 *)handle" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar3 = (undefined4 *)((int)handle + 0x1050);" (assignment_expression "puVar3 = (undefined4 *)((int)handle + 0x1050)" identifier = (cast_expression "(undefined4 *)((int)handle + 0x1050)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1050)" ( (binary_expression "(int)handle + 0x1050" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (do_statement "do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != (undefined4 *)((int)handle + 0x1050));" do (compound_statement "{\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  }" { (expression_statement "puVar2 = puVar1 + 4;" (assignment_expression "puVar2 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = puVar1[2];" (assignment_expression "uVar5 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = puVar1[3];" (assignment_expression "uVar4 = puVar1[3]" identifier = (subscript_expression "puVar1[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar3 = *puVar1;" (assignment_expression "*puVar3 = *puVar1" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar3[1] = uVar6;" (assignment_expression "puVar3[1] = uVar6" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = uVar5;" (assignment_expression "puVar3[2] = uVar5" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = uVar4;" (assignment_expression "puVar3[3] = uVar4" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "puVar3 = puVar3 + 4;" (assignment_expression "puVar3 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != (undefined4 *)((int)handle + 0x1050))" ( (binary_expression "puVar2 != (undefined4 *)((int)handle + 0x1050)" identifier != (cast_expression "(undefined4 *)((int)handle + 0x1050)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1050)" ( (binary_expression "(int)handle + 0x1050" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\n  return;\n}\n\n" (function_definition "void FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\n  return;\n}" primitive_type (function_declarator "FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\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 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "FUN_0004e404(param_1,param_2,0x20);" (call_expression "FUN_0004e404(param_1,param_2,0x20)" identifier (argument_list "(param_1,param_2,0x20)" ( identifier , identifier , number_literal ))) ;) (expression_statement "param_1[0x412] = 0;" (assignment_expression "param_1[0x412] = 0" (subscript_expression "param_1[0x412]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x413] = 0;" (assignment_expression "param_1[0x413] = 0" (subscript_expression "param_1[0x413]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" identifier = identifier) ;) (expression_statement "puVar3 = param_1 + 0x414;" (assignment_expression "puVar3 = param_1 + 0x414" identifier = (binary_expression "param_1 + 0x414" identifier + number_literal)) ;) (do_statement "do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);" do (compound_statement "{\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  }" { (expression_statement "puVar2 = puVar1 + 4;" (assignment_expression "puVar2 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = puVar1[2];" (assignment_expression "uVar5 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = puVar1[3];" (assignment_expression "uVar4 = puVar1[3]" identifier = (subscript_expression "puVar1[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar3 = *puVar1;" (assignment_expression "*puVar3 = *puVar1" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar3[1] = uVar6;" (assignment_expression "puVar3[1] = uVar6" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = uVar5;" (assignment_expression "puVar3[2] = uVar5" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = uVar4;" (assignment_expression "puVar3[3] = uVar4" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "puVar3 = puVar3 + 4;" (assignment_expression "puVar3 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != param_1 + 0x414)" ( (binary_expression "puVar2 != param_1 + 0x414" identifier != (binary_expression "param_1 + 0x414" identifier + number_literal)) )) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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 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 = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (return_statement return ;) })))
(function_definition "void FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004e4f4(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_0004e4f4") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  FUN_0004e404(param_1,param_2,0x20);\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar1 = param_1;\n  puVar3 = param_1 + 0x414;\n  do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);\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 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "FUN_0004e404(param_1,param_2,0x20);" (call_expression "FUN_0004e404(param_1,param_2,0x20)" (identifier "FUN_0004e404") (argument_list "(param_1,param_2,0x20)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0x20") () ")"))) (; ";")) (expression_statement "param_1[0x412] = 0;" (assignment_expression "param_1[0x412] = 0" (subscript_expression "param_1[0x412]" (identifier "param_1") ([ "[") (number_literal "0x412") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x413] = 0;" (assignment_expression "param_1[0x413] = 0" (subscript_expression "param_1[0x413]" (identifier "param_1") ([ "[") (number_literal "0x413") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" (identifier "puVar1") (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar3 = param_1 + 0x414;" (assignment_expression "puVar3 = param_1 + 0x414" (identifier "puVar3") (= "=") (binary_expression "param_1 + 0x414" (identifier "param_1") (+ "+") (number_literal "0x414"))) (; ";")) (do_statement "do {\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  } while (puVar2 != param_1 + 0x414);" (do "do") (compound_statement "{\n    puVar2 = puVar1 + 4;\n    uVar6 = puVar1[1];\n    uVar5 = puVar1[2];\n    uVar4 = puVar1[3];\n    *puVar3 = *puVar1;\n    puVar3[1] = uVar6;\n    puVar3[2] = uVar5;\n    puVar3[3] = uVar4;\n    puVar1 = puVar2;\n    puVar3 = puVar3 + 4;\n  }" ({ "{") (expression_statement "puVar2 = puVar1 + 4;" (assignment_expression "puVar2 = puVar1 + 4" (identifier "puVar2") (= "=") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" (identifier "uVar6") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar5 = puVar1[2];" (assignment_expression "uVar5 = puVar1[2]" (identifier "uVar5") (= "=") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar4 = puVar1[3];" (assignment_expression "uVar4 = puVar1[3]" (identifier "uVar4") (= "=") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*puVar3 = *puVar1;" (assignment_expression "*puVar3 = *puVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "puVar3[1] = uVar6;" (assignment_expression "puVar3[1] = uVar6" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar3[2] = uVar5;" (assignment_expression "puVar3[2] = uVar5" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "puVar3[3] = uVar4;" (assignment_expression "puVar3[3] = uVar4" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" (identifier "puVar1") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar3 = puVar3 + 4;" (assignment_expression "puVar3 = puVar3 + 4" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != param_1 + 0x414)" (( "(") (binary_expression "puVar2 != param_1 + 0x414" (identifier "puVar2") (!= "!=") (binary_expression "param_1 + 0x414" (identifier "param_1") (+ "+") (number_literal "0x414"))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void *handle,type_1 *key)

{
  type_2 *var_2;
  type_2 *var_4;
  type_2 *var_3;
  type_2 uVar4;
  type_2 uVar5;
  type_2 uVar6;
  
  var_1((type_3 *)handle,key,0x20);
  *(type_2 *)((int)handle + 0x1048) = 0;
  *(type_2 *)((int)handle + 0x104c) = 0;
  var_2 = (type_2 *)handle;
  var_3 = (type_2 *)((int)handle + 0x1050);
  do {
    var_4 = var_2 + 4;
    uVar6 = var_2[1];
    uVar5 = var_2[2];
    uVar4 = var_2[3];
    *var_3 = *var_2;
    var_3[1] = uVar6;
    var_3[2] = uVar5;
    var_3[3] = uVar4;
    var_2 = var_4;
    var_3 = var_3 + 4;
  } while (var_4 != (type_2 *)((int)handle + 0x1050));
  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))) (parameter_declaration type: (type_identifier) 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (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))))) (return_statement))))

void MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  FUN_0004e404(param_1,param_2,0x20);
  param_1[0x412] = 0;
  param_1[0x413] = 0;
  puVar1 = param_1;
  puVar3 = param_1 + 0x414;
  do {
    puVar2 = puVar1 + 4;
    uVar6 = puVar1[1];
    uVar5 = puVar1[2];
    uVar4 = puVar1[3];
    *puVar3 = *puVar1;
    puVar3[1] = uVar6;
    puVar3[2] = uVar5;
    puVar3[3] = uVar4;
    puVar1 = puVar2;
    puVar3 = puVar3 + 4;
  } while (puVar2 != param_1 + 0x414);
  return;
}

