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

int process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)

{
  char cVar1;
  undefined *puVar2;
  size_t sVar3;
  int iVar4;
  char *pcVar5;
  size_t sVar6;
  size_t sVar7;
  size_t sVar8;
  MHD_PostProcessor *str2;
  
  sVar6 = pp->buffer_pos;
  sVar7 = pp->buffer_size;
  if (sVar6 == 0) {
    if (sVar7 != 0) {
      return 0;
    }
LAB_00022848:
    pp->state = PP_Error;
    return 0;
  }
  if ((*(char *)&pp[1].connection == '\r') ||
     (pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n')) {
    if (sVar7 != 0) {
      pp->state = next_state;
      pp->skip_rn = RN_Full;
      return 1;
    }
    goto LAB_00022848;
  }
  str2 = pp + 1;
  sVar3 = 0;
  do {
    sVar8 = sVar3;
    sVar3 = sVar8 + 1;
    if (sVar6 == sVar3) {
      if (sVar6 != sVar7) {
        return 0;
      }
      goto LAB_000227b4;
    }
    cVar1 = *pcVar5;
    pcVar5 = pcVar5 + 1;
  } while ((cVar1 != '\r') && (cVar1 != '\n'));
  if (sVar3 == sVar7) {
LAB_000227b4:
    pp->state = PP_Error;
    return 0;
  }
  if (str2->xbuf[sVar8 - 0x27] == '\r') {
    pp->skip_rn = RN_OptN;
  }
  puVar2 = PTR_DAT_0003d02c;
  str2->xbuf[sVar8 - 0x27] = '\0';
  iVar4 = MHD_str_equal_caseless_n_(puVar2 + -0x3ca0,(char *)str2,0x15);
  if (iVar4 == 0) {
    if (pp->content_type == (char *)0x0) {
      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);
    }
    if (pp->content_transfer_encoding == (char *)0x0) {
      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);
      sVar6 = *ioffptr;
      goto LAB_00022788;
    }
  }
  else {
    pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);
    if (pp->content_name == (char *)0x0) {
      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);
    }
    if (pp->content_filename == (char *)0x0) {
      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);
      sVar6 = *ioffptr;
      goto LAB_00022788;
    }
  }
  sVar6 = *ioffptr;
LAB_00022788:
  *ioffptr = sVar6 + 2 + sVar8;
  return 1;
}



undefined4 FUN_00022680(int param_1,int *param_2,undefined4 param_3)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar5 = *(int *)(param_1 + 0x30);
  iVar6 = *(int *)(param_1 + 0x2c);
  if (iVar5 == 0) {
    if (iVar6 != 0) {
      return 0;
    }
LAB_00022848:
    *(undefined4 *)(param_1 + 0x4c) = 0;
    return 0;
  }
  if ((*(char *)(param_1 + 0x60) == '\r') ||
     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {
    if (iVar6 != 0) {
      *(undefined4 *)(param_1 + 0x4c) = param_3;
      *(undefined4 *)(param_1 + 0x50) = 2;
      return 1;
    }
    goto LAB_00022848;
  }
  iVar8 = param_1 + 0x60;
  iVar3 = 0;
  do {
    iVar7 = iVar3;
    iVar3 = iVar7 + 1;
    if (iVar5 == iVar3) {
      if (iVar5 != iVar6) {
        return 0;
      }
      goto LAB_000227b4;
    }
    cVar1 = *pcVar4;
    pcVar4 = pcVar4 + 1;
  } while ((cVar1 != '\r') && (cVar1 != '\n'));
  if (iVar3 == iVar6) {
LAB_000227b4:
    *(undefined4 *)(param_1 + 0x4c) = 0;
    return 0;
  }
  if (*(char *)(iVar8 + iVar3) == '\r') {
    *(undefined4 *)(param_1 + 0x50) = 1;
  }
  puVar2 = PTR_DAT_0003d02c;
  *(char *)(iVar8 + iVar3) = '\0';
  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);
  if (iVar5 == 0) {
    if (*(int *)(param_1 + 0x1c) == 0) {
      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);
    }
    if (*(int *)(param_1 + 0x24) == 0) {
      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);
      iVar5 = *param_2;
      goto LAB_00022788;
    }
  }
  else {
    if (*(int *)(param_1 + 0x18) == 0) {
      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);
    }
    if (*(int *)(param_1 + 0x20) == 0) {
      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);
      iVar5 = *param_2;
      goto LAB_00022788;
    }
  }
  iVar5 = *param_2;
LAB_00022788:
  *param_2 = iVar5 + 2 + iVar7;
  return 1;
}


