
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode file_disconnect(connectdata *conn,_Bool dead_connection)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)(conn->data->req).protop;
  if (puVar1 != (undefined4 *)0x0) {
    (**(code **)PTR_Curl_cfree_000a6144)(puVar1[1]);
    puVar1[1] = 0;
    *puVar1 = 0;
    if (puVar1[2] != -1) {
      (*(code *)PTR_close_000a6a1c)();
    }
    puVar1[2] = 0xffffffff;
  }
  return CURLE_OK;
}



undefined4 FUN_00017604(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)(*param_1 + 0x154);
  if (puVar1 != (undefined4 *)0x0) {
    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);
    puVar1[1] = 0;
    *puVar1 = 0;
    if (puVar1[2] != -1) {
      (*(code *)PTR_close_000a6a1c)();
    }
    puVar1[2] = 0xffffffff;
  }
  return 0;
}


lui gp,0x9
addiu gp,gp,0x6b0c
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x20
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw s0,0x154(v0)
beq s0,zero,0x0001765c
_lw v0,-0x7fcc(gp)
lw t9,0x0(v0)
jalr t9
_lw a0,0x4(s0)
li v0,-0x1
lw a0,0x8(s0)
lw gp,0x10(sp)
sw zero,0x4(s0)
bne a0,v0,0x00017670
_sw zero,0x0(s0)
li v0,-0x1
sw v0,0x8(s0)
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x76f4(gp)
jalr t9
_nop
b 0x00017658
_li v0,-0x1
(translation_unit "undefined4 FUN_00017604(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00017604(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00017604(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(*param_1 + 0x154);" (assignment_expression "puVar1 = *(undefined4 **)(*param_1 + 0x154)" identifier = (pointer_expression "*(undefined4 **)(*param_1 + 0x154)" * (cast_expression "(undefined4 **)(*param_1 + 0x154)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x154)" ( (binary_expression "*param_1 + 0x154" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar1[1]);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar1[1])" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar1[1])" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (if_statement "if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }" if (parenthesized_expression "(puVar1[2] != -1)" ( (binary_expression "puVar1[2] != -1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_close_000a6a1c)();\n    }" { (expression_statement "(*(code *)PTR_close_000a6a1c)();" (call_expression "(*(code *)PTR_close_000a6a1c)()" (parenthesized_expression "(*(code *)PTR_close_000a6a1c)" ( (pointer_expression "*(code *)PTR_close_000a6a1c" * (cast_expression "(code *)PTR_close_000a6a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar1[2] = 0xffffffff;" (assignment_expression "puVar1[2] = 0xffffffff" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode file_disconnect(connectdata *conn,_Bool dead_connection)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(conn->data->req).protop;\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_Curl_cfree_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return CURLE_OK;\n}\n\n" comment (function_definition "CURLcode file_disconnect(connectdata *conn,_Bool dead_connection)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(conn->data->req).protop;\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_Curl_cfree_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return CURLE_OK;\n}" type_identifier (function_declarator "file_disconnect(connectdata *conn,_Bool dead_connection)" identifier (parameter_list "(connectdata *conn,_Bool dead_connection)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool dead_connection" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)(conn->data->req).protop;\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_Curl_cfree_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return CURLE_OK;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)(conn->data->req).protop;" (assignment_expression "puVar1 = (undefined4 *)(conn->data->req).protop" identifier = (cast_expression "(undefined4 *)(conn->data->req).protop" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(conn->data->req).protop" (parenthesized_expression "(conn->data->req)" ( (field_expression "conn->data->req" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_Curl_cfree_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)PTR_Curl_cfree_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" { (expression_statement "(**(code **)PTR_Curl_cfree_000a6144)(puVar1[1]);" (call_expression "(**(code **)PTR_Curl_cfree_000a6144)(puVar1[1])" (parenthesized_expression "(**(code **)PTR_Curl_cfree_000a6144)" ( (pointer_expression "**(code **)PTR_Curl_cfree_000a6144" * (pointer_expression "*(code **)PTR_Curl_cfree_000a6144" * (cast_expression "(code **)PTR_Curl_cfree_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar1[1])" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (if_statement "if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }" if (parenthesized_expression "(puVar1[2] != -1)" ( (binary_expression "puVar1[2] != -1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_close_000a6a1c)();\n    }" { (expression_statement "(*(code *)PTR_close_000a6a1c)();" (call_expression "(*(code *)PTR_close_000a6a1c)()" (parenthesized_expression "(*(code *)PTR_close_000a6a1c)" ( (pointer_expression "*(code *)PTR_close_000a6a1c" * (cast_expression "(code *)PTR_close_000a6a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar1[2] = 0xffffffff;" (assignment_expression "puVar1[2] = 0xffffffff" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return CURLE_OK;" return identifier ;) })))
(translation_unit "undefined4 FUN_00017604(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00017604(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00017604(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(*param_1 + 0x154);" (assignment_expression "puVar1 = *(undefined4 **)(*param_1 + 0x154)" identifier = (pointer_expression "*(undefined4 **)(*param_1 + 0x154)" * (cast_expression "(undefined4 **)(*param_1 + 0x154)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x154)" ( (binary_expression "*param_1 + 0x154" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar1[1]);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar1[1])" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar1[1])" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (if_statement "if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }" if (parenthesized_expression "(puVar1[2] != -1)" ( (binary_expression "puVar1[2] != -1" (subscript_expression "puVar1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_close_000a6a1c)();\n    }" { (expression_statement "(*(code *)PTR_close_000a6a1c)();" (call_expression "(*(code *)PTR_close_000a6a1c)()" (parenthesized_expression "(*(code *)PTR_close_000a6a1c)" ( (pointer_expression "*(code *)PTR_close_000a6a1c" * (cast_expression "(code *)PTR_close_000a6a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar1[2] = 0xffffffff;" (assignment_expression "puVar1[2] = 0xffffffff" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00017604(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00017604(int *param_1)" (identifier "FUN_00017604") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)(*param_1 + 0x154);\n  if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(*param_1 + 0x154);" (assignment_expression "puVar1 = *(undefined4 **)(*param_1 + 0x154)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(*param_1 + 0x154)" (* "*") (cast_expression "(undefined4 **)(*param_1 + 0x154)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x154)" (( "(") (binary_expression "*param_1 + 0x154" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x154")) () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }\n    puVar1[2] = 0xffffffff;\n  }" ({ "{") (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar1[1]);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar1[1])" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" (( "(") (pointer_expression "**(code **)PTR_PTR_free_000a6144" (* "*") (pointer_expression "*(code **)PTR_PTR_free_000a6144" (* "*") (cast_expression "(code **)PTR_PTR_free_000a6144" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_free_000a6144")))) () ")")) (argument_list "(puVar1[1])" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar1[2] != -1) {\n      (*(code *)PTR_close_000a6a1c)();\n    }" (if "if") (parenthesized_expression "(puVar1[2] != -1)" (( "(") (binary_expression "puVar1[2] != -1" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      (*(code *)PTR_close_000a6a1c)();\n    }" ({ "{") (expression_statement "(*(code *)PTR_close_000a6a1c)();" (call_expression "(*(code *)PTR_close_000a6a1c)()" (parenthesized_expression "(*(code *)PTR_close_000a6a1c)" (( "(") (pointer_expression "*(code *)PTR_close_000a6a1c" (* "*") (cast_expression "(code *)PTR_close_000a6a1c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_000a6a1c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar1[2] = 0xffffffff;" (assignment_expression "puVar1[2] = 0xffffffff" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *conn,type_3 dead_connection)

{
  type_4 *var_1;
  
  var_1 = (type_4 *)(conn->data->req).protop;
  if (var_1 != (type_4 *)0x0) {
    (**(type_5 **)PTR_Curl_cfree_000a6144)(var_1[1]);
    var_1[1] = 0;
    *var_1 = 0;
    if (var_1[2] != -1) {
      (*(type_5 *)PTR_close_000a6a1c)();
    }
    var_1[2] = 0xffffffff;
  }
  return CURLE_OK;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (return_statement (number_literal)))))

undefined4 MASKED(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)(*param_1 + 0x154);
  if (puVar1 != (undefined4 *)0x0) {
    (**(code **)PTR_PTR_free_000a6144)(puVar1[1]);
    puVar1[1] = 0;
    *puVar1 = 0;
    if (puVar1[2] != -1) {
      (*(code *)PTR_close_000a6a1c)();
    }
    puVar1[2] = 0xffffffff;
  }
  return 0;
}

