
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

void MHD_connection_close_(MHD_Connection *connection,MHD_RequestTerminationCode termination_code)

{
  MHD_Response *pMVar1;
  MHD_Daemon *pMVar2;
  MHD_RequestCompletedCallback p_Var3;
  
  pMVar2 = connection->daemon;
  pMVar1 = connection->response;
  MHD_connection_mark_closed_(connection);
  if (pMVar1 != (MHD_Response *)0x0) {
    connection->response = (MHD_Response *)0x0;
    (*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1);
  }
  p_Var3 = pMVar2->notify_completed;
  if ((p_Var3 != (MHD_RequestCompletedCallback)0x0) && (connection->client_aware != false)) {
    (*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code);
  }
  connection->client_aware = false;
  return;
}



void FUN_00014274(int param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  code *pcVar3;
  
  iVar2 = *(int *)(param_1 + 0x18);
  iVar1 = *(int *)(param_1 + 0x24);
  FUN_000141cc();
  if (iVar1 != 0) {
    *(undefined4 *)(param_1 + 0x24) = 0;
    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);
  }
  pcVar3 = *(code **)(iVar2 + 0x48);
  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {
    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);
  }
  *(undefined1 *)(param_1 + 0xa0) = 0;
  return;
}


lui gp,0x3
addiu gp,gp,0x4dbc
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s3,a1,zero
lw s2,0x18(a0)
lw s1,0x24(a0)
lw t9,-0x7fac(gp)
bal 0x000141cc
_nop
lw gp,0x10(sp)
beq s1,zero,0x000142d8
_or a0,s1,zero
sw zero,0x24(s0)
lw t9,-0x7d54(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,0x48(s2)
beq t9,zero,0x00014308
_nop
lbu v0,0xa0(s0)
beq v0,zero,0x00014308
_or a3,s3,zero
addiu a2,s0,0x2c
or a1,s0,zero
lw a0,0x4c(s2)
jalr t9
_nop
lw gp,0x10(sp)
sb zero,0xa0(s0)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_00014274(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00014274(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00014274(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "FUN_000141cc();" (call_expression "FUN_000141cc()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);" (call_expression "(*(code *)PTR_MHD_destroy_response_000412dc)(iVar1)" (parenthesized_expression "(*(code *)PTR_MHD_destroy_response_000412dc)" ( (pointer_expression "*(code *)PTR_MHD_destroy_response_000412dc" * (cast_expression "(code *)PTR_MHD_destroy_response_000412dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "pcVar3 = *(code **)(iVar2 + 0x48);" (assignment_expression "pcVar3 = *(code **)(iVar2 + 0x48)" identifier = (pointer_expression "*(code **)(iVar2 + 0x48)" * (cast_expression "(code **)(iVar2 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x48)" ( (binary_expression "iVar2 + 0x48" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }" if (parenthesized_expression "((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0'))" ( (binary_expression "(pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')" (parenthesized_expression "(pcVar3 != (code *)0x0)" ( (binary_expression "pcVar3 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(char *)(param_1 + 0xa0) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xa0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa0)" * (cast_expression "(char *)(param_1 + 0xa0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }" { (expression_statement "(*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);" (call_expression "(*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x4c)" * (cast_expression "(undefined4 *)(iVar2 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x4c)" ( (binary_expression "iVar2 + 0x4c" identifier + number_literal) )))) , identifier , (binary_expression "param_1 + 0x2c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" * (cast_expression "(undefined1 *)(param_1 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nvoid MHD_connection_close_(MHD_Connection *connection,MHD_RequestTerminationCode termination_code)\n\n{\n  MHD_Response *pMVar1;\n  MHD_Daemon *pMVar2;\n  MHD_RequestCompletedCallback p_Var3;\n  \n  pMVar2 = connection->daemon;\n  pMVar1 = connection->response;\n  MHD_connection_mark_closed_(connection);\n  if (pMVar1 != (MHD_Response *)0x0) {\n    connection->response = (MHD_Response *)0x0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1);\n  }\n  p_Var3 = pMVar2->notify_completed;\n  if ((p_Var3 != (MHD_RequestCompletedCallback)0x0) && (connection->client_aware != false)) {\n    (*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code);\n  }\n  connection->client_aware = false;\n  return;\n}\n\n" comment comment comment (function_definition "void MHD_connection_close_(MHD_Connection *connection,MHD_RequestTerminationCode termination_code)\n\n{\n  MHD_Response *pMVar1;\n  MHD_Daemon *pMVar2;\n  MHD_RequestCompletedCallback p_Var3;\n  \n  pMVar2 = connection->daemon;\n  pMVar1 = connection->response;\n  MHD_connection_mark_closed_(connection);\n  if (pMVar1 != (MHD_Response *)0x0) {\n    connection->response = (MHD_Response *)0x0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1);\n  }\n  p_Var3 = pMVar2->notify_completed;\n  if ((p_Var3 != (MHD_RequestCompletedCallback)0x0) && (connection->client_aware != false)) {\n    (*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code);\n  }\n  connection->client_aware = false;\n  return;\n}" primitive_type (function_declarator "MHD_connection_close_(MHD_Connection *connection,MHD_RequestTerminationCode termination_code)" identifier (parameter_list "(MHD_Connection *connection,MHD_RequestTerminationCode termination_code)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "MHD_RequestTerminationCode termination_code" type_identifier identifier) ))) (compound_statement "{\n  MHD_Response *pMVar1;\n  MHD_Daemon *pMVar2;\n  MHD_RequestCompletedCallback p_Var3;\n  \n  pMVar2 = connection->daemon;\n  pMVar1 = connection->response;\n  MHD_connection_mark_closed_(connection);\n  if (pMVar1 != (MHD_Response *)0x0) {\n    connection->response = (MHD_Response *)0x0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1);\n  }\n  p_Var3 = pMVar2->notify_completed;\n  if ((p_Var3 != (MHD_RequestCompletedCallback)0x0) && (connection->client_aware != false)) {\n    (*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code);\n  }\n  connection->client_aware = false;\n  return;\n}" { (declaration "MHD_Response *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "MHD_Daemon *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "MHD_RequestCompletedCallback p_Var3;" type_identifier identifier ;) (expression_statement "pMVar2 = connection->daemon;" (assignment_expression "pMVar2 = connection->daemon" identifier = (field_expression "connection->daemon" identifier -> field_identifier)) ;) (expression_statement "pMVar1 = connection->response;" (assignment_expression "pMVar1 = connection->response" identifier = (field_expression "connection->response" identifier -> field_identifier)) ;) (expression_statement "MHD_connection_mark_closed_(connection);" (call_expression "MHD_connection_mark_closed_(connection)" identifier (argument_list "(connection)" ( identifier ))) ;) (if_statement "if (pMVar1 != (MHD_Response *)0x0) {\n    connection->response = (MHD_Response *)0x0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1);\n  }" if (parenthesized_expression "(pMVar1 != (MHD_Response *)0x0)" ( (binary_expression "pMVar1 != (MHD_Response *)0x0" identifier != (cast_expression "(MHD_Response *)0x0" ( (type_descriptor "MHD_Response *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    connection->response = (MHD_Response *)0x0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1);\n  }" { (expression_statement "connection->response = (MHD_Response *)0x0;" (assignment_expression "connection->response = (MHD_Response *)0x0" (field_expression "connection->response" identifier -> field_identifier) = (cast_expression "(MHD_Response *)0x0" ( (type_descriptor "MHD_Response *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1);" (call_expression "(*(code *)PTR_MHD_destroy_response_000412dc)(pMVar1)" (parenthesized_expression "(*(code *)PTR_MHD_destroy_response_000412dc)" ( (pointer_expression "*(code *)PTR_MHD_destroy_response_000412dc" * (cast_expression "(code *)PTR_MHD_destroy_response_000412dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pMVar1)" ( identifier ))) ;) })) (expression_statement "p_Var3 = pMVar2->notify_completed;" (assignment_expression "p_Var3 = pMVar2->notify_completed" identifier = (field_expression "pMVar2->notify_completed" identifier -> field_identifier)) ;) (if_statement "if ((p_Var3 != (MHD_RequestCompletedCallback)0x0) && (connection->client_aware != false)) {\n    (*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code);\n  }" if (parenthesized_expression "((p_Var3 != (MHD_RequestCompletedCallback)0x0) && (connection->client_aware != false))" ( (binary_expression "(p_Var3 != (MHD_RequestCompletedCallback)0x0) && (connection->client_aware != false)" (parenthesized_expression "(p_Var3 != (MHD_RequestCompletedCallback)0x0)" ( (binary_expression "p_Var3 != (MHD_RequestCompletedCallback)0x0" identifier != (cast_expression "(MHD_RequestCompletedCallback)0x0" ( (type_descriptor "MHD_RequestCompletedCallback" type_identifier) ) number_literal)) )) && (parenthesized_expression "(connection->client_aware != false)" ( (binary_expression "connection->client_aware != false" (field_expression "connection->client_aware" identifier -> field_identifier) != false) ))) )) (compound_statement "{\n    (*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code);\n  }" { (expression_statement "(*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code);" (call_expression "(*p_Var3)(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code)" (parenthesized_expression "(*p_Var3)" ( (pointer_expression "*p_Var3" * identifier) )) (argument_list "(pMVar2->notify_completed_cls,connection,&connection->client_context,termination_code)" ( (field_expression "pMVar2->notify_completed_cls" identifier -> field_identifier) , identifier , (pointer_expression "&connection->client_context" & (field_expression "connection->client_context" identifier -> field_identifier)) , identifier ))) ;) })) (expression_statement "connection->client_aware = false;" (assignment_expression "connection->client_aware = false" (field_expression "connection->client_aware" identifier -> field_identifier) = false) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00014274(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00014274(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00014274(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "FUN_000141cc();" (call_expression "FUN_000141cc()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);" (call_expression "(*(code *)PTR_MHD_destroy_response_000412dc)(iVar1)" (parenthesized_expression "(*(code *)PTR_MHD_destroy_response_000412dc)" ( (pointer_expression "*(code *)PTR_MHD_destroy_response_000412dc" * (cast_expression "(code *)PTR_MHD_destroy_response_000412dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "pcVar3 = *(code **)(iVar2 + 0x48);" (assignment_expression "pcVar3 = *(code **)(iVar2 + 0x48)" identifier = (pointer_expression "*(code **)(iVar2 + 0x48)" * (cast_expression "(code **)(iVar2 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x48)" ( (binary_expression "iVar2 + 0x48" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }" if (parenthesized_expression "((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0'))" ( (binary_expression "(pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')" (parenthesized_expression "(pcVar3 != (code *)0x0)" ( (binary_expression "pcVar3 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(char *)(param_1 + 0xa0) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xa0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa0)" * (cast_expression "(char *)(param_1 + 0xa0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }" { (expression_statement "(*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);" (call_expression "(*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x4c)" * (cast_expression "(undefined4 *)(iVar2 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x4c)" ( (binary_expression "iVar2 + 0x4c" identifier + number_literal) )))) , identifier , (binary_expression "param_1 + 0x2c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" * (cast_expression "(undefined1 *)(param_1 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00014274(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00014274(int param_1,undefined4 param_2)" (identifier "FUN_00014274") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x18);\n  iVar1 = *(int *)(param_1 + 0x24);\n  FUN_000141cc();\n  if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }\n  pcVar3 = *(code **)(iVar2 + 0x48);\n  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }\n  *(undefined1 *)(param_1 + 0xa0) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "FUN_000141cc();" (call_expression "FUN_000141cc()" (identifier "FUN_000141cc") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);" (call_expression "(*(code *)PTR_MHD_destroy_response_000412dc)(iVar1)" (parenthesized_expression "(*(code *)PTR_MHD_destroy_response_000412dc)" (( "(") (pointer_expression "*(code *)PTR_MHD_destroy_response_000412dc" (* "*") (cast_expression "(code *)PTR_MHD_destroy_response_000412dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_MHD_destroy_response_000412dc"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar3 = *(code **)(iVar2 + 0x48);" (assignment_expression "pcVar3 = *(code **)(iVar2 + 0x48)" (identifier "pcVar3") (= "=") (pointer_expression "*(code **)(iVar2 + 0x48)" (* "*") (cast_expression "(code **)(iVar2 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x48)" (( "(") (binary_expression "iVar2 + 0x48" (identifier "iVar2") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (if_statement "if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }" (if "if") (parenthesized_expression "((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0'))" (( "(") (binary_expression "(pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')" (parenthesized_expression "(pcVar3 != (code *)0x0)" (( "(") (binary_expression "pcVar3 != (code *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(param_1 + 0xa0) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xa0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa0)" (* "*") (cast_expression "(char *)(param_1 + 0xa0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);\n  }" ({ "{") (expression_statement "(*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);" (call_expression "(*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x4c)" (( "(") (binary_expression "iVar2 + 0x4c" (identifier "iVar2") (+ "+") (number_literal "0x4c")) () ")")))) (, ",") (identifier "param_1") (, ",") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  int iVar2;
  code *pcVar3;
  
  iVar2 = *(int *)(param_1 + 0x18);
  iVar1 = *(int *)(param_1 + 0x24);
  FUN_000141cc();
  if (iVar1 != 0) {
    *(undefined4 *)(param_1 + 0x24) = 0;
    (*(code *)PTR_MHD_destroy_response_000412dc)(iVar1);
  }
  pcVar3 = *(code **)(iVar2 + 0x48);
  if ((pcVar3 != (code *)0x0) && (*(char *)(param_1 + 0xa0) != '\0')) {
    (*pcVar3)(*(undefined4 *)(iVar2 + 0x4c),param_1,param_1 + 0x2c,param_2);
  }
  *(undefined1 *)(param_1 + 0xa0) = 0;
  return;
}

