
int save_certs(char *signerfile,stack_st_X509 *signers)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)
                    (signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);
  if (iVar1 != 0) {
    iVar4 = 0;
    while( true ) {
      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);
      if (iVar3 <= iVar4) break;
      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);
      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);
      iVar4 = iVar4 + 1;
    }
    (*(code *)PTR_BIO_free_000bf96c)(iVar1);
    return 1;
  }
  return 0;
}



undefined4 FUN_00030448(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)
                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);
  if (iVar1 != 0) {
    iVar4 = 0;
    while( true ) {
      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);
      if (iVar3 <= iVar4) break;
      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);
      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);
      iVar4 = iVar4 + 1;
    }
    (*(code *)PTR_BIO_free_000bf96c)(iVar1);
    return 1;
  }
  return 0;
}


lui gp,0x9
addiu gp,gp,0x6f18
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x6e7c(gp)
sw s1,0x1c(sp)
or s1,a1,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s0,0x18(sp)
lw a1,-0x7fb8(gp)
jalr t9
_addiu a1,a1,-0x4034
beq v0,zero,0x00030504
_lw gp,0x10(sp)
or s2,v0,zero
b 0x000304b4
_or s0,zero,zero
jalr t9
_nop
or a0,s2,zero
lw gp,0x10(sp)
lw t9,-0x6ce4(gp)
jalr t9
_or a1,v0,zero
lw gp,0x10(sp)
lw t9,-0x7a24(gp)
jalr t9
_or a0,s1,zero
or a1,s0,zero
lw gp,0x10(sp)
slt v0,s0,v0
or a0,s1,zero
addiu s0,s0,0x1
bne v0,zero,0x00030494
_lw t9,-0x678c(gp)
lw t9,-0x79f4(gp)
jalr t9
_or a0,s2,zero
li v0,0x1
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or v0,zero,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 FUN_00030448(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00030448(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00030448(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);" (assignment_expression "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" identifier = (call_expression "(*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" (parenthesized_expression "(*(code *)PTR_BIO_new_file_000c04e4)" ( (pointer_expression "*(code *)PTR_BIO_new_file_000c04e4" * (cast_expression "(code *)PTR_BIO_new_file_000c04e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" ( identifier , (binary_expression "PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2)" identifier = (call_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)" ( (pointer_expression "*(code *)PTR_OPENSSL_sk_num_000bf93c" * (cast_expression "(code *)PTR_OPENSSL_sk_num_000bf93c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar3 <= iVar4) break;" if (parenthesized_expression "(iVar3 <= iVar4)" ( (binary_expression "iVar3 <= iVar4" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);" (assignment_expression "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4)" identifier = (call_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)" ( (pointer_expression "*(code *)PTR_OPENSSL_sk_value_000c0bd4" * (cast_expression "(code *)PTR_OPENSSL_sk_value_000c0bd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);" (call_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2)" (parenthesized_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)" ( (pointer_expression "*(code *)PTR_PEM_write_bio_X509_000c067c" * (cast_expression "(code *)PTR_PEM_write_bio_X509_000c067c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "(*(code *)PTR_BIO_free_000bf96c)(iVar1);" (call_expression "(*(code *)PTR_BIO_free_000bf96c)(iVar1)" (parenthesized_expression "(*(code *)PTR_BIO_free_000bf96c)" ( (pointer_expression "*(code *)PTR_BIO_free_000bf96c" * (cast_expression "(code *)PTR_BIO_free_000bf96c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int save_certs(char *signerfile,stack_st_X509 *signers)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "int save_certs(char *signerfile,stack_st_X509 *signers)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" primitive_type (function_declarator "save_certs(char *signerfile,stack_st_X509 *signers)" identifier (parameter_list "(char *signerfile,stack_st_X509 *signers)" ( (parameter_declaration "char *signerfile" primitive_type (pointer_declarator "*signerfile" * identifier)) , (parameter_declaration "stack_st_X509 *signers" type_identifier (pointer_declarator "*signers" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);" (assignment_expression "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" identifier = (call_expression "(*(code *)PTR_BIO_new_file_000c04e4)\n                    (signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" (parenthesized_expression "(*(code *)PTR_BIO_new_file_000c04e4)" ( (pointer_expression "*(code *)PTR_BIO_new_file_000c04e4" * (cast_expression "(code *)PTR_BIO_new_file_000c04e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(signerfile,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" ( identifier , (binary_expression "PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers);" (assignment_expression "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers)" identifier = (call_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)(signers)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)" ( (pointer_expression "*(code *)PTR_OPENSSL_sk_num_000bf93c" * (cast_expression "(code *)PTR_OPENSSL_sk_num_000bf93c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(signers)" ( identifier )))) ;) (if_statement "if (iVar3 <= iVar4) break;" if (parenthesized_expression "(iVar3 <= iVar4)" ( (binary_expression "iVar3 <= iVar4" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4);" (assignment_expression "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4)" identifier = (call_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)(signers,iVar4)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)" ( (pointer_expression "*(code *)PTR_OPENSSL_sk_value_000c0bd4" * (cast_expression "(code *)PTR_OPENSSL_sk_value_000c0bd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(signers,iVar4)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);" (call_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2)" (parenthesized_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)" ( (pointer_expression "*(code *)PTR_PEM_write_bio_X509_000c067c" * (cast_expression "(code *)PTR_PEM_write_bio_X509_000c067c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "(*(code *)PTR_BIO_free_000bf96c)(iVar1);" (call_expression "(*(code *)PTR_BIO_free_000bf96c)(iVar1)" (parenthesized_expression "(*(code *)PTR_BIO_free_000bf96c)" ( (pointer_expression "*(code *)PTR_BIO_free_000bf96c" * (cast_expression "(code *)PTR_BIO_free_000bf96c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00030448(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00030448(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00030448(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);" (assignment_expression "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" identifier = (call_expression "(*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" (parenthesized_expression "(*(code *)PTR_BIO_new_file_000c04e4)" ( (pointer_expression "*(code *)PTR_BIO_new_file_000c04e4" * (cast_expression "(code *)PTR_BIO_new_file_000c04e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" ( identifier , (binary_expression "PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2)" identifier = (call_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)" ( (pointer_expression "*(code *)PTR_OPENSSL_sk_num_000bf93c" * (cast_expression "(code *)PTR_OPENSSL_sk_num_000bf93c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar3 <= iVar4) break;" if (parenthesized_expression "(iVar3 <= iVar4)" ( (binary_expression "iVar3 <= iVar4" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);" (assignment_expression "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4)" identifier = (call_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)" ( (pointer_expression "*(code *)PTR_OPENSSL_sk_value_000c0bd4" * (cast_expression "(code *)PTR_OPENSSL_sk_value_000c0bd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,iVar4)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);" (call_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2)" (parenthesized_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)" ( (pointer_expression "*(code *)PTR_PEM_write_bio_X509_000c067c" * (cast_expression "(code *)PTR_PEM_write_bio_X509_000c067c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "(*(code *)PTR_BIO_free_000bf96c)(iVar1);" (call_expression "(*(code *)PTR_BIO_free_000bf96c)(iVar1)" (parenthesized_expression "(*(code *)PTR_BIO_free_000bf96c)" ( (pointer_expression "*(code *)PTR_BIO_free_000bf96c" * (cast_expression "(code *)PTR_BIO_free_000bf96c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00030448(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00030448(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00030448") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);" (assignment_expression "iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_BIO_new_file_000c04e4)\n                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" (parenthesized_expression "(*(code *)PTR_BIO_new_file_000c04e4)" (( "(") (pointer_expression "*(code *)PTR_BIO_new_file_000c04e4" (* "*") (cast_expression "(code *)PTR_BIO_new_file_000c04e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_BIO_new_file_000c04e4"))) () ")")) (argument_list "(param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034" (identifier "PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8") (+ "+") (number_literal "-0x4034")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = 0;\n    while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }\n    (*(code *)PTR_BIO_free_000bf96c)(iVar1);\n    return 1;\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);\n      if (iVar3 <= iVar4) break;\n      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);\n      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);\n      iVar4 = iVar4 + 1;\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_num_000bf93c)" (( "(") (pointer_expression "*(code *)PTR_OPENSSL_sk_num_000bf93c" (* "*") (cast_expression "(code *)PTR_OPENSSL_sk_num_000bf93c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_OPENSSL_sk_num_000bf93c"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 <= iVar4) break;" (if "if") (parenthesized_expression "(iVar3 <= iVar4)" (( "(") (binary_expression "iVar3 <= iVar4" (identifier "iVar3") (<= "<=") (identifier "iVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);" (assignment_expression "uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4)" (parenthesized_expression "(*(code *)PTR_OPENSSL_sk_value_000c0bd4)" (( "(") (pointer_expression "*(code *)PTR_OPENSSL_sk_value_000c0bd4" (* "*") (cast_expression "(code *)PTR_OPENSSL_sk_value_000c0bd4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_OPENSSL_sk_value_000c0bd4"))) () ")")) (argument_list "(param_2,iVar4)" (( "(") (identifier "param_2") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);" (call_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2)" (parenthesized_expression "(*(code *)PTR_PEM_write_bio_X509_000c067c)" (( "(") (pointer_expression "*(code *)PTR_PEM_write_bio_X509_000c067c" (* "*") (cast_expression "(code *)PTR_PEM_write_bio_X509_000c067c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PEM_write_bio_X509_000c067c"))) () ")")) (argument_list "(iVar1,uVar2)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_BIO_free_000bf96c)(iVar1);" (call_expression "(*(code *)PTR_BIO_free_000bf96c)(iVar1)" (parenthesized_expression "(*(code *)PTR_BIO_free_000bf96c)" (( "(") (pointer_expression "*(code *)PTR_BIO_free_000bf96c" (* "*") (cast_expression "(code *)PTR_BIO_free_000bf96c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_BIO_free_000bf96c"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(char *signerfile,type_1 *signers)

{
  int var_2;
  type_2 uVar2;
  int var_3;
  int var_4;
  
  var_2 = (*(type_3 *)PTR_BIO_new_file_000c04e4)
                    (signerfile,var_1 + -0x4034);
  if (var_2 != 0) {
    var_4 = 0;
    while( true ) {
      var_3 = (*(type_3 *)PTR_OPENSSL_sk_num_000bf93c)(signers);
      if (var_3 <= var_4) break;
      uVar2 = (*(type_3 *)PTR_OPENSSL_sk_value_000c0bd4)(signers,var_4);
      (*(type_3 *)PTR_PEM_write_bio_X509_000c067c)(var_2,uVar2);
      var_4 = var_4 + 1;
    }
    (*(type_3 *)PTR_BIO_free_000bf96c)(var_2);
    return 1;
  }
  return 0;
}


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

undefined4 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_BIO_new_file_000c04e4)
                    (param_1,PTR_s_of_ec_order__d___tmp_2______NULL_000bf3a8 + -0x4034);
  if (iVar1 != 0) {
    iVar4 = 0;
    while( true ) {
      iVar3 = (*(code *)PTR_OPENSSL_sk_num_000bf93c)(param_2);
      if (iVar3 <= iVar4) break;
      uVar2 = (*(code *)PTR_OPENSSL_sk_value_000c0bd4)(param_2,iVar4);
      (*(code *)PTR_PEM_write_bio_X509_000c067c)(iVar1,uVar2);
      iVar4 = iVar4 + 1;
    }
    (*(code *)PTR_BIO_free_000bf96c)(iVar1);
    return 1;
  }
  return 0;
}

