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

int MHD_get_response_headers
              (MHD_Response *response,MHD_KeyValueIterator iterator,void *iterator_cls)

{
  int iVar1;
  MHD_HTTP_Header *pMVar2;
  int iVar3;
  
  pMVar2 = response->first_header;
  if (pMVar2 == (MHD_HTTP_Header *)0x0) {
    iVar3 = 0;
  }
  else {
    iVar3 = 0;
    do {
      iVar3 = iVar3 + 1;
      if ((iterator != (MHD_KeyValueIterator)0x0) &&
         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))
      {
        return iVar3;
      }
      pMVar2 = pMVar2->next;
    } while (pMVar2 != (MHD_HTTP_Header *)0x0);
  }
  return iVar3;
}



int MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  
  param_1 = (int *)*param_1;
  if (param_1 == (int *)0x0) {
    iVar2 = 0;
  }
  else {
    iVar2 = 0;
    do {
      iVar2 = iVar2 + 1;
      if ((param_2 != (code *)0x0) &&
         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {
        return iVar2;
      }
      param_1 = (int *)*param_1;
    } while (param_1 != (int *)0x0);
  }
  return iVar2;
}


addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lw s0,0x0(a0)
beq s0,zero,0x00022998
_li s4,0x1
or s1,zero,zero
or s3,a2,zero
or s2,a1,zero
or a0,s3,zero
beq s2,zero,0x00022968
_addiu s1,s1,0x1
lw a3,0x8(s0)
or t9,s2,zero
lw a2,0x4(s0)
jalr t9
_lw a1,0xc(s0)
bne v0,s4,0x00022978
_lw ra,0x2c(sp)
lw s0,0x0(s0)
bne s0,zero,0x00022944
_or a0,s3,zero
lw ra,0x2c(sp)
or v0,s1,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
b 0x00022974
_or s1,zero,zero
(translation_unit "int MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}\n\n" (function_definition "int MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type 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))) ;) (if_statement "if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\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    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" else (compound_statement "{\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);" do (compound_statement "{\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }" if (parenthesized_expression "((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1))" ( (binary_expression "(param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)" (parenthesized_expression "(param_2 != (code *)0x0)" ( (binary_expression "param_2 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)" ( (comma_expression "iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1" (assignment_expression "iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2])" identifier = (call_expression "(*param_2)(param_3,param_1[3],param_1[1],param_1[2])" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_3,param_1[3],param_1[1],param_1[2])" ( identifier , (subscript_expression "param_1[3]" identifier [ number_literal ]) , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) , (binary_expression "iVar1 != 1" identifier != number_literal)) ))) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return 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 (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)) )) ;) }))) (return_statement "return iVar2;" return 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\nint MHD_get_response_headers\n              (MHD_Response *response,MHD_KeyValueIterator iterator,void *iterator_cls)\n\n{\n  int iVar1;\n  MHD_HTTP_Header *pMVar2;\n  int iVar3;\n  \n  pMVar2 = response->first_header;\n  if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 0;\n    do {\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }\n      pMVar2 = pMVar2->next;\n    } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n  }\n  return iVar3;\n}\n\n" comment comment comment (function_definition "int MHD_get_response_headers\n              (MHD_Response *response,MHD_KeyValueIterator iterator,void *iterator_cls)\n\n{\n  int iVar1;\n  MHD_HTTP_Header *pMVar2;\n  int iVar3;\n  \n  pMVar2 = response->first_header;\n  if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 0;\n    do {\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }\n      pMVar2 = pMVar2->next;\n    } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "MHD_get_response_headers\n              (MHD_Response *response,MHD_KeyValueIterator iterator,void *iterator_cls)" identifier (parameter_list "(MHD_Response *response,MHD_KeyValueIterator iterator,void *iterator_cls)" ( (parameter_declaration "MHD_Response *response" type_identifier (pointer_declarator "*response" * identifier)) , (parameter_declaration "MHD_KeyValueIterator iterator" type_identifier identifier) , (parameter_declaration "void *iterator_cls" primitive_type (pointer_declarator "*iterator_cls" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  MHD_HTTP_Header *pMVar2;\n  int iVar3;\n  \n  pMVar2 = response->first_header;\n  if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 0;\n    do {\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }\n      pMVar2 = pMVar2->next;\n    } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "MHD_HTTP_Header *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pMVar2 = response->first_header;" (assignment_expression "pMVar2 = response->first_header" identifier = (field_expression "response->first_header" identifier -> field_identifier)) ;) (if_statement "if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n    iVar3 = 0;\n  }\n  else {\n    iVar3 = 0;\n    do {\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\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    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = 0;\n    do {\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }\n      pMVar2 = pMVar2->next;\n    } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n  }" else (compound_statement "{\n    iVar3 = 0;\n    do {\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }\n      pMVar2 = pMVar2->next;\n    } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }\n      pMVar2 = pMVar2->next;\n    } while (pMVar2 != (MHD_HTTP_Header *)0x0);" do (compound_statement "{\n      iVar3 = iVar3 + 1;\n      if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }\n      pMVar2 = pMVar2->next;\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if ((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))\n      {\n        return iVar3;\n      }" if (parenthesized_expression "((iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1))" ( (binary_expression "(iterator != (MHD_KeyValueIterator)0x0) &&\n         (iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1)" (parenthesized_expression "(iterator != (MHD_KeyValueIterator)0x0)" ( (binary_expression "iterator != (MHD_KeyValueIterator)0x0" identifier != (cast_expression "(MHD_KeyValueIterator)0x0" ( (type_descriptor "MHD_KeyValueIterator" type_identifier) ) number_literal)) )) && (parenthesized_expression "(iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1)" ( (comma_expression "iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value), iVar1 != 1" (assignment_expression "iVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value)" identifier = (call_expression "(*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value)" (parenthesized_expression "(*iterator)" ( (pointer_expression "*iterator" * identifier) )) (argument_list "(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->value)" ( identifier , (field_expression "pMVar2->kind" identifier -> field_identifier) , (field_expression "pMVar2->header" identifier -> field_identifier) , (field_expression "pMVar2->value" identifier -> field_identifier) )))) , (binary_expression "iVar1 != 1" identifier != number_literal)) ))) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return 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 iVar3;" return identifier ;) })))
(translation_unit "int MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}\n\n" (function_definition "int MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type 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))) ;) (if_statement "if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\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    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" else (compound_statement "{\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);" do (compound_statement "{\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }" if (parenthesized_expression "((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1))" ( (binary_expression "(param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)" (parenthesized_expression "(param_2 != (code *)0x0)" ( (binary_expression "param_2 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)" ( (comma_expression "iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1" (assignment_expression "iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2])" identifier = (call_expression "(*param_2)(param_3,param_1[3],param_1[1],param_1[2])" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_3,param_1[3],param_1[1],param_1[2])" ( identifier , (subscript_expression "param_1[3]" identifier [ number_literal ]) , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) , (binary_expression "iVar1 != 1" identifier != number_literal)) ))) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return 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 (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)) )) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "MHD_get_response_headers(int *param_1,code *param_2,undefined4 param_3)" (identifier "MHD_get_response_headers") (parameter_list "(int *param_1,code *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "code *param_2" (type_identifier "code") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  param_1 = (int *)*param_1;\n  if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (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")))) (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n    iVar2 = 0;\n  }\n  else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\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    iVar2 = 0;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" (else "else") (compound_statement "{\n    iVar2 = 0;\n    do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    } while (param_1 != (int *)0x0);" (do "do") (compound_statement "{\n      iVar2 = iVar2 + 1;\n      if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }\n      param_1 = (int *)*param_1;\n    }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {\n        return iVar2;\n      }" (if "if") (parenthesized_expression "((param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1))" (( "(") (binary_expression "(param_2 != (code *)0x0) &&\n         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)" (parenthesized_expression "(param_2 != (code *)0x0)" (( "(") (binary_expression "param_2 != (code *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)" (( "(") (comma_expression "iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1" (assignment_expression "iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2])" (identifier "iVar1") (= "=") (call_expression "(*param_2)(param_3,param_1[3],param_1[1],param_1[2])" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(param_3,param_1[3],param_1[1],param_1[2])" (( "(") (identifier "param_3") (, ",") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")")))) (, ",") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\n        return iVar2;\n      }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (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 "while") (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"))) () ")")) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

int function_1
              (type_1 *response,type_2 var_3,void *iterator_cls)

{
  int var_4;
  type_3 *var_1;
  int var_2;
  
  var_1 = response->first_header;
  if (var_1 == (type_3 *)0x0) {
    var_2 = 0;
  }
  else {
    var_2 = 0;
    do {
      var_2 = var_2 + 1;
      if ((var_3 != (type_2)0x0) &&
         (var_4 = (*var_3)(iterator_cls,var_1->kind,var_1->header,var_1->value), var_4 != 1))
      {
        return var_2;
      }
      var_1 = var_1->next;
    } while (var_1 != (type_3 *)0x0);
  }
  return var_2;
}


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

int MASKED(int *param_1,code *param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  
  param_1 = (int *)*param_1;
  if (param_1 == (int *)0x0) {
    iVar2 = 0;
  }
  else {
    iVar2 = 0;
    do {
      iVar2 = iVar2 + 1;
      if ((param_2 != (code *)0x0) &&
         (iVar1 = (*param_2)(param_3,param_1[3],param_1[1],param_1[2]), iVar1 != 1)) {
        return iVar2;
      }
      param_1 = (int *)*param_1;
    } while (param_1 != (int *)0x0);
  }
  return iVar2;
}

