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

int MHD_get_connection_values_n
              (MHD_Connection *connection,MHD_ValueKind kind,MHD_KeyValueIteratorN iterator,
              void *iterator_cls)

{
  MHD_Result MVar1;
  MHD_HTTP_Header *pMVar2;
  int iVar3;
  
  if (connection == (MHD_Connection *)0x0) {
    iVar3 = -1;
  }
  else {
    pMVar2 = connection->headers_received;
    if (iterator == (MHD_KeyValueIteratorN)0x0) {
      iVar3 = 0;
      if (pMVar2 != (MHD_HTTP_Header *)0x0) {
        do {
          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {
            iVar3 = iVar3 + 1;
          }
          pMVar2 = pMVar2->next;
        } while (pMVar2 != (MHD_HTTP_Header *)0x0);
        return iVar3;
      }
    }
    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {
      iVar3 = 0;
    }
    else {
      iVar3 = 0;
      do {
        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {
          iVar3 = iVar3 + 1;
          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,
                              pMVar2->value,pMVar2->value_size);
          if (MVar1 == MHD_NO) {
            return iVar3;
          }
        }
        pMVar2 = pMVar2->next;
      } while (pMVar2 != (MHD_HTTP_Header *)0x0);
    }
  }
  return iVar3;
}



int MHD_get_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  if (param_1 == 0) {
    iVar3 = -1;
  }
  else {
    piVar2 = *(int **)(param_1 + 0x1c);
    if (param_3 == (code *)0x0) {
      iVar3 = 0;
      if (piVar2 != (int *)0x0) {
        do {
          if ((param_2 & piVar2[5]) != 0) {
            iVar3 = iVar3 + 1;
          }
          piVar2 = (int *)*piVar2;
        } while (piVar2 != (int *)0x0);
        return iVar3;
      }
    }
    else if (piVar2 == (int *)0x0) {
      iVar3 = 0;
    }
    else {
      iVar3 = 0;
      do {
        if ((piVar2[5] & param_2) != 0) {
          iVar3 = iVar3 + 1;
          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);
          if (iVar1 == 0) {
            return iVar3;
          }
        }
        piVar2 = (int *)*piVar2;
      } while (piVar2 != (int *)0x0);
    }
  }
  return iVar3;
}


addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
beq a0,zero,0x00013a98
_sw s0,0x20(sp)
beq a2,zero,0x00013a48
_lw s0,0x1c(a0)
beq s0,zero,0x00013a90
_or s4,a3,zero
or s1,zero,zero
or s3,a2,zero
or s2,a1,zero
lw v0,0x14(s0)
or a1,v0,zero
and v0,v0,s2
beq v0,zero,0x00013a18
_or a0,s4,zero
lw v0,0x10(s0)
or t9,s3,zero
lw a3,0x8(s0)
addiu s1,s1,0x1
lw a2,0x4(s0)
sw v0,0x14(sp)
lw v0,0xc(s0)
jalr t9
_sw v0,0x10(sp)
beq v0,zero,0x00013a28
_lw ra,0x34(sp)
lw s0,0x0(s0)
bne s0,zero,0x000139d8
_nop
lw ra,0x34(sp)
or v0,s1,zero
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
beq s0,zero,0x00013a24
_or s1,zero,zero
lw v0,0x14(s0)
and v0,a1,v0
beq v0,zero,0x00013a64
_nop
addiu s1,s1,0x1
lw s0,0x0(s0)
bne s0,zero,0x00013a50
_lw ra,0x34(sp)
or v0,s1,zero
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
b 0x00013a24
_or s1,zero,zero
b 0x00013a24
_li s1,-0x1
(translation_unit "int MHD_get_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}\n\n" (function_definition "int MHD_get_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "MHD_get_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,uint param_2,code *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = -1;\n  }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" else (compound_statement "{\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" { (expression_statement "piVar2 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x1c)" identifier = (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" if (parenthesized_expression "(param_3 == (code *)0x0)" ( (binary_expression "param_3 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }" { (do_statement "do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);" do (compound_statement "{\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        }" { (if_statement "if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }" if (parenthesized_expression "((param_2 & piVar2[5]) != 0)" ( (binary_expression "(param_2 & piVar2[5]) != 0" (parenthesized_expression "(param_2 & piVar2[5])" ( (binary_expression "param_2 & piVar2[5]" identifier & (subscript_expression "piVar2[5]" identifier [ number_literal ])) )) != number_literal) )) (compound_statement "{\n            iVar3 = iVar3 + 1;\n          }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return iVar3;" return identifier ;) })) }) (else_clause "else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" else (if_statement "if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (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        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" else (compound_statement "{\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);" do (compound_statement "{\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      }" { (if_statement "if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }" if (parenthesized_expression "((piVar2[5] & param_2) != 0)" ( (binary_expression "(piVar2[5] & param_2) != 0" (parenthesized_expression "(piVar2[5] & param_2)" ( (binary_expression "piVar2[5] & param_2" (subscript_expression "piVar2[5]" identifier [ number_literal ]) & identifier) )) != number_literal) )) (compound_statement "{\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);" (assignment_expression "iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" identifier = (call_expression "(*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" ( identifier , (subscript_expression "piVar2[5]" identifier [ number_literal ]) , (subscript_expression "piVar2[1]" identifier [ number_literal ]) , (subscript_expression "piVar2[2]" identifier [ number_literal ]) , (subscript_expression "piVar2[3]" identifier [ number_literal ]) , (subscript_expression "piVar2[4]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 == 0) {\n            return iVar3;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) })) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))))) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n\nint MHD_get_connection_values_n\n              (MHD_Connection *connection,MHD_ValueKind kind,MHD_KeyValueIteratorN iterator,\n              void *iterator_cls)\n\n{\n  MHD_Result MVar1;\n  MHD_HTTP_Header *pMVar2;\n  int iVar3;\n  \n  if (connection == (MHD_Connection *)0x0) {\n    iVar3 = -1;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (iterator == (MHD_KeyValueIteratorN)0x0) {\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }\n    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int MHD_get_connection_values_n\n              (MHD_Connection *connection,MHD_ValueKind kind,MHD_KeyValueIteratorN iterator,\n              void *iterator_cls)\n\n{\n  MHD_Result MVar1;\n  MHD_HTTP_Header *pMVar2;\n  int iVar3;\n  \n  if (connection == (MHD_Connection *)0x0) {\n    iVar3 = -1;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (iterator == (MHD_KeyValueIteratorN)0x0) {\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }\n    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "MHD_get_connection_values_n\n              (MHD_Connection *connection,MHD_ValueKind kind,MHD_KeyValueIteratorN iterator,\n              void *iterator_cls)" identifier (parameter_list "(MHD_Connection *connection,MHD_ValueKind kind,MHD_KeyValueIteratorN iterator,\n              void *iterator_cls)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "MHD_ValueKind kind" type_identifier identifier) , (parameter_declaration "MHD_KeyValueIteratorN iterator" type_identifier identifier) , (parameter_declaration "void *iterator_cls" primitive_type (pointer_declarator "*iterator_cls" * identifier)) ))) (compound_statement "{\n  MHD_Result MVar1;\n  MHD_HTTP_Header *pMVar2;\n  int iVar3;\n  \n  if (connection == (MHD_Connection *)0x0) {\n    iVar3 = -1;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (iterator == (MHD_KeyValueIteratorN)0x0) {\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }\n    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }\n  return iVar3;\n}" { (declaration "MHD_Result MVar1;" type_identifier identifier ;) (declaration "MHD_HTTP_Header *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (connection == (MHD_Connection *)0x0) {\n    iVar3 = -1;\n  }\n  else {\n    pMVar2 = connection->headers_received;\n    if (iterator == (MHD_KeyValueIteratorN)0x0) {\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }\n    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\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    iVar3 = -1;\n  }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    pMVar2 = connection->headers_received;\n    if (iterator == (MHD_KeyValueIteratorN)0x0) {\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }\n    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }\n  }" else (compound_statement "{\n    pMVar2 = connection->headers_received;\n    if (iterator == (MHD_KeyValueIteratorN)0x0) {\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }\n    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\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 (iterator == (MHD_KeyValueIteratorN)0x0) {\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }\n    else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }" if (parenthesized_expression "(iterator == (MHD_KeyValueIteratorN)0x0)" ( (binary_expression "iterator == (MHD_KeyValueIteratorN)0x0" identifier == (cast_expression "(MHD_KeyValueIteratorN)0x0" ( (type_descriptor "MHD_KeyValueIteratorN" type_identifier) ) number_literal)) )) (compound_statement "{\n      iVar3 = 0;\n      if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (pMVar2 != (MHD_HTTP_Header *)0x0) {\n        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\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        do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n        return iVar3;\n      }" { (do_statement "do {\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        } while (pMVar2 != (MHD_HTTP_Header *)0x0);" do (compound_statement "{\n          if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }\n          pMVar2 = pMVar2->next;\n        }" { (if_statement "if ((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND) {\n            iVar3 = iVar3 + 1;\n          }" if (parenthesized_expression "((kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND)" ( (binary_expression "(kind & pMVar2->kind) != MHD_RESPONSE_HEADER_KIND" (parenthesized_expression "(kind & pMVar2->kind)" ( (binary_expression "kind & pMVar2->kind" identifier & (field_expression "pMVar2->kind" identifier -> field_identifier)) )) != identifier) )) (compound_statement "{\n            iVar3 = iVar3 + 1;\n          }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (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 ;) })) }) (else_clause "else if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }" else (if_statement "if (pMVar2 == (MHD_HTTP_Header *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\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        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      } while (pMVar2 != (MHD_HTTP_Header *)0x0);\n    }" else (compound_statement "{\n      iVar3 = 0;\n      do {\n        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\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        if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\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          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }\n        pMVar2 = pMVar2->next;\n      }" { (if_statement "if ((pMVar2->kind & kind) != MHD_RESPONSE_HEADER_KIND) {\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }" if (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) )) (compound_statement "{\n          iVar3 = iVar3 + 1;\n          MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);\n          if (MVar1 == MHD_NO) {\n            return iVar3;\n          }\n        }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size);" (assignment_expression "MVar1 = (*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size)" identifier = (call_expression "(*iterator)(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size)" (parenthesized_expression "(*iterator)" ( (pointer_expression "*iterator" * identifier) )) (argument_list "(iterator_cls,pMVar2->kind,pMVar2->header,pMVar2->header_size,\n                              pMVar2->value,pMVar2->value_size)" ( identifier , (field_expression "pMVar2->kind" identifier -> field_identifier) , (field_expression "pMVar2->header" identifier -> field_identifier) , (field_expression "pMVar2->header_size" identifier -> field_identifier) , (field_expression "pMVar2->value" identifier -> field_identifier) , (field_expression "pMVar2->value_size" identifier -> field_identifier) )))) ;) (if_statement "if (MVar1 == MHD_NO) {\n            return iVar3;\n          }" if (parenthesized_expression "(MVar1 == MHD_NO)" ( (binary_expression "MVar1 == MHD_NO" identifier == identifier) )) (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_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}\n\n" (function_definition "int MHD_get_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "MHD_get_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,uint param_2,code *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = -1;\n  }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" else (compound_statement "{\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" { (expression_statement "piVar2 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x1c)" identifier = (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" if (parenthesized_expression "(param_3 == (code *)0x0)" ( (binary_expression "param_3 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }" { (do_statement "do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);" do (compound_statement "{\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        }" { (if_statement "if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }" if (parenthesized_expression "((param_2 & piVar2[5]) != 0)" ( (binary_expression "(param_2 & piVar2[5]) != 0" (parenthesized_expression "(param_2 & piVar2[5])" ( (binary_expression "param_2 & piVar2[5]" identifier & (subscript_expression "piVar2[5]" identifier [ number_literal ])) )) != number_literal) )) (compound_statement "{\n            iVar3 = iVar3 + 1;\n          }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return iVar3;" return identifier ;) })) }) (else_clause "else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" else (if_statement "if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (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        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" else (compound_statement "{\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);" do (compound_statement "{\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      }" { (if_statement "if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }" if (parenthesized_expression "((piVar2[5] & param_2) != 0)" ( (binary_expression "(piVar2[5] & param_2) != 0" (parenthesized_expression "(piVar2[5] & param_2)" ( (binary_expression "piVar2[5] & param_2" (subscript_expression "piVar2[5]" identifier [ number_literal ]) & identifier) )) != number_literal) )) (compound_statement "{\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);" (assignment_expression "iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" identifier = (call_expression "(*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" ( identifier , (subscript_expression "piVar2[5]" identifier [ number_literal ]) , (subscript_expression "piVar2[1]" identifier [ number_literal ]) , (subscript_expression "piVar2[2]" identifier [ number_literal ]) , (subscript_expression "piVar2[3]" identifier [ number_literal ]) , (subscript_expression "piVar2[4]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 == 0) {\n            return iVar3;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) })) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))))) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & (subscript_expression IDENT [ LIT ])) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (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 ;) })) }) (else_clause else (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 { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & IDENT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (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 ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (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_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "MHD_get_connection_values_n(int param_1,uint param_2,code *param_3,undefined4 param_4)" (identifier "MHD_get_connection_values_n") (parameter_list "(int param_1,uint param_2,code *param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "code *param_3" (type_identifier "code") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_1 == 0) {\n    iVar3 = -1;\n  }\n  else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = -1;\n  }" ({ "{") (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" (else "else") (compound_statement "{\n    piVar2 = *(int **)(param_1 + 0x1c);\n    if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }\n  }" ({ "{") (expression_statement "piVar2 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x1c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x1c)" (* "*") (cast_expression "(int **)(param_1 + 0x1c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (param_3 == (code *)0x0) {\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }\n    else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" (if "if") (parenthesized_expression "(param_3 == (code *)0x0)" (( "(") (binary_expression "param_3 == (code *)0x0" (identifier "param_3") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar3 = 0;\n      if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);\n        return iVar3;\n      }" ({ "{") (do_statement "do {\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n          if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }\n          piVar2 = (int *)*piVar2;\n        }" ({ "{") (if_statement "if ((param_2 & piVar2[5]) != 0) {\n            iVar3 = iVar3 + 1;\n          }" (if "if") (parenthesized_expression "((param_2 & piVar2[5]) != 0)" (( "(") (binary_expression "(param_2 & piVar2[5]) != 0" (parenthesized_expression "(param_2 & piVar2[5])" (( "(") (binary_expression "param_2 & piVar2[5]" (identifier "param_2") (& "&") (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]"))) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            iVar3 = iVar3 + 1;\n          }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" (else "else") (if_statement "if (piVar2 == (int *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar3 = 0;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" (else "else") (compound_statement "{\n      iVar3 = 0;\n      do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n        if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }\n        piVar2 = (int *)*piVar2;\n      }" ({ "{") (if_statement "if ((piVar2[5] & param_2) != 0) {\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }" (if "if") (parenthesized_expression "((piVar2[5] & param_2) != 0)" (( "(") (binary_expression "(piVar2[5] & param_2) != 0" (parenthesized_expression "(piVar2[5] & param_2)" (( "(") (binary_expression "piVar2[5] & param_2" (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (& "&") (identifier "param_2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar3 = iVar3 + 1;\n          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);\n          if (iVar1 == 0) {\n            return iVar3;\n          }\n        }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);" (assignment_expression "iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" (identifier "iVar1") (= "=") (call_expression "(*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4])" (( "(") (identifier "param_4") (, ",") (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (, ",") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n            return iVar3;\n          }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return iVar3;\n          }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))))) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (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))))) alternative: (else_clause (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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (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)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (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,uint param_2,code *param_3,undefined4 param_4)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  if (param_1 == 0) {
    iVar3 = -1;
  }
  else {
    piVar2 = *(int **)(param_1 + 0x1c);
    if (param_3 == (code *)0x0) {
      iVar3 = 0;
      if (piVar2 != (int *)0x0) {
        do {
          if ((param_2 & piVar2[5]) != 0) {
            iVar3 = iVar3 + 1;
          }
          piVar2 = (int *)*piVar2;
        } while (piVar2 != (int *)0x0);
        return iVar3;
      }
    }
    else if (piVar2 == (int *)0x0) {
      iVar3 = 0;
    }
    else {
      iVar3 = 0;
      do {
        if ((piVar2[5] & param_2) != 0) {
          iVar3 = iVar3 + 1;
          iVar1 = (*param_3)(param_4,piVar2[5],piVar2[1],piVar2[2],piVar2[3],piVar2[4]);
          if (iVar1 == 0) {
            return iVar3;
          }
        }
        piVar2 = (int *)*piVar2;
      } while (piVar2 != (int *)0x0);
    }
  }
  return iVar3;
}

