
int do_keyop(EVP_PKEY_CTX *ctx,int pkey_op,uchar *out,size_t *poutlen,uchar *in,size_t inlen)

{
  int iVar1;
  
  if (pkey_op == 0x100) {
    iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen);
    return iVar1;
  }
  if (pkey_op < 0x101) {
    if (pkey_op == 8) {
      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);
      return iVar1;
    }
    if (pkey_op == 0x20) {
      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);
      return iVar1;
    }
  }
  else {
    if (pkey_op == 0x200) {
      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);
      return iVar1;
    }
    if (pkey_op == 0x400) {
      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);
      return iVar1;
    }
  }
  return 0;
}



undefined4
FUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5
            ,undefined4 param_6)

{
  undefined4 uVar1;
  
  if (param_2 == 0x100) {
    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);
    return uVar1;
  }
  if (param_2 < 0x101) {
    if (param_2 == 8) {
      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);
      return uVar1;
    }
    if (param_2 == 0x20) {
      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)
                        (param_1,param_3,param_4,param_5,param_6);
      return uVar1;
    }
  }
  else {
    if (param_2 == 0x200) {
      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);
      return uVar1;
    }
    if (param_2 == 0x400) {
      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);
      return uVar1;
    }
  }
  return 0;
}


lui gp,0x8
addiu gp,gp,0x54b0
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw gp,0x18(sp)
or v1,a2,zero
li v0,0x100
beq a1,v0,0x0004df88
_or a2,a3,zero
slti v0,a1,0x101
bne v0,zero,0x0004df14
_li v0,0x8
li v0,0x200
beq a1,v0,0x0004dfb0
_lw v0,0x3c(sp)
li v0,0x400
bne a1,v0,0x0004df5c
_or a1,v1,zero
lw t9,-0x6fbc(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0004df54
_lw ra,0x24(sp)
beq a1,v0,0x0004df64
_lw v0,0x3c(sp)
li v0,0x20
bne a1,v0,0x0004df4c
_lw v0,0x3c(sp)
sw v0,0x10(sp)
lw a3,0x38(sp)
or a1,v1,zero
lw t9,-0x7650(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0004df54
_lw ra,0x24(sp)
or v0,zero,zero
lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
b 0x0004df50
_or v0,zero,zero
sw v0,0x10(sp)
lw a3,0x38(sp)
or a1,v1,zero
lw t9,-0x67c0(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0004df54
_lw ra,0x24(sp)
lw v0,0x3c(sp)
sw v0,0x10(sp)
lw a3,0x38(sp)
or a1,v1,zero
lw t9,-0x6880(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0004df54
_lw ra,0x24(sp)
sw v0,0x10(sp)
lw a3,0x38(sp)
or a1,v1,zero
lw t9,-0x700c(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0004df54
_lw ra,0x24(sp)
(translation_unit "undefined4\nFUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }" if (parenthesized_expression "(param_2 == 0x100)" ( (binary_expression "param_2 == 0x100" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_encrypt_000ccae0" * (cast_expression "(code *)PTR_EVP_PKEY_encrypt_000ccae0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(param_2 < 0x101)" ( (binary_expression "param_2 < 0x101" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }" { (if_statement "if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 8)" ( (binary_expression "param_2 == 8" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_sign_000ccba0" * (cast_expression "(code *)PTR_EVP_PKEY_sign_000ccba0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 0x20)" ( (binary_expression "param_2 == 0x20" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_verify_recover_000cbd10" * (cast_expression "(code *)PTR_EVP_PKEY_verify_recover_000cbd10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" { (if_statement "if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 0x200)" ( (binary_expression "param_2 == 0x200" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_decrypt_000cc354" * (cast_expression "(code *)PTR_EVP_PKEY_decrypt_000cc354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 0x400)" ( (binary_expression "param_2 == 0x400" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_derive_000cc3a4" * (cast_expression "(code *)PTR_EVP_PKEY_derive_000cc3a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int do_keyop(EVP_PKEY_CTX *ctx,int pkey_op,uchar *out,size_t *poutlen,uchar *in,size_t inlen)\n\n{\n  int iVar1;\n  \n  if (pkey_op == 0x100) {\n    iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen);\n    return iVar1;\n  }\n  if (pkey_op < 0x101) {\n    if (pkey_op == 8) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x20) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n  }\n  else {\n    if (pkey_op == 0x200) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x400) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int do_keyop(EVP_PKEY_CTX *ctx,int pkey_op,uchar *out,size_t *poutlen,uchar *in,size_t inlen)\n\n{\n  int iVar1;\n  \n  if (pkey_op == 0x100) {\n    iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen);\n    return iVar1;\n  }\n  if (pkey_op < 0x101) {\n    if (pkey_op == 8) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x20) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n  }\n  else {\n    if (pkey_op == 0x200) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x400) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "do_keyop(EVP_PKEY_CTX *ctx,int pkey_op,uchar *out,size_t *poutlen,uchar *in,size_t inlen)" identifier (parameter_list "(EVP_PKEY_CTX *ctx,int pkey_op,uchar *out,size_t *poutlen,uchar *in,size_t inlen)" ( (parameter_declaration "EVP_PKEY_CTX *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "int pkey_op" primitive_type identifier) , (parameter_declaration "uchar *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "size_t *poutlen" primitive_type (pointer_declarator "*poutlen" * identifier)) , (parameter_declaration "uchar *in" type_identifier (pointer_declarator "*in" * identifier)) , (parameter_declaration "size_t inlen" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (pkey_op == 0x100) {\n    iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen);\n    return iVar1;\n  }\n  if (pkey_op < 0x101) {\n    if (pkey_op == 8) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x20) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n  }\n  else {\n    if (pkey_op == 0x200) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x400) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (pkey_op == 0x100) {\n    iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen);\n    return iVar1;\n  }" if (parenthesized_expression "(pkey_op == 0x100)" ( (binary_expression "pkey_op == 0x100" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen);\n    return iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen);" (assignment_expression "iVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(ctx,out,poutlen,in,inlen)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_encrypt_000ccae0" * (cast_expression "(code *)PTR_EVP_PKEY_encrypt_000ccae0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctx,out,poutlen,in,inlen)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (pkey_op < 0x101) {\n    if (pkey_op == 8) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x20) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n  }\n  else {\n    if (pkey_op == 0x200) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x400) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(pkey_op < 0x101)" ( (binary_expression "pkey_op < 0x101" identifier < number_literal) )) (compound_statement "{\n    if (pkey_op == 8) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x20) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n  }" { (if_statement "if (pkey_op == 8) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }" if (parenthesized_expression "(pkey_op == 8)" ( (binary_expression "pkey_op == 8" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen);" (assignment_expression "iVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)(ctx,out,poutlen,in,inlen)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_sign_000ccba0" * (cast_expression "(code *)PTR_EVP_PKEY_sign_000ccba0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctx,out,poutlen,in,inlen)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (pkey_op == 0x20) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }" if (parenthesized_expression "(pkey_op == 0x20)" ( (binary_expression "pkey_op == 0x20" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen);" (assignment_expression "iVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)(ctx,out,poutlen,in,inlen)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_verify_recover_000cbd10" * (cast_expression "(code *)PTR_EVP_PKEY_verify_recover_000cbd10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctx,out,poutlen,in,inlen)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) }) (else_clause "else {\n    if (pkey_op == 0x200) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x400) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }\n  }" else (compound_statement "{\n    if (pkey_op == 0x200) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }\n    if (pkey_op == 0x400) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }\n  }" { (if_statement "if (pkey_op == 0x200) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }" if (parenthesized_expression "(pkey_op == 0x200)" ( (binary_expression "pkey_op == 0x200" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen);" (assignment_expression "iVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)(ctx,out,poutlen,in,inlen)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_decrypt_000cc354" * (cast_expression "(code *)PTR_EVP_PKEY_decrypt_000cc354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctx,out,poutlen,in,inlen)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (pkey_op == 0x400) {\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }" if (parenthesized_expression "(pkey_op == 0x400)" ( (binary_expression "pkey_op == 0x400" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out);" (assignment_expression "iVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)(ctx,out)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_derive_000cc3a4" * (cast_expression "(code *)PTR_EVP_PKEY_derive_000cc3a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ctx,out)" ( identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }" if (parenthesized_expression "(param_2 == 0x100)" ( (binary_expression "param_2 == 0x100" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_encrypt_000ccae0" * (cast_expression "(code *)PTR_EVP_PKEY_encrypt_000ccae0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(param_2 < 0x101)" ( (binary_expression "param_2 < 0x101" identifier < number_literal) )) (compound_statement "{\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }" { (if_statement "if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 8)" ( (binary_expression "param_2 == 8" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_sign_000ccba0" * (cast_expression "(code *)PTR_EVP_PKEY_sign_000ccba0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 0x20)" ( (binary_expression "param_2 == 0x20" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_verify_recover_000cbd10" * (cast_expression "(code *)PTR_EVP_PKEY_verify_recover_000cbd10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" { (if_statement "if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 0x200)" ( (binary_expression "param_2 == 0x200" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_decrypt_000cc354" * (cast_expression "(code *)PTR_EVP_PKEY_decrypt_000cc354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }" if (parenthesized_expression "(param_2 == 0x400)" ( (binary_expression "param_2 == 0x400" identifier == number_literal) )) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }" { (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3)" identifier = (call_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)" ( (pointer_expression "*(code *)PTR_EVP_PKEY_derive_000cc3a4" * (cast_expression "(code *)PTR_EVP_PKEY_derive_000cc3a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 )))) ;) (return_statement return IDENT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004deb0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)" (identifier "FUN_0004deb0") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,undefined4 param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }\n  if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_2 == 0x100) {\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_2 == 0x100)" (( "(") (binary_expression "param_2 == 0x100" (identifier "param_2") (== "==") (number_literal "0x100")) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_encrypt_000ccae0)" (( "(") (pointer_expression "*(code *)PTR_EVP_PKEY_encrypt_000ccae0" (* "*") (cast_expression "(code *)PTR_EVP_PKEY_encrypt_000ccae0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_EVP_PKEY_encrypt_000ccae0"))) () ")")) (argument_list "(param_1,param_3,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (param_2 < 0x101) {\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < 0x101)" (( "(") (binary_expression "param_2 < 0x101" (identifier "param_2") (< "<") (number_literal "0x101")) () ")")) (compound_statement "{\n    if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 8) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(param_2 == 8)" (( "(") (binary_expression "param_2 == 8" (identifier "param_2") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_sign_000ccba0)" (( "(") (pointer_expression "*(code *)PTR_EVP_PKEY_sign_000ccba0" (* "*") (cast_expression "(code *)PTR_EVP_PKEY_sign_000ccba0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_EVP_PKEY_sign_000ccba0"))) () ")")) (argument_list "(param_1,param_3,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (param_2 == 0x20) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0x20)" (( "(") (binary_expression "param_2 == 0x20" (identifier "param_2") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)\n                        (param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)" (( "(") (pointer_expression "*(code *)PTR_EVP_PKEY_verify_recover_000cbd10" (* "*") (cast_expression "(code *)PTR_EVP_PKEY_verify_recover_000cbd10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_EVP_PKEY_verify_recover_000cbd10"))) () ")")) (argument_list "(param_1,param_3,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" (else "else") (compound_statement "{\n    if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }\n    if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0x200) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0x200)" (( "(") (binary_expression "param_2 == 0x200" (identifier "param_2") (== "==") (number_literal "0x200")) () ")")) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_decrypt_000cc354)" (( "(") (pointer_expression "*(code *)PTR_EVP_PKEY_decrypt_000cc354" (* "*") (cast_expression "(code *)PTR_EVP_PKEY_decrypt_000cc354" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_EVP_PKEY_decrypt_000cc354"))) () ")")) (argument_list "(param_1,param_3,param_4,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (param_2 == 0x400) {\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0x400)" (( "(") (binary_expression "param_2 == 0x400" (identifier "param_2") (== "==") (number_literal "0x400")) () ")")) (compound_statement "{\n      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);" (assignment_expression "uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR_EVP_PKEY_derive_000cc3a4)" (( "(") (pointer_expression "*(code *)PTR_EVP_PKEY_derive_000cc3a4" (* "*") (cast_expression "(code *)PTR_EVP_PKEY_derive_000cc3a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_EVP_PKEY_derive_000cc3a4"))) () ")")) (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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) (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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) (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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) (identifier) (identifier) (identifier))))) (return_statement (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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) (identifier) (identifier) (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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))))) (return_statement (identifier))))))) (return_statement (number_literal)))))

undefined4
MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5
            ,undefined4 param_6)

{
  undefined4 uVar1;
  
  if (param_2 == 0x100) {
    uVar1 = (*(code *)PTR_EVP_PKEY_encrypt_000ccae0)(param_1,param_3,param_4,param_5,param_6);
    return uVar1;
  }
  if (param_2 < 0x101) {
    if (param_2 == 8) {
      uVar1 = (*(code *)PTR_EVP_PKEY_sign_000ccba0)(param_1,param_3,param_4,param_5,param_6);
      return uVar1;
    }
    if (param_2 == 0x20) {
      uVar1 = (*(code *)PTR_EVP_PKEY_verify_recover_000cbd10)
                        (param_1,param_3,param_4,param_5,param_6);
      return uVar1;
    }
  }
  else {
    if (param_2 == 0x200) {
      uVar1 = (*(code *)PTR_EVP_PKEY_decrypt_000cc354)(param_1,param_3,param_4,param_5,param_6);
      return uVar1;
    }
    if (param_2 == 0x400) {
      uVar1 = (*(code *)PTR_EVP_PKEY_derive_000cc3a4)(param_1,param_3);
      return uVar1;
    }
  }
  return 0;
}

