
ParameterError str2tls_max(long *val,char *str)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  
  puVar1 = PTR_DAT_00054038;
  if (str == (char *)0x0) {
    return PARAM_REQUIRES_PARAMETER;
  }
  iVar4 = 0;
  iVar2 = (*(code *)PTR_strcmp_00054370)(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);
  puVar5 = (undefined4 *)(puVar1 + 0x3b10);
  while( true ) {
    if (iVar2 == 0) {
      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);
      return PARAM_OK;
    }
    iVar4 = iVar4 + 1;
    if (iVar4 == 5) break;
    uVar3 = *puVar5;
    puVar5 = puVar5 + 2;
    iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3);
  }
  return PARAM_BAD_USE;
}



undefined4 str2tls_max(undefined4 *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  
  puVar1 = PTR_DAT_00054038;
  if (param_2 == 0) {
    return 3;
  }
  iVar4 = 0;
  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);
  puVar5 = (undefined4 *)(puVar1 + 0x3b10);
  while( true ) {
    if (iVar2 == 0) {
      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);
      return 0;
    }
    iVar4 = iVar4 + 1;
    if (iVar4 == 5) break;
    uVar3 = *puVar5;
    puVar5 = puVar5 + 2;
    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);
  }
  return 4;
}


lui gp,0x3
addiu gp,gp,0x67e8
addu gp,gp,t9
beq a1,zero,0x0002590c
_lw t9,-0x7ca0(gp)
addiu sp,sp,-0x30
lw v0,-0x7fc0(gp)
sw s2,0x20(sp)
or s2,a1,zero
sw s1,0x1c(sp)
addiu a1,v0,0x8b0
sw gp,0x10(sp)
sw s4,0x28(sp)
li s4,0x5
sw s3,0x24(sp)
or s3,a0,zero
sw s0,0x18(sp)
or a0,s2,zero
sw ra,0x2c(sp)
lw s1,-0x7fd8(gp)
jalr t9
_or s0,zero,zero
lw gp,0x10(sp)
beq v0,zero,0x000258b0
_addiu s1,s1,0x3b10
addiu s0,s0,0x1
beq s0,s4,0x000258e8
_lw t9,-0x7ca0(gp)
or a0,s2,zero
lw a1,0x0(s1)
jalr t9
_addiu s1,s1,0x8
bne v0,zero,0x0002588c
_lw gp,0x10(sp)
lw v1,-0x7fd8(gp)
sll s0,s0,0x3
lw ra,0x2c(sp)
lw s4,0x28(sp)
addiu v1,v1,0x3b08
lw s2,0x20(sp)
lw s1,0x1c(sp)
addu s0,v1,s0
lw v1,0x4(s0)
lw s0,0x18(sp)
sw v1,0x0(s3)
lw s3,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw ra,0x2c(sp)
li v0,0x4
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
jr ra
_li v0,0x3
(translation_unit "undefined4 str2tls_max(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}\n\n" (function_definition "undefined4 str2tls_max(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}" type_identifier (function_declarator "str2tls_max(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar1 = PTR_DAT_00054038;" (assignment_expression "puVar1 = PTR_DAT_00054038" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    return 3;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 3;\n  }" { (return_statement "return 3;" return number_literal ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" identifier = (call_expression "(*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" ( (pointer_expression "*(code *)PTR_strcmp_00054370" * (cast_expression "(code *)PTR_strcmp_00054370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" ( identifier , (binary_expression "PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0" identifier + number_literal) )))) ;) (expression_statement "puVar5 = (undefined4 *)(puVar1 + 0x3b10);" (assignment_expression "puVar5 = (undefined4 *)(puVar1 + 0x3b10)" identifier = (cast_expression "(undefined4 *)(puVar1 + 0x3b10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x3b10)" ( (binary_expression "puVar1 + 0x3b10" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }" { (if_statement "if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }" { (expression_statement "*param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);" (assignment_expression "*param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" * (cast_expression "(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" ( (binary_expression "PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c" (binary_expression "PTR_DAT_00054038 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) ))))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 5) break;" if (parenthesized_expression "(iVar4 == 5)" ( (binary_expression "iVar4 == 5" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3)" identifier = (call_expression "(*(code *)PTR_strcmp_00054370)(param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" ( (pointer_expression "*(code *)PTR_strcmp_00054370" * (cast_expression "(code *)PTR_strcmp_00054370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,uVar3)" ( identifier , identifier )))) ;) })) (return_statement "return 4;" return number_literal ;) })))
(translation_unit "ParameterError str2tls_max(long *val,char *str)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (str == (char *)0x0) {\n    return PARAM_REQUIRES_PARAMETER;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return PARAM_OK;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3);\n  }\n  return PARAM_BAD_USE;\n}\n\n" (function_definition "ParameterError str2tls_max(long *val,char *str)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (str == (char *)0x0) {\n    return PARAM_REQUIRES_PARAMETER;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return PARAM_OK;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3);\n  }\n  return PARAM_BAD_USE;\n}" type_identifier (function_declarator "str2tls_max(long *val,char *str)" identifier (parameter_list "(long *val,char *str)" ( (parameter_declaration "long *val" (sized_type_specifier "long" long) (pointer_declarator "*val" * identifier)) , (parameter_declaration "char *str" primitive_type (pointer_declarator "*str" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (str == (char *)0x0) {\n    return PARAM_REQUIRES_PARAMETER;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return PARAM_OK;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3);\n  }\n  return PARAM_BAD_USE;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar1 = PTR_DAT_00054038;" (assignment_expression "puVar1 = PTR_DAT_00054038" identifier = identifier) ;) (if_statement "if (str == (char *)0x0) {\n    return PARAM_REQUIRES_PARAMETER;\n  }" if (parenthesized_expression "(str == (char *)0x0)" ( (binary_expression "str == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return PARAM_REQUIRES_PARAMETER;\n  }" { (return_statement "return PARAM_REQUIRES_PARAMETER;" return identifier ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" identifier = (call_expression "(*(code *)PTR_strcmp_00054370)(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" ( (pointer_expression "*(code *)PTR_strcmp_00054370" * (cast_expression "(code *)PTR_strcmp_00054370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(str,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" ( identifier , (binary_expression "PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0" identifier + number_literal) )))) ;) (expression_statement "puVar5 = (undefined4 *)(puVar1 + 0x3b10);" (assignment_expression "puVar5 = (undefined4 *)(puVar1 + 0x3b10)" identifier = (cast_expression "(undefined4 *)(puVar1 + 0x3b10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x3b10)" ( (binary_expression "puVar1 + 0x3b10" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return PARAM_OK;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == 0) {\n      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return PARAM_OK;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3);\n  }" { (if_statement "if (iVar2 == 0) {\n      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return PARAM_OK;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return PARAM_OK;\n    }" { (expression_statement "*val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);" (assignment_expression "*val = *(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" (pointer_expression "*val" * identifier) = (pointer_expression "*(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" * (cast_expression "(long *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" ( (binary_expression "PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c" (binary_expression "PTR_DAT_00054038 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) ))))) ;) (return_statement "return PARAM_OK;" return identifier ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 5) break;" if (parenthesized_expression "(iVar4 == 5)" ( (binary_expression "iVar4 == 5" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(str,uVar3)" identifier = (call_expression "(*(code *)PTR_strcmp_00054370)(str,uVar3)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" ( (pointer_expression "*(code *)PTR_strcmp_00054370" * (cast_expression "(code *)PTR_strcmp_00054370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(str,uVar3)" ( identifier , identifier )))) ;) })) (return_statement "return PARAM_BAD_USE;" return identifier ;) })))
(translation_unit "undefined4 str2tls_max(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}\n\n" (function_definition "undefined4 str2tls_max(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}" type_identifier (function_declarator "str2tls_max(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar1 = PTR_DAT_00054038;" (assignment_expression "puVar1 = PTR_DAT_00054038" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    return 3;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 3;\n  }" { (return_statement "return 3;" return number_literal ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" identifier = (call_expression "(*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" ( (pointer_expression "*(code *)PTR_strcmp_00054370" * (cast_expression "(code *)PTR_strcmp_00054370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" ( identifier , (binary_expression "PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0" identifier + number_literal) )))) ;) (expression_statement "puVar5 = (undefined4 *)(puVar1 + 0x3b10);" (assignment_expression "puVar5 = (undefined4 *)(puVar1 + 0x3b10)" identifier = (cast_expression "(undefined4 *)(puVar1 + 0x3b10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x3b10)" ( (binary_expression "puVar1 + 0x3b10" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }" { (if_statement "if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }" { (expression_statement "*param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);" (assignment_expression "*param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" * (cast_expression "(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" ( (binary_expression "PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c" (binary_expression "PTR_DAT_00054038 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) ))))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 5) break;" if (parenthesized_expression "(iVar4 == 5)" ( (binary_expression "iVar4 == 5" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3)" identifier = (call_expression "(*(code *)PTR_strcmp_00054370)(param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" ( (pointer_expression "*(code *)PTR_strcmp_00054370" * (cast_expression "(code *)PTR_strcmp_00054370" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,uVar3)" ( identifier , identifier )))) ;) })) (return_statement "return 4;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (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) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) ))))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 LIT ;) })))
(function_definition "undefined4 str2tls_max(undefined4 *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}" (type_identifier "undefined4") (function_declarator "str2tls_max(undefined4 *param_1,int param_2)" (identifier "str2tls_max") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  \n  puVar1 = PTR_DAT_00054038;\n  if (param_2 == 0) {\n    return 3;\n  }\n  iVar4 = 0;\n  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);\n  puVar5 = (undefined4 *)(puVar1 + 0x3b10);\n  while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }\n  return 4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar1 = PTR_DAT_00054038;" (assignment_expression "puVar1 = PTR_DAT_00054038" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00054038")) (; ";")) (if_statement "if (param_2 == 0) {\n    return 3;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 3;\n  }" ({ "{") (return_statement "return 3;" (return "return") (number_literal "3") (; ";")) (} "}"))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" (( "(") (pointer_expression "*(code *)PTR_strcmp_00054370" (* "*") (cast_expression "(code *)PTR_strcmp_00054370" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_00054370"))) () ")")) (argument_list "(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0)" (( "(") (identifier "param_2") (, ",") (binary_expression "PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0" (identifier "PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050") (+ "+") (number_literal "0x8b0")) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)(puVar1 + 0x3b10);" (assignment_expression "puVar5 = (undefined4 *)(puVar1 + 0x3b10)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(puVar1 + 0x3b10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x3b10)" (( "(") (binary_expression "puVar1 + 0x3b10" (identifier "puVar1") (+ "+") (number_literal "0x3b10")) () ")")))) (; ";")) (while_statement "while( true ) {\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 5) break;\n    uVar3 = *puVar5;\n    puVar5 = puVar5 + 2;\n    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);\n  }" ({ "{") (if_statement "if (iVar2 == 0) {\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);\n      return 0;\n    }" ({ "{") (expression_statement "*param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);" (assignment_expression "*param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c)" (( "(") (binary_expression "PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c" (binary_expression "PTR_DAT_00054038 + iVar4 * 8" (identifier "PTR_DAT_00054038") (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8"))) (+ "+") (number_literal "0x3b0c")) () ")"))))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar4 == 5) break;" (if "if") (parenthesized_expression "(iVar4 == 5)" (( "(") (binary_expression "iVar4 == 5" (identifier "iVar4") (== "==") (number_literal "5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" (identifier "uVar3") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strcmp_00054370)(param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_strcmp_00054370)" (( "(") (pointer_expression "*(code *)PTR_strcmp_00054370" (* "*") (cast_expression "(code *)PTR_strcmp_00054370" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_00054370"))) () ")")) (argument_list "(param_2,uVar3)" (( "(") (identifier "param_2") (, ",") (identifier "uVar3") () ")")))) (; ";")) (} "}"))) (return_statement "return 4;" (return "return") (number_literal "4") (; ";")) (} "}")))

type_1 function_1(long *val,char *var_1)

{
  type_2 *var_3;
  int var_4;
  type_3 uVar3;
  int var_6;
  type_3 *var_7;
  
  var_3 = var_5;
  if (var_1 == (char *)0x0) {
    return PARAM_REQUIRES_PARAMETER;
  }
  var_6 = 0;
  var_4 = (*(type_4 *)PTR_strcmp_00054370)(var_1,var_2 + 0x8b0);
  var_7 = (type_3 *)(var_3 + 0x3b10);
  while( true ) {
    if (var_4 == 0) {
      *val = *(long *)(var_5 + var_6 * 8 + 0x3b0c);
      return PARAM_OK;
    }
    var_6 = var_6 + 1;
    if (var_6 == 5) break;
    uVar3 = *var_7;
    var_7 = var_7 + 2;
    var_4 = (*(type_4 *)PTR_strcmp_00054370)(var_1,uVar3);
  }
  return PARAM_BAD_USE;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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 (number_literal)))))

undefined4 MASKED(undefined4 *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  
  puVar1 = PTR_DAT_00054038;
  if (param_2 == 0) {
    return 3;
  }
  iVar4 = 0;
  iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,PTR_s_CURLOPT_SSL_ENABLE_ALPN_00054050 + 0x8b0);
  puVar5 = (undefined4 *)(puVar1 + 0x3b10);
  while( true ) {
    if (iVar2 == 0) {
      *param_1 = *(undefined4 *)(PTR_DAT_00054038 + iVar4 * 8 + 0x3b0c);
      return 0;
    }
    iVar4 = iVar4 + 1;
    if (iVar4 == 5) break;
    uVar3 = *puVar5;
    puVar5 = puVar5 + 2;
    iVar2 = (*(code *)PTR_strcmp_00054370)(param_2,uVar3);
  }
  return 4;
}

