
int ssl_ctx_add_crls(SSL_CTX *ctx,stack_st_X509_CRL *crls,int crl_download)

{
  X509_STORE *st;
  
  st = (X509_STORE *)(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();
  add_crls_store(st,crls);
  if (crl_download == 0) {
    return 1;
  }
  store_setup_crl_download(st);
  return 1;
}



undefined4 ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined4 uVar1;
  
  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();
  FUN_00080b8c(uVar1,param_2);
  if (param_3 == 0) {
    return 1;
  }
  store_setup_crl_download(uVar1);
  return 1;
}


lui gp,0x4
addiu gp,gp,0x31b4
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7060(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
or s1,a2,zero
sw s0,0x1c(sp)
jalr t9
_sw a1,0x2c(sp)
lw gp,0x10(sp)
or a0,v0,zero
lw a1,0x2c(sp)
lw t9,-0x7fc4(gp)
addiu t9,t9,0xb8c
bal 0x00080b8c
_or s0,v0,zero
bne s1,zero,0x00084218
_lw gp,0x10(sp)
lw ra,0x24(sp)
li v0,0x1
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7cd4(gp)
bal 0x0007b9b4
_or a0,s0,zero
li v0,0x1
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}\n\n" (function_definition "undefined4 ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}" type_identifier (function_declarator "ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();" (assignment_expression "uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" identifier = (call_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" (parenthesized_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)" ( (pointer_expression "*(code *)PTR_SSL_CTX_get_cert_store_000c0300" * (cast_expression "(code *)PTR_SSL_CTX_get_cert_store_000c0300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "FUN_00080b8c(uVar1,param_2);" (call_expression "FUN_00080b8c(uVar1,param_2)" identifier (argument_list "(uVar1,param_2)" ( identifier , identifier ))) ;) (if_statement "if (param_3 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "store_setup_crl_download(uVar1);" (call_expression "store_setup_crl_download(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int ssl_ctx_add_crls(SSL_CTX *ctx,stack_st_X509_CRL *crls,int crl_download)\n\n{\n  X509_STORE *st;\n  \n  st = (X509_STORE *)(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  add_crls_store(st,crls);\n  if (crl_download == 0) {\n    return 1;\n  }\n  store_setup_crl_download(st);\n  return 1;\n}\n\n" (function_definition "int ssl_ctx_add_crls(SSL_CTX *ctx,stack_st_X509_CRL *crls,int crl_download)\n\n{\n  X509_STORE *st;\n  \n  st = (X509_STORE *)(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  add_crls_store(st,crls);\n  if (crl_download == 0) {\n    return 1;\n  }\n  store_setup_crl_download(st);\n  return 1;\n}" primitive_type (function_declarator "ssl_ctx_add_crls(SSL_CTX *ctx,stack_st_X509_CRL *crls,int crl_download)" identifier (parameter_list "(SSL_CTX *ctx,stack_st_X509_CRL *crls,int crl_download)" ( (parameter_declaration "SSL_CTX *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "stack_st_X509_CRL *crls" type_identifier (pointer_declarator "*crls" * identifier)) , (parameter_declaration "int crl_download" primitive_type identifier) ))) (compound_statement "{\n  X509_STORE *st;\n  \n  st = (X509_STORE *)(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  add_crls_store(st,crls);\n  if (crl_download == 0) {\n    return 1;\n  }\n  store_setup_crl_download(st);\n  return 1;\n}" { (declaration "X509_STORE *st;" type_identifier (pointer_declarator "*st" * identifier) ;) (expression_statement "st = (X509_STORE *)(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();" (assignment_expression "st = (X509_STORE *)(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" identifier = (cast_expression "(X509_STORE *)(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" ( (type_descriptor "X509_STORE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" (parenthesized_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)" ( (pointer_expression "*(code *)PTR_SSL_CTX_get_cert_store_000c0300" * (cast_expression "(code *)PTR_SSL_CTX_get_cert_store_000c0300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "add_crls_store(st,crls);" (call_expression "add_crls_store(st,crls)" identifier (argument_list "(st,crls)" ( identifier , identifier ))) ;) (if_statement "if (crl_download == 0) {\n    return 1;\n  }" if (parenthesized_expression "(crl_download == 0)" ( (binary_expression "crl_download == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "store_setup_crl_download(st);" (call_expression "store_setup_crl_download(st)" identifier (argument_list "(st)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}\n\n" (function_definition "undefined4 ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}" type_identifier (function_declarator "ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();" (assignment_expression "uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" identifier = (call_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" (parenthesized_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)" ( (pointer_expression "*(code *)PTR_SSL_CTX_get_cert_store_000c0300" * (cast_expression "(code *)PTR_SSL_CTX_get_cert_store_000c0300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "FUN_00080b8c(uVar1,param_2);" (call_expression "FUN_00080b8c(uVar1,param_2)" identifier (argument_list "(uVar1,param_2)" ( identifier , identifier ))) ;) (if_statement "if (param_3 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "store_setup_crl_download(uVar1);" (call_expression "store_setup_crl_download(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "ssl_ctx_add_crls(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "ssl_ctx_add_crls") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();\n  FUN_00080b8c(uVar1,param_2);\n  if (param_3 == 0) {\n    return 1;\n  }\n  store_setup_crl_download(uVar1);\n  return 1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();" (assignment_expression "uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)()" (parenthesized_expression "(*(code *)PTR_SSL_CTX_get_cert_store_000c0300)" (( "(") (pointer_expression "*(code *)PTR_SSL_CTX_get_cert_store_000c0300" (* "*") (cast_expression "(code *)PTR_SSL_CTX_get_cert_store_000c0300" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_SSL_CTX_get_cert_store_000c0300"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00080b8c(uVar1,param_2);" (call_expression "FUN_00080b8c(uVar1,param_2)" (identifier "FUN_00080b8c") (argument_list "(uVar1,param_2)" (( "(") (identifier "uVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (param_3 == 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "store_setup_crl_download(uVar1);" (call_expression "store_setup_crl_download(uVar1)" (identifier "store_setup_crl_download") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(type_1 *ctx,type_2 *crls,int var_2)

{
  type_3 *st;
  
  st = (type_3 *)(*(type_4 *)PTR_SSL_CTX_get_cert_store_000c0300)();
  var_1(st,crls);
  if (var_2 == 0) {
    return 1;
  }
  var_3(st);
  return 1;
}


(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)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) 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)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  undefined4 uVar1;
  
  uVar1 = (*(code *)PTR_SSL_CTX_get_cert_store_000c0300)();
  FUN_00080b8c(uVar1,param_2);
  if (param_3 == 0) {
    return 1;
  }
  store_setup_crl_download(uVar1);
  return 1;
}