lui gp,0x2
addiu gp,gp,0x2980
addu gp,gp,t9
lw a3,0x30(a0)
beq a3,zero,0x00022834
_lw t2,0x2c(a0)
lb v0,0x60(a0)
li v1,0xd
beq v0,v1,0x00022810
_li v1,0xa
beq v0,v1,0x00022810
_addiu v1,a0,0x61
addiu sp,sp,-0x30
li t0,0xd
sw gp,0x10(sp)
li t1,0xa
sw s3,0x28(sp)
addiu s3,a0,0x60
sw s0,0x1c(sp)
or s0,zero,zero
sw ra,0x2c(sp)
sw s2,0x24(sp)
b 0x000226f8
_sw s1,0x20(sp)
lb a2,0x0(v1)
beq a2,t0,0x00022728
_addiu v1,v1,0x1
beq a2,t1,0x00022728
_nop
or s0,v0,zero
addiu v0,s0,0x1
bne a3,v0,0x000226e0
_nop
beq a3,t2,0x000227b4
_lw ra,0x2c(sp)
or v0,zero,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
beq v0,t2,0x000227b4
_addu v0,s3,v0
li v1,0xd
lb a2,0x0(v0)
beq a2,v1,0x0002282c
_li v1,0x1
or s1,a0,zero
lw a0,-0x7fd4(gp)
lw t9,-0x7f60(gp)
li a2,0x15
or s2,a1,zero
sb zero,0x0(v0)
addiu a0,a0,-0x3ca0
bal 0x0001f1b8
_or a1,s3,zero
bne v0,zero,0x000227d8
_lw gp,0x10(sp)
lw v0,0x1c(s1)
beq v0,zero,0x00022854
_lw a0,-0x7fd4(gp)
lw v0,0x24(s1)
beq v0,zero,0x0002289c
_lw a0,-0x7fd4(gp)
lw v1,0x0(s2)
li v0,0x1
addiu v1,v1,0x2
addu s0,v1,s0
sw s0,0x0(s2)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
sw zero,0x4c(a0)
or v0,zero,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw v0,0x18(s1)
beq v0,zero,0x00022878
_addiu s3,s1,0x75
lw v0,0x20(s1)
bne v0,zero,0x00022784
_addiu a2,s1,0x20
lw a1,-0x7fd4(gp)
lw t9,-0x7fac(gp)
or a0,s3,zero
addiu t9,t9,0x2530
bal 0x00022530
_addiu a1,a1,-0x3c88
b 0x00022788
_lw v1,0x0(s2)
beq t2,zero,0x00022848
_nop
li v1,0x2
sw a2,0x4c(a0)
li v0,0x1
jr ra
_sw v1,0x50(a0)
b 0x00022740
_sw v1,0x50(a0)
beq t2,zero,0x00022848
_nop
or v0,zero,zero
jr ra
_nop
sw zero,0x4c(a0)
jr ra
_or v0,zero,zero
addiu a3,s1,0x1c
lw t9,-0x7fac(gp)
li a1,0xe
or a2,s3,zero
addiu t9,t9,0x2460
bal 0x00022460
_addiu a0,a0,-0x3c7c
b 0x00022778
_lw gp,0x10(sp)
lw a1,-0x7fd4(gp)
addiu a2,s1,0x18
lw t9,-0x7fac(gp)
or a0,s3,zero
addiu t9,t9,0x2530
bal 0x00022530
_addiu a1,a1,-0x3c84
b 0x000227e4
_lw gp,0x10(sp)
addiu a3,s1,0x24
lw t9,-0x7fac(gp)
li a1,0x1b
or a2,s3,zero
addiu t9,t9,0x2460
bal 0x00022460
_addiu a0,a0,-0x3c6c
b 0x00022788
_lw v1,0x0(s2)
(translation_unit "undefined4 FUN_00022680(int param_1,int *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00022680(int param_1,int *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}" type_identifier (function_declarator "FUN_00022680(int param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x30)" identifier = (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" { (if_statement "if (iVar6 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n'))" ( (binary_expression "(*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')" (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\r')" ( (binary_expression "*(char *)(param_1 + 0x60) == '\r'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\r'" ' escape_sequence ')) )) || (parenthesized_expression "(pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')" ( (comma_expression "pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n'" (assignment_expression "pcVar4 = (char *)(param_1 + 0x61)" identifier = (cast_expression "(char *)(param_1 + 0x61)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x61)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) )))) , (binary_expression "*(char *)(param_1 + 0x60) == '\n'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\n'" ' escape_sequence '))) ))) )) (compound_statement "{\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" { (if_statement "if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x4c) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_00022848;" goto statement_identifier ;) })) (expression_statement "iVar8 = param_1 + 0x60;" (assignment_expression "iVar8 = param_1 + 0x60" identifier = (binary_expression "param_1 + 0x60" identifier + number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));" do (compound_statement "{\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  }" { (expression_statement "iVar7 = iVar3;" (assignment_expression "iVar7 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar7 + 1;" (assignment_expression "iVar3 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" if (parenthesized_expression "(iVar5 == iVar3)" ( (binary_expression "iVar5 == iVar3" identifier == identifier) )) (compound_statement "{\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" { (if_statement "if (iVar5 != iVar6) {\n        return 0;\n      }" if (parenthesized_expression "(iVar5 != iVar6)" ( (binary_expression "iVar5 != iVar6" identifier != identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_000227b4;" goto statement_identifier ;) })) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((cVar1 != '\r') && (cVar1 != '\n'))" ( (binary_expression "(cVar1 != '\r') && (cVar1 != '\n')" (parenthesized_expression "(cVar1 != '\r')" ( (binary_expression "cVar1 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar1 != '\n')" ( (binary_expression "cVar1 != '\n'" identifier != (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) (if_statement "if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == iVar6)" ( (binary_expression "iVar3 == iVar6" identifier == identifier) )) (compound_statement "{\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" { (labeled_statement "LAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }" if (parenthesized_expression "(*(char *)(iVar8 + iVar3) == '\r')" ( (binary_expression "*(char *)(iVar8 + iVar3) == '\r'" (pointer_expression "*(char *)(iVar8 + iVar3)" * (cast_expression "(char *)(iVar8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar3)" ( (binary_expression "iVar8 + iVar3" identifier + identifier) )))) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x50) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar2 = PTR_DAT_0003d02c;" (assignment_expression "puVar2 = PTR_DAT_0003d02c" identifier = identifier) ;) (expression_statement "*(char *)(iVar8 + iVar3) = '\0';" (assignment_expression "*(char *)(iVar8 + iVar3) = '\0'" (pointer_expression "*(char *)(iVar8 + iVar3)" * (cast_expression "(char *)(iVar8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar3)" ( (binary_expression "iVar8 + iVar3" identifier + identifier) )))) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);" (assignment_expression "iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15)" identifier = (call_expression "FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15)" identifier (argument_list "(puVar2 + -0x3ca0,iVar8,0x15)" ( (binary_expression "puVar2 + -0x3ca0" identifier + number_literal) , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }" { (expression_statement "FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);" (call_expression "FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c)" identifier (argument_list "(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c)" ( (binary_expression "PTR_DAT_0003d02c + -0x3c7c" identifier + number_literal) , number_literal , identifier , (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" { (expression_statement "FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);" (call_expression "FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24)" identifier (argument_list "(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24)" ( (binary_expression "PTR_DAT_0003d02c + -0x3c6c" identifier + number_literal) , number_literal , identifier , (binary_expression "param_1 + 0x24" identifier + number_literal) ))) ;) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto LAB_00022788;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" ( (binary_expression "*(int *)(param_1 + 0x18) == 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }" { (expression_statement "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);" (call_expression "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18)" identifier (argument_list "(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) , (binary_expression "PTR_DAT_0003d02c + -0x3c84" identifier + number_literal) , (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" ( (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" { (expression_statement "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);" (call_expression "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20)" identifier (argument_list "(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) , (binary_expression "PTR_DAT_0003d02c + -0x3c88" identifier + number_literal) , (binary_expression "param_1 + 0x20" identifier + number_literal) ))) ;) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto LAB_00022788;" goto statement_identifier ;) })) }))) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (labeled_statement "LAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;" statement_identifier : (expression_statement "*param_2 = iVar5 + 2 + iVar7;" (assignment_expression "*param_2 = iVar5 + 2 + iVar7" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar5 + 2 + iVar7" (binary_expression "iVar5 + 2" identifier + number_literal) + identifier)) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n\nint process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  size_t sVar7;\n  size_t sVar8;\n  MHD_PostProcessor *str2;\n  \n  sVar6 = pp->buffer_pos;\n  sVar7 = pp->buffer_size;\n  if (sVar6 == 0) {\n    if (sVar7 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    pp->state = PP_Error;\n    return 0;\n  }\n  if ((*(char *)&pp[1].connection == '\r') ||\n     (pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n')) {\n    if (sVar7 != 0) {\n      pp->state = next_state;\n      pp->skip_rn = RN_Full;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  str2 = pp + 1;\n  sVar3 = 0;\n  do {\n    sVar8 = sVar3;\n    sVar3 = sVar8 + 1;\n    if (sVar6 == sVar3) {\n      if (sVar6 != sVar7) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (sVar3 == sVar7) {\nLAB_000227b4:\n    pp->state = PP_Error;\n    return 0;\n  }\n  if (str2->xbuf[sVar8 - 0x27] == '\r') {\n    pp->skip_rn = RN_OptN;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  str2->xbuf[sVar8 - 0x27] = '\0';\n  iVar4 = MHD_str_equal_caseless_n_(puVar2 + -0x3ca0,(char *)str2,0x15);\n  if (iVar4 == 0) {\n    if (pp->content_type == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);\n    }\n    if (pp->content_transfer_encoding == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);\n    if (pp->content_name == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }\n    if (pp->content_filename == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }\n  sVar6 = *ioffptr;\nLAB_00022788:\n  *ioffptr = sVar6 + 2 + sVar8;\n  return 1;\n}\n\n" comment (function_definition "int process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  size_t sVar7;\n  size_t sVar8;\n  MHD_PostProcessor *str2;\n  \n  sVar6 = pp->buffer_pos;\n  sVar7 = pp->buffer_size;\n  if (sVar6 == 0) {\n    if (sVar7 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    pp->state = PP_Error;\n    return 0;\n  }\n  if ((*(char *)&pp[1].connection == '\r') ||\n     (pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n')) {\n    if (sVar7 != 0) {\n      pp->state = next_state;\n      pp->skip_rn = RN_Full;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  str2 = pp + 1;\n  sVar3 = 0;\n  do {\n    sVar8 = sVar3;\n    sVar3 = sVar8 + 1;\n    if (sVar6 == sVar3) {\n      if (sVar6 != sVar7) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (sVar3 == sVar7) {\nLAB_000227b4:\n    pp->state = PP_Error;\n    return 0;\n  }\n  if (str2->xbuf[sVar8 - 0x27] == '\r') {\n    pp->skip_rn = RN_OptN;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  str2->xbuf[sVar8 - 0x27] = '\0';\n  iVar4 = MHD_str_equal_caseless_n_(puVar2 + -0x3ca0,(char *)str2,0x15);\n  if (iVar4 == 0) {\n    if (pp->content_type == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);\n    }\n    if (pp->content_transfer_encoding == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);\n    if (pp->content_name == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }\n    if (pp->content_filename == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }\n  sVar6 = *ioffptr;\nLAB_00022788:\n  *ioffptr = sVar6 + 2 + sVar8;\n  return 1;\n}" primitive_type (function_declarator "process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)" identifier (parameter_list "(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)" ( (parameter_declaration "MHD_PostProcessor *pp" type_identifier (pointer_declarator "*pp" * identifier)) , (parameter_declaration "size_t *ioffptr" primitive_type (pointer_declarator "*ioffptr" * identifier)) , (parameter_declaration "PP_State next_state" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  size_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  size_t sVar7;\n  size_t sVar8;\n  MHD_PostProcessor *str2;\n  \n  sVar6 = pp->buffer_pos;\n  sVar7 = pp->buffer_size;\n  if (sVar6 == 0) {\n    if (sVar7 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    pp->state = PP_Error;\n    return 0;\n  }\n  if ((*(char *)&pp[1].connection == '\r') ||\n     (pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n')) {\n    if (sVar7 != 0) {\n      pp->state = next_state;\n      pp->skip_rn = RN_Full;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  str2 = pp + 1;\n  sVar3 = 0;\n  do {\n    sVar8 = sVar3;\n    sVar3 = sVar8 + 1;\n    if (sVar6 == sVar3) {\n      if (sVar6 != sVar7) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (sVar3 == sVar7) {\nLAB_000227b4:\n    pp->state = PP_Error;\n    return 0;\n  }\n  if (str2->xbuf[sVar8 - 0x27] == '\r') {\n    pp->skip_rn = RN_OptN;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  str2->xbuf[sVar8 - 0x27] = '\0';\n  iVar4 = MHD_str_equal_caseless_n_(puVar2 + -0x3ca0,(char *)str2,0x15);\n  if (iVar4 == 0) {\n    if (pp->content_type == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);\n    }\n    if (pp->content_transfer_encoding == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);\n    if (pp->content_name == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }\n    if (pp->content_filename == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }\n  sVar6 = *ioffptr;\nLAB_00022788:\n  *ioffptr = sVar6 + 2 + sVar8;\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "MHD_PostProcessor *str2;" type_identifier (pointer_declarator "*str2" * identifier) ;) (expression_statement "sVar6 = pp->buffer_pos;" (assignment_expression "sVar6 = pp->buffer_pos" identifier = (field_expression "pp->buffer_pos" identifier -> field_identifier)) ;) (expression_statement "sVar7 = pp->buffer_size;" (assignment_expression "sVar7 = pp->buffer_size" identifier = (field_expression "pp->buffer_size" identifier -> field_identifier)) ;) (if_statement "if (sVar6 == 0) {\n    if (sVar7 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    pp->state = PP_Error;\n    return 0;\n  }" if (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    if (sVar7 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    pp->state = PP_Error;\n    return 0;\n  }" { (if_statement "if (sVar7 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(sVar7 != 0)" ( (binary_expression "sVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00022848:\n    pp->state = PP_Error;" statement_identifier : (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 ;) })) (if_statement "if ((*(char *)&pp[1].connection == '\r') ||\n     (pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n')) {\n    if (sVar7 != 0) {\n      pp->state = next_state;\n      pp->skip_rn = RN_Full;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" if (parenthesized_expression "((*(char *)&pp[1].connection == '\r') ||\n     (pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n'))" ( (binary_expression "(*(char *)&pp[1].connection == '\r') ||\n     (pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n')" (parenthesized_expression "(*(char *)&pp[1].connection == '\r')" ( (binary_expression "*(char *)&pp[1].connection == '\r'" (pointer_expression "*(char *)&pp[1].connection" * (cast_expression "(char *)&pp[1].connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pp[1].connection" & (field_expression "pp[1].connection" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier)))) == (char_literal "'\r'" ' escape_sequence ')) )) || (parenthesized_expression "(pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n')" ( (comma_expression "pcVar5 = (char *)((int)&pp[1].connection + 1), *(char *)&pp[1].connection == '\n'" (assignment_expression "pcVar5 = (char *)((int)&pp[1].connection + 1)" identifier = (cast_expression "(char *)((int)&pp[1].connection + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pp[1].connection + 1)" ( (binary_expression "(int)&pp[1].connection + 1" (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) )))) , (binary_expression "*(char *)&pp[1].connection == '\n'" (pointer_expression "*(char *)&pp[1].connection" * (cast_expression "(char *)&pp[1].connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pp[1].connection" & (field_expression "pp[1].connection" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier)))) == (char_literal "'\n'" ' escape_sequence '))) ))) )) (compound_statement "{\n    if (sVar7 != 0) {\n      pp->state = next_state;\n      pp->skip_rn = RN_Full;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" { (if_statement "if (sVar7 != 0) {\n      pp->state = next_state;\n      pp->skip_rn = RN_Full;\n      return 1;\n    }" if (parenthesized_expression "(sVar7 != 0)" ( (binary_expression "sVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      pp->state = next_state;\n      pp->skip_rn = RN_Full;\n      return 1;\n    }" { (expression_statement "pp->state = next_state;" (assignment_expression "pp->state = next_state" (field_expression "pp->state" identifier -> field_identifier) = identifier) ;) (expression_statement "pp->skip_rn = RN_Full;" (assignment_expression "pp->skip_rn = RN_Full" (field_expression "pp->skip_rn" identifier -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_00022848;" goto statement_identifier ;) })) (expression_statement "str2 = pp + 1;" (assignment_expression "str2 = pp + 1" identifier = (binary_expression "pp + 1" identifier + number_literal)) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    sVar8 = sVar3;\n    sVar3 = sVar8 + 1;\n    if (sVar6 == sVar3) {\n      if (sVar6 != sVar7) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));" do (compound_statement "{\n    sVar8 = sVar3;\n    sVar3 = sVar8 + 1;\n    if (sVar6 == sVar3) {\n      if (sVar6 != sVar7) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  }" { (expression_statement "sVar8 = sVar3;" (assignment_expression "sVar8 = sVar3" identifier = identifier) ;) (expression_statement "sVar3 = sVar8 + 1;" (assignment_expression "sVar3 = sVar8 + 1" identifier = (binary_expression "sVar8 + 1" identifier + number_literal)) ;) (if_statement "if (sVar6 == sVar3) {\n      if (sVar6 != sVar7) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" if (parenthesized_expression "(sVar6 == sVar3)" ( (binary_expression "sVar6 == sVar3" identifier == identifier) )) (compound_statement "{\n      if (sVar6 != sVar7) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" { (if_statement "if (sVar6 != sVar7) {\n        return 0;\n      }" if (parenthesized_expression "(sVar6 != sVar7)" ( (binary_expression "sVar6 != sVar7" identifier != identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_000227b4;" goto statement_identifier ;) })) (expression_statement "cVar1 = *pcVar5;" (assignment_expression "cVar1 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((cVar1 != '\r') && (cVar1 != '\n'))" ( (binary_expression "(cVar1 != '\r') && (cVar1 != '\n')" (parenthesized_expression "(cVar1 != '\r')" ( (binary_expression "cVar1 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar1 != '\n')" ( (binary_expression "cVar1 != '\n'" identifier != (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) (if_statement "if (sVar3 == sVar7) {\nLAB_000227b4:\n    pp->state = PP_Error;\n    return 0;\n  }" if (parenthesized_expression "(sVar3 == sVar7)" ( (binary_expression "sVar3 == sVar7" identifier == identifier) )) (compound_statement "{\nLAB_000227b4:\n    pp->state = PP_Error;\n    return 0;\n  }" { (labeled_statement "LAB_000227b4:\n    pp->state = PP_Error;" statement_identifier : (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 ;) })) (if_statement "if (str2->xbuf[sVar8 - 0x27] == '\r') {\n    pp->skip_rn = RN_OptN;\n  }" if (parenthesized_expression "(str2->xbuf[sVar8 - 0x27] == '\r')" ( (binary_expression "str2->xbuf[sVar8 - 0x27] == '\r'" (subscript_expression "str2->xbuf[sVar8 - 0x27]" (field_expression "str2->xbuf" identifier -> field_identifier) [ (binary_expression "sVar8 - 0x27" identifier - number_literal) ]) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n    pp->skip_rn = RN_OptN;\n  }" { (expression_statement "pp->skip_rn = RN_OptN;" (assignment_expression "pp->skip_rn = RN_OptN" (field_expression "pp->skip_rn" identifier -> field_identifier) = identifier) ;) })) (expression_statement "puVar2 = PTR_DAT_0003d02c;" (assignment_expression "puVar2 = PTR_DAT_0003d02c" identifier = identifier) ;) (expression_statement "str2->xbuf[sVar8 - 0x27] = '\0';" (assignment_expression "str2->xbuf[sVar8 - 0x27] = '\0'" (subscript_expression "str2->xbuf[sVar8 - 0x27]" (field_expression "str2->xbuf" identifier -> field_identifier) [ (binary_expression "sVar8 - 0x27" identifier - number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar4 = MHD_str_equal_caseless_n_(puVar2 + -0x3ca0,(char *)str2,0x15);" (assignment_expression "iVar4 = MHD_str_equal_caseless_n_(puVar2 + -0x3ca0,(char *)str2,0x15)" identifier = (call_expression "MHD_str_equal_caseless_n_(puVar2 + -0x3ca0,(char *)str2,0x15)" identifier (argument_list "(puVar2 + -0x3ca0,(char *)str2,0x15)" ( (binary_expression "puVar2 + -0x3ca0" identifier + number_literal) , (cast_expression "(char *)str2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n    if (pp->content_type == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);\n    }\n    if (pp->content_transfer_encoding == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);\n    if (pp->content_name == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }\n    if (pp->content_filename == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (pp->content_type == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);\n    }\n    if (pp->content_transfer_encoding == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }" { (if_statement "if (pp->content_type == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);\n    }" if (parenthesized_expression "(pp->content_type == (char *)0x0)" ( (binary_expression "pp->content_type == (char *)0x0" (field_expression "pp->content_type" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);\n    }" { (expression_statement "try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type);" (call_expression "try_match_header(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type)" identifier (argument_list "(PTR_DAT_0003d02c + -0x3c7c,0xe,(char *)str2,&pp->content_type)" ( (binary_expression "PTR_DAT_0003d02c + -0x3c7c" identifier + number_literal) , number_literal , (cast_expression "(char *)str2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&pp->content_type" & (field_expression "pp->content_type" identifier -> field_identifier)) ))) ;) })) (if_statement "if (pp->content_transfer_encoding == (char *)0x0) {\n      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }" if (parenthesized_expression "(pp->content_transfer_encoding == (char *)0x0)" ( (binary_expression "pp->content_transfer_encoding == (char *)0x0" (field_expression "pp->content_transfer_encoding" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }" { (expression_statement "try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding);" (call_expression "try_match_header(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding)" identifier (argument_list "(PTR_DAT_0003d02c + -0x3c6c,0x1b,(char *)str2,&pp->content_transfer_encoding)" ( (binary_expression "PTR_DAT_0003d02c + -0x3c6c" identifier + number_literal) , number_literal , (cast_expression "(char *)str2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&pp->content_transfer_encoding" & (field_expression "pp->content_transfer_encoding" identifier -> field_identifier)) ))) ;) (expression_statement "sVar6 = *ioffptr;" (assignment_expression "sVar6 = *ioffptr" identifier = (pointer_expression "*ioffptr" * identifier)) ;) (goto_statement "goto LAB_00022788;" goto statement_identifier ;) })) }) (else_clause "else {\n    pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);\n    if (pp->content_name == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }\n    if (pp->content_filename == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }" else (compound_statement "{\n    pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);\n    if (pp->content_name == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }\n    if (pp->content_filename == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }\n  }" { (expression_statement "pcVar5 = (char *)((int)&pp[1].nested_boundary + 1);" (assignment_expression "pcVar5 = (char *)((int)&pp[1].nested_boundary + 1)" identifier = (cast_expression "(char *)((int)&pp[1].nested_boundary + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pp[1].nested_boundary + 1)" ( (binary_expression "(int)&pp[1].nested_boundary + 1" (cast_expression "(int)&pp[1].nested_boundary" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pp[1].nested_boundary" & (field_expression "pp[1].nested_boundary" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (if_statement "if (pp->content_name == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }" if (parenthesized_expression "(pp->content_name == (char *)0x0)" ( (binary_expression "pp->content_name == (char *)0x0" (field_expression "pp->content_name" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);\n    }" { (expression_statement "try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name);" (call_expression "try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name)" identifier (argument_list "(pcVar5,PTR_DAT_0003d02c + -0x3c84,&pp->content_name)" ( identifier , (binary_expression "PTR_DAT_0003d02c + -0x3c84" identifier + number_literal) , (pointer_expression "&pp->content_name" & (field_expression "pp->content_name" identifier -> field_identifier)) ))) ;) })) (if_statement "if (pp->content_filename == (char *)0x0) {\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }" if (parenthesized_expression "(pp->content_filename == (char *)0x0)" ( (binary_expression "pp->content_filename == (char *)0x0" (field_expression "pp->content_filename" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);\n      sVar6 = *ioffptr;\n      goto LAB_00022788;\n    }" { (expression_statement "try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename);" (call_expression "try_get_value(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename)" identifier (argument_list "(pcVar5,PTR_DAT_0003d02c + -0x3c88,&pp->content_filename)" ( identifier , (binary_expression "PTR_DAT_0003d02c + -0x3c88" identifier + number_literal) , (pointer_expression "&pp->content_filename" & (field_expression "pp->content_filename" identifier -> field_identifier)) ))) ;) (expression_statement "sVar6 = *ioffptr;" (assignment_expression "sVar6 = *ioffptr" identifier = (pointer_expression "*ioffptr" * identifier)) ;) (goto_statement "goto LAB_00022788;" goto statement_identifier ;) })) }))) (expression_statement "sVar6 = *ioffptr;" (assignment_expression "sVar6 = *ioffptr" identifier = (pointer_expression "*ioffptr" * identifier)) ;) (labeled_statement "LAB_00022788:\n  *ioffptr = sVar6 + 2 + sVar8;" statement_identifier : (expression_statement "*ioffptr = sVar6 + 2 + sVar8;" (assignment_expression "*ioffptr = sVar6 + 2 + sVar8" (pointer_expression "*ioffptr" * identifier) = (binary_expression "sVar6 + 2 + sVar8" (binary_expression "sVar6 + 2" identifier + number_literal) + identifier)) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00022680(int param_1,int *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00022680(int param_1,int *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}" type_identifier (function_declarator "FUN_00022680(int param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x30)" identifier = (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" { (if_statement "if (iVar6 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n'))" ( (binary_expression "(*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')" (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\r')" ( (binary_expression "*(char *)(param_1 + 0x60) == '\r'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\r'" ' escape_sequence ')) )) || (parenthesized_expression "(pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')" ( (comma_expression "pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n'" (assignment_expression "pcVar4 = (char *)(param_1 + 0x61)" identifier = (cast_expression "(char *)(param_1 + 0x61)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x61)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) )))) , (binary_expression "*(char *)(param_1 + 0x60) == '\n'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\n'" ' escape_sequence '))) ))) )) (compound_statement "{\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" { (if_statement "if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x4c) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_00022848;" goto statement_identifier ;) })) (expression_statement "iVar8 = param_1 + 0x60;" (assignment_expression "iVar8 = param_1 + 0x60" identifier = (binary_expression "param_1 + 0x60" identifier + number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));" do (compound_statement "{\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  }" { (expression_statement "iVar7 = iVar3;" (assignment_expression "iVar7 = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = iVar7 + 1;" (assignment_expression "iVar3 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" if (parenthesized_expression "(iVar5 == iVar3)" ( (binary_expression "iVar5 == iVar3" identifier == identifier) )) (compound_statement "{\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" { (if_statement "if (iVar5 != iVar6) {\n        return 0;\n      }" if (parenthesized_expression "(iVar5 != iVar6)" ( (binary_expression "iVar5 != iVar6" identifier != identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_000227b4;" goto statement_identifier ;) })) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((cVar1 != '\r') && (cVar1 != '\n'))" ( (binary_expression "(cVar1 != '\r') && (cVar1 != '\n')" (parenthesized_expression "(cVar1 != '\r')" ( (binary_expression "cVar1 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar1 != '\n')" ( (binary_expression "cVar1 != '\n'" identifier != (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) (if_statement "if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" if (parenthesized_expression "(iVar3 == iVar6)" ( (binary_expression "iVar3 == iVar6" identifier == identifier) )) (compound_statement "{\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" { (labeled_statement "LAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }" if (parenthesized_expression "(*(char *)(iVar8 + iVar3) == '\r')" ( (binary_expression "*(char *)(iVar8 + iVar3) == '\r'" (pointer_expression "*(char *)(iVar8 + iVar3)" * (cast_expression "(char *)(iVar8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar3)" ( (binary_expression "iVar8 + iVar3" identifier + identifier) )))) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x50) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar2 = PTR_DAT_0003d02c;" (assignment_expression "puVar2 = PTR_DAT_0003d02c" identifier = identifier) ;) (expression_statement "*(char *)(iVar8 + iVar3) = '\0';" (assignment_expression "*(char *)(iVar8 + iVar3) = '\0'" (pointer_expression "*(char *)(iVar8 + iVar3)" * (cast_expression "(char *)(iVar8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar3)" ( (binary_expression "iVar8 + iVar3" identifier + identifier) )))) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);" (assignment_expression "iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15)" identifier = (call_expression "FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15)" identifier (argument_list "(puVar2 + -0x3ca0,iVar8,0x15)" ( (binary_expression "puVar2 + -0x3ca0" identifier + number_literal) , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }" { (expression_statement "FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);" (call_expression "FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c)" identifier (argument_list "(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c)" ( (binary_expression "PTR_DAT_0003d02c + -0x3c7c" identifier + number_literal) , number_literal , identifier , (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" { (expression_statement "FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);" (call_expression "FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24)" identifier (argument_list "(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24)" ( (binary_expression "PTR_DAT_0003d02c + -0x3c6c" identifier + number_literal) , number_literal , identifier , (binary_expression "param_1 + 0x24" identifier + number_literal) ))) ;) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto LAB_00022788;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" ( (binary_expression "*(int *)(param_1 + 0x18) == 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }" { (expression_statement "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);" (call_expression "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18)" identifier (argument_list "(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) , (binary_expression "PTR_DAT_0003d02c + -0x3c84" identifier + number_literal) , (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" ( (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" { (expression_statement "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);" (call_expression "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20)" identifier (argument_list "(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20)" ( (binary_expression "param_1 + 0x75" identifier + number_literal) , (binary_expression "PTR_DAT_0003d02c + -0x3c88" identifier + number_literal) , (binary_expression "param_1 + 0x20" identifier + number_literal) ))) ;) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto LAB_00022788;" goto statement_identifier ;) })) }))) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (labeled_statement "LAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;" statement_identifier : (expression_statement "*param_2 = iVar5 + 2 + iVar7;" (assignment_expression "*param_2 = iVar5 + 2 + iVar7" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar5 + 2 + iVar7" (binary_expression "iVar5 + 2" identifier + number_literal) + identifier)) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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) ))))) ;) (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 == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (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 ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (if_statement if (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) )))) = IDENT) ;) (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 ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (labeled_statement statement_identifier : (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 ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (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 IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , IDENT , (binary_expression IDENT + 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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + 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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;)) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00022680(int param_1,int *param_2,undefined4 param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00022680(int param_1,int *param_2,undefined4 param_3)" (identifier "FUN_00022680") (parameter_list "(int param_1,int *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = *(int *)(param_1 + 0x30);\n  iVar6 = *(int *)(param_1 + 0x2c);\n  if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }\n  iVar8 = param_1 + 0x60;\n  iVar3 = 0;\n  do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));\n  if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }\n  if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }\n  puVar2 = PTR_DAT_0003d02c;\n  *(char *)(iVar8 + iVar3) = '\0';\n  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);\n  if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  iVar5 = *param_2;\nLAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;\n  return 1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x30)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (if_statement "if (iVar5 == 0) {\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar6 != 0) {\n      return 0;\n    }\nLAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" ({ "{") (if_statement "if (iVar6 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_00022848:\n    *(undefined4 *)(param_1 + 0x4c) = 0;" (statement_identifier "LAB_00022848") (: ":") (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n'))" (( "(") (binary_expression "(*(char *)(param_1 + 0x60) == '\r') ||\n     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')" (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\r')" (( "(") (binary_expression "*(char *)(param_1 + 0x60) == '\r'" (pointer_expression "*(char *)(param_1 + 0x60)" (* "*") (cast_expression "(char *)(param_1 + 0x60)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')" (( "(") (comma_expression "pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n'" (assignment_expression "pcVar4 = (char *)(param_1 + 0x61)" (identifier "pcVar4") (= "=") (cast_expression "(char *)(param_1 + 0x61)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x61)" (( "(") (binary_expression "param_1 + 0x61" (identifier "param_1") (+ "+") (number_literal "0x61")) () ")")))) (, ",") (binary_expression "*(char *)(param_1 + 0x60) == '\n'" (pointer_expression "*(char *)(param_1 + 0x60)" (* "*") (cast_expression "(char *)(param_1 + 0x60)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }\n    goto LAB_00022848;\n  }" ({ "{") (if_statement "if (iVar6 != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x4c) = param_3;\n      *(undefined4 *)(param_1 + 0x50) = 2;\n      return 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x4c) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (goto_statement "goto LAB_00022848;" (goto "goto") (statement_identifier "LAB_00022848") (; ";")) (} "}"))) (expression_statement "iVar8 = param_1 + 0x60;" (assignment_expression "iVar8 = param_1 + 0x60" (identifier "iVar8") (= "=") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  } while ((cVar1 != '\r') && (cVar1 != '\n'));" (do "do") (compound_statement "{\n    iVar7 = iVar3;\n    iVar3 = iVar7 + 1;\n    if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + 1;\n  }" ({ "{") (expression_statement "iVar7 = iVar3;" (assignment_expression "iVar7 = iVar3" (identifier "iVar7") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = iVar7 + 1;" (assignment_expression "iVar3 = iVar7 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar5 == iVar3) {\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" (if "if") (parenthesized_expression "(iVar5 == iVar3)" (( "(") (binary_expression "iVar5 == iVar3" (identifier "iVar5") (== "==") (identifier "iVar3")) () ")")) (compound_statement "{\n      if (iVar5 != iVar6) {\n        return 0;\n      }\n      goto LAB_000227b4;\n    }" ({ "{") (if_statement "if (iVar5 != iVar6) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar5 != iVar6)" (( "(") (binary_expression "iVar5 != iVar6" (identifier "iVar5") (!= "!=") (identifier "iVar6")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (goto_statement "goto LAB_000227b4;" (goto "goto") (statement_identifier "LAB_000227b4") (; ";")) (} "}"))) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" (identifier "cVar1") (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((cVar1 != '\r') && (cVar1 != '\n'))" (( "(") (binary_expression "(cVar1 != '\r') && (cVar1 != '\n')" (parenthesized_expression "(cVar1 != '\r')" (( "(") (binary_expression "cVar1 != '\r'" (identifier "cVar1") (!= "!=") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar1 != '\n')" (( "(") (binary_expression "cVar1 != '\n'" (identifier "cVar1") (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")"))) () ")")) (; ";")) (if_statement "if (iVar3 == iVar6) {\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == iVar6)" (( "(") (binary_expression "iVar3 == iVar6" (identifier "iVar3") (== "==") (identifier "iVar6")) () ")")) (compound_statement "{\nLAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n    return 0;\n  }" ({ "{") (labeled_statement "LAB_000227b4:\n    *(undefined4 *)(param_1 + 0x4c) = 0;" (statement_identifier "LAB_000227b4") (: ":") (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar8 + iVar3) == '\r') {\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar8 + iVar3) == '\r')" (( "(") (binary_expression "*(char *)(iVar8 + iVar3) == '\r'" (pointer_expression "*(char *)(iVar8 + iVar3)" (* "*") (cast_expression "(char *)(iVar8 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + iVar3)" (( "(") (binary_expression "iVar8 + iVar3" (identifier "iVar8") (+ "+") (identifier "iVar3")) () ")")))) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x50) = 1;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x50) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "puVar2 = PTR_DAT_0003d02c;" (assignment_expression "puVar2 = PTR_DAT_0003d02c" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0003d02c")) (; ";")) (expression_statement "*(char *)(iVar8 + iVar3) = '\0';" (assignment_expression "*(char *)(iVar8 + iVar3) = '\0'" (pointer_expression "*(char *)(iVar8 + iVar3)" (* "*") (cast_expression "(char *)(iVar8 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + iVar3)" (( "(") (binary_expression "iVar8 + iVar3" (identifier "iVar8") (+ "+") (identifier "iVar3")) () ")")))) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);" (assignment_expression "iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15)" (identifier "iVar5") (= "=") (call_expression "FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15)" (identifier "FUN_0001f1b8") (argument_list "(puVar2 + -0x3ca0,iVar8,0x15)" (( "(") (binary_expression "puVar2 + -0x3ca0" (identifier "puVar2") (+ "+") (number_literal "-0x3ca0")) (, ",") (identifier "iVar8") (, ",") (number_literal "0x15") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }\n  else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }\n    if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);\n    }" ({ "{") (expression_statement "FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);" (call_expression "FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c)" (identifier "FUN_00022460") (argument_list "(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c)" (( "(") (binary_expression "PTR_DAT_0003d02c + -0x3c7c" (identifier "PTR_DAT_0003d02c") (+ "+") (number_literal "-0x3c7c")) (, ",") (number_literal "0xe") (, ",") (identifier "iVar8") (, ",") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x24) == 0) {\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" ({ "{") (expression_statement "FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);" (call_expression "FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24)" (identifier "FUN_00022460") (argument_list "(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24)" (( "(") (binary_expression "PTR_DAT_0003d02c + -0x3c6c" (identifier "PTR_DAT_0003d02c") (+ "+") (number_literal "-0x3c6c")) (, ",") (number_literal "0x1b") (, ",") (identifier "iVar8") (, ",") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))) (; ";")) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" (identifier "iVar5") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (goto_statement "goto LAB_00022788;" (goto "goto") (statement_identifier "LAB_00022788") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" (else "else") (compound_statement "{\n    if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }\n    if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x18) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) == 0" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);\n    }" ({ "{") (expression_statement "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);" (call_expression "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18)" (identifier "FUN_00022530") (argument_list "(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x75" (identifier "param_1") (+ "+") (number_literal "0x75")) (, ",") (binary_expression "PTR_DAT_0003d02c + -0x3c84" (identifier "PTR_DAT_0003d02c") (+ "+") (number_literal "-0x3c84")) (, ",") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x20) == 0) {\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);\n      iVar5 = *param_2;\n      goto LAB_00022788;\n    }" ({ "{") (expression_statement "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);" (call_expression "FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20)" (identifier "FUN_00022530") (argument_list "(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x75" (identifier "param_1") (+ "+") (number_literal "0x75")) (, ",") (binary_expression "PTR_DAT_0003d02c + -0x3c88" (identifier "PTR_DAT_0003d02c") (+ "+") (number_literal "-0x3c88")) (, ",") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))) (; ";")) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" (identifier "iVar5") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (goto_statement "goto LAB_00022788;" (goto "goto") (statement_identifier "LAB_00022788") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar5 = *param_2;" (assignment_expression "iVar5 = *param_2" (identifier "iVar5") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (labeled_statement "LAB_00022788:\n  *param_2 = iVar5 + 2 + iVar7;" (statement_identifier "LAB_00022788") (: ":") (expression_statement "*param_2 = iVar5 + 2 + iVar7;" (assignment_expression "*param_2 = iVar5 + 2 + iVar7" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar5 + 2 + iVar7" (binary_expression "iVar5 + 2" (identifier "iVar5") (+ "+") (number_literal "2")) (+ "+") (identifier "iVar7"))) (; ";"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (labeled_statement label: (statement_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)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (char_literal (escape_sequence))))))) consequence: (compound_statement (if_statement condition: (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: (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))) (return_statement (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_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)))) (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: (identifier))))) right: (char_literal (escape_sequence)))) 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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_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: (identifier))))) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (identifier) (binary_expression left: (identifier) right: (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 (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (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 (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (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 (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) (return_statement (number_literal)))))

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

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar5 = *(int *)(param_1 + 0x30);
  iVar6 = *(int *)(param_1 + 0x2c);
  if (iVar5 == 0) {
    if (iVar6 != 0) {
      return 0;
    }
LAB_00022848:
    *(undefined4 *)(param_1 + 0x4c) = 0;
    return 0;
  }
  if ((*(char *)(param_1 + 0x60) == '\r') ||
     (pcVar4 = (char *)(param_1 + 0x61), *(char *)(param_1 + 0x60) == '\n')) {
    if (iVar6 != 0) {
      *(undefined4 *)(param_1 + 0x4c) = param_3;
      *(undefined4 *)(param_1 + 0x50) = 2;
      return 1;
    }
    goto LAB_00022848;
  }
  iVar8 = param_1 + 0x60;
  iVar3 = 0;
  do {
    iVar7 = iVar3;
    iVar3 = iVar7 + 1;
    if (iVar5 == iVar3) {
      if (iVar5 != iVar6) {
        return 0;
      }
      goto LAB_000227b4;
    }
    cVar1 = *pcVar4;
    pcVar4 = pcVar4 + 1;
  } while ((cVar1 != '\r') && (cVar1 != '\n'));
  if (iVar3 == iVar6) {
LAB_000227b4:
    *(undefined4 *)(param_1 + 0x4c) = 0;
    return 0;
  }
  if (*(char *)(iVar8 + iVar3) == '\r') {
    *(undefined4 *)(param_1 + 0x50) = 1;
  }
  puVar2 = PTR_DAT_0003d02c;
  *(char *)(iVar8 + iVar3) = '\0';
  iVar5 = FUN_0001f1b8(puVar2 + -0x3ca0,iVar8,0x15);
  if (iVar5 == 0) {
    if (*(int *)(param_1 + 0x1c) == 0) {
      FUN_00022460(PTR_DAT_0003d02c + -0x3c7c,0xe,iVar8,param_1 + 0x1c);
    }
    if (*(int *)(param_1 + 0x24) == 0) {
      FUN_00022460(PTR_DAT_0003d02c + -0x3c6c,0x1b,iVar8,param_1 + 0x24);
      iVar5 = *param_2;
      goto LAB_00022788;
    }
  }
  else {
    if (*(int *)(param_1 + 0x18) == 0) {
      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c84,param_1 + 0x18);
    }
    if (*(int *)(param_1 + 0x20) == 0) {
      FUN_00022530(param_1 + 0x75,PTR_DAT_0003d02c + -0x3c88,param_1 + 0x20);
      iVar5 = *param_2;
      goto LAB_00022788;
    }
  }
  iVar5 = *param_2;
LAB_00022788:
  *param_2 = iVar5 + 2 + iVar7;
  return 1;
}

