
/* 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 find_boundary(MHD_PostProcessor *pp,char *boundary,size_t blen,size_t *ioffptr,
                 PP_State next_state,PP_State next_dash_state)

{
  int iVar1;
  MHD_PostProcessor *pMVar2;
  uint uVar3;
  MHD_PostProcessor *pMVar4;
  
  uVar3 = pp->buffer_pos;
  if (uVar3 < blen + 2) {
    if (uVar3 == pp->buffer_size) {
      pp->state = PP_Error;
    }
  }
  else {
    pMVar4 = pp + 1;
    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);
    if ((iVar1 == 0) &&
       (iVar1 = (*(code *)PTR_memcmp_000412cc)
                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {
      *ioffptr = *ioffptr + 2 + blen;
      pp->skip_rn = RN_Dash;
      pp->state = next_state;
      pp->dash_state = next_dash_state;
      return 1;
    }
    if (pp->state == PP_Init) {
      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);
      if (pMVar2 == (MHD_PostProcessor *)0x0) {
        *ioffptr = *ioffptr + uVar3;
      }
      else if (pMVar4 == pMVar2) {
        *ioffptr = *ioffptr + 1;
      }
      else {
        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);
      }
    }
    else {
      pp->state = PP_Error;
    }
  }
  return 0;
}



undefined4
FUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,
            undefined4 param_6)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  
  uVar2 = *(uint *)(param_1 + 0x34);
  if (uVar2 < param_3 + 2U) {
    if (uVar2 == *(uint *)(param_1 + 0x30)) {
      *(undefined4 *)(param_1 + 0x54) = 0;
    }
  }
  else {
    iVar3 = param_1 + 0x68;
    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);
    if ((iVar1 == 0) &&
       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {
      *param_4 = *param_4 + 2 + param_3;
      *(undefined4 *)(param_1 + 0x58) = 3;
      *(undefined4 *)(param_1 + 0x54) = param_5;
      *(undefined4 *)(param_1 + 0x5c) = param_6;
      return 1;
    }
    if (*(int *)(param_1 + 0x54) == 2) {
      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);
      if (iVar1 == 0) {
        *param_4 = *param_4 + uVar2;
      }
      else if (iVar3 == iVar1) {
        *param_4 = *param_4 + 1;
      }
      else {
        *param_4 = *param_4 + (iVar1 - iVar3);
      }
    }
    else {
      *(undefined4 *)(param_1 + 0x54) = 0;
    }
  }
  return 0;
}


lui gp,0x2
addiu gp,gp,0x2734
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw s3,0x34(a0)
addiu v0,a2,0x2
sltu v0,s3,v0
bne v0,zero,0x000269e4
_or s4,a3,zero
or s2,a2,zero
or s1,a1,zero
or s0,a0,zero
addiu s5,a0,0x68
li a2,0x2
or a1,s5,zero
lw a0,-0x7fd4(gp)
addiu a0,a0,0x5c
lw t9,-0x7d64(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x00026a04
_or a2,s2,zero
or a1,s1,zero
addiu a0,s0,0x6a
lw t9,-0x7d64(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x00026a04
_li v0,0x3
lw a2,0x0(s4)
addiu a2,a2,0x2
addu a2,a2,s2
sw a2,0x0(s4)
sw v0,0x58(s0)
lw v0,0x48(sp)
sw v0,0x54(s0)
lw v0,0x4c(sp)
sw v0,0x5c(s0)
li v0,0x1
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw v0,0x30(a0)
beq s3,v0,0x000269f8
_nop
b 0x000269c0
_or v0,zero,zero
sw zero,0x54(a0)
b 0x000269c0
_or v0,zero,zero
lw v1,0x54(s0)
li v0,0x2
beq v1,v0,0x00026a1c
_or v0,zero,zero
b 0x000269c0
_sw zero,0x54(s0)
or a2,s3,zero
li a1,0x2d
or a0,s5,zero
lw t9,-0x7e2c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00026a60
_nop
beq s5,v0,0x00026a74
_nop
subu v0,v0,s5
lw s5,0x0(s4)
addu v0,s5,v0
sw v0,0x0(s4)
b 0x000269c0
_or v0,zero,zero
lw v0,0x0(s4)
addu s3,v0,s3
sw s3,0x0(s4)
b 0x000269c0
_or v0,zero,zero
lw v0,0x0(s4)
addiu v0,v0,0x1
sw v0,0x0(s4)
b 0x000269c0
_or v0,zero,zero
(translation_unit "undefined4\nFUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" if (parenthesized_expression "(uVar2 < param_3 + 2U)" ( (binary_expression "uVar2 < param_3 + 2U" identifier < (binary_expression "param_3 + 2U" identifier + number_literal)) )) (compound_statement "{\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" { (if_statement "if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" if (parenthesized_expression "(uVar2 == *(uint *)(param_1 + 0x30))" ( (binary_expression "uVar2 == *(uint *)(param_1 + 0x30)" identifier == (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" else (compound_statement "{\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" { (expression_statement "iVar3 = param_1 + 0x68;" (assignment_expression "iVar3 = param_1 + 0x68" identifier = (binary_expression "param_1 + 0x68" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" identifier = (call_expression "(*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" ( (pointer_expression "*(code *)PTR_memcmp_000412cc" * (cast_expression "(code *)PTR_memcmp_000412cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" ( (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c" identifier > (binary_expression "__d_0004105c + 0x5c" identifier + number_literal)) , identifier , number_literal )))) ;) (if_statement "if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }" if (parenthesized_expression "((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0))" ( (binary_expression "(iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" ( (pointer_expression "*(code *)PTR_memcmp_000412cc" * (cast_expression "(code *)PTR_memcmp_000412cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x6a,param_2,param_3)" ( (binary_expression "param_1 + 0x6a" identifier + number_literal) , identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }" { (expression_statement "*param_4 = *param_4 + 2 + param_3;" (assignment_expression "*param_4 = *param_4 + 2 + param_3" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + 2 + param_3" (binary_expression "*param_4 + 2" (pointer_expression "*param_4" * identifier) + number_literal) + identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x54) = param_5;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = param_5" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = param_6;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = param_6" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) == 2)" ( (binary_expression "*(int *)(param_1 + 0x54) == 2" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2)" identifier = (call_expression "(*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2)" (parenthesized_expression "(*(code *)PTR_memchr_00041204)" ( (pointer_expression "*(code *)PTR_memchr_00041204" * (cast_expression "(code *)PTR_memchr_00041204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0x2d,uVar2)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *param_4 = *param_4 + uVar2;\n      }" { (expression_statement "*param_4 = *param_4 + uVar2;" (assignment_expression "*param_4 = *param_4 + uVar2" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + uVar2" (pointer_expression "*param_4" * identifier) + identifier)) ;) }) (else_clause "else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" else (if_statement "if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" if (parenthesized_expression "(iVar3 == iVar1)" ( (binary_expression "iVar3 == iVar1" identifier == identifier) )) (compound_statement "{\n        *param_4 = *param_4 + 1;\n      }" { (expression_statement "*param_4 = *param_4 + 1;" (assignment_expression "*param_4 = *param_4 + 1" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + 1" (pointer_expression "*param_4" * identifier) + number_literal)) ;) }) (else_clause "else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" else (compound_statement "{\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" { (expression_statement "*param_4 = *param_4 + (iVar1 - iVar3);" (assignment_expression "*param_4 = *param_4 + (iVar1 - iVar3)" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + (iVar1 - iVar3)" (pointer_expression "*param_4" * identifier) + (parenthesized_expression "(iVar1 - iVar3)" ( (binary_expression "iVar1 - iVar3" identifier - identifier) )))) ;) }))))) }) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" else (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) }))) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint find_boundary(MHD_PostProcessor *pp,char *boundary,size_t blen,size_t *ioffptr,\n                 PP_State next_state,PP_State next_dash_state)\n\n{\n  int iVar1;\n  MHD_PostProcessor *pMVar2;\n  uint uVar3;\n  MHD_PostProcessor *pMVar4;\n  \n  uVar3 = pp->buffer_pos;\n  if (uVar3 < blen + 2) {\n    if (uVar3 == pp->buffer_size) {\n      pp->state = PP_Error;\n    }\n  }\n  else {\n    pMVar4 = pp + 1;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }\n    if (pp->state == PP_Init) {\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }\n    else {\n      pp->state = PP_Error;\n    }\n  }\n  return 0;\n}\n\n" comment comment comment (function_definition "int find_boundary(MHD_PostProcessor *pp,char *boundary,size_t blen,size_t *ioffptr,\n                 PP_State next_state,PP_State next_dash_state)\n\n{\n  int iVar1;\n  MHD_PostProcessor *pMVar2;\n  uint uVar3;\n  MHD_PostProcessor *pMVar4;\n  \n  uVar3 = pp->buffer_pos;\n  if (uVar3 < blen + 2) {\n    if (uVar3 == pp->buffer_size) {\n      pp->state = PP_Error;\n    }\n  }\n  else {\n    pMVar4 = pp + 1;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }\n    if (pp->state == PP_Init) {\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }\n    else {\n      pp->state = PP_Error;\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "find_boundary(MHD_PostProcessor *pp,char *boundary,size_t blen,size_t *ioffptr,\n                 PP_State next_state,PP_State next_dash_state)" identifier (parameter_list "(MHD_PostProcessor *pp,char *boundary,size_t blen,size_t *ioffptr,\n                 PP_State next_state,PP_State next_dash_state)" ( (parameter_declaration "MHD_PostProcessor *pp" type_identifier (pointer_declarator "*pp" * identifier)) , (parameter_declaration "char *boundary" primitive_type (pointer_declarator "*boundary" * identifier)) , (parameter_declaration "size_t blen" primitive_type identifier) , (parameter_declaration "size_t *ioffptr" primitive_type (pointer_declarator "*ioffptr" * identifier)) , (parameter_declaration "PP_State next_state" type_identifier identifier) , (parameter_declaration "PP_State next_dash_state" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  MHD_PostProcessor *pMVar2;\n  uint uVar3;\n  MHD_PostProcessor *pMVar4;\n  \n  uVar3 = pp->buffer_pos;\n  if (uVar3 < blen + 2) {\n    if (uVar3 == pp->buffer_size) {\n      pp->state = PP_Error;\n    }\n  }\n  else {\n    pMVar4 = pp + 1;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }\n    if (pp->state == PP_Init) {\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }\n    else {\n      pp->state = PP_Error;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "MHD_PostProcessor *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "MHD_PostProcessor *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (expression_statement "uVar3 = pp->buffer_pos;" (assignment_expression "uVar3 = pp->buffer_pos" identifier = (field_expression "pp->buffer_pos" identifier -> field_identifier)) ;) (if_statement "if (uVar3 < blen + 2) {\n    if (uVar3 == pp->buffer_size) {\n      pp->state = PP_Error;\n    }\n  }\n  else {\n    pMVar4 = pp + 1;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }\n    if (pp->state == PP_Init) {\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }\n    else {\n      pp->state = PP_Error;\n    }\n  }" if (parenthesized_expression "(uVar3 < blen + 2)" ( (binary_expression "uVar3 < blen + 2" identifier < (binary_expression "blen + 2" identifier + number_literal)) )) (compound_statement "{\n    if (uVar3 == pp->buffer_size) {\n      pp->state = PP_Error;\n    }\n  }" { (if_statement "if (uVar3 == pp->buffer_size) {\n      pp->state = PP_Error;\n    }" if (parenthesized_expression "(uVar3 == pp->buffer_size)" ( (binary_expression "uVar3 == pp->buffer_size" identifier == (field_expression "pp->buffer_size" identifier -> field_identifier)) )) (compound_statement "{\n      pp->state = PP_Error;\n    }" { (expression_statement "pp->state = PP_Error;" (assignment_expression "pp->state = PP_Error" (field_expression "pp->state" identifier -> field_identifier) = identifier) ;) })) }) (else_clause "else {\n    pMVar4 = pp + 1;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }\n    if (pp->state == PP_Init) {\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }\n    else {\n      pp->state = PP_Error;\n    }\n  }" else (compound_statement "{\n    pMVar4 = pp + 1;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }\n    if (pp->state == PP_Init) {\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }\n    else {\n      pp->state = PP_Error;\n    }\n  }" { (expression_statement "pMVar4 = pp + 1;" (assignment_expression "pMVar4 = pp + 1" identifier = (binary_expression "pp + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2)" identifier = (call_expression "(*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" ( (pointer_expression "*(code *)PTR_memcmp_000412cc" * (cast_expression "(code *)PTR_memcmp_000412cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,pMVar4,2)" ( (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c" identifier > (binary_expression "__d_0004105c + 0x5c" identifier + number_literal)) , identifier , number_literal )))) ;) (if_statement "if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)) {\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }" if (parenthesized_expression "((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0))" ( (binary_expression "(iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen)" identifier = (call_expression "(*(code *)PTR_memcmp_000412cc)\n                          ((undefined1 *)((int)&pp[1].connection + 2),boundary,blen)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" ( (pointer_expression "*(code *)PTR_memcmp_000412cc" * (cast_expression "(code *)PTR_memcmp_000412cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((undefined1 *)((int)&pp[1].connection + 2),boundary,blen)" ( (cast_expression "(undefined1 *)((int)&pp[1].connection + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pp[1].connection + 2)" ( (binary_expression "(int)&pp[1].connection + 2" (cast_expression "(int)&pp[1].connection" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pp[1].connection" & (field_expression "pp[1].connection" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))) , identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      *ioffptr = *ioffptr + 2 + blen;\n      pp->skip_rn = RN_Dash;\n      pp->state = next_state;\n      pp->dash_state = next_dash_state;\n      return 1;\n    }" { (expression_statement "*ioffptr = *ioffptr + 2 + blen;" (assignment_expression "*ioffptr = *ioffptr + 2 + blen" (pointer_expression "*ioffptr" * identifier) = (binary_expression "*ioffptr + 2 + blen" (binary_expression "*ioffptr + 2" (pointer_expression "*ioffptr" * identifier) + number_literal) + identifier)) ;) (expression_statement "pp->skip_rn = RN_Dash;" (assignment_expression "pp->skip_rn = RN_Dash" (field_expression "pp->skip_rn" identifier -> field_identifier) = identifier) ;) (expression_statement "pp->state = next_state;" (assignment_expression "pp->state = next_state" (field_expression "pp->state" identifier -> field_identifier) = identifier) ;) (expression_statement "pp->dash_state = next_dash_state;" (assignment_expression "pp->dash_state = next_dash_state" (field_expression "pp->dash_state" identifier -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (pp->state == PP_Init) {\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }\n    else {\n      pp->state = PP_Error;\n    }" if (parenthesized_expression "(pp->state == PP_Init)" ( (binary_expression "pp->state == PP_Init" (field_expression "pp->state" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);\n      if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }\n    }" { (expression_statement "pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3);" (assignment_expression "pMVar2 = (MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3)" identifier = (cast_expression "(MHD_PostProcessor *)(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3)" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memchr_00041204)(pMVar4,0x2d,uVar3)" (parenthesized_expression "(*(code *)PTR_memchr_00041204)" ( (pointer_expression "*(code *)PTR_memchr_00041204" * (cast_expression "(code *)PTR_memchr_00041204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pMVar4,0x2d,uVar3)" ( identifier , number_literal , identifier ))))) ;) (if_statement "if (pMVar2 == (MHD_PostProcessor *)0x0) {\n        *ioffptr = *ioffptr + uVar3;\n      }\n      else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }" if (parenthesized_expression "(pMVar2 == (MHD_PostProcessor *)0x0)" ( (binary_expression "pMVar2 == (MHD_PostProcessor *)0x0" identifier == (cast_expression "(MHD_PostProcessor *)0x0" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *ioffptr = *ioffptr + uVar3;\n      }" { (expression_statement "*ioffptr = *ioffptr + uVar3;" (assignment_expression "*ioffptr = *ioffptr + uVar3" (pointer_expression "*ioffptr" * identifier) = (binary_expression "*ioffptr + uVar3" (pointer_expression "*ioffptr" * identifier) + identifier)) ;) }) (else_clause "else if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }" else (if_statement "if (pMVar4 == pMVar2) {\n        *ioffptr = *ioffptr + 1;\n      }\n      else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }" if (parenthesized_expression "(pMVar4 == pMVar2)" ( (binary_expression "pMVar4 == pMVar2" identifier == identifier) )) (compound_statement "{\n        *ioffptr = *ioffptr + 1;\n      }" { (expression_statement "*ioffptr = *ioffptr + 1;" (assignment_expression "*ioffptr = *ioffptr + 1" (pointer_expression "*ioffptr" * identifier) = (binary_expression "*ioffptr + 1" (pointer_expression "*ioffptr" * identifier) + number_literal)) ;) }) (else_clause "else {\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }" else (compound_statement "{\n        *ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);\n      }" { (expression_statement "*ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4);" (assignment_expression "*ioffptr = (int)pMVar2 + (*ioffptr - (int)pMVar4)" (pointer_expression "*ioffptr" * identifier) = (binary_expression "(int)pMVar2 + (*ioffptr - (int)pMVar4)" (cast_expression "(int)pMVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(*ioffptr - (int)pMVar4)" ( (binary_expression "*ioffptr - (int)pMVar4" (pointer_expression "*ioffptr" * identifier) - (cast_expression "(int)pMVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) }))))) }) (else_clause "else {\n      pp->state = PP_Error;\n    }" else (compound_statement "{\n      pp->state = PP_Error;\n    }" { (expression_statement "pp->state = PP_Error;" (assignment_expression "pp->state = PP_Error" (field_expression "pp->state" identifier -> field_identifier) = identifier) ;) }))) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" if (parenthesized_expression "(uVar2 < param_3 + 2U)" ( (binary_expression "uVar2 < param_3 + 2U" identifier < (binary_expression "param_3 + 2U" identifier + number_literal)) )) (compound_statement "{\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" { (if_statement "if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" if (parenthesized_expression "(uVar2 == *(uint *)(param_1 + 0x30))" ( (binary_expression "uVar2 == *(uint *)(param_1 + 0x30)" identifier == (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" else (compound_statement "{\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" { (expression_statement "iVar3 = param_1 + 0x68;" (assignment_expression "iVar3 = param_1 + 0x68" identifier = (binary_expression "param_1 + 0x68" identifier + number_literal)) ;) (expression_statement "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" identifier = (call_expression "(*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" ( (pointer_expression "*(code *)PTR_memcmp_000412cc" * (cast_expression "(code *)PTR_memcmp_000412cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" ( (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c" identifier > (binary_expression "__d_0004105c + 0x5c" identifier + number_literal)) , identifier , number_literal )))) ;) (if_statement "if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }" if (parenthesized_expression "((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0))" ( (binary_expression "(iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" ( (pointer_expression "*(code *)PTR_memcmp_000412cc" * (cast_expression "(code *)PTR_memcmp_000412cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x6a,param_2,param_3)" ( (binary_expression "param_1 + 0x6a" identifier + number_literal) , identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }" { (expression_statement "*param_4 = *param_4 + 2 + param_3;" (assignment_expression "*param_4 = *param_4 + 2 + param_3" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + 2 + param_3" (binary_expression "*param_4 + 2" (pointer_expression "*param_4" * identifier) + number_literal) + identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x54) = param_5;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = param_5" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = param_6;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = param_6" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) == 2)" ( (binary_expression "*(int *)(param_1 + 0x54) == 2" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2)" identifier = (call_expression "(*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2)" (parenthesized_expression "(*(code *)PTR_memchr_00041204)" ( (pointer_expression "*(code *)PTR_memchr_00041204" * (cast_expression "(code *)PTR_memchr_00041204" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0x2d,uVar2)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *param_4 = *param_4 + uVar2;\n      }" { (expression_statement "*param_4 = *param_4 + uVar2;" (assignment_expression "*param_4 = *param_4 + uVar2" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + uVar2" (pointer_expression "*param_4" * identifier) + identifier)) ;) }) (else_clause "else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" else (if_statement "if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" if (parenthesized_expression "(iVar3 == iVar1)" ( (binary_expression "iVar3 == iVar1" identifier == identifier) )) (compound_statement "{\n        *param_4 = *param_4 + 1;\n      }" { (expression_statement "*param_4 = *param_4 + 1;" (assignment_expression "*param_4 = *param_4 + 1" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + 1" (pointer_expression "*param_4" * identifier) + number_literal)) ;) }) (else_clause "else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" else (compound_statement "{\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" { (expression_statement "*param_4 = *param_4 + (iVar1 - iVar3);" (assignment_expression "*param_4 = *param_4 + (iVar1 - iVar3)" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + (iVar1 - iVar3)" (pointer_expression "*param_4" * identifier) + (parenthesized_expression "(iVar1 - iVar3)" ( (binary_expression "iVar1 - iVar3" identifier - identifier) )))) ;) }))))) }) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" else (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) }))) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT > (binary_expression IDENT + LIT)) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) }))))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) }))) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000268fc(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)" (identifier "FUN_000268fc") (parameter_list "(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,\n            undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x34);\n  if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x34)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (if_statement "if (uVar2 < param_3 + 2U) {\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }\n  else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" (if "if") (parenthesized_expression "(uVar2 < param_3 + 2U)" (( "(") (binary_expression "uVar2 < param_3 + 2U" (identifier "uVar2") (< "<") (binary_expression "param_3 + 2U" (identifier "param_3") (+ "+") (number_literal "2U"))) () ")")) (compound_statement "{\n    if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" ({ "{") (if_statement "if (uVar2 == *(uint *)(param_1 + 0x30)) {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" (if "if") (parenthesized_expression "(uVar2 == *(uint *)(param_1 + 0x30))" (( "(") (binary_expression "uVar2 == *(uint *)(param_1 + 0x30)" (identifier "uVar2") (== "==") (pointer_expression "*(uint *)(param_1 + 0x30)" (* "*") (cast_expression "(uint *)(param_1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" (else "else") (compound_statement "{\n    iVar3 = param_1 + 0x68;\n    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);\n    if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }\n    if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }\n  }" ({ "{") (expression_statement "iVar3 = param_1 + 0x68;" (assignment_expression "iVar3 = param_1 + 0x68" (identifier "iVar3") (= "=") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" (( "(") (pointer_expression "*(code *)PTR_memcmp_000412cc" (* "*") (cast_expression "(code *)PTR_memcmp_000412cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_000412cc"))) () ")")) (argument_list "(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2)" (( "(") (binary_expression "PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c" (identifier "PTR_s_than_FD_SETSIZE___d_") (> ">") (binary_expression "__d_0004105c + 0x5c" (identifier "__d_0004105c") (+ "+") (number_literal "0x5c"))) (, ",") (identifier "iVar3") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }" (if "if") (parenthesized_expression "((iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0))" (( "(") (binary_expression "(iVar1 == 0) &&\n       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcmp_000412cc)" (( "(") (pointer_expression "*(code *)PTR_memcmp_000412cc" (* "*") (cast_expression "(code *)PTR_memcmp_000412cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_000412cc"))) () ")")) (argument_list "(param_1 + 0x6a,param_2,param_3)" (( "(") (binary_expression "param_1 + 0x6a" (identifier "param_1") (+ "+") (number_literal "0x6a")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      *param_4 = *param_4 + 2 + param_3;\n      *(undefined4 *)(param_1 + 0x58) = 3;\n      *(undefined4 *)(param_1 + 0x54) = param_5;\n      *(undefined4 *)(param_1 + 0x5c) = param_6;\n      return 1;\n    }" ({ "{") (expression_statement "*param_4 = *param_4 + 2 + param_3;" (assignment_expression "*param_4 = *param_4 + 2 + param_3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + 2 + param_3" (binary_expression "*param_4 + 2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "2")) (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x54) = param_5;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = param_5" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = param_6;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = param_6" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x54) == 2) {\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x54) == 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) == 2" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);\n      if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2)" (parenthesized_expression "(*(code *)PTR_memchr_00041204)" (( "(") (pointer_expression "*(code *)PTR_memchr_00041204" (* "*") (cast_expression "(code *)PTR_memchr_00041204" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memchr_00041204"))) () ")")) (argument_list "(iVar3,0x2d,uVar2)" (( "(") (identifier "iVar3") (, ",") (number_literal "0x2d") (, ",") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        *param_4 = *param_4 + uVar2;\n      }\n      else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *param_4 = *param_4 + uVar2;\n      }" ({ "{") (expression_statement "*param_4 = *param_4 + uVar2;" (assignment_expression "*param_4 = *param_4 + uVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + uVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (identifier "uVar2"))) (; ";")) (} "}")) (else_clause "else if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" (else "else") (if_statement "if (iVar3 == iVar1) {\n        *param_4 = *param_4 + 1;\n      }\n      else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" (if "if") (parenthesized_expression "(iVar3 == iVar1)" (( "(") (binary_expression "iVar3 == iVar1" (identifier "iVar3") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n        *param_4 = *param_4 + 1;\n      }" ({ "{") (expression_statement "*param_4 = *param_4 + 1;" (assignment_expression "*param_4 = *param_4 + 1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + 1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" (else "else") (compound_statement "{\n        *param_4 = *param_4 + (iVar1 - iVar3);\n      }" ({ "{") (expression_statement "*param_4 = *param_4 + (iVar1 - iVar3);" (assignment_expression "*param_4 = *param_4 + (iVar1 - iVar3)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + (iVar1 - iVar3)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (parenthesized_expression "(iVar1 - iVar3)" (( "(") (binary_expression "iVar1 - iVar3" (identifier "iVar1") (- "-") (identifier "iVar3")) () ")")))) (; ";")) (} "}")))))) (} "}")) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" (else "else") (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* 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 *var_3,char *boundary,size_t var_2,size_t *ioffptr,
                 type_2 next_state,type_2 next_dash_state)

{
  int var_6;
  type_1 *var_8;
  type_3 var_1;
  type_1 *var_9;
  
  var_1 = var_3->buffer_pos;
  if (var_1 < var_2 + 2) {
    if (var_1 == var_3->buffer_size) {
      var_3->state = PP_Error;
    }
  }
  else {
    var_9 = var_3 + 1;
    var_6 = (*(type_4 *)PTR_memcmp_000412cc)(var_4>var_5 + 0x5c,var_9,2);
    if ((var_6 == 0) &&
       (var_6 = (*(type_4 *)PTR_memcmp_000412cc)
                          ((type_5 *)((int)&var_3[1].connection + 2),boundary,var_2), var_6 == 0)) {
      *ioffptr = *ioffptr + 2 + var_2;
      var_3->skip_rn = RN_Dash;
      var_3->state = next_state;
      var_3->dash_state = next_dash_state;
      return 1;
    }
    if (var_3->state == var_7) {
      var_8 = (type_1 *)(*(type_4 *)PTR_memchr_00041204)(var_9,0x2d,var_1);
      if (var_8 == (type_1 *)0x0) {
        *ioffptr = *ioffptr + var_1;
      }
      else if (var_9 == var_8) {
        *ioffptr = *ioffptr + 1;
      }
      else {
        *ioffptr = (int)var_8 + (*ioffptr - (int)var_9);
      }
    }
    else {
      var_3->state = PP_Error;
    }
  }
  return 0;
}


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

undefined4
MASKED(int param_1,undefined4 param_2,int param_3,int *param_4,undefined4 param_5,
            undefined4 param_6)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  
  uVar2 = *(uint *)(param_1 + 0x34);
  if (uVar2 < param_3 + 2U) {
    if (uVar2 == *(uint *)(param_1 + 0x30)) {
      *(undefined4 *)(param_1 + 0x54) = 0;
    }
  }
  else {
    iVar3 = param_1 + 0x68;
    iVar1 = (*(code *)PTR_memcmp_000412cc)(PTR_s_than_FD_SETSIZE___d_>__d_0004105c + 0x5c,iVar3,2);
    if ((iVar1 == 0) &&
       (iVar1 = (*(code *)PTR_memcmp_000412cc)(param_1 + 0x6a,param_2,param_3), iVar1 == 0)) {
      *param_4 = *param_4 + 2 + param_3;
      *(undefined4 *)(param_1 + 0x58) = 3;
      *(undefined4 *)(param_1 + 0x54) = param_5;
      *(undefined4 *)(param_1 + 0x5c) = param_6;
      return 1;
    }
    if (*(int *)(param_1 + 0x54) == 2) {
      iVar1 = (*(code *)PTR_memchr_00041204)(iVar3,0x2d,uVar2);
      if (iVar1 == 0) {
        *param_4 = *param_4 + uVar2;
      }
      else if (iVar3 == iVar1) {
        *param_4 = *param_4 + 1;
      }
      else {
        *param_4 = *param_4 + (iVar1 - iVar3);
      }
    }
    else {
      *(undefined4 *)(param_1 + 0x54) = 0;
    }
  }
  return 0;
}

