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

int process_broken_line(MHD_Connection *connection,char *line,MHD_ValueKind kind)

{
  int iVar1;
  int iVar2;
  char cVar3;
  char *pcVar4;
  
  cVar3 = *line;
  pcVar4 = connection->last;
  if ((cVar3 == ' ') || (cVar3 == '\t')) {
    iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4);
    while ((cVar3 == ' ' || (cVar3 == '\t'))) {
      line = line + 1;
      cVar3 = *line;
    }
    iVar2 = (*(code *)PTR_strlen_0003f228)(line);
    pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2);
    if (pcVar4 != (char *)0x0) {
      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);
      connection->last = pcVar4;
      return 1;
    }
  }
  else {
    iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);
    if (iVar1 != 0) {
      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {
        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);
        return 0;
      }
      return 1;
    }
  }
  transmit_error_response(connection,0x1af,PTR_DAT_0003f05c + -0x4bc4);
  return 0;
}



undefined4 FUN_00015c64(int param_1,char *param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  char cVar4;
  undefined4 uVar5;
  
  cVar4 = *param_2;
  uVar5 = *(undefined4 *)(param_1 + 0x4c);
  if ((cVar4 == ' ') || (cVar4 == '\t')) {
    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);
    while ((cVar4 == ' ' || (cVar4 == '\t'))) {
      param_2 = param_2 + 1;
      cVar4 = *param_2;
    }
    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);
    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);
    if (iVar3 != 0) {
      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);
      *(int *)(param_1 + 0x4c) = iVar3;
      return 1;
    }
  }
  else {
    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);
    if (iVar1 != 0) {
      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {
        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);
        return 0;
      }
      return 1;
    }
  }
  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);
  return 0;
}


