
/* 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 */

_Bool MHD_tls_connection_shutdown(MHD_Connection *connection)

{
  int iVar1;
  _Bool _Var2;
  
  if (MHD_TLS_CONN_WR_CLOSING < connection->tls_state) {
    return false;
  }
  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1);
  if (iVar1 != 0) {
    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {
      _Var2 = true;
      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;
    }
    else {
      _Var2 = false;
      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;
    }
    return _Var2;
  }
  connection->tls_state = MHD_TLS_CONN_WR_CLOSED;
  return true;
}



undefined4 FUN_00029dd8(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (4 < *(uint *)(param_1 + 0xf0)) {
    return 0;
  }
  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);
  if (iVar1 != 0) {
    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {
      uVar2 = 1;
      *(undefined4 *)(param_1 + 0xf0) = 4;
    }
    else {
      uVar2 = 0;
      *(undefined4 *)(param_1 + 0xf0) = 8;
    }
    return uVar2;
  }
  *(undefined4 *)(param_1 + 0xf0) = 5;
  return 1;
}


lui gp,0x2
addiu gp,gp,-0x2da8
addu gp,gp,t9
lw v0,0xf0(a0)
sltiu v0,v0,0x5
bne v0,zero,0x00029dfc
_or v0,zero,zero
jr ra
_nop
addiu sp,sp,-0x20
lw t9,-0x7e4c(gp)
li a1,0x1
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_lw a0,0xe4(a0)
beq v0,zero,0x00029e60
_li v1,-0x1c
beq v0,v1,0x00029e50
_li v1,-0x34
beq v0,v1,0x00029e50
_li v1,0x8
or v0,zero,zero
sw v1,0xf0(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
li v1,0x4
li v0,0x1
b 0x00029e40
_sw v1,0xf0(s0)
li v1,0x5
li v0,0x1
sw v1,0xf0(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_00029dd8(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00029dd8(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}" type_identifier (function_declarator "FUN_00029dd8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }" if (parenthesized_expression "(4 < *(uint *)(param_1 + 0xf0))" ( (binary_expression "4 < *(uint *)(param_1 + 0xf0)" number_literal < (pointer_expression "*(uint *)(param_1 + 0xf0)" * (cast_expression "(uint *)(param_1 + 0xf0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) ))))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1)" identifier = (call_expression "(*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1)" (parenthesized_expression "(*(code *)PTR_gnutls_bye_0003f1e4)" ( (pointer_expression "*(code *)PTR_gnutls_bye_0003f1e4" * (cast_expression "(code *)PTR_gnutls_bye_0003f1e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xe4),1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xe4)" * (cast_expression "(undefined4 *)(param_1 + 0xe4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe4)" ( (binary_expression "param_1 + 0xe4" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }" { (if_statement "if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" if (parenthesized_expression "((iVar1 == -0x1c) || (iVar1 == -0x34))" ( (binary_expression "(iVar1 == -0x1c) || (iVar1 == -0x34)" (parenthesized_expression "(iVar1 == -0x1c)" ( (binary_expression "iVar1 == -0x1c" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == -0x34)" ( (binary_expression "iVar1 == -0x34" identifier == number_literal) ))) )) (compound_statement "{\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" * (cast_expression "(undefined4 *)(param_1 + 0xf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" else (compound_statement "{\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 8;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 8" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" * (cast_expression "(undefined4 *)(param_1 + 0xf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" * (cast_expression "(undefined4 *)(param_1 + 0xf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(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\n_Bool MHD_tls_connection_shutdown(MHD_Connection *connection)\n\n{\n  int iVar1;\n  _Bool _Var2;\n  \n  if (MHD_TLS_CONN_WR_CLOSING < connection->tls_state) {\n    return false;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      _Var2 = true;\n      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;\n    }\n    else {\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }\n    return _Var2;\n  }\n  connection->tls_state = MHD_TLS_CONN_WR_CLOSED;\n  return true;\n}\n\n" comment comment comment (function_definition "_Bool MHD_tls_connection_shutdown(MHD_Connection *connection)\n\n{\n  int iVar1;\n  _Bool _Var2;\n  \n  if (MHD_TLS_CONN_WR_CLOSING < connection->tls_state) {\n    return false;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      _Var2 = true;\n      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;\n    }\n    else {\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }\n    return _Var2;\n  }\n  connection->tls_state = MHD_TLS_CONN_WR_CLOSED;\n  return true;\n}" type_identifier (function_declarator "MHD_tls_connection_shutdown(MHD_Connection *connection)" identifier (parameter_list "(MHD_Connection *connection)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  _Bool _Var2;\n  \n  if (MHD_TLS_CONN_WR_CLOSING < connection->tls_state) {\n    return false;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      _Var2 = true;\n      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;\n    }\n    else {\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }\n    return _Var2;\n  }\n  connection->tls_state = MHD_TLS_CONN_WR_CLOSED;\n  return true;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (if_statement "if (MHD_TLS_CONN_WR_CLOSING < connection->tls_state) {\n    return false;\n  }" if (parenthesized_expression "(MHD_TLS_CONN_WR_CLOSING < connection->tls_state)" ( (binary_expression "MHD_TLS_CONN_WR_CLOSING < connection->tls_state" identifier < (field_expression "connection->tls_state" identifier -> field_identifier)) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1)" identifier = (call_expression "(*(code *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1)" (parenthesized_expression "(*(code *)PTR_gnutls_bye_0003f1e4)" ( (pointer_expression "*(code *)PTR_gnutls_bye_0003f1e4" * (cast_expression "(code *)PTR_gnutls_bye_0003f1e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(connection->tls_session,1)" ( (field_expression "connection->tls_session" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      _Var2 = true;\n      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;\n    }\n    else {\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }\n    return _Var2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      _Var2 = true;\n      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;\n    }\n    else {\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }\n    return _Var2;\n  }" { (if_statement "if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      _Var2 = true;\n      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;\n    }\n    else {\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }" if (parenthesized_expression "((iVar1 == -0x1c) || (iVar1 == -0x34))" ( (binary_expression "(iVar1 == -0x1c) || (iVar1 == -0x34)" (parenthesized_expression "(iVar1 == -0x1c)" ( (binary_expression "iVar1 == -0x1c" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == -0x34)" ( (binary_expression "iVar1 == -0x34" identifier == number_literal) ))) )) (compound_statement "{\n      _Var2 = true;\n      connection->tls_state = MHD_TLS_CONN_WR_CLOSING;\n    }" { (expression_statement "_Var2 = true;" (assignment_expression "_Var2 = true" identifier = true) ;) (expression_statement "connection->tls_state = MHD_TLS_CONN_WR_CLOSING;" (assignment_expression "connection->tls_state = MHD_TLS_CONN_WR_CLOSING" (field_expression "connection->tls_state" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }" else (compound_statement "{\n      _Var2 = false;\n      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;\n    }" { (expression_statement "_Var2 = false;" (assignment_expression "_Var2 = false" identifier = false) ;) (expression_statement "connection->tls_state = MHD_TLS_CONN_TLS_FAILED;" (assignment_expression "connection->tls_state = MHD_TLS_CONN_TLS_FAILED" (field_expression "connection->tls_state" identifier -> field_identifier) = identifier) ;) }))) (return_statement "return _Var2;" return identifier ;) })) (expression_statement "connection->tls_state = MHD_TLS_CONN_WR_CLOSED;" (assignment_expression "connection->tls_state = MHD_TLS_CONN_WR_CLOSED" (field_expression "connection->tls_state" identifier -> field_identifier) = identifier) ;) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 FUN_00029dd8(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00029dd8(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}" type_identifier (function_declarator "FUN_00029dd8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }" if (parenthesized_expression "(4 < *(uint *)(param_1 + 0xf0))" ( (binary_expression "4 < *(uint *)(param_1 + 0xf0)" number_literal < (pointer_expression "*(uint *)(param_1 + 0xf0)" * (cast_expression "(uint *)(param_1 + 0xf0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) ))))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1)" identifier = (call_expression "(*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1)" (parenthesized_expression "(*(code *)PTR_gnutls_bye_0003f1e4)" ( (pointer_expression "*(code *)PTR_gnutls_bye_0003f1e4" * (cast_expression "(code *)PTR_gnutls_bye_0003f1e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xe4),1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xe4)" * (cast_expression "(undefined4 *)(param_1 + 0xe4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe4)" ( (binary_expression "param_1 + 0xe4" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }" { (if_statement "if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" if (parenthesized_expression "((iVar1 == -0x1c) || (iVar1 == -0x34))" ( (binary_expression "(iVar1 == -0x1c) || (iVar1 == -0x34)" (parenthesized_expression "(iVar1 == -0x1c)" ( (binary_expression "iVar1 == -0x1c" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == -0x34)" ( (binary_expression "iVar1 == -0x34" identifier == number_literal) ))) )) (compound_statement "{\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" * (cast_expression "(undefined4 *)(param_1 + 0xf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" else (compound_statement "{\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 8;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 8" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" * (cast_expression "(undefined4 *)(param_1 + 0xf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" * (cast_expression "(undefined4 *)(param_1 + 0xf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (return_statement return 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 LIT ;) })))
(function_definition "undefined4 FUN_00029dd8(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00029dd8(int param_1)" (identifier "FUN_00029dd8") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);\n  if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }\n  *(undefined4 *)(param_1 + 0xf0) = 5;\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (4 < *(uint *)(param_1 + 0xf0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(4 < *(uint *)(param_1 + 0xf0))" (( "(") (binary_expression "4 < *(uint *)(param_1 + 0xf0)" (number_literal "4") (< "<") (pointer_expression "*(uint *)(param_1 + 0xf0)" (* "*") (cast_expression "(uint *)(param_1 + 0xf0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")"))))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1)" (parenthesized_expression "(*(code *)PTR_gnutls_bye_0003f1e4)" (( "(") (pointer_expression "*(code *)PTR_gnutls_bye_0003f1e4" (* "*") (cast_expression "(code *)PTR_gnutls_bye_0003f1e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gnutls_bye_0003f1e4"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xe4),1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xe4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe4)" (( "(") (binary_expression "param_1 + 0xe4" (identifier "param_1") (+ "+") (number_literal "0xe4")) () ")")))) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }\n    return uVar2;\n  }" ({ "{") (if_statement "if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }\n    else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" (if "if") (parenthesized_expression "((iVar1 == -0x1c) || (iVar1 == -0x34))" (( "(") (binary_expression "(iVar1 == -0x1c) || (iVar1 == -0x34)" (parenthesized_expression "(iVar1 == -0x1c)" (( "(") (binary_expression "iVar1 == -0x1c" (identifier "iVar1") (== "==") (number_literal "-0x1c")) () ")")) (|| "||") (parenthesized_expression "(iVar1 == -0x34)" (( "(") (binary_expression "iVar1 == -0x34" (identifier "iVar1") (== "==") (number_literal "-0x34")) () ")"))) () ")")) (compound_statement "{\n      uVar2 = 1;\n      *(undefined4 *)(param_1 + 0xf0) = 4;\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 4;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 4" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xf0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" (else "else") (compound_statement "{\n      uVar2 = 0;\n      *(undefined4 *)(param_1 + 0xf0) = 8;\n    }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 8;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 8" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xf0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (= "=") (number_literal "8")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xf0) = 5;" (assignment_expression "*(undefined4 *)(param_1 + 0xf0) = 5" (pointer_expression "*(undefined4 *)(param_1 + 0xf0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xf0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (= "=") (number_literal "5")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* 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 */

type_1 function_1(type_2 *connection)

{
  int var_2;
  type_1 _Var2;
  
  if (var_1 < connection->tls_state) {
    return false;
  }
  var_2 = (*(type_3 *)PTR_gnutls_bye_0003f1e4)(connection->tls_session,1);
  if (var_2 != 0) {
    if ((var_2 == -0x1c) || (var_2 == -0x34)) {
      _Var2 = true;
      connection->tls_state = var_1;
    }
    else {
      _Var2 = false;
      connection->tls_state = MHD_TLS_CONN_TLS_FAILED;
    }
    return _Var2;
  }
  connection->tls_state = MHD_TLS_CONN_WR_CLOSED;
  return true;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (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))))))) consequence: (compound_statement (return_statement (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 (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))))) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (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 (number_literal)))))

undefined4 MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (4 < *(uint *)(param_1 + 0xf0)) {
    return 0;
  }
  iVar1 = (*(code *)PTR_gnutls_bye_0003f1e4)(*(undefined4 *)(param_1 + 0xe4),1);
  if (iVar1 != 0) {
    if ((iVar1 == -0x1c) || (iVar1 == -0x34)) {
      uVar2 = 1;
      *(undefined4 *)(param_1 + 0xf0) = 4;
    }
    else {
      uVar2 = 0;
      *(undefined4 *)(param_1 + 0xf0) = 8;
    }
    return uVar2;
  }
  *(undefined4 *)(param_1 + 0xf0) = 5;
  return 1;
}

