
response * resp_new(char *head)

{
  int iVar1;
  char cVar2;
  int iVar3;
  response *prVar4;
  long lVar5;
  char **ppcVar6;
  char *pcVar7;
  ulong uVar8;
  int iVar9;
  char *__s;
  long lVar10;
  byte bVar11;
  int local_3c;
  
  bVar11 = 0;
  prVar4 = (response *)xcalloc(1,0x10);
  prVar4->data = head;
  if (*head != '\0') {
    lVar10 = 0;
    iVar9 = 0;
    local_3c = 0;
    __s = head;
    while( true ) {
      iVar1 = local_3c + 1;
      if (iVar9 < iVar1) {
        do {
          iVar3 = iVar9 * 2;
          iVar9 = 0x10;
          if (0xf < iVar3) {
            iVar9 = iVar3;
          }
        } while (iVar9 < iVar1);
        lVar5 = (long)iVar3;
        if (lVar5 < 0x10) {
          lVar5 = 0x10;
        }
        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);
        prVar4->headers = ppcVar6;
      }
      *(char **)((long)prVar4->headers + lVar10) = __s;
      cVar2 = *__s;
      if (cVar2 == '\0') break;
      if (cVar2 == '\r') {
        cVar2 = __s[1];
      }
      if (cVar2 == '\n') break;
      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {
        __s = pcVar7 + 1;
        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;
        *pcVar7 = ' ';
        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {
          pcVar7[-1] = ' ';
        }
      }
      uVar8 = 0xffffffffffffffff;
      pcVar7 = __s;
      do {
        if (uVar8 == 0) break;
        uVar8 = uVar8 - 1;
        cVar2 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;
      } while (cVar2 != '\0');
      __s = __s + (~uVar8 - 1);
LAB_00120d65:
      lVar10 = lVar10 + 8;
      local_3c = iVar1;
    }
    if (iVar9 < local_3c + 2) {
      do {
        iVar3 = iVar9 * 2;
        iVar9 = 0x10;
        if (0xf < iVar3) {
          iVar9 = iVar3;
        }
      } while (iVar9 < local_3c + 2);
      lVar10 = (long)iVar3;
      if (lVar10 < 0x10) {
        lVar10 = 0x10;
      }
      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);
      prVar4->headers = ppcVar6;
    }
    prVar4->headers[iVar1] = (char *)0x0;
  }
  return prVar4;
}



undefined8 * FUN_00120c97(char *param_1)

{
  int iVar1;
  char cVar2;
  int iVar3;
  undefined8 *puVar4;
  long lVar5;
  undefined8 uVar6;
  char *pcVar7;
  ulong uVar8;
  int iVar9;
  char *__s;
  long lVar10;
  byte bVar11;
  int local_3c;
  
  bVar11 = 0;
  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);
  *puVar4 = param_1;
  if (*param_1 != '\0') {
    lVar10 = 0;
    iVar9 = 0;
    local_3c = 0;
    __s = param_1;
    while( true ) {
      iVar1 = local_3c + 1;
      if (iVar9 < iVar1) {
        do {
          iVar3 = iVar9 * 2;
          iVar9 = 0x10;
          if (0xf < iVar3) {
            iVar9 = iVar3;
          }
        } while (iVar9 < iVar1);
        lVar5 = (long)iVar3;
        if (lVar5 < 0x10) {
          lVar5 = 0x10;
        }
        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);
        puVar4[1] = uVar6;
      }
      *(char **)(puVar4[1] + lVar10) = __s;
      cVar2 = *__s;
      if (cVar2 == '\0') break;
      if (cVar2 == '\r') {
        cVar2 = __s[1];
      }
      if (cVar2 == '\n') break;
      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {
        __s = pcVar7 + 1;
        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;
        *pcVar7 = ' ';
        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {
          pcVar7[-1] = ' ';
        }
      }
      uVar8 = 0xffffffffffffffff;
      pcVar7 = __s;
      do {
        if (uVar8 == 0) break;
        uVar8 = uVar8 - 1;
        cVar2 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;
      } while (cVar2 != '\0');
      __s = __s + (~uVar8 - 1);
LAB_00120d65:
      lVar10 = lVar10 + 8;
      local_3c = iVar1;
    }
    if (iVar9 < local_3c + 2) {
      do {
        iVar3 = iVar9 * 2;
        iVar9 = 0x10;
        if (0xf < iVar3) {
          iVar9 = iVar3;
        }
      } while (iVar9 < local_3c + 2);
      lVar10 = (long)iVar3;
      if (lVar10 < 0x10) {
        lVar10 = 0x10;
      }
      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);
      puVar4[1] = uVar6;
    }
    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;
  }
  return puVar4;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV R13,RDI