lui gp,0x3
addiu gp,gp,0x13cc
addu gp,gp,t9
addiu sp,sp,-0x40
li v0,0x20
sw s2,0x2c(sp)
or s2,a0,zero
sw s0,0x24(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s5,0x38(sp)
sw s4,0x34(sp)
sw s3,0x30(sp)
sw s1,0x28(sp)
lb s1,0x0(a1)
beq s1,v0,0x00015cb8
_lw s3,0x4c(a0)
li v0,0x9
bne s1,v0,0x00015d64
_lw t9,-0x7fd8(gp)
lw t9,-0x7e08(gp)
jalr t9
_or a0,s3,zero
li v1,0x20
lw gp,0x10(sp)
or s4,v0,zero
li v0,0x9
beq s1,v1,0x00015ce4
_nop
bne s1,v0,0x00015cf0
_lw t9,-0x7e08(gp)
addiu s0,s0,0x1
b 0x00015cd4
_lb s1,0x0(s0)
jalr t9
_or a0,s0,zero
addiu a2,s4,0x1
lw gp,0x10(sp)
or a1,s3,zero
lw a0,0x28(s2)
addu a3,a2,v0
lw t9,-0x7f64(gp)
bal 0x00021480
_or s5,v0,zero
lw gp,0x10(sp)
beq v0,zero,0x00015db4
_or s1,v0,zero
lw t9,-0x7d40(gp)
addiu a2,s5,0x1
addu a0,v0,s4
jalr t9
_or a1,s0,zero
li v0,0x1
sw s1,0x4c(s2)
lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
or a3,a2,zero
lw a2,0x50(a0)
addiu t9,t9,0x59e0
bal 0x000159e0
_or a1,s3,zero
beq v0,zero,0x00015db4
_lw gp,0x10(sp)
lb v0,0x0(s0)
bne v0,zero,0x00015df8
_lw t9,-0x7fd8(gp)
lw ra,0x3c(sp)
li v0,0x1
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
lw a2,-0x7fd4(gp)
li a1,0x1af
lw t9,-0x7fd8(gp)
or a0,s2,zero
addiu t9,t9,0x5834
bal 0x00015834
_addiu a2,a2,-0x4bc4
or v0,zero,zero
lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
or a1,s0,zero
addiu t9,t9,0x41e8
bal 0x000141e8
_or a0,s2,zero
bne v0,zero,0x00015d8c
_lw gp,0x10(sp)
lw a2,-0x7fd4(gp)
li a1,0x190
lw t9,-0x7fd8(gp)
or a0,s2,zero
sw v0,0x1c(sp)
addiu t9,t9,0x5834
bal 0x00015834
_addiu a2,a2,-0x4b34
b 0x00015d40
_lw v0,0x1c(sp)
(translation_unit "undefined4 FUN_00015c64(int param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00015c64(int param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" type_identifier (function_declarator "FUN_00015c64(int param_1,char *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,char *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "cVar4 = *param_2;" (assignment_expression "cVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x4c)" identifier = (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) ))))) ;) (if_statement "if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" if (parenthesized_expression "((cVar4 == ' ') || (cVar4 == '\t'))" ( (binary_expression "(cVar4 == ' ') || (cVar4 == '\t')" (parenthesized_expression "(cVar4 == ' ')" ( (binary_expression "cVar4 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar4 == '\t')" ( (binary_expression "cVar4 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0003f228)(uVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" ( (pointer_expression "*(code *)PTR_strlen_0003f228" * (cast_expression "(code *)PTR_strlen_0003f228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier )))) ;) (while_statement "while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }" while (parenthesized_expression "((cVar4 == ' ' || (cVar4 == '\t')))" ( (parenthesized_expression "(cVar4 == ' ' || (cVar4 == '\t'))" ( (binary_expression "cVar4 == ' ' || (cVar4 == '\t')" (binary_expression "cVar4 == ' '" identifier == (char_literal "' '" ' character ')) || (parenthesized_expression "(cVar4 == '\t')" ( (binary_expression "cVar4 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) )) (compound_statement "{\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *param_2;" (assignment_expression "cVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003f228)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0003f228)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" ( (pointer_expression "*(code *)PTR_strlen_0003f228" * (cast_expression "(code *)PTR_strlen_0003f228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);" (assignment_expression "iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" identifier = (call_expression "FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier , (binary_expression "iVar1 + 1" identifier + number_literal) , (binary_expression "iVar1 + 1 + iVar2" (binary_expression "iVar1 + 1" identifier + number_literal) + identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);" (call_expression "(*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0003f2f0)" ( (pointer_expression "*(code *)PTR_memcpy_0003f2f0" * (cast_expression "(code *)PTR_memcpy_0003f2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + iVar1,param_2,iVar2 + 1)" ( (binary_expression "iVar3 + iVar1" identifier + identifier) , identifier , (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_1 + 0x4c) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x4c) = iVar3" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);" (assignment_expression "iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" identifier = (call_expression "FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" identifier (argument_list "(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" ( identifier , identifier , (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) )))) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" { (if_statement "if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" if (parenthesized_expression "((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0))" ( (binary_expression "(*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)" (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_000141e8(param_1,param_2)" identifier = (call_expression "FUN_000141e8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" { (expression_statement "FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);" (call_expression "FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34)" identifier (argument_list "(param_1,400,PTR_DAT_0003f05c + -0x4b34)" ( identifier , number_literal , (binary_expression "PTR_DAT_0003f05c + -0x4b34" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) }))) (expression_statement "FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);" (call_expression "FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4)" identifier (argument_list "(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4)" ( identifier , number_literal , (binary_expression "PTR_DAT_0003f05c + -0x4bc4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint process_broken_line(MHD_Connection *connection,char *line,MHD_ValueKind kind)\n\n{\n  int iVar1;\n  int iVar2;\n  char cVar3;\n  char *pcVar4;\n  \n  cVar3 = *line;\n  pcVar4 = connection->last;\n  if ((cVar3 == ' ') || (cVar3 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4);\n    while ((cVar3 == ' ' || (cVar3 == '\t'))) {\n      line = line + 1;\n      cVar3 = *line;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(line);\n    pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2);\n    if (pcVar4 != (char *)0x0) {\n      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);\n      connection->last = pcVar4;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);\n    if (iVar1 != 0) {\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  transmit_error_response(connection,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}\n\n" comment comment comment (function_definition "int process_broken_line(MHD_Connection *connection,char *line,MHD_ValueKind kind)\n\n{\n  int iVar1;\n  int iVar2;\n  char cVar3;\n  char *pcVar4;\n  \n  cVar3 = *line;\n  pcVar4 = connection->last;\n  if ((cVar3 == ' ') || (cVar3 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4);\n    while ((cVar3 == ' ' || (cVar3 == '\t'))) {\n      line = line + 1;\n      cVar3 = *line;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(line);\n    pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2);\n    if (pcVar4 != (char *)0x0) {\n      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);\n      connection->last = pcVar4;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);\n    if (iVar1 != 0) {\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  transmit_error_response(connection,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" primitive_type (function_declarator "process_broken_line(MHD_Connection *connection,char *line,MHD_ValueKind kind)" identifier (parameter_list "(MHD_Connection *connection,char *line,MHD_ValueKind kind)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "char *line" primitive_type (pointer_declarator "*line" * identifier)) , (parameter_declaration "MHD_ValueKind kind" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char cVar3;\n  char *pcVar4;\n  \n  cVar3 = *line;\n  pcVar4 = connection->last;\n  if ((cVar3 == ' ') || (cVar3 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4);\n    while ((cVar3 == ' ' || (cVar3 == '\t'))) {\n      line = line + 1;\n      cVar3 = *line;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(line);\n    pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2);\n    if (pcVar4 != (char *)0x0) {\n      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);\n      connection->last = pcVar4;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);\n    if (iVar1 != 0) {\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  transmit_error_response(connection,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "cVar3 = *line;" (assignment_expression "cVar3 = *line" identifier = (pointer_expression "*line" * identifier)) ;) (expression_statement "pcVar4 = connection->last;" (assignment_expression "pcVar4 = connection->last" identifier = (field_expression "connection->last" identifier -> field_identifier)) ;) (if_statement "if ((cVar3 == ' ') || (cVar3 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4);\n    while ((cVar3 == ' ' || (cVar3 == '\t'))) {\n      line = line + 1;\n      cVar3 = *line;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(line);\n    pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2);\n    if (pcVar4 != (char *)0x0) {\n      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);\n      connection->last = pcVar4;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);\n    if (iVar1 != 0) {\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" if (parenthesized_expression "((cVar3 == ' ') || (cVar3 == '\t'))" ( (binary_expression "(cVar3 == ' ') || (cVar3 == '\t')" (parenthesized_expression "(cVar3 == ' ')" ( (binary_expression "cVar3 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar3 == '\t')" ( (binary_expression "cVar3 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4);\n    while ((cVar3 == ' ' || (cVar3 == '\t'))) {\n      line = line + 1;\n      cVar3 = *line;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(line);\n    pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2);\n    if (pcVar4 != (char *)0x0) {\n      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);\n      connection->last = pcVar4;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003f228)(pcVar4)" identifier = (call_expression "(*(code *)PTR_strlen_0003f228)(pcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" ( (pointer_expression "*(code *)PTR_strlen_0003f228" * (cast_expression "(code *)PTR_strlen_0003f228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (while_statement "while ((cVar3 == ' ' || (cVar3 == '\t'))) {\n      line = line + 1;\n      cVar3 = *line;\n    }" while (parenthesized_expression "((cVar3 == ' ' || (cVar3 == '\t')))" ( (parenthesized_expression "(cVar3 == ' ' || (cVar3 == '\t'))" ( (binary_expression "cVar3 == ' ' || (cVar3 == '\t')" (binary_expression "cVar3 == ' '" identifier == (char_literal "' '" ' character ')) || (parenthesized_expression "(cVar3 == '\t')" ( (binary_expression "cVar3 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) )) (compound_statement "{\n      line = line + 1;\n      cVar3 = *line;\n    }" { (expression_statement "line = line + 1;" (assignment_expression "line = line + 1" identifier = (binary_expression "line + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *line;" (assignment_expression "cVar3 = *line" identifier = (pointer_expression "*line" * identifier)) ;) })) (expression_statement "iVar2 = (*(code *)PTR_strlen_0003f228)(line);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003f228)(line)" identifier = (call_expression "(*(code *)PTR_strlen_0003f228)(line)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" ( (pointer_expression "*(code *)PTR_strlen_0003f228" * (cast_expression "(code *)PTR_strlen_0003f228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(line)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2);" (assignment_expression "pcVar4 = (char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2)" identifier = (cast_expression "(char *)MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "MHD_pool_reallocate(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2)" identifier (argument_list "(connection->pool,pcVar4,iVar1 + 1U,iVar1 + 1U + iVar2)" ( (field_expression "connection->pool" identifier -> field_identifier) , identifier , (binary_expression "iVar1 + 1U" identifier + number_literal) , (binary_expression "iVar1 + 1U + iVar2" (binary_expression "iVar1 + 1U" identifier + number_literal) + identifier) ))))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);\n      connection->last = pcVar4;\n      return 1;\n    }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);\n      connection->last = pcVar4;\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1);" (call_expression "(*(code *)PTR_memcpy_0003f2f0)(pcVar4 + iVar1,line,iVar2 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0003f2f0)" ( (pointer_expression "*(code *)PTR_memcpy_0003f2f0" * (cast_expression "(code *)PTR_memcpy_0003f2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4 + iVar1,line,iVar2 + 1)" ( (binary_expression "pcVar4 + iVar1" identifier + identifier) , identifier , (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "connection->last = pcVar4;" (assignment_expression "connection->last = pcVar4" (field_expression "connection->last" identifier -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);\n    if (iVar1 != 0) {\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);\n    if (iVar1 != 0) {\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind);" (assignment_expression "iVar1 = connection_add_header(connection,pcVar4,connection->colon,kind)" identifier = (call_expression "connection_add_header(connection,pcVar4,connection->colon,kind)" identifier (argument_list "(connection,pcVar4,connection->colon,kind)" ( identifier , identifier , (field_expression "connection->colon" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" { (if_statement "if ((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)) {\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" if (parenthesized_expression "((*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0))" ( (binary_expression "(*line != '\0') && (iVar1 = process_header_line(connection,line), iVar1 == 0)" (parenthesized_expression "(*line != '\0')" ( (binary_expression "*line != '\0'" (pointer_expression "*line" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar1 = process_header_line(connection,line), iVar1 == 0)" ( (comma_expression "iVar1 = process_header_line(connection,line), iVar1 == 0" (assignment_expression "iVar1 = process_header_line(connection,line)" identifier = (call_expression "process_header_line(connection,line)" identifier (argument_list "(connection,line)" ( identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" { (expression_statement "transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34);" (call_expression "transmit_error_response(connection,400,PTR_DAT_0003f05c + -0x4b34)" identifier (argument_list "(connection,400,PTR_DAT_0003f05c + -0x4b34)" ( identifier , number_literal , (binary_expression "PTR_DAT_0003f05c + -0x4b34" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) }))) (expression_statement "transmit_error_response(connection,0x1af,PTR_DAT_0003f05c + -0x4bc4);" (call_expression "transmit_error_response(connection,0x1af,PTR_DAT_0003f05c + -0x4bc4)" identifier (argument_list "(connection,0x1af,PTR_DAT_0003f05c + -0x4bc4)" ( identifier , number_literal , (binary_expression "PTR_DAT_0003f05c + -0x4bc4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00015c64(int param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00015c64(int param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" type_identifier (function_declarator "FUN_00015c64(int param_1,char *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,char *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "cVar4 = *param_2;" (assignment_expression "cVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x4c)" identifier = (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) ))))) ;) (if_statement "if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" if (parenthesized_expression "((cVar4 == ' ') || (cVar4 == '\t'))" ( (binary_expression "(cVar4 == ' ') || (cVar4 == '\t')" (parenthesized_expression "(cVar4 == ' ')" ( (binary_expression "cVar4 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar4 == '\t')" ( (binary_expression "cVar4 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0003f228)(uVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" ( (pointer_expression "*(code *)PTR_strlen_0003f228" * (cast_expression "(code *)PTR_strlen_0003f228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier )))) ;) (while_statement "while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }" while (parenthesized_expression "((cVar4 == ' ' || (cVar4 == '\t')))" ( (parenthesized_expression "(cVar4 == ' ' || (cVar4 == '\t'))" ( (binary_expression "cVar4 == ' ' || (cVar4 == '\t')" (binary_expression "cVar4 == ' '" identifier == (char_literal "' '" ' character ')) || (parenthesized_expression "(cVar4 == '\t')" ( (binary_expression "cVar4 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) )) (compound_statement "{\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *param_2;" (assignment_expression "cVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003f228)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0003f228)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" ( (pointer_expression "*(code *)PTR_strlen_0003f228" * (cast_expression "(code *)PTR_strlen_0003f228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);" (assignment_expression "iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" identifier = (call_expression "FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier , (binary_expression "iVar1 + 1" identifier + number_literal) , (binary_expression "iVar1 + 1 + iVar2" (binary_expression "iVar1 + 1" identifier + number_literal) + identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }" { (expression_statement "(*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);" (call_expression "(*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0003f2f0)" ( (pointer_expression "*(code *)PTR_memcpy_0003f2f0" * (cast_expression "(code *)PTR_memcpy_0003f2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + iVar1,param_2,iVar2 + 1)" ( (binary_expression "iVar3 + iVar1" identifier + identifier) , identifier , (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_1 + 0x4c) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x4c) = iVar3" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);" (assignment_expression "iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" identifier = (call_expression "FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" identifier (argument_list "(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" ( identifier , identifier , (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) )))) , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" { (if_statement "if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" if (parenthesized_expression "((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0))" ( (binary_expression "(*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)" (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_000141e8(param_1,param_2)" identifier = (call_expression "FUN_000141e8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" { (expression_statement "FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);" (call_expression "FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34)" identifier (argument_list "(param_1,400,PTR_DAT_0003f05c + -0x4b34)" ( identifier , number_literal , (binary_expression "PTR_DAT_0003f05c + -0x4b34" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) }))) (expression_statement "FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);" (call_expression "FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4)" identifier (argument_list "(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4)" ( identifier , number_literal , (binary_expression "PTR_DAT_0003f05c + -0x4bc4" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == (char_literal ' character ')) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) , (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00015c64(int param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00015c64(int param_1,char *param_2,undefined4 param_3)" (identifier "FUN_00015c64") (parameter_list "(int param_1,char *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  char cVar4;\n  undefined4 uVar5;\n  \n  cVar4 = *param_2;\n  uVar5 = *(undefined4 *)(param_1 + 0x4c);\n  if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }\n  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "cVar4 = *param_2;" (assignment_expression "cVar4 = *param_2" (identifier "cVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x4c)" (identifier "uVar5") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((cVar4 == ' ') || (cVar4 == '\t')) {\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "((cVar4 == ' ') || (cVar4 == '\t'))" (( "(") (binary_expression "(cVar4 == ' ') || (cVar4 == '\t')" (parenthesized_expression "(cVar4 == ' ')" (( "(") (binary_expression "cVar4 == ' '" (identifier "cVar4") (== "==") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar4 == '\t')" (( "(") (binary_expression "cVar4 == '\t'" (identifier "cVar4") (== "==") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);\n    while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }\n    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);\n    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);\n    if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0003f228)(uVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" (( "(") (pointer_expression "*(code *)PTR_strlen_0003f228" (* "*") (cast_expression "(code *)PTR_strlen_0003f228" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0003f228"))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")")))) (; ";")) (while_statement "while ((cVar4 == ' ' || (cVar4 == '\t'))) {\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }" (while "while") (parenthesized_expression "((cVar4 == ' ' || (cVar4 == '\t')))" (( "(") (parenthesized_expression "(cVar4 == ' ' || (cVar4 == '\t'))" (( "(") (binary_expression "cVar4 == ' ' || (cVar4 == '\t')" (binary_expression "cVar4 == ' '" (identifier "cVar4") (== "==") (char_literal "' '" (' "'") (character " ") (' "'"))) (|| "||") (parenthesized_expression "(cVar4 == '\t')" (( "(") (binary_expression "cVar4 == '\t'" (identifier "cVar4") (== "==") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) () ")")) (compound_statement "{\n      param_2 = param_2 + 1;\n      cVar4 = *param_2;\n    }" ({ "{") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar4 = *param_2;" (assignment_expression "cVar4 = *param_2" (identifier "cVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0003f228)(param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0003f228)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003f228)" (( "(") (pointer_expression "*(code *)PTR_strlen_0003f228" (* "*") (cast_expression "(code *)PTR_strlen_0003f228" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0003f228"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);" (assignment_expression "iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" (identifier "FUN_00021480") (argument_list "(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "uVar5") (, ",") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) (, ",") (binary_expression "iVar1 + 1 + iVar2" (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar2")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);\n      *(int *)(param_1 + 0x4c) = iVar3;\n      return 1;\n    }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);" (call_expression "(*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0003f2f0)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0003f2f0" (* "*") (cast_expression "(code *)PTR_memcpy_0003f2f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0003f2f0"))) () ")")) (argument_list "(iVar3 + iVar1,param_2,iVar2 + 1)" (( "(") (binary_expression "iVar3 + iVar1" (identifier "iVar3") (+ "+") (identifier "iVar1")) (, ",") (identifier "param_2") (, ",") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x4c) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x4c) = iVar3" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);\n    if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);" (assignment_expression "iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" (identifier "FUN_000159e0") (argument_list "(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3)" (( "(") (identifier "param_1") (, ",") (identifier "uVar5") (, ",") (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")) () ")")))) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }\n      return 1;\n    }" ({ "{") (if_statement "if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" (if "if") (parenthesized_expression "((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0))" (( "(") (binary_expression "(*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)" (parenthesized_expression "(*param_2 != '\0')" (( "(") (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_000141e8(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_000141e8(param_1,param_2)" (identifier "FUN_000141e8") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);\n        return 0;\n      }" ({ "{") (expression_statement "FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);" (call_expression "FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34)" (identifier "FUN_00015834") (argument_list "(param_1,400,PTR_DAT_0003f05c + -0x4b34)" (( "(") (identifier "param_1") (, ",") (number_literal "400") (, ",") (binary_expression "PTR_DAT_0003f05c + -0x4b34" (identifier "PTR_DAT_0003f05c") (+ "+") (number_literal "-0x4b34")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);" (call_expression "FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4)" (identifier "FUN_00015834") (argument_list "(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4)" (( "(") (identifier "param_1") (, ",") (number_literal "0x1af") (, ",") (binary_expression "PTR_DAT_0003f05c + -0x4bc4" (identifier "PTR_DAT_0003f05c") (+ "+") (number_literal "-0x4bc4")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (char_literal (character))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (identifier) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (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: (number_literal))))) right: (identifier))) (return_statement (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))) (return_statement (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  char cVar4;
  undefined4 uVar5;
  
  cVar4 = *param_2;
  uVar5 = *(undefined4 *)(param_1 + 0x4c);
  if ((cVar4 == ' ') || (cVar4 == '\t')) {
    iVar1 = (*(code *)PTR_strlen_0003f228)(uVar5);
    while ((cVar4 == ' ' || (cVar4 == '\t'))) {
      param_2 = param_2 + 1;
      cVar4 = *param_2;
    }
    iVar2 = (*(code *)PTR_strlen_0003f228)(param_2);
    iVar3 = FUN_00021480(*(undefined4 *)(param_1 + 0x28),uVar5,iVar1 + 1,iVar1 + 1 + iVar2);
    if (iVar3 != 0) {
      (*(code *)PTR_memcpy_0003f2f0)(iVar3 + iVar1,param_2,iVar2 + 1);
      *(int *)(param_1 + 0x4c) = iVar3;
      return 1;
    }
  }
  else {
    iVar1 = FUN_000159e0(param_1,uVar5,*(undefined4 *)(param_1 + 0x50),param_3);
    if (iVar1 != 0) {
      if ((*param_2 != '\0') && (iVar1 = FUN_000141e8(param_1,param_2), iVar1 == 0)) {
        FUN_00015834(param_1,400,PTR_DAT_0003f05c + -0x4b34);
        return 0;
      }
      return 1;
    }
  }
  FUN_00015834(param_1,0x1af,PTR_DAT_0003f05c + -0x4bc4);
  return 0;
}

