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

char * MHD_lookup_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key)

{
  char *str2;
  int iVar1;
  MHD_HTTP_Header *pMVar2;
  
  if (connection == (MHD_Connection *)0x0) {
    pMVar2 = (MHD_HTTP_Header *)0x0;
  }
  else {
    pMVar2 = connection->headers_received;
    if (pMVar2 == (MHD_HTTP_Header *)0x0) {
      pMVar2 = (MHD_HTTP_Header *)0x0;
    }
    else {
      do {
        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&
           ((str2 = pMVar2->header, str2 == key ||
            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&
             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {
          return pMVar2->value;
        }
        pMVar2 = pMVar2->next;
      } while (pMVar2 != (MHD_HTTP_Header *)0x0);
    }
  }
  return (char *)pMVar2;
}



long MHD_lookup_connection_value(long param_1,uint param_2,long param_3)

{
  int iVar1;
  long *plVar2;
  
  if (param_1 == 0) {
    plVar2 = (long *)0x0;
  }
  else {
    plVar2 = *(long **)(param_1 + 0x38);
    if (plVar2 == (long *)0x0) {
      plVar2 = (long *)0x0;
    }
    else {
      do {
        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&
           ((plVar2[1] == param_3 ||
            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))
        {
          return plVar2[2];
        }
        plVar2 = (long *)*plVar2;
      } while (plVar2 != (long *)0x0);
    }
  }
  return (long)plVar2;
}


PUSH R12
PUSH RBP
PUSH RBX
TEST RDI,RDI
JZ 0x00105dc6
MOV RBP,RDX
MOV R12D,ESI
MOV RBX,qword ptr [RDI + 0x38]
TEST RBX,RBX
JNZ 0x00105d95
JMP 0x00105dbe
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x00105dbe
TEST dword ptr [RBX + 0x18],R12D
JZ 0x00105d8d
MOV RSI,qword ptr [RBX + 0x8]
CMP RSI,RBP
JZ 0x00105dba
TEST RBP,RBP
JZ 0x00105d8d
TEST RSI,RSI
JZ 0x00105d8d
MOV RDI,RBP
CALL 0x001113ee
TEST EAX,EAX
JZ 0x00105d8d
MOV RBX,qword ptr [RBX + 0x10]
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV RBX,RDI
JMP 0x00105dbe
(translation_unit "long MHD_lookup_connection_value(long param_1,uint param_2,long param_3)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}\n\n" (function_definition "long MHD_lookup_connection_value(long param_1,uint param_2,long param_3)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}" (sized_type_specifier "long" long) (function_declarator "MHD_lookup_connection_value(long param_1,uint param_2,long param_3)" identifier (parameter_list "(long param_1,uint param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (if_statement "if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    plVar2 = (long *)0x0;\n  }" { (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" else (compound_statement "{\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" { (expression_statement "plVar2 = *(long **)(param_1 + 0x38);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x38)" identifier = (pointer_expression "*(long **)(param_1 + 0x38)" * (cast_expression "(long **)(param_1 + 0x38)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      plVar2 = (long *)0x0;\n    }" { (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" else (compound_statement "{\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" { (do_statement "do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);" do (compound_statement "{\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      }" { (if_statement "if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }" if (parenthesized_expression "(((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))" ( (binary_expression "((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))))" (parenthesized_expression "((*(uint *)(plVar2 + 3) & param_2) != 0)" ( (binary_expression "(*(uint *)(plVar2 + 3) & param_2) != 0" (parenthesized_expression "(*(uint *)(plVar2 + 3) & param_2)" ( (binary_expression "*(uint *)(plVar2 + 3) & param_2" (pointer_expression "*(uint *)(plVar2 + 3)" * (cast_expression "(uint *)(plVar2 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) )))) & identifier) )) != number_literal) )) && (parenthesized_expression "((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))))" ( (parenthesized_expression "(plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))" ( (binary_expression "plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))" (binary_expression "plVar2[1] == param_3" (subscript_expression "plVar2[1]" identifier [ number_literal ]) == identifier) || (parenthesized_expression "(((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))" ( (parenthesized_expression "((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))" ( (binary_expression "(param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)" (parenthesized_expression "(param_3 != 0 && (plVar2[1] != 0))" ( (binary_expression "param_3 != 0 && (plVar2[1] != 0)" (binary_expression "param_3 != 0" identifier != number_literal) && (parenthesized_expression "(plVar2[1] != 0)" ( (binary_expression "plVar2[1] != 0" (subscript_expression "plVar2[1]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "(iVar1 = FUN_001113ee(param_3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_001113ee(param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_001113ee(param_3)" identifier = (call_expression "FUN_001113ee(param_3)" identifier (argument_list "(param_3)" ( identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) ))) )) ))) )) (compound_statement "{\n          return plVar2[2];\n        }" { (return_statement "return plVar2[2];" return (subscript_expression "plVar2[2]" identifier [ number_literal ]) ;) })) (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) }) while (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) }))) (return_statement "return (long)plVar2;" return (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ;) })))
(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\nchar * MHD_lookup_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key)\n\n{\n  char *str2;\n  int iVar1;\n  MHD_HTTP_Header *pMVar2;\n  \n  if (connection == (MHD_Connection *)0x0) {\n    pMVar2 = (MHD_HTTP_Header *)0x0;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }\n    else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }\n  return (char *)pMVar2;\n}\n\n" comment comment comment (function_definition "char * MHD_lookup_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key)\n\n{\n  char *str2;\n  int iVar1;\n  MHD_HTTP_Header *pMVar2;\n  \n  if (connection == (MHD_Connection *)0x0) {\n    pMVar2 = (MHD_HTTP_Header *)0x0;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }\n    else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }\n  return (char *)pMVar2;\n}" primitive_type (pointer_declarator "* MHD_lookup_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key)" * (function_declarator "MHD_lookup_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key)" identifier (parameter_list "(MHD_Connection *connection,MHD_ValueKind kind,char *key)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "MHD_ValueKind kind" type_identifier identifier) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) )))) (compound_statement "{\n  char *str2;\n  int iVar1;\n  MHD_HTTP_Header *pMVar2;\n  \n  if (connection == (MHD_Connection *)0x0) {\n    pMVar2 = (MHD_HTTP_Header *)0x0;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }\n    else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }\n  return (char *)pMVar2;\n}" { (declaration "char *str2;" primitive_type (pointer_declarator "*str2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "MHD_HTTP_Header *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (if_statement "if (connection == (MHD_Connection *)0x0) {\n    pMVar2 = (MHD_HTTP_Header *)0x0;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }\n    else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }" if (parenthesized_expression "(connection == (MHD_Connection *)0x0)" ( (binary_expression "connection == (MHD_Connection *)0x0" identifier == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMVar2 = (MHD_HTTP_Header *)0x0;\n  }" { (expression_statement "pMVar2 = (MHD_HTTP_Header *)0x0;" (assignment_expression "pMVar2 = (MHD_HTTP_Header *)0x0" identifier = (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pMVar2 = connection->headers_received;\n    if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }\n    else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }" else (compound_statement "{\n    pMVar2 = connection->headers_received;\n    if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }\n    else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }" { (expression_statement "pMVar2 = connection->headers_received;" (assignment_expression "pMVar2 = connection->headers_received" identifier = (field_expression "connection->headers_received" identifier -> field_identifier)) ;) (if_statement "if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }\n    else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }" if (parenthesized_expression "(pMVar2 == (MHD_HTTP_Header *)0x0)" ( (binary_expression "pMVar2 == (MHD_HTTP_Header *)0x0" identifier == (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pMVar2 = (MHD_HTTP_Header *)0x0;\n    }" { (expression_statement "pMVar2 = (MHD_HTTP_Header *)0x0;" (assignment_expression "pMVar2 = (MHD_HTTP_Header *)0x0" identifier = (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }" else (compound_statement "{\n      do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }" { (do_statement "do {\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);" do (compound_statement "{\n        if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }\n        pMVar2 = pMVar2->next;\n      }" { (if_statement "if (((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))) {\n          return pMVar2->value;\n        }" if (parenthesized_expression "(((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0))))))" ( (binary_expression "((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) &&\n           ((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))" (parenthesized_expression "((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND)" ( (binary_expression "(pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND" (parenthesized_expression "(pMVar2->kind & kind)" ( (binary_expression "pMVar2->kind & kind" (field_expression "pMVar2->kind" identifier -> field_identifier) & identifier) )) != identifier) )) && (parenthesized_expression "((str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))))" ( (parenthesized_expression "(str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0))))" ( (comma_expression "str2 = pMVar2->header, str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))" (assignment_expression "str2 = pMVar2->header" identifier = (field_expression "pMVar2->header" identifier -> field_identifier)) , (binary_expression "str2 == key ||\n            (((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))" (binary_expression "str2 == key" identifier == identifier) || (parenthesized_expression "(((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)))" ( (parenthesized_expression "((key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0))" ( (binary_expression "(key != (char *)0x0 && (str2 != (char *)0x0)) &&\n             (iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)" (parenthesized_expression "(key != (char *)0x0 && (str2 != (char *)0x0))" ( (binary_expression "key != (char *)0x0 && (str2 != (char *)0x0)" (binary_expression "key != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(str2 != (char *)0x0)" ( (binary_expression "str2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0)" ( (comma_expression "iVar1 = MHD_str_equal_caseless_(key,str2), iVar1 != 0" (assignment_expression "iVar1 = MHD_str_equal_caseless_(key,str2)" identifier = (call_expression "MHD_str_equal_caseless_(key,str2)" identifier (argument_list "(key,str2)" ( identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) )))) )) ))) )) (compound_statement "{\n          return pMVar2->value;\n        }" { (return_statement "return pMVar2->value;" return (field_expression "pMVar2->value" identifier -> field_identifier) ;) })) (expression_statement "pMVar2 = pMVar2->next;" (assignment_expression "pMVar2 = pMVar2->next" identifier = (field_expression "pMVar2->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pMVar2 != (MHD_HTTP_Header *)0x0)" ( (binary_expression "pMVar2 != (MHD_HTTP_Header *)0x0" identifier != (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) }))) (return_statement "return (char *)pMVar2;" return (cast_expression "(char *)pMVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "long MHD_lookup_connection_value(long param_1,uint param_2,long param_3)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}\n\n" (function_definition "long MHD_lookup_connection_value(long param_1,uint param_2,long param_3)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}" (sized_type_specifier "long" long) (function_declarator "MHD_lookup_connection_value(long param_1,uint param_2,long param_3)" identifier (parameter_list "(long param_1,uint param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (if_statement "if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    plVar2 = (long *)0x0;\n  }" { (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" else (compound_statement "{\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" { (expression_statement "plVar2 = *(long **)(param_1 + 0x38);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x38)" identifier = (pointer_expression "*(long **)(param_1 + 0x38)" * (cast_expression "(long **)(param_1 + 0x38)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      plVar2 = (long *)0x0;\n    }" { (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" else (compound_statement "{\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" { (do_statement "do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);" do (compound_statement "{\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      }" { (if_statement "if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }" if (parenthesized_expression "(((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))" ( (binary_expression "((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))))" (parenthesized_expression "((*(uint *)(plVar2 + 3) & param_2) != 0)" ( (binary_expression "(*(uint *)(plVar2 + 3) & param_2) != 0" (parenthesized_expression "(*(uint *)(plVar2 + 3) & param_2)" ( (binary_expression "*(uint *)(plVar2 + 3) & param_2" (pointer_expression "*(uint *)(plVar2 + 3)" * (cast_expression "(uint *)(plVar2 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) )))) & identifier) )) != number_literal) )) && (parenthesized_expression "((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))))" ( (parenthesized_expression "(plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))" ( (binary_expression "plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))" (binary_expression "plVar2[1] == param_3" (subscript_expression "plVar2[1]" identifier [ number_literal ]) == identifier) || (parenthesized_expression "(((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))" ( (parenthesized_expression "((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))" ( (binary_expression "(param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)" (parenthesized_expression "(param_3 != 0 && (plVar2[1] != 0))" ( (binary_expression "param_3 != 0 && (plVar2[1] != 0)" (binary_expression "param_3 != 0" identifier != number_literal) && (parenthesized_expression "(plVar2[1] != 0)" ( (binary_expression "plVar2[1] != 0" (subscript_expression "plVar2[1]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "(iVar1 = FUN_001113ee(param_3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_001113ee(param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_001113ee(param_3)" identifier = (call_expression "FUN_001113ee(param_3)" identifier (argument_list "(param_3)" ( identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) ))) )) ))) )) (compound_statement "{\n          return plVar2[2];\n        }" { (return_statement "return plVar2[2];" return (subscript_expression "plVar2[2]" identifier [ number_literal ]) ;) })) (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) }) while (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) }))) (return_statement "return (long)plVar2;" return (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & IDENT) )) != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) ))) )) ))) )) ))) )) (compound_statement { (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) }))) (return_statement return (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) ;) })))
(function_definition "long MHD_lookup_connection_value(long param_1,uint param_2,long param_3)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "MHD_lookup_connection_value(long param_1,uint param_2,long param_3)" (identifier "MHD_lookup_connection_value") (parameter_list "(long param_1,uint param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  \n  if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }\n  return (long)plVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (if_statement "if (param_1 == 0) {\n    plVar2 = (long *)0x0;\n  }\n  else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    plVar2 = (long *)0x0;\n  }" ({ "{") (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" (identifier "plVar2") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" (else "else") (compound_statement "{\n    plVar2 = *(long **)(param_1 + 0x38);\n    if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }\n  }" ({ "{") (expression_statement "plVar2 = *(long **)(param_1 + 0x38);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x38)" (identifier "plVar2") (= "=") (pointer_expression "*(long **)(param_1 + 0x38)" (* "*") (cast_expression "(long **)(param_1 + 0x38)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (plVar2 == (long *)0x0) {\n      plVar2 = (long *)0x0;\n    }\n    else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" (if "if") (parenthesized_expression "(plVar2 == (long *)0x0)" (( "(") (binary_expression "plVar2 == (long *)0x0" (identifier "plVar2") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      plVar2 = (long *)0x0;\n    }" ({ "{") (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" (identifier "plVar2") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" (else "else") (compound_statement "{\n      do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);\n    }" ({ "{") (do_statement "do {\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      } while (plVar2 != (long *)0x0);" (do "do") (compound_statement "{\n        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }\n        plVar2 = (long *)*plVar2;\n      }" ({ "{") (if_statement "if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))\n        {\n          return plVar2[2];\n        }" (if "if") (parenthesized_expression "(((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))" (( "(") (binary_expression "((*(uint *)(plVar2 + 3) & param_2) != 0) &&\n           ((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))))" (parenthesized_expression "((*(uint *)(plVar2 + 3) & param_2) != 0)" (( "(") (binary_expression "(*(uint *)(plVar2 + 3) & param_2) != 0" (parenthesized_expression "(*(uint *)(plVar2 + 3) & param_2)" (( "(") (binary_expression "*(uint *)(plVar2 + 3) & param_2" (pointer_expression "*(uint *)(plVar2 + 3)" (* "*") (cast_expression "(uint *)(plVar2 + 3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 3)" (( "(") (binary_expression "plVar2 + 3" (identifier "plVar2") (+ "+") (number_literal "3")) () ")")))) (& "&") (identifier "param_2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))))" (( "(") (parenthesized_expression "(plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))" (( "(") (binary_expression "plVar2[1] == param_3 ||\n            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))" (binary_expression "plVar2[1] == param_3" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "param_3")) (|| "||") (parenthesized_expression "(((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)))" (( "(") (parenthesized_expression "((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))" (( "(") (binary_expression "(param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0)" (parenthesized_expression "(param_3 != 0 && (plVar2[1] != 0))" (( "(") (binary_expression "param_3 != 0 && (plVar2[1] != 0)" (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(plVar2[1] != 0)" (( "(") (binary_expression "plVar2[1] != 0" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_001113ee(param_3), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_001113ee(param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_001113ee(param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_001113ee(param_3)" (identifier "FUN_001113ee") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n          return plVar2[2];\n        }" ({ "{") (return_statement "return plVar2[2];" (return "return") (subscript_expression "plVar2[2]" (identifier "plVar2") ([ "[") (number_literal "2") (] "]")) (; ";")) (} "}"))) (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" (identifier "plVar2") (= "=") (cast_expression "(long *)*plVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(plVar2 != (long *)0x0)" (( "(") (binary_expression "plVar2 != (long *)0x0" (identifier "plVar2") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))) (} "}")))) (return_statement "return (long)plVar2;" (return "return") (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (; ";")) (} "}")))

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

char * function_1(type_1 *var_1,type_2 var_3,char *var_6)

{
  char *var_5;
  int var_8;
  type_3 *var_2;
  
  if (var_1 == (type_1 *)0x0) {
    var_2 = (type_3 *)0x0;
  }
  else {
    var_2 = var_1->headers_received;
    if (var_2 == (type_3 *)0x0) {
      var_2 = (type_3 *)0x0;
    }
    else {
      do {
        if (((var_2->var_3 & var_3) != var_4) &&
           ((var_5 = var_2->header, var_5 == var_6 ||
            (((var_6 != (char *)0x0 && (var_5 != (char *)0x0)) &&
             (var_8 = var_7(var_6,var_5), var_8 != 0)))))) {
          return var_2->value;
        }
        var_2 = var_2->next;
      } while (var_2 != (type_3 *)0x0);
    }
  }
  return (char *)var_2;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (identifier))) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))))))))) consequence: (compound_statement (return_statement (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))))))) (return_statement (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))))

long MASKED(long param_1,uint param_2,long param_3)

{
  int iVar1;
  long *plVar2;
  
  if (param_1 == 0) {
    plVar2 = (long *)0x0;
  }
  else {
    plVar2 = *(long **)(param_1 + 0x38);
    if (plVar2 == (long *)0x0) {
      plVar2 = (long *)0x0;
    }
    else {
      do {
        if (((*(uint *)(plVar2 + 3) & param_2) != 0) &&
           ((plVar2[1] == param_3 ||
            (((param_3 != 0 && (plVar2[1] != 0)) && (iVar1 = FUN_001113ee(param_3), iVar1 != 0))))))
        {
          return plVar2[2];
        }
        plVar2 = (long *)*plVar2;
      } while (plVar2 != (long *)0x0);
    }
  }
  return (long)plVar2;
}