MOV ESI,0x10
MOV EDI,0x1
CALL 0x0014967c
MOV R15,RAX
MOV qword ptr [RAX],R13
CMP byte ptr [R13],0x0
JZ 0x00120d3c
MOV RBP,R13
MOV R14D,0x0
MOV EBX,0x0
MOV dword ptr [RSP + 0xc],0x0
JMP 0x00120d6e
CMP byte ptr [RBP + 0x1],0xa
JNZ 0x00120dd8
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x2
CMP EAX,EBX
JLE 0x00120d2d
MOV ECX,0x10
LEA EDX,[RBX + RBX*0x1]
CMP EDX,0x10
MOV EBX,ECX
CMOVGE EBX,EDX
CMP EAX,EBX
JG 0x00120cf9
MOVSXD RDX,EDX
CMP RDX,0x10
MOV ESI,0x10
CMOVL RDX,RSI
LEA RSI,[RDX*0x8]
MOV RDI,qword ptr [R15 + 0x8]
CALL 0x0014951a
MOV qword ptr [R15 + 0x8],RAX
MOVSXD R12,R12D
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RAX + R12*0x8],0x0
MOV RAX,R15
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RCX,-0x1
MOV RDI,RBP
SCASB.REPNE RDI
MOV RAX,RCX
NOT RAX
LEA RBP,[RBP + RAX*0x1 + -0x1]
ADD R14,0x8
MOV dword ptr [RSP + 0xc],R12D
MOV EAX,dword ptr [RSP + 0xc]
LEA R12D,[RAX + 0x1]
CMP R12D,EBX
JLE 0x00120db4
MOV EDX,0x10
LEA EAX,[RBX + RBX*0x1]
CMP EAX,0x10
MOV EBX,EDX
CMOVGE EBX,EAX
CMP R12D,EBX
JG 0x00120d80
CDQE
CMP RAX,0x10
MOV ESI,0x10
CMOVL RAX,RSI
LEA RSI,[RAX*0x8]
MOV RDI,qword ptr [R15 + 0x8]
CALL 0x0014951a
MOV qword ptr [R15 + 0x8],RAX
MOV RAX,qword ptr [R15 + 0x8]
MOV qword ptr [RAX + R14*0x1],RBP
MOVZX EAX,byte ptr [RBP]
TEST AL,AL
JZ 0x00120ce9
CMP AL,0xd
JZ 0x00120cdf
CMP AL,0xa
JZ 0x00120ce9
MOV ESI,0xa
MOV RDI,RBP
CALL 0x0010c920
TEST RAX,RAX
JZ 0x00120d4e
LEA RBP,[RAX + 0x1]
MOVZX EDX,byte ptr [RAX + 0x1]
CMP DL,0x20
JZ 0x00120e04
CMP DL,0x9
JNZ 0x00120d65
MOV byte ptr [RAX],0x20
CMP R13,RAX
JNC 0x00120dd8
CMP byte ptr [RAX + -0x1],0xd
JNZ 0x00120dd8
MOV byte ptr [RAX + -0x1],0x20
JMP 0x00120dd8
(translation_unit "undefined8 * FUN_00120c97(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}\n\n" (function_definition "undefined8 * FUN_00120c97(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* FUN_00120c97(char *param_1)" * (function_declarator "FUN_00120c97(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar11;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = (undefined8 *)FUN_0014967c(1,0x10);" (assignment_expression "puVar4 = (undefined8 *)FUN_0014967c(1,0x10)" identifier = (cast_expression "(undefined8 *)FUN_0014967c(1,0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014967c(1,0x10)" identifier (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (if_statement "if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }" { (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" { (expression_statement "iVar1 = local_3c + 1;" (assignment_expression "iVar1 = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (if_statement "if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }" if (parenthesized_expression "(iVar9 < iVar1)" ( (binary_expression "iVar9 < iVar1" identifier < identifier) )) (compound_statement "{\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }" { (do_statement "do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);" do (compound_statement "{\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        }" { (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" identifier = (binary_expression "iVar9 * 2" identifier * number_literal)) ;) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" identifier = number_literal) ;) (if_statement "if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n            iVar9 = iVar3;\n          }" { (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(iVar9 < iVar1)" ( (binary_expression "iVar9 < iVar1" identifier < identifier) )) ;) (expression_statement "lVar5 = (long)iVar3;" (assignment_expression "lVar5 = (long)iVar3" identifier = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }" if (parenthesized_expression "(lVar5 < 0x10)" ( (binary_expression "lVar5 < 0x10" identifier < number_literal) )) (compound_statement "{\n          lVar5 = 0x10;\n        }" { (expression_statement "lVar5 = 0x10;" (assignment_expression "lVar5 = 0x10" identifier = number_literal) ;) })) (expression_statement "uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);" (assignment_expression "uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8)" identifier = (call_expression "FUN_0014951a(puVar4[1],lVar5 * 8)" identifier (argument_list "(puVar4[1],lVar5 * 8)" ( (subscript_expression "puVar4[1]" identifier [ number_literal ]) , (binary_expression "lVar5 * 8" identifier * number_literal) )))) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(char **)(puVar4[1] + lVar10) = __s;" (assignment_expression "*(char **)(puVar4[1] + lVar10) = __s" (pointer_expression "*(char **)(puVar4[1] + lVar10)" * (cast_expression "(char **)(puVar4[1] + lVar10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[1] + lVar10)" ( (binary_expression "puVar4[1] + lVar10" (subscript_expression "puVar4[1]" identifier [ number_literal ]) + identifier) )))) = identifier) ;) (expression_statement "cVar2 = *__s;" (assignment_expression "cVar2 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (if_statement "if (cVar2 == '\0') break;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }" if (parenthesized_expression "(cVar2 == '\r')" ( (binary_expression "cVar2 == '\r'" identifier == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n        cVar2 = __s[1];\n      }" { (expression_statement "cVar2 = __s[1];" (assignment_expression "cVar2 = __s[1]" identifier = (subscript_expression "__s[1]" identifier [ number_literal ])) ;) })) (if_statement "if (cVar2 == '\n') break;" if (parenthesized_expression "(cVar2 == '\n')" ( (binary_expression "cVar2 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (while_statement "while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" while (parenthesized_expression "(pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0)" ( (comma_expression "pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strchr(__s,10)" identifier = (call_expression "strchr(__s,10)" identifier (argument_list "(__s,10)" ( identifier , number_literal )))) , (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" { (expression_statement "__s = pcVar7 + 1;" (assignment_expression "__s = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;" if (parenthesized_expression "((pcVar7[1] != ' ') && (pcVar7[1] != '\t'))" ( (binary_expression "(pcVar7[1] != ' ') && (pcVar7[1] != '\t')" (parenthesized_expression "(pcVar7[1] != ' ')" ( (binary_expression "pcVar7[1] != ' '" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(pcVar7[1] != '\t')" ( (binary_expression "pcVar7[1] != '\t'" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) != (char_literal "'\t'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00120d65;" goto statement_identifier ;)) (expression_statement "*pcVar7 = ' ';" (assignment_expression "*pcVar7 = ' '" (pointer_expression "*pcVar7" * identifier) = (char_literal "' '" ' character ')) ;) (if_statement "if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }" if (parenthesized_expression "((param_1 < pcVar7) && (pcVar7[-1] == '\r'))" ( (binary_expression "(param_1 < pcVar7) && (pcVar7[-1] == '\r')" (parenthesized_expression "(param_1 < pcVar7)" ( (binary_expression "param_1 < pcVar7" identifier < identifier) )) && (parenthesized_expression "(pcVar7[-1] == '\r')" ( (binary_expression "pcVar7[-1] == '\r'" (subscript_expression "pcVar7[-1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n          pcVar7[-1] = ' ';\n        }" { (expression_statement "pcVar7[-1] = ' ';" (assignment_expression "pcVar7[-1] = ' '" (subscript_expression "pcVar7[-1]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) })) })) (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = __s;" (assignment_expression "pcVar7 = __s" identifier = identifier) ;) (do_statement "do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar7;" (assignment_expression "cVar2 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "__s = __s + (~uVar8 - 1);" (assignment_expression "__s = __s + (~uVar8 - 1)" identifier = (binary_expression "__s + (~uVar8 - 1)" identifier + (parenthesized_expression "(~uVar8 - 1)" ( (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" ~ identifier) - number_literal) )))) ;) (labeled_statement "LAB_00120d65:\n      lVar10 = lVar10 + 8;" statement_identifier : (expression_statement "lVar10 = lVar10 + 8;" (assignment_expression "lVar10 = lVar10 + 8" identifier = (binary_expression "lVar10 + 8" identifier + number_literal)) ;)) (expression_statement "local_3c = iVar1;" (assignment_expression "local_3c = iVar1" identifier = identifier) ;) })) (if_statement "if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }" if (parenthesized_expression "(iVar9 < local_3c + 2)" ( (binary_expression "iVar9 < local_3c + 2" identifier < (binary_expression "local_3c + 2" identifier + number_literal)) )) (compound_statement "{\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }" { (do_statement "do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);" do (compound_statement "{\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      }" { (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" identifier = (binary_expression "iVar9 * 2" identifier * number_literal)) ;) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" identifier = number_literal) ;) (if_statement "if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar9 = iVar3;\n        }" { (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(iVar9 < local_3c + 2)" ( (binary_expression "iVar9 < local_3c + 2" identifier < (binary_expression "local_3c + 2" identifier + number_literal)) )) ;) (expression_statement "lVar10 = (long)iVar3;" (assignment_expression "lVar10 = (long)iVar3" identifier = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }" if (parenthesized_expression "(lVar10 < 0x10)" ( (binary_expression "lVar10 < 0x10" identifier < number_literal) )) (compound_statement "{\n        lVar10 = 0x10;\n      }" { (expression_statement "lVar10 = 0x10;" (assignment_expression "lVar10 = 0x10" identifier = number_literal) ;) })) (expression_statement "uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);" (assignment_expression "uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8)" identifier = (call_expression "FUN_0014951a(puVar4[1],lVar10 * 8)" identifier (argument_list "(puVar4[1],lVar10 * 8)" ( (subscript_expression "puVar4[1]" identifier [ number_literal ]) , (binary_expression "lVar10 * 8" identifier * number_literal) )))) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;" (assignment_expression "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0" (pointer_expression "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8)" * (cast_expression "(undefined8 *)(puVar4[1] + (long)iVar1 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4[1] + (long)iVar1 * 8)" ( (binary_expression "puVar4[1] + (long)iVar1 * 8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) + (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit "response * resp_new(char *head)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  response *prVar4;\n  long lVar5;\n  char **ppcVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  prVar4 = (response *)xcalloc(1,0x10);\n  prVar4->data = head;\n  if (*head != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = head;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }\n      *(char **)((long)prVar4->headers + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);\n      prVar4->headers = ppcVar6;\n    }\n    prVar4->headers[iVar1] = (char *)0x0;\n  }\n  return prVar4;\n}\n\n" (function_definition "response * resp_new(char *head)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  response *prVar4;\n  long lVar5;\n  char **ppcVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  prVar4 = (response *)xcalloc(1,0x10);\n  prVar4->data = head;\n  if (*head != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = head;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }\n      *(char **)((long)prVar4->headers + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);\n      prVar4->headers = ppcVar6;\n    }\n    prVar4->headers[iVar1] = (char *)0x0;\n  }\n  return prVar4;\n}" type_identifier (pointer_declarator "* resp_new(char *head)" * (function_declarator "resp_new(char *head)" identifier (parameter_list "(char *head)" ( (parameter_declaration "char *head" primitive_type (pointer_declarator "*head" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  response *prVar4;\n  long lVar5;\n  char **ppcVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  prVar4 = (response *)xcalloc(1,0x10);\n  prVar4->data = head;\n  if (*head != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = head;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }\n      *(char **)((long)prVar4->headers + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);\n      prVar4->headers = ppcVar6;\n    }\n    prVar4->headers[iVar1] = (char *)0x0;\n  }\n  return prVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "response *prVar4;" type_identifier (pointer_declarator "*prVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar11;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" identifier = number_literal) ;) (expression_statement "prVar4 = (response *)xcalloc(1,0x10);" (assignment_expression "prVar4 = (response *)xcalloc(1,0x10)" identifier = (cast_expression "(response *)xcalloc(1,0x10)" ( (type_descriptor "response *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x10)" identifier (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "prVar4->data = head;" (assignment_expression "prVar4->data = head" (field_expression "prVar4->data" identifier -> field_identifier) = identifier) ;) (if_statement "if (*head != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = head;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }\n      *(char **)((long)prVar4->headers + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);\n      prVar4->headers = ppcVar6;\n    }\n    prVar4->headers[iVar1] = (char *)0x0;\n  }" if (parenthesized_expression "(*head != '\0')" ( (binary_expression "*head != '\0'" (pointer_expression "*head" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = head;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }\n      *(char **)((long)prVar4->headers + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);\n      prVar4->headers = ppcVar6;\n    }\n    prVar4->headers[iVar1] = (char *)0x0;\n  }" { (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "__s = head;" (assignment_expression "__s = head" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }\n      *(char **)((long)prVar4->headers + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }\n      *(char **)((long)prVar4->headers + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" { (expression_statement "iVar1 = local_3c + 1;" (assignment_expression "iVar1 = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (if_statement "if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }" if (parenthesized_expression "(iVar9 < iVar1)" ( (binary_expression "iVar9 < iVar1" identifier < identifier) )) (compound_statement "{\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);\n        prVar4->headers = ppcVar6;\n      }" { (do_statement "do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);" do (compound_statement "{\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        }" { (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" identifier = (binary_expression "iVar9 * 2" identifier * number_literal)) ;) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" identifier = number_literal) ;) (if_statement "if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n            iVar9 = iVar3;\n          }" { (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(iVar9 < iVar1)" ( (binary_expression "iVar9 < iVar1" identifier < identifier) )) ;) (expression_statement "lVar5 = (long)iVar3;" (assignment_expression "lVar5 = (long)iVar3" identifier = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }" if (parenthesized_expression "(lVar5 < 0x10)" ( (binary_expression "lVar5 < 0x10" identifier < number_literal) )) (compound_statement "{\n          lVar5 = 0x10;\n        }" { (expression_statement "lVar5 = 0x10;" (assignment_expression "lVar5 = 0x10" identifier = number_literal) ;) })) (expression_statement "ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8);" (assignment_expression "ppcVar6 = (char **)xrealloc(prVar4->headers,lVar5 * 8)" identifier = (cast_expression "(char **)xrealloc(prVar4->headers,lVar5 * 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(prVar4->headers,lVar5 * 8)" identifier (argument_list "(prVar4->headers,lVar5 * 8)" ( (field_expression "prVar4->headers" identifier -> field_identifier) , (binary_expression "lVar5 * 8" identifier * number_literal) ))))) ;) (expression_statement "prVar4->headers = ppcVar6;" (assignment_expression "prVar4->headers = ppcVar6" (field_expression "prVar4->headers" identifier -> field_identifier) = identifier) ;) })) (expression_statement "*(char **)((long)prVar4->headers + lVar10) = __s;" (assignment_expression "*(char **)((long)prVar4->headers + lVar10) = __s" (pointer_expression "*(char **)((long)prVar4->headers + lVar10)" * (cast_expression "(char **)((long)prVar4->headers + lVar10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)prVar4->headers + lVar10)" ( (binary_expression "(long)prVar4->headers + lVar10" (cast_expression "(long)prVar4->headers" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "prVar4->headers" identifier -> field_identifier)) + identifier) )))) = identifier) ;) (expression_statement "cVar2 = *__s;" (assignment_expression "cVar2 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (if_statement "if (cVar2 == '\0') break;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }" if (parenthesized_expression "(cVar2 == '\r')" ( (binary_expression "cVar2 == '\r'" identifier == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n        cVar2 = __s[1];\n      }" { (expression_statement "cVar2 = __s[1];" (assignment_expression "cVar2 = __s[1]" identifier = (subscript_expression "__s[1]" identifier [ number_literal ])) ;) })) (if_statement "if (cVar2 == '\n') break;" if (parenthesized_expression "(cVar2 == '\n')" ( (binary_expression "cVar2 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (while_statement "while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" while (parenthesized_expression "(pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0)" ( (comma_expression "pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strchr(__s,10)" identifier = (call_expression "strchr(__s,10)" identifier (argument_list "(__s,10)" ( identifier , number_literal )))) , (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" { (expression_statement "__s = pcVar7 + 1;" (assignment_expression "__s = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;" if (parenthesized_expression "((pcVar7[1] != ' ') && (pcVar7[1] != '\t'))" ( (binary_expression "(pcVar7[1] != ' ') && (pcVar7[1] != '\t')" (parenthesized_expression "(pcVar7[1] != ' ')" ( (binary_expression "pcVar7[1] != ' '" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(pcVar7[1] != '\t')" ( (binary_expression "pcVar7[1] != '\t'" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) != (char_literal "'\t'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00120d65;" goto statement_identifier ;)) (expression_statement "*pcVar7 = ' ';" (assignment_expression "*pcVar7 = ' '" (pointer_expression "*pcVar7" * identifier) = (char_literal "' '" ' character ')) ;) (if_statement "if ((head < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }" if (parenthesized_expression "((head < pcVar7) && (pcVar7[-1] == '\r'))" ( (binary_expression "(head < pcVar7) && (pcVar7[-1] == '\r')" (parenthesized_expression "(head < pcVar7)" ( (binary_expression "head < pcVar7" identifier < identifier) )) && (parenthesized_expression "(pcVar7[-1] == '\r')" ( (binary_expression "pcVar7[-1] == '\r'" (subscript_expression "pcVar7[-1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n          pcVar7[-1] = ' ';\n        }" { (expression_statement "pcVar7[-1] = ' ';" (assignment_expression "pcVar7[-1] = ' '" (subscript_expression "pcVar7[-1]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) })) })) (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = __s;" (assignment_expression "pcVar7 = __s" identifier = identifier) ;) (do_statement "do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar7;" (assignment_expression "cVar2 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "__s = __s + (~uVar8 - 1);" (assignment_expression "__s = __s + (~uVar8 - 1)" identifier = (binary_expression "__s + (~uVar8 - 1)" identifier + (parenthesized_expression "(~uVar8 - 1)" ( (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" ~ identifier) - number_literal) )))) ;) (labeled_statement "LAB_00120d65:\n      lVar10 = lVar10 + 8;" statement_identifier : (expression_statement "lVar10 = lVar10 + 8;" (assignment_expression "lVar10 = lVar10 + 8" identifier = (binary_expression "lVar10 + 8" identifier + number_literal)) ;)) (expression_statement "local_3c = iVar1;" (assignment_expression "local_3c = iVar1" identifier = identifier) ;) })) (if_statement "if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);\n      prVar4->headers = ppcVar6;\n    }" if (parenthesized_expression "(iVar9 < local_3c + 2)" ( (binary_expression "iVar9 < local_3c + 2" identifier < (binary_expression "local_3c + 2" identifier + number_literal)) )) (compound_statement "{\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);\n      prVar4->headers = ppcVar6;\n    }" { (do_statement "do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);" do (compound_statement "{\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      }" { (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" identifier = (binary_expression "iVar9 * 2" identifier * number_literal)) ;) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" identifier = number_literal) ;) (if_statement "if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar9 = iVar3;\n        }" { (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(iVar9 < local_3c + 2)" ( (binary_expression "iVar9 < local_3c + 2" identifier < (binary_expression "local_3c + 2" identifier + number_literal)) )) ;) (expression_statement "lVar10 = (long)iVar3;" (assignment_expression "lVar10 = (long)iVar3" identifier = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }" if (parenthesized_expression "(lVar10 < 0x10)" ( (binary_expression "lVar10 < 0x10" identifier < number_literal) )) (compound_statement "{\n        lVar10 = 0x10;\n      }" { (expression_statement "lVar10 = 0x10;" (assignment_expression "lVar10 = 0x10" identifier = number_literal) ;) })) (expression_statement "ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8);" (assignment_expression "ppcVar6 = (char **)xrealloc(prVar4->headers,lVar10 * 8)" identifier = (cast_expression "(char **)xrealloc(prVar4->headers,lVar10 * 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(prVar4->headers,lVar10 * 8)" identifier (argument_list "(prVar4->headers,lVar10 * 8)" ( (field_expression "prVar4->headers" identifier -> field_identifier) , (binary_expression "lVar10 * 8" identifier * number_literal) ))))) ;) (expression_statement "prVar4->headers = ppcVar6;" (assignment_expression "prVar4->headers = ppcVar6" (field_expression "prVar4->headers" identifier -> field_identifier) = identifier) ;) })) (expression_statement "prVar4->headers[iVar1] = (char *)0x0;" (assignment_expression "prVar4->headers[iVar1] = (char *)0x0" (subscript_expression "prVar4->headers[iVar1]" (field_expression "prVar4->headers" identifier -> field_identifier) [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return prVar4;" return identifier ;) })))
(translation_unit "undefined8 * FUN_00120c97(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}\n\n" (function_definition "undefined8 * FUN_00120c97(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* FUN_00120c97(char *param_1)" * (function_declarator "FUN_00120c97(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar11;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = (undefined8 *)FUN_0014967c(1,0x10);" (assignment_expression "puVar4 = (undefined8 *)FUN_0014967c(1,0x10)" identifier = (cast_expression "(undefined8 *)FUN_0014967c(1,0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014967c(1,0x10)" identifier (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (if_statement "if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }" { (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" { (expression_statement "iVar1 = local_3c + 1;" (assignment_expression "iVar1 = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (if_statement "if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }" if (parenthesized_expression "(iVar9 < iVar1)" ( (binary_expression "iVar9 < iVar1" identifier < identifier) )) (compound_statement "{\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }" { (do_statement "do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);" do (compound_statement "{\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        }" { (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" identifier = (binary_expression "iVar9 * 2" identifier * number_literal)) ;) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" identifier = number_literal) ;) (if_statement "if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n            iVar9 = iVar3;\n          }" { (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(iVar9 < iVar1)" ( (binary_expression "iVar9 < iVar1" identifier < identifier) )) ;) (expression_statement "lVar5 = (long)iVar3;" (assignment_expression "lVar5 = (long)iVar3" identifier = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }" if (parenthesized_expression "(lVar5 < 0x10)" ( (binary_expression "lVar5 < 0x10" identifier < number_literal) )) (compound_statement "{\n          lVar5 = 0x10;\n        }" { (expression_statement "lVar5 = 0x10;" (assignment_expression "lVar5 = 0x10" identifier = number_literal) ;) })) (expression_statement "uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);" (assignment_expression "uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8)" identifier = (call_expression "FUN_0014951a(puVar4[1],lVar5 * 8)" identifier (argument_list "(puVar4[1],lVar5 * 8)" ( (subscript_expression "puVar4[1]" identifier [ number_literal ]) , (binary_expression "lVar5 * 8" identifier * number_literal) )))) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(char **)(puVar4[1] + lVar10) = __s;" (assignment_expression "*(char **)(puVar4[1] + lVar10) = __s" (pointer_expression "*(char **)(puVar4[1] + lVar10)" * (cast_expression "(char **)(puVar4[1] + lVar10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4[1] + lVar10)" ( (binary_expression "puVar4[1] + lVar10" (subscript_expression "puVar4[1]" identifier [ number_literal ]) + identifier) )))) = identifier) ;) (expression_statement "cVar2 = *__s;" (assignment_expression "cVar2 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (if_statement "if (cVar2 == '\0') break;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }" if (parenthesized_expression "(cVar2 == '\r')" ( (binary_expression "cVar2 == '\r'" identifier == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n        cVar2 = __s[1];\n      }" { (expression_statement "cVar2 = __s[1];" (assignment_expression "cVar2 = __s[1]" identifier = (subscript_expression "__s[1]" identifier [ number_literal ])) ;) })) (if_statement "if (cVar2 == '\n') break;" if (parenthesized_expression "(cVar2 == '\n')" ( (binary_expression "cVar2 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (while_statement "while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" while (parenthesized_expression "(pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0)" ( (comma_expression "pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strchr(__s,10)" identifier = (call_expression "strchr(__s,10)" identifier (argument_list "(__s,10)" ( identifier , number_literal )))) , (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" { (expression_statement "__s = pcVar7 + 1;" (assignment_expression "__s = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;" if (parenthesized_expression "((pcVar7[1] != ' ') && (pcVar7[1] != '\t'))" ( (binary_expression "(pcVar7[1] != ' ') && (pcVar7[1] != '\t')" (parenthesized_expression "(pcVar7[1] != ' ')" ( (binary_expression "pcVar7[1] != ' '" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(pcVar7[1] != '\t')" ( (binary_expression "pcVar7[1] != '\t'" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) != (char_literal "'\t'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00120d65;" goto statement_identifier ;)) (expression_statement "*pcVar7 = ' ';" (assignment_expression "*pcVar7 = ' '" (pointer_expression "*pcVar7" * identifier) = (char_literal "' '" ' character ')) ;) (if_statement "if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }" if (parenthesized_expression "((param_1 < pcVar7) && (pcVar7[-1] == '\r'))" ( (binary_expression "(param_1 < pcVar7) && (pcVar7[-1] == '\r')" (parenthesized_expression "(param_1 < pcVar7)" ( (binary_expression "param_1 < pcVar7" identifier < identifier) )) && (parenthesized_expression "(pcVar7[-1] == '\r')" ( (binary_expression "pcVar7[-1] == '\r'" (subscript_expression "pcVar7[-1]" identifier [ number_literal ]) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n          pcVar7[-1] = ' ';\n        }" { (expression_statement "pcVar7[-1] = ' ';" (assignment_expression "pcVar7[-1] = ' '" (subscript_expression "pcVar7[-1]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) })) })) (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = __s;" (assignment_expression "pcVar7 = __s" identifier = identifier) ;) (do_statement "do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar7;" (assignment_expression "cVar2 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "__s = __s + (~uVar8 - 1);" (assignment_expression "__s = __s + (~uVar8 - 1)" identifier = (binary_expression "__s + (~uVar8 - 1)" identifier + (parenthesized_expression "(~uVar8 - 1)" ( (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" ~ identifier) - number_literal) )))) ;) (labeled_statement "LAB_00120d65:\n      lVar10 = lVar10 + 8;" statement_identifier : (expression_statement "lVar10 = lVar10 + 8;" (assignment_expression "lVar10 = lVar10 + 8" identifier = (binary_expression "lVar10 + 8" identifier + number_literal)) ;)) (expression_statement "local_3c = iVar1;" (assignment_expression "local_3c = iVar1" identifier = identifier) ;) })) (if_statement "if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }" if (parenthesized_expression "(iVar9 < local_3c + 2)" ( (binary_expression "iVar9 < local_3c + 2" identifier < (binary_expression "local_3c + 2" identifier + number_literal)) )) (compound_statement "{\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }" { (do_statement "do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);" do (compound_statement "{\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      }" { (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" identifier = (binary_expression "iVar9 * 2" identifier * number_literal)) ;) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" identifier = number_literal) ;) (if_statement "if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar9 = iVar3;\n        }" { (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(iVar9 < local_3c + 2)" ( (binary_expression "iVar9 < local_3c + 2" identifier < (binary_expression "local_3c + 2" identifier + number_literal)) )) ;) (expression_statement "lVar10 = (long)iVar3;" (assignment_expression "lVar10 = (long)iVar3" identifier = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }" if (parenthesized_expression "(lVar10 < 0x10)" ( (binary_expression "lVar10 < 0x10" identifier < number_literal) )) (compound_statement "{\n        lVar10 = 0x10;\n      }" { (expression_statement "lVar10 = 0x10;" (assignment_expression "lVar10 = 0x10" identifier = number_literal) ;) })) (expression_statement "uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);" (assignment_expression "uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8)" identifier = (call_expression "FUN_0014951a(puVar4[1],lVar10 * 8)" identifier (argument_list "(puVar4[1],lVar10 * 8)" ( (subscript_expression "puVar4[1]" identifier [ number_literal ]) , (binary_expression "lVar10 * 8" identifier * number_literal) )))) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;" (assignment_expression "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0" (pointer_expression "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8)" * (cast_expression "(undefined8 *)(puVar4[1] + (long)iVar1 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4[1] + (long)iVar1 * 8)" ( (binary_expression "puVar4[1] + (long)iVar1 * 8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) + (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) - LIT) )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined8 * FUN_00120c97(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}" (type_identifier "undefined8") (pointer_declarator "* FUN_00120c97(char *param_1)" (* "*") (function_declarator "FUN_00120c97(char *param_1)" (identifier "FUN_00120c97") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  ulong uVar8;\n  int iVar9;\n  char *__s;\n  long lVar10;\n  byte bVar11;\n  int local_3c;\n  \n  bVar11 = 0;\n  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);\n  *puVar4 = param_1;\n  if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }\n  return puVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "ulong uVar8;" (type_identifier "ulong") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "long lVar10;" (sized_type_specifier "long" (long "long")) (identifier "lVar10") (; ";")) (declaration "byte bVar11;" (type_identifier "byte") (identifier "bVar11") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" (identifier "bVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (undefined8 *)FUN_0014967c(1,0x10);" (assignment_expression "puVar4 = (undefined8 *)FUN_0014967c(1,0x10)" (identifier "puVar4") (= "=") (cast_expression "(undefined8 *)FUN_0014967c(1,0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0014967c(1,0x10)" (identifier "FUN_0014967c") (argument_list "(1,0x10)" (( "(") (number_literal "1") (, ",") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "param_1")) (; ";")) (if_statement "if (*param_1 != '\0') {\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }" (if "if") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    lVar10 = 0;\n    iVar9 = 0;\n    local_3c = 0;\n    __s = param_1;\n    while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }\n    if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }\n    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;\n  }" ({ "{") (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" (identifier "lVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" (identifier "__s") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar1 = local_3c + 1;\n      if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }\n      *(char **)(puVar4[1] + lVar10) = __s;\n      cVar2 = *__s;\n      if (cVar2 == '\0') break;\n      if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }\n      if (cVar2 == '\n') break;\n      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar7 = __s;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s = __s + (~uVar8 - 1);\nLAB_00120d65:\n      lVar10 = lVar10 + 8;\n      local_3c = iVar1;\n    }" ({ "{") (expression_statement "iVar1 = local_3c + 1;" (assignment_expression "iVar1 = local_3c + 1" (identifier "iVar1") (= "=") (binary_expression "local_3c + 1" (identifier "local_3c") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar9 < iVar1) {\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }" (if "if") (parenthesized_expression "(iVar9 < iVar1)" (( "(") (binary_expression "iVar9 < iVar1" (identifier "iVar9") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n        do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);\n        lVar5 = (long)iVar3;\n        if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }\n        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);\n        puVar4[1] = uVar6;\n      }" ({ "{") (do_statement "do {\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        } while (iVar9 < iVar1);" (do "do") (compound_statement "{\n          iVar3 = iVar9 * 2;\n          iVar9 = 0x10;\n          if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }\n        }" ({ "{") (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" (identifier "iVar3") (= "=") (binary_expression "iVar9 * 2" (identifier "iVar9") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" (identifier "iVar9") (= "=") (number_literal "0x10")) (; ";")) (if_statement "if (0xf < iVar3) {\n            iVar9 = iVar3;\n          }" (if "if") (parenthesized_expression "(0xf < iVar3)" (( "(") (binary_expression "0xf < iVar3" (number_literal "0xf") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n            iVar9 = iVar3;\n          }" ({ "{") (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" (identifier "iVar9") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar9 < iVar1)" (( "(") (binary_expression "iVar9 < iVar1" (identifier "iVar9") (< "<") (identifier "iVar1")) () ")")) (; ";")) (expression_statement "lVar5 = (long)iVar3;" (assignment_expression "lVar5 = (long)iVar3" (identifier "lVar5") (= "=") (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3"))) (; ";")) (if_statement "if (lVar5 < 0x10) {\n          lVar5 = 0x10;\n        }" (if "if") (parenthesized_expression "(lVar5 < 0x10)" (( "(") (binary_expression "lVar5 < 0x10" (identifier "lVar5") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n          lVar5 = 0x10;\n        }" ({ "{") (expression_statement "lVar5 = 0x10;" (assignment_expression "lVar5 = 0x10" (identifier "lVar5") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (expression_statement "uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);" (assignment_expression "uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8)" (identifier "uVar6") (= "=") (call_expression "FUN_0014951a(puVar4[1],lVar5 * 8)" (identifier "FUN_0014951a") (argument_list "(puVar4[1],lVar5 * 8)" (( "(") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "lVar5 * 8" (identifier "lVar5") (* "*") (number_literal "8")) () ")")))) (; ";")) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "*(char **)(puVar4[1] + lVar10) = __s;" (assignment_expression "*(char **)(puVar4[1] + lVar10) = __s" (pointer_expression "*(char **)(puVar4[1] + lVar10)" (* "*") (cast_expression "(char **)(puVar4[1] + lVar10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4[1] + lVar10)" (( "(") (binary_expression "puVar4[1] + lVar10" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "lVar10")) () ")")))) (= "=") (identifier "__s")) (; ";")) (expression_statement "cVar2 = *__s;" (assignment_expression "cVar2 = *__s" (identifier "cVar2") (= "=") (pointer_expression "*__s" (* "*") (identifier "__s"))) (; ";")) (if_statement "if (cVar2 == '\0') break;" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (cVar2 == '\r') {\n        cVar2 = __s[1];\n      }" (if "if") (parenthesized_expression "(cVar2 == '\r')" (( "(") (binary_expression "cVar2 == '\r'" (identifier "cVar2") (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (compound_statement "{\n        cVar2 = __s[1];\n      }" ({ "{") (expression_statement "cVar2 = __s[1];" (assignment_expression "cVar2 = __s[1]" (identifier "cVar2") (= "=") (subscript_expression "__s[1]" (identifier "__s") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (if_statement "if (cVar2 == '\n') break;" (if "if") (parenthesized_expression "(cVar2 == '\n')" (( "(") (binary_expression "cVar2 == '\n'" (identifier "cVar2") (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (while_statement "while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" (while "while") (parenthesized_expression "(pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0)" (( "(") (comma_expression "pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0" (assignment_expression "pcVar7 = strchr(__s,10)" (identifier "pcVar7") (= "=") (call_expression "strchr(__s,10)" (identifier "strchr") (argument_list "(__s,10)" (( "(") (identifier "__s") (, ",") (number_literal "10") () ")")))) (, ",") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (compound_statement "{\n        __s = pcVar7 + 1;\n        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;\n        *pcVar7 = ' ';\n        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }\n      }" ({ "{") (expression_statement "__s = pcVar7 + 1;" (assignment_expression "__s = pcVar7 + 1" (identifier "__s") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;" (if "if") (parenthesized_expression "((pcVar7[1] != ' ') && (pcVar7[1] != '\t'))" (( "(") (binary_expression "(pcVar7[1] != ' ') && (pcVar7[1] != '\t')" (parenthesized_expression "(pcVar7[1] != ' ')" (( "(") (binary_expression "pcVar7[1] != ' '" (subscript_expression "pcVar7[1]" (identifier "pcVar7") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar7[1] != '\t')" (( "(") (binary_expression "pcVar7[1] != '\t'" (subscript_expression "pcVar7[1]" (identifier "pcVar7") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_00120d65;" (goto "goto") (statement_identifier "LAB_00120d65") (; ";"))) (expression_statement "*pcVar7 = ' ';" (assignment_expression "*pcVar7 = ' '" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (if_statement "if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {\n          pcVar7[-1] = ' ';\n        }" (if "if") (parenthesized_expression "((param_1 < pcVar7) && (pcVar7[-1] == '\r'))" (( "(") (binary_expression "(param_1 < pcVar7) && (pcVar7[-1] == '\r')" (parenthesized_expression "(param_1 < pcVar7)" (( "(") (binary_expression "param_1 < pcVar7" (identifier "param_1") (< "<") (identifier "pcVar7")) () ")")) (&& "&&") (parenthesized_expression "(pcVar7[-1] == '\r')" (( "(") (binary_expression "pcVar7[-1] == '\r'" (subscript_expression "pcVar7[-1]" (identifier "pcVar7") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          pcVar7[-1] = ' ';\n        }" ({ "{") (expression_statement "pcVar7[-1] = ' ';" (assignment_expression "pcVar7[-1] = ' '" (subscript_expression "pcVar7[-1]" (identifier "pcVar7") ([ "[") (number_literal "-1") (] "]")) (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar7 = __s;" (assignment_expression "pcVar7 = __s" (identifier "pcVar7") (= "=") (identifier "__s")) (; ";")) (do_statement "do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');" (do "do") (compound_statement "{\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;\n      }" ({ "{") (if_statement "if (uVar8 == 0) break;" (if "if") (parenthesized_expression "(uVar8 == 0)" (( "(") (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 - 1" (identifier "uVar8") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *pcVar7;" (assignment_expression "cVar2 = *pcVar7" (identifier "cVar2") (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar11 * -2" (identifier "pcVar7") (+ "+") (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar11")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "__s = __s + (~uVar8 - 1);" (assignment_expression "__s = __s + (~uVar8 - 1)" (identifier "__s") (= "=") (binary_expression "__s + (~uVar8 - 1)" (identifier "__s") (+ "+") (parenthesized_expression "(~uVar8 - 1)" (( "(") (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" (~ "~") (identifier "uVar8")) (- "-") (number_literal "1")) () ")")))) (; ";")) (labeled_statement "LAB_00120d65:\n      lVar10 = lVar10 + 8;" (statement_identifier "LAB_00120d65") (: ":") (expression_statement "lVar10 = lVar10 + 8;" (assignment_expression "lVar10 = lVar10 + 8" (identifier "lVar10") (= "=") (binary_expression "lVar10 + 8" (identifier "lVar10") (+ "+") (number_literal "8"))) (; ";"))) (expression_statement "local_3c = iVar1;" (assignment_expression "local_3c = iVar1" (identifier "local_3c") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (if_statement "if (iVar9 < local_3c + 2) {\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }" (if "if") (parenthesized_expression "(iVar9 < local_3c + 2)" (( "(") (binary_expression "iVar9 < local_3c + 2" (identifier "iVar9") (< "<") (binary_expression "local_3c + 2" (identifier "local_3c") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n      do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);\n      lVar10 = (long)iVar3;\n      if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }\n      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);\n      puVar4[1] = uVar6;\n    }" ({ "{") (do_statement "do {\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      } while (iVar9 < local_3c + 2);" (do "do") (compound_statement "{\n        iVar3 = iVar9 * 2;\n        iVar9 = 0x10;\n        if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }\n      }" ({ "{") (expression_statement "iVar3 = iVar9 * 2;" (assignment_expression "iVar3 = iVar9 * 2" (identifier "iVar3") (= "=") (binary_expression "iVar9 * 2" (identifier "iVar9") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar9 = 0x10;" (assignment_expression "iVar9 = 0x10" (identifier "iVar9") (= "=") (number_literal "0x10")) (; ";")) (if_statement "if (0xf < iVar3) {\n          iVar9 = iVar3;\n        }" (if "if") (parenthesized_expression "(0xf < iVar3)" (( "(") (binary_expression "0xf < iVar3" (number_literal "0xf") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n          iVar9 = iVar3;\n        }" ({ "{") (expression_statement "iVar9 = iVar3;" (assignment_expression "iVar9 = iVar3" (identifier "iVar9") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar9 < local_3c + 2)" (( "(") (binary_expression "iVar9 < local_3c + 2" (identifier "iVar9") (< "<") (binary_expression "local_3c + 2" (identifier "local_3c") (+ "+") (number_literal "2"))) () ")")) (; ";")) (expression_statement "lVar10 = (long)iVar3;" (assignment_expression "lVar10 = (long)iVar3" (identifier "lVar10") (= "=") (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3"))) (; ";")) (if_statement "if (lVar10 < 0x10) {\n        lVar10 = 0x10;\n      }" (if "if") (parenthesized_expression "(lVar10 < 0x10)" (( "(") (binary_expression "lVar10 < 0x10" (identifier "lVar10") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n        lVar10 = 0x10;\n      }" ({ "{") (expression_statement "lVar10 = 0x10;" (assignment_expression "lVar10 = 0x10" (identifier "lVar10") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (expression_statement "uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);" (assignment_expression "uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8)" (identifier "uVar6") (= "=") (call_expression "FUN_0014951a(puVar4[1],lVar10 * 8)" (identifier "FUN_0014951a") (argument_list "(puVar4[1],lVar10 * 8)" (( "(") (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "lVar10 * 8" (identifier "lVar10") (* "*") (number_literal "8")) () ")")))) (; ";")) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;" (assignment_expression "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0" (pointer_expression "*(undefined8 *)(puVar4[1] + (long)iVar1 * 8)" (* "*") (cast_expression "(undefined8 *)(puVar4[1] + (long)iVar1 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4[1] + (long)iVar1 * 8)" (( "(") (binary_expression "puVar4[1] + (long)iVar1 * 8" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (+ "+") (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "8"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}")))

type_1 * function_1(char *var_12)

{
  int var_4;
  char var_9;
  int var_5;
  type_1 *prVar4;
  long var_6;
  char **ppcVar6;
  char *var_11;
  type_2 var_13;
  int var_3;
  char *var_14;
  long var_8;
  type_3 bVar11;
  int var_2;
  
  bVar11 = 0;
  prVar4 = (type_1 *)var_1(1,0x10);
  prVar4->data = var_12;
  if (*var_12 != '\0') {
    var_8 = 0;
    var_3 = 0;
    var_2 = 0;
    var_14 = var_12;
    while( true ) {
      var_4 = var_2 + 1;
      if (var_3 < var_4) {
        do {
          var_5 = var_3 * 2;
          var_3 = 0x10;
          if (0xf < var_5) {
            var_3 = var_5;
          }
        } while (var_3 < var_4);
        var_6 = (long)var_5;
        if (var_6 < 0x10) {
          var_6 = 0x10;
        }
        ppcVar6 = (char **)var_7(prVar4->headers,var_6 * 8);
        prVar4->headers = ppcVar6;
      }
      *(char **)((long)prVar4->headers + var_8) = var_14;
      var_9 = *var_14;
      if (var_9 == '\0') break;
      if (var_9 == '\r') {
        var_9 = var_14[1];
      }
      if (var_9 == '\n') break;
      while (var_11 = var_10(var_14,10), var_11 != (char *)0x0) {
        var_14 = var_11 + 1;
        if ((var_11[1] != ' ') && (var_11[1] != '\t')) goto LAB_00120d65;
        *var_11 = ' ';
        if ((var_12 < var_11) && (var_11[-1] == '\r')) {
          var_11[-1] = ' ';
        }
      }
      var_13 = 0xffffffffffffffff;
      var_11 = var_14;
      do {
        if (var_13 == 0) break;
        var_13 = var_13 - 1;
        var_9 = *var_11;
        var_11 = var_11 + (type_2)bVar11 * -2 + 1;
      } while (var_9 != '\0');
      var_14 = var_14 + (~var_13 - 1);
LAB_00120d65:
      var_8 = var_8 + 8;
      var_2 = var_4;
    }
    if (var_3 < var_2 + 2) {
      do {
        var_5 = var_3 * 2;
        var_3 = 0x10;
        if (0xf < var_5) {
          var_3 = var_5;
        }
      } while (var_3 < var_2 + 2);
      var_8 = (long)var_5;
      if (var_8 < 0x10) {
        var_8 = 0x10;
      }
      ppcVar6 = (char **)var_7(prVar4->headers,var_8 * 8);
      prVar4->headers = ppcVar6;
    }
    prVar4->headers[var_4] = (char *)0x0;
  }
  return prVar4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_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: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal)))))) (labeled_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: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))) right: (number_literal))))) (return_statement (identifier)))))

undefined8 * MASKED(char *param_1)

{
  int iVar1;
  char cVar2;
  int iVar3;
  undefined8 *puVar4;
  long lVar5;
  undefined8 uVar6;
  char *pcVar7;
  ulong uVar8;
  int iVar9;
  char *__s;
  long lVar10;
  byte bVar11;
  int local_3c;
  
  bVar11 = 0;
  puVar4 = (undefined8 *)FUN_0014967c(1,0x10);
  *puVar4 = param_1;
  if (*param_1 != '\0') {
    lVar10 = 0;
    iVar9 = 0;
    local_3c = 0;
    __s = param_1;
    while( true ) {
      iVar1 = local_3c + 1;
      if (iVar9 < iVar1) {
        do {
          iVar3 = iVar9 * 2;
          iVar9 = 0x10;
          if (0xf < iVar3) {
            iVar9 = iVar3;
          }
        } while (iVar9 < iVar1);
        lVar5 = (long)iVar3;
        if (lVar5 < 0x10) {
          lVar5 = 0x10;
        }
        uVar6 = FUN_0014951a(puVar4[1],lVar5 * 8);
        puVar4[1] = uVar6;
      }
      *(char **)(puVar4[1] + lVar10) = __s;
      cVar2 = *__s;
      if (cVar2 == '\0') break;
      if (cVar2 == '\r') {
        cVar2 = __s[1];
      }
      if (cVar2 == '\n') break;
      while (pcVar7 = strchr(__s,10), pcVar7 != (char *)0x0) {
        __s = pcVar7 + 1;
        if ((pcVar7[1] != ' ') && (pcVar7[1] != '\t')) goto LAB_00120d65;
        *pcVar7 = ' ';
        if ((param_1 < pcVar7) && (pcVar7[-1] == '\r')) {
          pcVar7[-1] = ' ';
        }
      }
      uVar8 = 0xffffffffffffffff;
      pcVar7 = __s;
      do {
        if (uVar8 == 0) break;
        uVar8 = uVar8 - 1;
        cVar2 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar11 * -2 + 1;
      } while (cVar2 != '\0');
      __s = __s + (~uVar8 - 1);
LAB_00120d65:
      lVar10 = lVar10 + 8;
      local_3c = iVar1;
    }
    if (iVar9 < local_3c + 2) {
      do {
        iVar3 = iVar9 * 2;
        iVar9 = 0x10;
        if (0xf < iVar3) {
          iVar9 = iVar3;
        }
      } while (iVar9 < local_3c + 2);
      lVar10 = (long)iVar3;
      if (lVar10 < 0x10) {
        lVar10 = 0x10;
      }
      uVar6 = FUN_0014951a(puVar4[1],lVar10 * 8);
      puVar4[1] = uVar6;
    }
    *(undefined8 *)(puVar4[1] + (long)iVar1 * 8) = 0;
  }
  return puVar4;
}

