
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void sk_cleanup(void)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  
  puVar1 = PTR_ssh_3des_ssh2_name_001112d8;
  iVar2 = *(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0);
  iVar3 = 0;
  if (iVar2 != 0) {
    while( true ) {
      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);
      if (iVar2 == 0) break;
      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));
      iVar2 = *(int *)(puVar1 + 0x2ef0);
      iVar3 = iVar3 + 1;
    }
  }
  return;
}



void sk_cleanup(void)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  
  puVar1 = PTR_PTR_s_3des_cbc_001112d8;
  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);
  iVar3 = 0;
  if (iVar2 != 0) {
    while( true ) {
      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);
      if (iVar2 == 0) break;
      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));
      iVar2 = *(int *)(puVar1 + 0x2ef0);
      iVar3 = iVar3 + 1;
    }
  }
  return;
}


lui gp,0x5
addiu gp,gp,0x7340
addu gp,gp,t9
addiu sp,sp,-0x28
sw s1,0x20(sp)
lw s1,-0x7fd8(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s0,0x1c(sp)
lw a0,0x2ef0(s1)
beq a0,zero,0x000c1fd4
_or s0,zero,zero
b 0x000c1fbc
_lw t9,-0x7e80(gp)
jalr t9
_lw a0,0x8(v0)
lw gp,0x10(sp)
lw a0,0x2ef0(s1)
lw t9,-0x7e80(gp)
or a1,s0,zero
jalr t9
_addiu s0,s0,0x1
lw gp,0x10(sp)
bne v0,zero,0x000c1fa8
_lw t9,-0x7260(gp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void sk_cleanup(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}\n\n" (function_definition "void sk_cleanup(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sk_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_PTR_s_3des_cbc_001112d8;" (assignment_expression "puVar1 = PTR_PTR_s_3des_cbc_001112d8" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" identifier = (pointer_expression "*(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" * (cast_expression "(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" ( (binary_expression "PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" { (while_statement "while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);" (assignment_expression "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3)" identifier = (call_expression "(*(code *)PTR_index234_00111430)(iVar2,iVar3)" (parenthesized_expression "(*(code *)PTR_index234_00111430)" ( (pointer_expression "*(code *)PTR_index234_00111430" * (cast_expression "(code *)PTR_index234_00111430" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));" (call_expression "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8))" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + 8))" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = *(int *)(puVar1 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(puVar1 + 0x2ef0)" identifier = (pointer_expression "*(int *)(puVar1 + 0x2ef0)" * (cast_expression "(int *)(puVar1 + 0x2ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2ef0)" ( (binary_expression "puVar1 + 0x2ef0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid sk_cleanup(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_ssh_3des_ssh2_name_001112d8;\n  iVar2 = *(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void sk_cleanup(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_ssh_3des_ssh2_name_001112d8;\n  iVar2 = *(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sk_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_ssh_3des_ssh2_name_001112d8;\n  iVar2 = *(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_ssh_3des_ssh2_name_001112d8;" (assignment_expression "puVar1 = PTR_ssh_3des_ssh2_name_001112d8" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0)" identifier = (pointer_expression "*(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0)" * (cast_expression "(int *)(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0)" ( (binary_expression "PTR_ssh_3des_ssh2_name_001112d8 + 0x2ef0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" { (while_statement "while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);" (assignment_expression "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3)" identifier = (call_expression "(*(code *)PTR_index234_00111430)(iVar2,iVar3)" (parenthesized_expression "(*(code *)PTR_index234_00111430)" ( (pointer_expression "*(code *)PTR_index234_00111430" * (cast_expression "(code *)PTR_index234_00111430" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));" (call_expression "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8))" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + 8))" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = *(int *)(puVar1 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(puVar1 + 0x2ef0)" identifier = (pointer_expression "*(int *)(puVar1 + 0x2ef0)" * (cast_expression "(int *)(puVar1 + 0x2ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2ef0)" ( (binary_expression "puVar1 + 0x2ef0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void sk_cleanup(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}\n\n" (function_definition "void sk_cleanup(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sk_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_PTR_s_3des_cbc_001112d8;" (assignment_expression "puVar1 = PTR_PTR_s_3des_cbc_001112d8" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" identifier = (pointer_expression "*(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" * (cast_expression "(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" ( (binary_expression "PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" { (while_statement "while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);" (assignment_expression "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3)" identifier = (call_expression "(*(code *)PTR_index234_00111430)(iVar2,iVar3)" (parenthesized_expression "(*(code *)PTR_index234_00111430)" ( (pointer_expression "*(code *)PTR_index234_00111430" * (cast_expression "(code *)PTR_index234_00111430" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));" (call_expression "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8))" (parenthesized_expression "(*(code *)PTR_close_00112050)" ( (pointer_expression "*(code *)PTR_close_00112050" * (cast_expression "(code *)PTR_close_00112050" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + 8))" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = *(int *)(puVar1 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(puVar1 + 0x2ef0)" identifier = (pointer_expression "*(int *)(puVar1 + 0x2ef0)" * (cast_expression "(int *)(puVar1 + 0x2ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2ef0)" ( (binary_expression "puVar1 + 0x2ef0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (return_statement return ;) })))
(function_definition "void sk_cleanup(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "sk_cleanup(void)" (identifier "sk_cleanup") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  puVar1 = PTR_PTR_s_3des_cbc_001112d8;\n  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);\n  iVar3 = 0;\n  if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "puVar1 = PTR_PTR_s_3des_cbc_001112d8;" (assignment_expression "puVar1 = PTR_PTR_s_3des_cbc_001112d8" (identifier "puVar1") (= "=") (identifier "PTR_PTR_s_3des_cbc_001112d8")) (; ";")) (expression_statement "iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" (* "*") (cast_expression "(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0)" (( "(") (binary_expression "PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0" (identifier "PTR_PTR_s_3des_cbc_001112d8") (+ "+") (number_literal "0x2ef0")) () ")"))))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar2 != 0) {\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);\n      if (iVar2 == 0) break;\n      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));\n      iVar2 = *(int *)(puVar1 + 0x2ef0);\n      iVar3 = iVar3 + 1;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);" (assignment_expression "iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_index234_00111430)(iVar2,iVar3)" (parenthesized_expression "(*(code *)PTR_index234_00111430)" (( "(") (pointer_expression "*(code *)PTR_index234_00111430" (* "*") (cast_expression "(code *)PTR_index234_00111430" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_index234_00111430"))) () ")")) (argument_list "(iVar2,iVar3)" (( "(") (identifier "iVar2") (, ",") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));" (call_expression "(*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8))" (parenthesized_expression "(*(code *)PTR_close_00112050)" (( "(") (pointer_expression "*(code *)PTR_close_00112050" (* "*") (cast_expression "(code *)PTR_close_00112050" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00112050"))) () ")")) (argument_list "(*(undefined4 *)(iVar2 + 8))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(puVar1 + 0x2ef0);" (assignment_expression "iVar2 = *(int *)(puVar1 + 0x2ef0)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(puVar1 + 0x2ef0)" (* "*") (cast_expression "(int *)(puVar1 + 0x2ef0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2ef0)" (( "(") (binary_expression "puVar1 + 0x2ef0" (identifier "puVar1") (+ "+") (number_literal "0x2ef0")) () ")"))))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_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))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement))))

void MASKED(void)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  
  puVar1 = PTR_PTR_s_3des_cbc_001112d8;
  iVar2 = *(int *)(PTR_PTR_s_3des_cbc_001112d8 + 0x2ef0);
  iVar3 = 0;
  if (iVar2 != 0) {
    while( true ) {
      iVar2 = (*(code *)PTR_index234_00111430)(iVar2,iVar3);
      if (iVar2 == 0) break;
      (*(code *)PTR_close_00112050)(*(undefined4 *)(iVar2 + 8));
      iVar2 = *(int *)(puVar1 + 0x2ef0);
      iVar3 = iVar3 + 1;
    }
  }
  return;
}

