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

char * MHD_get_response_header(MHD_Response *response,char *key)

{
  undefined3 extraout_var;
  size_t sVar1;
  _Bool _Var2;
  MHD_HTTP_Header *pMVar3;
  
  if (key == (char *)0x0) {
    return (char *)0x0;
  }
  sVar1 = (*(code *)PTR_strlen_0003f1b8)(key);
  pMVar3 = response->first_header;
  while( true ) {
    if (pMVar3 == (MHD_HTTP_Header *)0x0) {
      return (char *)0x0;
    }
    if ((pMVar3->header_size == sVar1) &&
       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),
       CONCAT31(extraout_var,_Var2) != 0)) break;
    pMVar3 = pMVar3->next;
  }
  return pMVar3->value;
}



undefined4 MHD_get_response_header(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  
  if (param_2 == 0) {
    return 0;
  }
  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);
  param_1 = (int *)*param_1;
  while( true ) {
    if (param_1 == (int *)0x0) {
      return 0;
    }
    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;
    param_1 = (int *)*param_1;
  }
  return param_1[3];
}


lui gp,0x2
addiu gp,gp,0x4dd8
addu gp,gp,t9
beq a1,zero,0x000222d0
_lw t9,-0x7e48(gp)
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s2,a1,zero
or s0,a0,zero
or a0,a1,zero
jalr t9
_nop
lw gp,0x10(sp)
lw s0,0x0(s0)
bne s0,zero,0x0002228c
_or s1,v0,zero
b 0x000222b8
_or v0,zero,zero
lw s0,0x0(s0)
beq s0,zero,0x000222b8
_or v0,zero,zero
lw a2,0x8(s0)
bne a2,s1,0x00022280
_or a1,s2,zero
lw a0,0x4(s0)
lw t9,-0x7fc4(gp)
bal 0x00020ae0
_nop
lw gp,0x10(sp)
beq v0,zero,0x00022280
_nop
lw v0,0xc(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_or v0,a1,zero
(translation_unit "undefined4 MHD_get_response_header(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}\n\n" (function_definition "undefined4 MHD_get_response_header(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}" type_identifier (function_declarator "MHD_get_response_header(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0003f1b8)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003f1b8)" ( (pointer_expression "*(code *)PTR_strlen_0003f1b8" * (cast_expression "(code *)PTR_strlen_0003f1b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (while_statement "while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }" { (if_statement "if (param_1 == (int *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;" if (parenthesized_expression "((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0))" ( (binary_expression "(param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)" (parenthesized_expression "(param_1[2] == iVar1)" ( (binary_expression "param_1[2] == iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "(iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0" (assignment_expression "iVar2 = FUN_00020ae0(param_1[1],param_2)" identifier = (call_expression "FUN_00020ae0(param_1[1],param_2)" identifier (argument_list "(param_1[1],param_2)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n\nchar * MHD_get_response_header(MHD_Response *response,char *key)\n\n{\n  undefined3 extraout_var;\n  size_t sVar1;\n  _Bool _Var2;\n  MHD_HTTP_Header *pMVar3;\n  \n  if (key == (char *)0x0) {\n    return (char *)0x0;\n  }\n  sVar1 = (*(code *)PTR_strlen_0003f1b8)(key);\n  pMVar3 = response->first_header;\n  while( true ) {\n    if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n      return (char *)0x0;\n    }\n    if ((pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)) break;\n    pMVar3 = pMVar3->next;\n  }\n  return pMVar3->value;\n}\n\n" comment (function_definition "char * MHD_get_response_header(MHD_Response *response,char *key)\n\n{\n  undefined3 extraout_var;\n  size_t sVar1;\n  _Bool _Var2;\n  MHD_HTTP_Header *pMVar3;\n  \n  if (key == (char *)0x0) {\n    return (char *)0x0;\n  }\n  sVar1 = (*(code *)PTR_strlen_0003f1b8)(key);\n  pMVar3 = response->first_header;\n  while( true ) {\n    if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n      return (char *)0x0;\n    }\n    if ((pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)) break;\n    pMVar3 = pMVar3->next;\n  }\n  return pMVar3->value;\n}" primitive_type (pointer_declarator "* MHD_get_response_header(MHD_Response *response,char *key)" * (function_declarator "MHD_get_response_header(MHD_Response *response,char *key)" identifier (parameter_list "(MHD_Response *response,char *key)" ( (parameter_declaration "MHD_Response *response" type_identifier (pointer_declarator "*response" * identifier)) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) )))) (compound_statement "{\n  undefined3 extraout_var;\n  size_t sVar1;\n  _Bool _Var2;\n  MHD_HTTP_Header *pMVar3;\n  \n  if (key == (char *)0x0) {\n    return (char *)0x0;\n  }\n  sVar1 = (*(code *)PTR_strlen_0003f1b8)(key);\n  pMVar3 = response->first_header;\n  while( true ) {\n    if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n      return (char *)0x0;\n    }\n    if ((pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)) break;\n    pMVar3 = pMVar3->next;\n  }\n  return pMVar3->value;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "MHD_HTTP_Header *pMVar3;" type_identifier (pointer_declarator "*pMVar3" * identifier) ;) (if_statement "if (key == (char *)0x0) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(key == (char *)0x0)" ( (binary_expression "key == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "sVar1 = (*(code *)PTR_strlen_0003f1b8)(key);" (assignment_expression "sVar1 = (*(code *)PTR_strlen_0003f1b8)(key)" identifier = (call_expression "(*(code *)PTR_strlen_0003f1b8)(key)" (parenthesized_expression "(*(code *)PTR_strlen_0003f1b8)" ( (pointer_expression "*(code *)PTR_strlen_0003f1b8" * (cast_expression "(code *)PTR_strlen_0003f1b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(key)" ( identifier )))) ;) (expression_statement "pMVar3 = response->first_header;" (assignment_expression "pMVar3 = response->first_header" identifier = (field_expression "response->first_header" identifier -> field_identifier)) ;) (while_statement "while( true ) {\n    if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n      return (char *)0x0;\n    }\n    if ((pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)) break;\n    pMVar3 = pMVar3->next;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n      return (char *)0x0;\n    }\n    if ((pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)) break;\n    pMVar3 = pMVar3->next;\n  }" { (if_statement "if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pMVar3 == (MHD_HTTP_Header *)0x0)" ( (binary_expression "pMVar3 == (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      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)) break;" if (parenthesized_expression "((pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0))" ( (binary_expression "(pMVar3->header_size == sVar1) &&\n       (_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)" (parenthesized_expression "(pMVar3->header_size == sVar1)" ( (binary_expression "pMVar3->header_size == sVar1" (field_expression "pMVar3->header_size" identifier -> field_identifier) == identifier) )) && (parenthesized_expression "(_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0)" ( (comma_expression "_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size),\n       CONCAT31(extraout_var,_Var2) != 0" (assignment_expression "_Var2 = MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size)" identifier = (call_expression "MHD_str_equal_caseless_bin_n_(pMVar3->header,key,pMVar3->header_size)" identifier (argument_list "(pMVar3->header,key,pMVar3->header_size)" ( (field_expression "pMVar3->header" identifier -> field_identifier) , identifier , (field_expression "pMVar3->header_size" identifier -> field_identifier) )))) , (binary_expression "CONCAT31(extraout_var,_Var2) != 0" (call_expression "CONCAT31(extraout_var,_Var2)" identifier (argument_list "(extraout_var,_Var2)" ( identifier , identifier ))) != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "pMVar3 = pMVar3->next;" (assignment_expression "pMVar3 = pMVar3->next" identifier = (field_expression "pMVar3->next" identifier -> field_identifier)) ;) })) (return_statement "return pMVar3->value;" return (field_expression "pMVar3->value" identifier -> field_identifier) ;) })))
(translation_unit "undefined4 MHD_get_response_header(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}\n\n" (function_definition "undefined4 MHD_get_response_header(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}" type_identifier (function_declarator "MHD_get_response_header(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0003f1b8)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003f1b8)" ( (pointer_expression "*(code *)PTR_strlen_0003f1b8" * (cast_expression "(code *)PTR_strlen_0003f1b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (while_statement "while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }" { (if_statement "if (param_1 == (int *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;" if (parenthesized_expression "((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0))" ( (binary_expression "(param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)" (parenthesized_expression "(param_1[2] == iVar1)" ( (binary_expression "param_1[2] == iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "(iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0" (assignment_expression "iVar2 = FUN_00020ae0(param_1[1],param_2)" identifier = (call_expression "FUN_00020ae0(param_1[1],param_2)" identifier (argument_list "(param_1[1],param_2)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "undefined4 MHD_get_response_header(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}" (type_identifier "undefined4") (function_declarator "MHD_get_response_header(int *param_1,int param_2)" (identifier "MHD_get_response_header") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);\n  param_1 = (int *)*param_1;\n  while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }\n  return param_1[3];\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0003f1b8)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003f1b8)" (( "(") (pointer_expression "*(code *)PTR_strlen_0003f1b8" (* "*") (cast_expression "(code *)PTR_strlen_0003f1b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0003f1b8"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" (identifier "param_1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (while_statement "while( true ) {\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (param_1 == (int *)0x0) {\n      return 0;\n    }\n    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;\n    param_1 = (int *)*param_1;\n  }" ({ "{") (if_statement "if (param_1 == (int *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;" (if "if") (parenthesized_expression "((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0))" (( "(") (binary_expression "(param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)" (parenthesized_expression "(param_1[2] == iVar1)" (( "(") (binary_expression "param_1[2] == iVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "iVar1")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0" (assignment_expression "iVar2 = FUN_00020ae0(param_1[1],param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_00020ae0(param_1[1],param_2)" (identifier "FUN_00020ae0") (argument_list "(param_1[1],param_2)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_1 = (int *)*param_1;" (assignment_expression "param_1 = (int *)*param_1" (identifier "param_1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (return_statement "return param_1[3];" (return "return") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (; ";")) (} "}")))

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

char * function_1(type_1 *response,char *var_1)

{
  type_2 extraout_var;
  size_t var_3;
  type_3 _Var2;
  type_4 *var_2;
  
  if (var_1 == (char *)0x0) {
    return (char *)0x0;
  }
  var_3 = (*(type_5 *)PTR_strlen_0003f1b8)(var_1);
  var_2 = response->first_header;
  while( true ) {
    if (var_2 == (type_4 *)0x0) {
      return (char *)0x0;
    }
    if ((var_2->header_size == var_3) &&
       (_Var2 = var_4(var_2->header,var_1,var_2->header_size),
       var_5(extraout_var,_Var2) != 0)) break;
    var_2 = var_2->next;
  }
  return var_2->value;
}


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

undefined4 MASKED(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  
  if (param_2 == 0) {
    return 0;
  }
  iVar1 = (*(code *)PTR_strlen_0003f1b8)(param_2);
  param_1 = (int *)*param_1;
  while( true ) {
    if (param_1 == (int *)0x0) {
      return 0;
    }
    if ((param_1[2] == iVar1) && (iVar2 = FUN_00020ae0(param_1[1],param_2), iVar2 != 0)) break;
    param_1 = (int *)*param_1;
  }
  return param_1[3];
}

