
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * gzgets(gzFile file,char *buf,int len)

{
  off64_t *poVar1;
  int *piVar2;
  uchar *__s;
  off64_t oVar3;
  void *pvVar4;
  int iVar5;
  uint __n;
  uint uVar6;
  char *__dest;
  off64_t in_stack_ffffffd4;
  uint local_24;
  
  if ((((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)) &&
     ((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)))) {
    if (file[5].next != (uchar *)0x0) {
      file[5].next = (uchar *)0x0;
      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);
      if (iVar5 == -1) {
        return (char *)0x0;
      }
    }
    local_24 = len - 1;
    if (local_24 != 0) {
      uVar6 = file->have;
      __dest = buf;
      if (uVar6 == 0) goto LAB_00021adf;
      do {
        do {
          __s = file->next;
          __n = uVar6;
          if (local_24 <= uVar6) {
            __n = local_24;
          }
          pvVar4 = memchr(__s,10,__n);
          if (pvVar4 != (void *)0x0) {
            uVar6 = (int)pvVar4 + (1 - (int)__s);
            memcpy(__dest,__s,uVar6);
            file->have = file->have - uVar6;
            file->next = file->next + uVar6;
            poVar1 = &file->pos;
            oVar3 = *poVar1;
            *(uint *)poVar1 = (int)*poVar1 + uVar6;
            piVar2 = (int *)((int)&file->pos + 4);
            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);
            __dest = __dest + uVar6;
            goto LAB_00021a6b;
          }
          memcpy(__dest,__s,__n);
          file->next = file->next + __n;
          uVar6 = file->have - __n;
          poVar1 = &file->pos;
          oVar3 = *poVar1;
          *(uint *)poVar1 = (int)*poVar1 + __n;
          piVar2 = (int *)((int)&file->pos + 4);
          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);
          __dest = __dest + __n;
          local_24 = local_24 - __n;
          file->have = uVar6;
          if (local_24 == 0) goto LAB_00021a6b;
        } while (uVar6 != 0);
LAB_00021adf:
        iVar5 = gz_fetch((gz_statep)file);
        if (iVar5 == -1) {
          return (char *)0x0;
        }
        uVar6 = file->have;
      } while (uVar6 != 0);
      file[4].have = 1;
LAB_00021a6b:
      if (__dest != buf) {
        *__dest = '\0';
        return buf;
      }
    }
  }
  return (char *)0x0;
}



undefined1 * __regparm2
gzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)

{
  uint *puVar1;
  uint uVar2;
  void *__s;
  void *pvVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  undefined1 *__dest;
  uint *unaff_retaddr;
  uint local_28;
  
  entry(param_2,0x219a9);
  if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&
      (unaff_retaddr[4] == 0x1c4f)) &&
     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {
    if (unaff_retaddr[0x15] != 0) {
      unaff_retaddr[0x15] = 0;
      iVar4 = FUN_000214d0();
      if (iVar4 == -1) {
        return (undefined1 *)0x0;
      }
    }
    local_28 = param_4 - 1;
    if (local_28 != 0) {
      uVar6 = *unaff_retaddr;
      __dest = param_3;
      if (uVar6 == 0) goto LAB_00021adf;
      do {
        do {
          __s = (void *)unaff_retaddr[1];
          uVar5 = uVar6;
          if (local_28 <= uVar6) {
            uVar5 = local_28;
          }
          pvVar3 = memchr(__s,10,uVar5);
          if (pvVar3 != (void *)0x0) {
            uVar6 = (int)pvVar3 + (1 - (int)__s);
            memcpy(__dest,__s,uVar6);
            *unaff_retaddr = *unaff_retaddr - uVar6;
            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;
            puVar1 = unaff_retaddr + 2;
            uVar5 = *puVar1;
            *puVar1 = *puVar1 + uVar6;
            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);
            __dest = __dest + uVar6;
            goto LAB_00021a6b;
          }
          memcpy(__dest,__s,uVar5);
          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;
          uVar6 = *unaff_retaddr - uVar5;
          puVar1 = unaff_retaddr + 2;
          uVar2 = *puVar1;
          *puVar1 = *puVar1 + uVar5;
          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);
          __dest = __dest + uVar5;
          local_28 = local_28 - uVar5;
          *unaff_retaddr = uVar6;
          if (local_28 == 0) goto LAB_00021a6b;
        } while (uVar6 != 0);
LAB_00021adf:
        iVar4 = FUN_000212c0();
        if (iVar4 == -1) {
          return (undefined1 *)0x0;
        }
        uVar6 = *unaff_retaddr;
      } while (uVar6 != 0);
      unaff_retaddr[0x10] = 1;
LAB_00021a6b:
      if (__dest != param_3) {
        *__dest = 0;
        return param_3;
      }
    }
  }
  return (undefined1 *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012310
ADD EBX,0xa657
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x38]
MOV ESI,dword ptr [ESP + 0x30]
TEST EDX,EDX
SETZ DL
TEST EDI,EDI
SETLE AL
OR DL,AL
JNZ 0x00021aa5
TEST ESI,ESI
JZ 0x00021aa5
CMP dword ptr [ESI + 0x10],0x1c4f
JNZ 0x00021aa5
MOV EAX,dword ptr [ESI + 0x58]
TEST EAX,EAX
JZ 0x000219f5
CMP EAX,-0x5
JNZ 0x00021aa5
MOV EAX,dword ptr [ESI + 0x54]
TEST EAX,EAX
JNZ 0x00021a88
SUB EDI,0x1
MOV dword ptr [ESP + 0x8],EDI
JZ 0x00021aa5
MOV ECX,dword ptr [ESI]
MOV EBP,dword ptr [ESP + 0x34]
TEST ECX,ECX
JZ 0x00021adf
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESI + 0x4]
CMP EAX,ECX
CMOVBE ECX,EAX
SUB ESP,0x4
PUSH ECX
MOV EDI,ECX
PUSH 0xa
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x00012210
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x00021ab0
SUB EAX,EDX
SUB ESP,0x4
LEA EDI,[EAX + 0x1]
PUSH EDI
PUSH EDX
PUSH EBP
CALL 0x000120c0
XOR EDX,EDX
SUB dword ptr [ESI],EDI
ADD dword ptr [ESI + 0x4],EDI
ADD dword ptr [ESI + 0x8],EDI
ADC dword ptr [ESI + 0xc],EDX
ADD EBP,EDI
ADD ESP,0x10
CMP EBP,dword ptr [ESP + 0x34]
JZ 0x00021aa5
MOV byte ptr [EBP],0x0
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI + 0x4c]
MOV ECX,dword ptr [ESI + 0x50]
MOV dword ptr [ESI + 0x54],0x0
MOV EAX,ESI
CALL 0x000214d0
CMP EAX,-0x1
JNZ 0x00021a00
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EDI
PUSH EDX
PUSH EBP
CALL 0x000120c0
MOV ECX,dword ptr [ESI]
XOR EDX,EDX
ADD dword ptr [ESI + 0x4],EDI
SUB ECX,EDI
ADD dword ptr [ESI + 0x8],EDI
ADC dword ptr [ESI + 0xc],EDX
ADD ESP,0x10
ADD EBP,EDI
SUB dword ptr [ESP + 0x8],EDI
MOV dword ptr [ESI],ECX
JZ 0x00021a6b
TEST ECX,ECX
JNZ 0x00021a20
MOV EAX,ESI
CALL 0x000212c0
CMP EAX,-0x1
JZ 0x00021aa5
MOV ECX,dword ptr [ESI]
TEST ECX,ECX
JNZ 0x00021a20
MOV dword ptr [ESI + 0x40],0x1
JMP 0x00021a6b
(translation_unit "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  void *__s;\n  void *pvVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 *__dest;\n  uint *unaff_retaddr;\n  uint local_28;\n  \n  entry(param_2,0x219a9);\n  if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }\n  return (undefined1 *)0x0;\n}\n\n" (ERROR "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" (binary_expression "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" identifier * (ERROR "__regparm2" identifier) (call_expression "gzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" identifier (argument_list "(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" ( identifier (ERROR "param_1" identifier) , identifier (ERROR "param_2" identifier) , (binary_expression "undefined1 *param_3" identifier * identifier) , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  void *__s;\n  void *pvVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 *__dest;\n  uint *unaff_retaddr;\n  uint local_28;\n  \n  entry(param_2,0x219a9);\n  if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }\n  return (undefined1 *)0x0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "entry(param_2,0x219a9);" (call_expression "entry(param_2,0x219a9)" identifier (argument_list "(param_2,0x219a9)" ( identifier , number_literal ))) ;) (if_statement "if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }" if (parenthesized_expression "((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb))))" ( (binary_expression "(((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))" (parenthesized_expression "(((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f))" ( (binary_expression "((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)" (parenthesized_expression "((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0))" ( (binary_expression "(param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)" (parenthesized_expression "(param_3 != (undefined1 *)0x0 && 0 < param_4)" ( (binary_expression "param_3 != (undefined1 *)0x0 && 0 < param_4" (binary_expression "param_3 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "0 < param_4" number_literal < identifier)) )) && (parenthesized_expression "(unaff_retaddr != (uint *)0x0)" ( (binary_expression "unaff_retaddr != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(unaff_retaddr[4] == 0x1c4f)" ( (binary_expression "unaff_retaddr[4] == 0x1c4f" (subscript_expression "unaff_retaddr[4]" identifier [ number_literal ]) == number_literal) ))) )) && (parenthesized_expression "((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))" ( (parenthesized_expression "(unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb))" ( (binary_expression "unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)" (binary_expression "unaff_retaddr[0x16] == 0" (subscript_expression "unaff_retaddr[0x16]" identifier [ number_literal ]) == number_literal) || (parenthesized_expression "(unaff_retaddr[0x16] == 0xfffffffb)" ( (binary_expression "unaff_retaddr[0x16] == 0xfffffffb" (subscript_expression "unaff_retaddr[0x16]" identifier [ number_literal ]) == number_literal) ))) )) ))) )) (compound_statement "{\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }" { (if_statement "if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }" if (parenthesized_expression "(unaff_retaddr[0x15] != 0)" ( (binary_expression "unaff_retaddr[0x15] != 0" (subscript_expression "unaff_retaddr[0x15]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }" { (expression_statement "unaff_retaddr[0x15] = 0;" (assignment_expression "unaff_retaddr[0x15] = 0" (subscript_expression "unaff_retaddr[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = FUN_000214d0();" (assignment_expression "iVar4 = FUN_000214d0()" identifier = (call_expression "FUN_000214d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return (undefined1 *)0x0;\n      }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "local_28 = param_4 - 1;" (assignment_expression "local_28 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (if_statement "if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }" { (expression_statement "uVar6 = *unaff_retaddr;" (assignment_expression "uVar6 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "__dest = param_3;" (assignment_expression "__dest = param_3" identifier = identifier) ;) (if_statement "if (uVar6 == 0) goto LAB_00021adf;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021adf;" goto statement_identifier ;)) (do_statement "do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);" do (compound_statement "{\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      }" { (do_statement "do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);" do (compound_statement "{\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        }" { (expression_statement "__s = (void *)unaff_retaddr[1];" (assignment_expression "__s = (void *)unaff_retaddr[1]" identifier = (cast_expression "(void *)unaff_retaddr[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (if_statement "if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }" if (parenthesized_expression "(local_28 <= uVar6)" ( (binary_expression "local_28 <= uVar6" identifier <= identifier) )) (compound_statement "{\n            uVar5 = local_28;\n          }" { (expression_statement "uVar5 = local_28;" (assignment_expression "uVar5 = local_28" identifier = identifier) ;) })) (expression_statement "pvVar3 = memchr(__s,10,uVar5);" (assignment_expression "pvVar3 = memchr(__s,10,uVar5)" identifier = (call_expression "memchr(__s,10,uVar5)" identifier (argument_list "(__s,10,uVar5)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" { (expression_statement "uVar6 = (int)pvVar3 + (1 - (int)__s);" (assignment_expression "uVar6 = (int)pvVar3 + (1 - (int)__s)" identifier = (binary_expression "(int)pvVar3 + (1 - (int)__s)" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "memcpy(__dest,__s,uVar6);" (call_expression "memcpy(__dest,__s,uVar6)" identifier (argument_list "(__dest,__s,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "*unaff_retaddr = *unaff_retaddr - uVar6;" (assignment_expression "*unaff_retaddr = *unaff_retaddr - uVar6" (pointer_expression "*unaff_retaddr" * identifier) = (binary_expression "*unaff_retaddr - uVar6" (pointer_expression "*unaff_retaddr" * identifier) - identifier)) ;) (expression_statement "unaff_retaddr[1] = unaff_retaddr[1] + uVar6;" (assignment_expression "unaff_retaddr[1] = unaff_retaddr[1] + uVar6" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[1] + uVar6" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "puVar1 = unaff_retaddr + 2;" (assignment_expression "puVar1 = unaff_retaddr + 2" identifier = (binary_expression "unaff_retaddr + 2" identifier + number_literal)) ;) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + uVar6;" (assignment_expression "*puVar1 = *puVar1 + uVar6" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + uVar6" (pointer_expression "*puVar1" * identifier) + identifier)) ;) (expression_statement "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);" (assignment_expression "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(uVar5,uVar6)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar5,uVar6)" identifier (argument_list "(uVar5,uVar6)" ( identifier , identifier )))))) ;) (expression_statement "__dest = __dest + uVar6;" (assignment_expression "__dest = __dest + uVar6" identifier = (binary_expression "__dest + uVar6" identifier + identifier)) ;) (goto_statement "goto LAB_00021a6b;" goto statement_identifier ;) })) (expression_statement "memcpy(__dest,__s,uVar5);" (call_expression "memcpy(__dest,__s,uVar5)" identifier (argument_list "(__dest,__s,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "unaff_retaddr[1] = unaff_retaddr[1] + uVar5;" (assignment_expression "unaff_retaddr[1] = unaff_retaddr[1] + uVar5" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[1] + uVar5" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "uVar6 = *unaff_retaddr - uVar5;" (assignment_expression "uVar6 = *unaff_retaddr - uVar5" identifier = (binary_expression "*unaff_retaddr - uVar5" (pointer_expression "*unaff_retaddr" * identifier) - identifier)) ;) (expression_statement "puVar1 = unaff_retaddr + 2;" (assignment_expression "puVar1 = unaff_retaddr + 2" identifier = (binary_expression "unaff_retaddr + 2" identifier + number_literal)) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + uVar5;" (assignment_expression "*puVar1 = *puVar1 + uVar5" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + uVar5" (pointer_expression "*puVar1" * identifier) + identifier)) ;) (expression_statement "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);" (assignment_expression "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(uVar2,uVar5)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar2,uVar5)" identifier (argument_list "(uVar2,uVar5)" ( identifier , identifier )))))) ;) (expression_statement "__dest = __dest + uVar5;" (assignment_expression "__dest = __dest + uVar5" identifier = (binary_expression "__dest + uVar5" identifier + identifier)) ;) (expression_statement "local_28 = local_28 - uVar5;" (assignment_expression "local_28 = local_28 - uVar5" identifier = (binary_expression "local_28 - uVar5" identifier - identifier)) ;) (expression_statement "*unaff_retaddr = uVar6;" (assignment_expression "*unaff_retaddr = uVar6" (pointer_expression "*unaff_retaddr" * identifier) = identifier) ;) (if_statement "if (local_28 == 0) goto LAB_00021a6b;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021a6b;" goto statement_identifier ;)) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00021adf:\n        iVar4 = FUN_000212c0();" statement_identifier : (expression_statement "iVar4 = FUN_000212c0();" (assignment_expression "iVar4 = FUN_000212c0()" identifier = (call_expression "FUN_000212c0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n          return (undefined1 *)0x0;\n        }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar6 = *unaff_retaddr;" (assignment_expression "uVar6 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (expression_statement "unaff_retaddr[0x10] = 1;" (assignment_expression "unaff_retaddr[0x10] = 1" (subscript_expression "unaff_retaddr[0x10]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }" statement_identifier : (if_statement "if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }" if (parenthesized_expression "(__dest != param_3)" ( (binary_expression "__dest != param_3" identifier != identifier) )) (compound_statement "{\n        *__dest = 0;\n        return param_3;\n      }" { (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" * identifier) = number_literal) ;) (return_statement "return param_3;" return identifier ;) }))) })) })) (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * gzgets(gzFile file,char *buf,int len)\n\n{\n  off64_t *poVar1;\n  int *piVar2;\n  uchar *__s;\n  off64_t oVar3;\n  void *pvVar4;\n  int iVar5;\n  uint __n;\n  uint uVar6;\n  char *__dest;\n  off64_t in_stack_ffffffd4;\n  uint local_24;\n  \n  if ((((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)) &&\n     ((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)))) {\n    if (file[5].next != (uchar *)0x0) {\n      file[5].next = (uchar *)0x0;\n      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);\n      if (iVar5 == -1) {\n        return (char *)0x0;\n      }\n    }\n    local_24 = len - 1;\n    if (local_24 != 0) {\n      uVar6 = file->have;\n      __dest = buf;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);\n      file[4].have = 1;\nLAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }\n    }\n  }\n  return (char *)0x0;\n}\n\n" comment (function_definition "char * gzgets(gzFile file,char *buf,int len)\n\n{\n  off64_t *poVar1;\n  int *piVar2;\n  uchar *__s;\n  off64_t oVar3;\n  void *pvVar4;\n  int iVar5;\n  uint __n;\n  uint uVar6;\n  char *__dest;\n  off64_t in_stack_ffffffd4;\n  uint local_24;\n  \n  if ((((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)) &&\n     ((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)))) {\n    if (file[5].next != (uchar *)0x0) {\n      file[5].next = (uchar *)0x0;\n      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);\n      if (iVar5 == -1) {\n        return (char *)0x0;\n      }\n    }\n    local_24 = len - 1;\n    if (local_24 != 0) {\n      uVar6 = file->have;\n      __dest = buf;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);\n      file[4].have = 1;\nLAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }\n    }\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* gzgets(gzFile file,char *buf,int len)" * (function_declarator "gzgets(gzFile file,char *buf,int len)" identifier (parameter_list "(gzFile file,char *buf,int len)" ( (parameter_declaration "gzFile file" type_identifier identifier) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int len" primitive_type identifier) )))) (compound_statement "{\n  off64_t *poVar1;\n  int *piVar2;\n  uchar *__s;\n  off64_t oVar3;\n  void *pvVar4;\n  int iVar5;\n  uint __n;\n  uint uVar6;\n  char *__dest;\n  off64_t in_stack_ffffffd4;\n  uint local_24;\n  \n  if ((((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)) &&\n     ((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)))) {\n    if (file[5].next != (uchar *)0x0) {\n      file[5].next = (uchar *)0x0;\n      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);\n      if (iVar5 == -1) {\n        return (char *)0x0;\n      }\n    }\n    local_24 = len - 1;\n    if (local_24 != 0) {\n      uVar6 = file->have;\n      __dest = buf;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);\n      file[4].have = 1;\nLAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "off64_t *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uchar *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "off64_t oVar3;" type_identifier identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "off64_t in_stack_ffffffd4;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if ((((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)) &&\n     ((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)))) {\n    if (file[5].next != (uchar *)0x0) {\n      file[5].next = (uchar *)0x0;\n      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);\n      if (iVar5 == -1) {\n        return (char *)0x0;\n      }\n    }\n    local_24 = len - 1;\n    if (local_24 != 0) {\n      uVar6 = file->have;\n      __dest = buf;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);\n      file[4].have = 1;\nLAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }\n    }\n  }" if (parenthesized_expression "((((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)) &&\n     ((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5))))" ( (binary_expression "(((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)) &&\n     ((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)))" (parenthesized_expression "(((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f))" ( (binary_expression "((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)) && (file[1].have == 0x1c4f)" (parenthesized_expression "((buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0))" ( (binary_expression "(buf != (char *)0x0 && 0 < len) && (file != (gzFile)0x0)" (parenthesized_expression "(buf != (char *)0x0 && 0 < len)" ( (binary_expression "buf != (char *)0x0 && 0 < len" (binary_expression "buf != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "0 < len" number_literal < identifier)) )) && (parenthesized_expression "(file != (gzFile)0x0)" ( (binary_expression "file != (gzFile)0x0" identifier != (cast_expression "(gzFile)0x0" ( (type_descriptor "gzFile" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(file[1].have == 0x1c4f)" ( (binary_expression "file[1].have == 0x1c4f" (field_expression "file[1].have" (subscript_expression "file[1]" identifier [ number_literal ]) . field_identifier) == number_literal) ))) )) && (parenthesized_expression "((iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)))" ( (parenthesized_expression "(iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5))" ( (comma_expression "iVar5 = (int)file[5].pos, iVar5 == 0 || (iVar5 == -5)" (assignment_expression "iVar5 = (int)file[5].pos" identifier = (cast_expression "(int)file[5].pos" ( (type_descriptor "int" primitive_type) ) (field_expression "file[5].pos" (subscript_expression "file[5]" identifier [ number_literal ]) . field_identifier))) , (binary_expression "iVar5 == 0 || (iVar5 == -5)" (binary_expression "iVar5 == 0" identifier == number_literal) || (parenthesized_expression "(iVar5 == -5)" ( (binary_expression "iVar5 == -5" identifier == number_literal) )))) )) ))) )) (compound_statement "{\n    if (file[5].next != (uchar *)0x0) {\n      file[5].next = (uchar *)0x0;\n      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);\n      if (iVar5 == -1) {\n        return (char *)0x0;\n      }\n    }\n    local_24 = len - 1;\n    if (local_24 != 0) {\n      uVar6 = file->have;\n      __dest = buf;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);\n      file[4].have = 1;\nLAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }\n    }\n  }" { (if_statement "if (file[5].next != (uchar *)0x0) {\n      file[5].next = (uchar *)0x0;\n      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);\n      if (iVar5 == -1) {\n        return (char *)0x0;\n      }\n    }" if (parenthesized_expression "(file[5].next != (uchar *)0x0)" ( (binary_expression "file[5].next != (uchar *)0x0" (field_expression "file[5].next" (subscript_expression "file[5]" identifier [ number_literal ]) . field_identifier) != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      file[5].next = (uchar *)0x0;\n      iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);\n      if (iVar5 == -1) {\n        return (char *)0x0;\n      }\n    }" { (expression_statement "file[5].next = (uchar *)0x0;" (assignment_expression "file[5].next = (uchar *)0x0" (field_expression "file[5].next" (subscript_expression "file[5]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4);" (assignment_expression "iVar5 = gz_skip((gz_statep)file,in_stack_ffffffd4)" identifier = (call_expression "gz_skip((gz_statep)file,in_stack_ffffffd4)" identifier (argument_list "((gz_statep)file,in_stack_ffffffd4)" ( (cast_expression "(gz_statep)file" ( (type_descriptor "gz_statep" type_identifier) ) identifier) , identifier )))) ;) (if_statement "if (iVar5 == -1) {\n        return (char *)0x0;\n      }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n        return (char *)0x0;\n      }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "local_24 = len - 1;" (assignment_expression "local_24 = len - 1" identifier = (binary_expression "len - 1" identifier - number_literal)) ;) (if_statement "if (local_24 != 0) {\n      uVar6 = file->have;\n      __dest = buf;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);\n      file[4].have = 1;\nLAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar6 = file->have;\n      __dest = buf;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);\n      file[4].have = 1;\nLAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }\n    }" { (expression_statement "uVar6 = file->have;" (assignment_expression "uVar6 = file->have" identifier = (field_expression "file->have" identifier -> field_identifier)) ;) (expression_statement "__dest = buf;" (assignment_expression "__dest = buf" identifier = identifier) ;) (if_statement "if (uVar6 == 0) goto LAB_00021adf;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021adf;" goto statement_identifier ;)) (do_statement "do {\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      } while (uVar6 != 0);" do (compound_statement "{\n        do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);\n        if (iVar5 == -1) {\n          return (char *)0x0;\n        }\n        uVar6 = file->have;\n      }" { (do_statement "do {\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);" do (compound_statement "{\n          __s = file->next;\n          __n = uVar6;\n          if (local_24 <= uVar6) {\n            __n = local_24;\n          }\n          pvVar4 = memchr(__s,10,__n);\n          if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,__n);\n          file->next = file->next + __n;\n          uVar6 = file->have - __n;\n          poVar1 = &file->pos;\n          oVar3 = *poVar1;\n          *(uint *)poVar1 = (int)*poVar1 + __n;\n          piVar2 = (int *)((int)&file->pos + 4);\n          *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);\n          __dest = __dest + __n;\n          local_24 = local_24 - __n;\n          file->have = uVar6;\n          if (local_24 == 0) goto LAB_00021a6b;\n        }" { (expression_statement "__s = file->next;" (assignment_expression "__s = file->next" identifier = (field_expression "file->next" identifier -> field_identifier)) ;) (expression_statement "__n = uVar6;" (assignment_expression "__n = uVar6" identifier = identifier) ;) (if_statement "if (local_24 <= uVar6) {\n            __n = local_24;\n          }" if (parenthesized_expression "(local_24 <= uVar6)" ( (binary_expression "local_24 <= uVar6" identifier <= identifier) )) (compound_statement "{\n            __n = local_24;\n          }" { (expression_statement "__n = local_24;" (assignment_expression "__n = local_24" identifier = identifier) ;) })) (expression_statement "pvVar4 = memchr(__s,10,__n);" (assignment_expression "pvVar4 = memchr(__s,10,__n)" identifier = (call_expression "memchr(__s,10,__n)" identifier (argument_list "(__s,10,__n)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar6 = (int)pvVar4 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            file->have = file->have - uVar6;\n            file->next = file->next + uVar6;\n            poVar1 = &file->pos;\n            oVar3 = *poVar1;\n            *(uint *)poVar1 = (int)*poVar1 + uVar6;\n            piVar2 = (int *)((int)&file->pos + 4);\n            *piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" { (expression_statement "uVar6 = (int)pvVar4 + (1 - (int)__s);" (assignment_expression "uVar6 = (int)pvVar4 + (1 - (int)__s)" identifier = (binary_expression "(int)pvVar4 + (1 - (int)__s)" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "memcpy(__dest,__s,uVar6);" (call_expression "memcpy(__dest,__s,uVar6)" identifier (argument_list "(__dest,__s,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "file->have = file->have - uVar6;" (assignment_expression "file->have = file->have - uVar6" (field_expression "file->have" identifier -> field_identifier) = (binary_expression "file->have - uVar6" (field_expression "file->have" identifier -> field_identifier) - identifier)) ;) (expression_statement "file->next = file->next + uVar6;" (assignment_expression "file->next = file->next + uVar6" (field_expression "file->next" identifier -> field_identifier) = (binary_expression "file->next + uVar6" (field_expression "file->next" identifier -> field_identifier) + identifier)) ;) (expression_statement "poVar1 = &file->pos;" (assignment_expression "poVar1 = &file->pos" identifier = (pointer_expression "&file->pos" & (field_expression "file->pos" identifier -> field_identifier))) ;) (expression_statement "oVar3 = *poVar1;" (assignment_expression "oVar3 = *poVar1" identifier = (pointer_expression "*poVar1" * identifier)) ;) (expression_statement "*(uint *)poVar1 = (int)*poVar1 + uVar6;" (assignment_expression "*(uint *)poVar1 = (int)*poVar1 + uVar6" (pointer_expression "*(uint *)poVar1" * (cast_expression "(uint *)poVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*poVar1 + uVar6" (cast_expression "(int)*poVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*poVar1" * identifier)) + identifier)) ;) (expression_statement "piVar2 = (int *)((int)&file->pos + 4);" (assignment_expression "piVar2 = (int *)((int)&file->pos + 4)" identifier = (cast_expression "(int *)((int)&file->pos + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&file->pos + 4)" ( (binary_expression "(int)&file->pos + 4" (cast_expression "(int)&file->pos" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&file->pos" & (field_expression "file->pos" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "*piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6);" (assignment_expression "*piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,uVar6)" (pointer_expression "*piVar2" * identifier) = (binary_expression "*piVar2 + (uint)CARRY4((uint)oVar3,uVar6)" (pointer_expression "*piVar2" * identifier) + (cast_expression "(uint)CARRY4((uint)oVar3,uVar6)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4((uint)oVar3,uVar6)" identifier (argument_list "((uint)oVar3,uVar6)" ( (cast_expression "(uint)oVar3" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier )))))) ;) (expression_statement "__dest = __dest + uVar6;" (assignment_expression "__dest = __dest + uVar6" identifier = (binary_expression "__dest + uVar6" identifier + identifier)) ;) (goto_statement "goto LAB_00021a6b;" goto statement_identifier ;) })) (expression_statement "memcpy(__dest,__s,__n);" (call_expression "memcpy(__dest,__s,__n)" identifier (argument_list "(__dest,__s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "file->next = file->next + __n;" (assignment_expression "file->next = file->next + __n" (field_expression "file->next" identifier -> field_identifier) = (binary_expression "file->next + __n" (field_expression "file->next" identifier -> field_identifier) + identifier)) ;) (expression_statement "uVar6 = file->have - __n;" (assignment_expression "uVar6 = file->have - __n" identifier = (binary_expression "file->have - __n" (field_expression "file->have" identifier -> field_identifier) - identifier)) ;) (expression_statement "poVar1 = &file->pos;" (assignment_expression "poVar1 = &file->pos" identifier = (pointer_expression "&file->pos" & (field_expression "file->pos" identifier -> field_identifier))) ;) (expression_statement "oVar3 = *poVar1;" (assignment_expression "oVar3 = *poVar1" identifier = (pointer_expression "*poVar1" * identifier)) ;) (expression_statement "*(uint *)poVar1 = (int)*poVar1 + __n;" (assignment_expression "*(uint *)poVar1 = (int)*poVar1 + __n" (pointer_expression "*(uint *)poVar1" * (cast_expression "(uint *)poVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*poVar1 + __n" (cast_expression "(int)*poVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*poVar1" * identifier)) + identifier)) ;) (expression_statement "piVar2 = (int *)((int)&file->pos + 4);" (assignment_expression "piVar2 = (int *)((int)&file->pos + 4)" identifier = (cast_expression "(int *)((int)&file->pos + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&file->pos + 4)" ( (binary_expression "(int)&file->pos + 4" (cast_expression "(int)&file->pos" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&file->pos" & (field_expression "file->pos" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "*piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n);" (assignment_expression "*piVar2 = *piVar2 + (uint)CARRY4((uint)oVar3,__n)" (pointer_expression "*piVar2" * identifier) = (binary_expression "*piVar2 + (uint)CARRY4((uint)oVar3,__n)" (pointer_expression "*piVar2" * identifier) + (cast_expression "(uint)CARRY4((uint)oVar3,__n)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4((uint)oVar3,__n)" identifier (argument_list "((uint)oVar3,__n)" ( (cast_expression "(uint)oVar3" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier )))))) ;) (expression_statement "__dest = __dest + __n;" (assignment_expression "__dest = __dest + __n" identifier = (binary_expression "__dest + __n" identifier + identifier)) ;) (expression_statement "local_24 = local_24 - __n;" (assignment_expression "local_24 = local_24 - __n" identifier = (binary_expression "local_24 - __n" identifier - identifier)) ;) (expression_statement "file->have = uVar6;" (assignment_expression "file->have = uVar6" (field_expression "file->have" identifier -> field_identifier) = identifier) ;) (if_statement "if (local_24 == 0) goto LAB_00021a6b;" if (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021a6b;" goto statement_identifier ;)) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00021adf:\n        iVar5 = gz_fetch((gz_statep)file);" statement_identifier : (expression_statement "iVar5 = gz_fetch((gz_statep)file);" (assignment_expression "iVar5 = gz_fetch((gz_statep)file)" identifier = (call_expression "gz_fetch((gz_statep)file)" identifier (argument_list "((gz_statep)file)" ( (cast_expression "(gz_statep)file" ( (type_descriptor "gz_statep" type_identifier) ) identifier) )))) ;)) (if_statement "if (iVar5 == -1) {\n          return (char *)0x0;\n        }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n          return (char *)0x0;\n        }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar6 = file->have;" (assignment_expression "uVar6 = file->have" identifier = (field_expression "file->have" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (expression_statement "file[4].have = 1;" (assignment_expression "file[4].have = 1" (field_expression "file[4].have" (subscript_expression "file[4]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (labeled_statement "LAB_00021a6b:\n      if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }" statement_identifier : (if_statement "if (__dest != buf) {\n        *__dest = '\0';\n        return buf;\n      }" if (parenthesized_expression "(__dest != buf)" ( (binary_expression "__dest != buf" identifier != identifier) )) (compound_statement "{\n        *__dest = '\0';\n        return buf;\n      }" { (expression_statement "*__dest = '\0';" (assignment_expression "*__dest = '\0'" (pointer_expression "*__dest" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return buf;" return identifier ;) }))) })) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  void *__s;\n  void *pvVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 *__dest;\n  uint *unaff_retaddr;\n  uint local_28;\n  \n  entry(param_2,0x219a9);\n  if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }\n  return (undefined1 *)0x0;\n}\n\n" (ERROR "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" (binary_expression "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" identifier * (ERROR "__regparm2" identifier) (call_expression "gzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" identifier (argument_list "(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" ( identifier (ERROR "param_1" identifier) , identifier (ERROR "param_2" identifier) , (binary_expression "undefined1 *param_3" identifier * identifier) , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  void *__s;\n  void *pvVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 *__dest;\n  uint *unaff_retaddr;\n  uint local_28;\n  \n  entry(param_2,0x219a9);\n  if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }\n  return (undefined1 *)0x0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "entry(param_2,0x219a9);" (call_expression "entry(param_2,0x219a9)" identifier (argument_list "(param_2,0x219a9)" ( identifier , number_literal ))) ;) (if_statement "if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }" if (parenthesized_expression "((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb))))" ( (binary_expression "(((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))" (parenthesized_expression "(((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f))" ( (binary_expression "((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)" (parenthesized_expression "((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0))" ( (binary_expression "(param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)" (parenthesized_expression "(param_3 != (undefined1 *)0x0 && 0 < param_4)" ( (binary_expression "param_3 != (undefined1 *)0x0 && 0 < param_4" (binary_expression "param_3 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "0 < param_4" number_literal < identifier)) )) && (parenthesized_expression "(unaff_retaddr != (uint *)0x0)" ( (binary_expression "unaff_retaddr != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(unaff_retaddr[4] == 0x1c4f)" ( (binary_expression "unaff_retaddr[4] == 0x1c4f" (subscript_expression "unaff_retaddr[4]" identifier [ number_literal ]) == number_literal) ))) )) && (parenthesized_expression "((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))" ( (parenthesized_expression "(unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb))" ( (binary_expression "unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)" (binary_expression "unaff_retaddr[0x16] == 0" (subscript_expression "unaff_retaddr[0x16]" identifier [ number_literal ]) == number_literal) || (parenthesized_expression "(unaff_retaddr[0x16] == 0xfffffffb)" ( (binary_expression "unaff_retaddr[0x16] == 0xfffffffb" (subscript_expression "unaff_retaddr[0x16]" identifier [ number_literal ]) == number_literal) ))) )) ))) )) (compound_statement "{\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }" { (if_statement "if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }" if (parenthesized_expression "(unaff_retaddr[0x15] != 0)" ( (binary_expression "unaff_retaddr[0x15] != 0" (subscript_expression "unaff_retaddr[0x15]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }" { (expression_statement "unaff_retaddr[0x15] = 0;" (assignment_expression "unaff_retaddr[0x15] = 0" (subscript_expression "unaff_retaddr[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = FUN_000214d0();" (assignment_expression "iVar4 = FUN_000214d0()" identifier = (call_expression "FUN_000214d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return (undefined1 *)0x0;\n      }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "local_28 = param_4 - 1;" (assignment_expression "local_28 = param_4 - 1" identifier = (binary_expression "param_4 - 1" identifier - number_literal)) ;) (if_statement "if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }" if (parenthesized_expression "(local_28 != 0)" ( (binary_expression "local_28 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }" { (expression_statement "uVar6 = *unaff_retaddr;" (assignment_expression "uVar6 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "__dest = param_3;" (assignment_expression "__dest = param_3" identifier = identifier) ;) (if_statement "if (uVar6 == 0) goto LAB_00021adf;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021adf;" goto statement_identifier ;)) (do_statement "do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);" do (compound_statement "{\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      }" { (do_statement "do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);" do (compound_statement "{\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        }" { (expression_statement "__s = (void *)unaff_retaddr[1];" (assignment_expression "__s = (void *)unaff_retaddr[1]" identifier = (cast_expression "(void *)unaff_retaddr[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (if_statement "if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }" if (parenthesized_expression "(local_28 <= uVar6)" ( (binary_expression "local_28 <= uVar6" identifier <= identifier) )) (compound_statement "{\n            uVar5 = local_28;\n          }" { (expression_statement "uVar5 = local_28;" (assignment_expression "uVar5 = local_28" identifier = identifier) ;) })) (expression_statement "pvVar3 = memchr(__s,10,uVar5);" (assignment_expression "pvVar3 = memchr(__s,10,uVar5)" identifier = (call_expression "memchr(__s,10,uVar5)" identifier (argument_list "(__s,10,uVar5)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" { (expression_statement "uVar6 = (int)pvVar3 + (1 - (int)__s);" (assignment_expression "uVar6 = (int)pvVar3 + (1 - (int)__s)" identifier = (binary_expression "(int)pvVar3 + (1 - (int)__s)" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "memcpy(__dest,__s,uVar6);" (call_expression "memcpy(__dest,__s,uVar6)" identifier (argument_list "(__dest,__s,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "*unaff_retaddr = *unaff_retaddr - uVar6;" (assignment_expression "*unaff_retaddr = *unaff_retaddr - uVar6" (pointer_expression "*unaff_retaddr" * identifier) = (binary_expression "*unaff_retaddr - uVar6" (pointer_expression "*unaff_retaddr" * identifier) - identifier)) ;) (expression_statement "unaff_retaddr[1] = unaff_retaddr[1] + uVar6;" (assignment_expression "unaff_retaddr[1] = unaff_retaddr[1] + uVar6" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[1] + uVar6" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "puVar1 = unaff_retaddr + 2;" (assignment_expression "puVar1 = unaff_retaddr + 2" identifier = (binary_expression "unaff_retaddr + 2" identifier + number_literal)) ;) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + uVar6;" (assignment_expression "*puVar1 = *puVar1 + uVar6" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + uVar6" (pointer_expression "*puVar1" * identifier) + identifier)) ;) (expression_statement "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);" (assignment_expression "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(uVar5,uVar6)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar5,uVar6)" identifier (argument_list "(uVar5,uVar6)" ( identifier , identifier )))))) ;) (expression_statement "__dest = __dest + uVar6;" (assignment_expression "__dest = __dest + uVar6" identifier = (binary_expression "__dest + uVar6" identifier + identifier)) ;) (goto_statement "goto LAB_00021a6b;" goto statement_identifier ;) })) (expression_statement "memcpy(__dest,__s,uVar5);" (call_expression "memcpy(__dest,__s,uVar5)" identifier (argument_list "(__dest,__s,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "unaff_retaddr[1] = unaff_retaddr[1] + uVar5;" (assignment_expression "unaff_retaddr[1] = unaff_retaddr[1] + uVar5" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[1] + uVar5" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "uVar6 = *unaff_retaddr - uVar5;" (assignment_expression "uVar6 = *unaff_retaddr - uVar5" identifier = (binary_expression "*unaff_retaddr - uVar5" (pointer_expression "*unaff_retaddr" * identifier) - identifier)) ;) (expression_statement "puVar1 = unaff_retaddr + 2;" (assignment_expression "puVar1 = unaff_retaddr + 2" identifier = (binary_expression "unaff_retaddr + 2" identifier + number_literal)) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + uVar5;" (assignment_expression "*puVar1 = *puVar1 + uVar5" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + uVar5" (pointer_expression "*puVar1" * identifier) + identifier)) ;) (expression_statement "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);" (assignment_expression "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) = (binary_expression "unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5)" (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(uVar2,uVar5)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar2,uVar5)" identifier (argument_list "(uVar2,uVar5)" ( identifier , identifier )))))) ;) (expression_statement "__dest = __dest + uVar5;" (assignment_expression "__dest = __dest + uVar5" identifier = (binary_expression "__dest + uVar5" identifier + identifier)) ;) (expression_statement "local_28 = local_28 - uVar5;" (assignment_expression "local_28 = local_28 - uVar5" identifier = (binary_expression "local_28 - uVar5" identifier - identifier)) ;) (expression_statement "*unaff_retaddr = uVar6;" (assignment_expression "*unaff_retaddr = uVar6" (pointer_expression "*unaff_retaddr" * identifier) = identifier) ;) (if_statement "if (local_28 == 0) goto LAB_00021a6b;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021a6b;" goto statement_identifier ;)) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00021adf:\n        iVar4 = FUN_000212c0();" statement_identifier : (expression_statement "iVar4 = FUN_000212c0();" (assignment_expression "iVar4 = FUN_000212c0()" identifier = (call_expression "FUN_000212c0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n          return (undefined1 *)0x0;\n        }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar6 = *unaff_retaddr;" (assignment_expression "uVar6 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) }) while (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) ;) (expression_statement "unaff_retaddr[0x10] = 1;" (assignment_expression "unaff_retaddr[0x10] = 1" (subscript_expression "unaff_retaddr[0x10]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }" statement_identifier : (if_statement "if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }" if (parenthesized_expression "(__dest != param_3)" ( (binary_expression "__dest != param_3" identifier != identifier) )) (compound_statement "{\n        *__dest = 0;\n        return param_3;\n      }" { (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" * identifier) = number_literal) ;) (return_statement "return param_3;" return identifier ;) }))) })) })) (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( IDENT (ERROR IDENT) , IDENT (ERROR IDENT) , (binary_expression IDENT * IDENT) , (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) && (binary_expression LIT < IDENT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) - IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) }))) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) }))
(ERROR "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" (binary_expression "undefined1 * __regparm2\ngzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" (identifier "undefined1") (* "*") (ERROR "__regparm2" (identifier "__regparm2")) (call_expression "gzgets(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" (identifier "gzgets") (argument_list "(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)" (( "(") (identifier "undefined4") (ERROR "param_1" (identifier "param_1")) (, ",") (identifier "undefined4") (ERROR "param_2" (identifier "param_2")) (, ",") (binary_expression "undefined1 *param_3" (identifier "undefined1") (* "*") (identifier "param_3")) (, ",") (ERROR "int" (identifier "int")) (identifier "param_4") () ")"))))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  void *__s;\n  void *pvVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 *__dest;\n  uint *unaff_retaddr;\n  uint local_28;\n  \n  entry(param_2,0x219a9);\n  if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }\n  return (undefined1 *)0x0;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined1 *__dest;" (type_identifier "undefined1") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "uint *unaff_retaddr;" (type_identifier "uint") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (expression_statement "entry(param_2,0x219a9);" (call_expression "entry(param_2,0x219a9)" (identifier "entry") (argument_list "(param_2,0x219a9)" (( "(") (identifier "param_2") (, ",") (number_literal "0x219a9") () ")"))) (; ";")) (if_statement "if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb))))" (( "(") (binary_expression "(((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)) &&\n     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))" (parenthesized_expression "(((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f))" (( "(") (binary_expression "((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&\n      (unaff_retaddr[4] == 0x1c4f)" (parenthesized_expression "((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0))" (( "(") (binary_expression "(param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)" (parenthesized_expression "(param_3 != (undefined1 *)0x0 && 0 < param_4)" (( "(") (binary_expression "param_3 != (undefined1 *)0x0 && 0 < param_4" (binary_expression "param_3 != (undefined1 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (binary_expression "0 < param_4" (number_literal "0") (< "<") (identifier "param_4"))) () ")")) (&& "&&") (parenthesized_expression "(unaff_retaddr != (uint *)0x0)" (( "(") (binary_expression "unaff_retaddr != (uint *)0x0" (identifier "unaff_retaddr") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(unaff_retaddr[4] == 0x1c4f)" (( "(") (binary_expression "unaff_retaddr[4] == 0x1c4f" (subscript_expression "unaff_retaddr[4]" (identifier "unaff_retaddr") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0x1c4f")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))" (( "(") (parenthesized_expression "(unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb))" (( "(") (binary_expression "unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)" (binary_expression "unaff_retaddr[0x16] == 0" (subscript_expression "unaff_retaddr[0x16]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x16") (] "]")) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(unaff_retaddr[0x16] == 0xfffffffb)" (( "(") (binary_expression "unaff_retaddr[0x16] == 0xfffffffb" (subscript_expression "unaff_retaddr[0x16]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x16") (] "]")) (== "==") (number_literal "0xfffffffb")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }\n    local_28 = param_4 - 1;\n    if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }\n  }" ({ "{") (if_statement "if (unaff_retaddr[0x15] != 0) {\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }" (if "if") (parenthesized_expression "(unaff_retaddr[0x15] != 0)" (( "(") (binary_expression "unaff_retaddr[0x15] != 0" (subscript_expression "unaff_retaddr[0x15]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x15") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      unaff_retaddr[0x15] = 0;\n      iVar4 = FUN_000214d0();\n      if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }\n    }" ({ "{") (expression_statement "unaff_retaddr[0x15] = 0;" (assignment_expression "unaff_retaddr[0x15] = 0" (subscript_expression "unaff_retaddr[0x15]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x15") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = FUN_000214d0();" (assignment_expression "iVar4 = FUN_000214d0()" (identifier "iVar4") (= "=") (call_expression "FUN_000214d0()" (identifier "FUN_000214d0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) {\n        return (undefined1 *)0x0;\n      }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        return (undefined1 *)0x0;\n      }" ({ "{") (return_statement "return (undefined1 *)0x0;" (return "return") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "local_28 = param_4 - 1;" (assignment_expression "local_28 = param_4 - 1" (identifier "local_28") (= "=") (binary_expression "param_4 - 1" (identifier "param_4") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (local_28 != 0) {\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }" (if "if") (parenthesized_expression "(local_28 != 0)" (( "(") (binary_expression "local_28 != 0" (identifier "local_28") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar6 = *unaff_retaddr;\n      __dest = param_3;\n      if (uVar6 == 0) goto LAB_00021adf;\n      do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);\n      unaff_retaddr[0x10] = 1;\nLAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }\n    }" ({ "{") (expression_statement "uVar6 = *unaff_retaddr;" (assignment_expression "uVar6 = *unaff_retaddr" (identifier "uVar6") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (expression_statement "__dest = param_3;" (assignment_expression "__dest = param_3" (identifier "__dest") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (uVar6 == 0) goto LAB_00021adf;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00021adf;" (goto "goto") (statement_identifier "LAB_00021adf") (; ";"))) (do_statement "do {\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      } while (uVar6 != 0);" (do "do") (compound_statement "{\n        do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);\nLAB_00021adf:\n        iVar4 = FUN_000212c0();\n        if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }\n        uVar6 = *unaff_retaddr;\n      }" ({ "{") (do_statement "do {\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        } while (uVar6 != 0);" (do "do") (compound_statement "{\n          __s = (void *)unaff_retaddr[1];\n          uVar5 = uVar6;\n          if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }\n          pvVar3 = memchr(__s,10,uVar5);\n          if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }\n          memcpy(__dest,__s,uVar5);\n          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;\n          uVar6 = *unaff_retaddr - uVar5;\n          puVar1 = unaff_retaddr + 2;\n          uVar2 = *puVar1;\n          *puVar1 = *puVar1 + uVar5;\n          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);\n          __dest = __dest + uVar5;\n          local_28 = local_28 - uVar5;\n          *unaff_retaddr = uVar6;\n          if (local_28 == 0) goto LAB_00021a6b;\n        }" ({ "{") (expression_statement "__s = (void *)unaff_retaddr[1];" (assignment_expression "__s = (void *)unaff_retaddr[1]" (identifier "__s") (= "=") (cast_expression "(void *)unaff_retaddr[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" (identifier "uVar5") (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (local_28 <= uVar6) {\n            uVar5 = local_28;\n          }" (if "if") (parenthesized_expression "(local_28 <= uVar6)" (( "(") (binary_expression "local_28 <= uVar6" (identifier "local_28") (<= "<=") (identifier "uVar6")) () ")")) (compound_statement "{\n            uVar5 = local_28;\n          }" ({ "{") (expression_statement "uVar5 = local_28;" (assignment_expression "uVar5 = local_28" (identifier "uVar5") (= "=") (identifier "local_28")) (; ";")) (} "}"))) (expression_statement "pvVar3 = memchr(__s,10,uVar5);" (assignment_expression "pvVar3 = memchr(__s,10,uVar5)" (identifier "pvVar3") (= "=") (call_expression "memchr(__s,10,uVar5)" (identifier "memchr") (argument_list "(__s,10,uVar5)" (( "(") (identifier "__s") (, ",") (number_literal "10") (, ",") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (pvVar3 != (void *)0x0) {\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" (if "if") (parenthesized_expression "(pvVar3 != (void *)0x0)" (( "(") (binary_expression "pvVar3 != (void *)0x0" (identifier "pvVar3") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            uVar6 = (int)pvVar3 + (1 - (int)__s);\n            memcpy(__dest,__s,uVar6);\n            *unaff_retaddr = *unaff_retaddr - uVar6;\n            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;\n            puVar1 = unaff_retaddr + 2;\n            uVar5 = *puVar1;\n            *puVar1 = *puVar1 + uVar6;\n            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);\n            __dest = __dest + uVar6;\n            goto LAB_00021a6b;\n          }" ({ "{") (expression_statement "uVar6 = (int)pvVar3 + (1 - (int)__s);" (assignment_expression "uVar6 = (int)pvVar3 + (1 - (int)__s)" (identifier "uVar6") (= "=") (binary_expression "(int)pvVar3 + (1 - (int)__s)" (cast_expression "(int)pvVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar3")) (+ "+") (parenthesized_expression "(1 - (int)__s)" (( "(") (binary_expression "1 - (int)__s" (number_literal "1") (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) () ")")))) (; ";")) (expression_statement "memcpy(__dest,__s,uVar6);" (call_expression "memcpy(__dest,__s,uVar6)" (identifier "memcpy") (argument_list "(__dest,__s,uVar6)" (( "(") (identifier "__dest") (, ",") (identifier "__s") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "*unaff_retaddr = *unaff_retaddr - uVar6;" (assignment_expression "*unaff_retaddr = *unaff_retaddr - uVar6" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (= "=") (binary_expression "*unaff_retaddr - uVar6" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (- "-") (identifier "uVar6"))) (; ";")) (expression_statement "unaff_retaddr[1] = unaff_retaddr[1] + uVar6;" (assignment_expression "unaff_retaddr[1] = unaff_retaddr[1] + uVar6" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "unaff_retaddr[1] + uVar6" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "uVar6"))) (; ";")) (expression_statement "puVar1 = unaff_retaddr + 2;" (assignment_expression "puVar1 = unaff_retaddr + 2" (identifier "puVar1") (= "=") (binary_expression "unaff_retaddr + 2" (identifier "unaff_retaddr") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" (identifier "uVar5") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*puVar1 = *puVar1 + uVar6;" (assignment_expression "*puVar1 = *puVar1 + uVar6" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 + uVar6" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (+ "+") (identifier "uVar6"))) (; ";")) (expression_statement "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);" (assignment_expression "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6)" (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6)" (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) (+ "+") (cast_expression "(uint)CARRY4(uVar5,uVar6)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar5,uVar6)" (identifier "CARRY4") (argument_list "(uVar5,uVar6)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar6") () ")")))))) (; ";")) (expression_statement "__dest = __dest + uVar6;" (assignment_expression "__dest = __dest + uVar6" (identifier "__dest") (= "=") (binary_expression "__dest + uVar6" (identifier "__dest") (+ "+") (identifier "uVar6"))) (; ";")) (goto_statement "goto LAB_00021a6b;" (goto "goto") (statement_identifier "LAB_00021a6b") (; ";")) (} "}"))) (expression_statement "memcpy(__dest,__s,uVar5);" (call_expression "memcpy(__dest,__s,uVar5)" (identifier "memcpy") (argument_list "(__dest,__s,uVar5)" (( "(") (identifier "__dest") (, ",") (identifier "__s") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "unaff_retaddr[1] = unaff_retaddr[1] + uVar5;" (assignment_expression "unaff_retaddr[1] = unaff_retaddr[1] + uVar5" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "unaff_retaddr[1] + uVar5" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "uVar5"))) (; ";")) (expression_statement "uVar6 = *unaff_retaddr - uVar5;" (assignment_expression "uVar6 = *unaff_retaddr - uVar5" (identifier "uVar6") (= "=") (binary_expression "*unaff_retaddr - uVar5" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (- "-") (identifier "uVar5"))) (; ";")) (expression_statement "puVar1 = unaff_retaddr + 2;" (assignment_expression "puVar1 = unaff_retaddr + 2" (identifier "puVar1") (= "=") (binary_expression "unaff_retaddr + 2" (identifier "unaff_retaddr") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*puVar1 = *puVar1 + uVar5;" (assignment_expression "*puVar1 = *puVar1 + uVar5" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 + uVar5" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (+ "+") (identifier "uVar5"))) (; ";")) (expression_statement "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);" (assignment_expression "unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5)" (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5)" (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) (+ "+") (cast_expression "(uint)CARRY4(uVar2,uVar5)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar2,uVar5)" (identifier "CARRY4") (argument_list "(uVar2,uVar5)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar5") () ")")))))) (; ";")) (expression_statement "__dest = __dest + uVar5;" (assignment_expression "__dest = __dest + uVar5" (identifier "__dest") (= "=") (binary_expression "__dest + uVar5" (identifier "__dest") (+ "+") (identifier "uVar5"))) (; ";")) (expression_statement "local_28 = local_28 - uVar5;" (assignment_expression "local_28 = local_28 - uVar5" (identifier "local_28") (= "=") (binary_expression "local_28 - uVar5" (identifier "local_28") (- "-") (identifier "uVar5"))) (; ";")) (expression_statement "*unaff_retaddr = uVar6;" (assignment_expression "*unaff_retaddr = uVar6" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (local_28 == 0) goto LAB_00021a6b;" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00021a6b;" (goto "goto") (statement_identifier "LAB_00021a6b") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_00021adf:\n        iVar4 = FUN_000212c0();" (statement_identifier "LAB_00021adf") (: ":") (expression_statement "iVar4 = FUN_000212c0();" (assignment_expression "iVar4 = FUN_000212c0()" (identifier "iVar4") (= "=") (call_expression "FUN_000212c0()" (identifier "FUN_000212c0") (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if (iVar4 == -1) {\n          return (undefined1 *)0x0;\n        }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          return (undefined1 *)0x0;\n        }" ({ "{") (return_statement "return (undefined1 *)0x0;" (return "return") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "uVar6 = *unaff_retaddr;" (assignment_expression "uVar6 = *unaff_retaddr" (identifier "uVar6") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "unaff_retaddr[0x10] = 1;" (assignment_expression "unaff_retaddr[0x10] = 1" (subscript_expression "unaff_retaddr[0x10]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_00021a6b:\n      if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }" (statement_identifier "LAB_00021a6b") (: ":") (if_statement "if (__dest != param_3) {\n        *__dest = 0;\n        return param_3;\n      }" (if "if") (parenthesized_expression "(__dest != param_3)" (( "(") (binary_expression "__dest != param_3" (identifier "__dest") (!= "!=") (identifier "param_3")) () ")")) (compound_statement "{\n        *__dest = 0;\n        return param_3;\n      }" ({ "{") (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))) (} "}"))) (} "}"))) (return_statement "return (undefined1 *)0x0;" (return "return") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * function_1(type_1 var_3,char *var_1,int var_2)

{
  type_2 *poVar1;
  int *piVar2;
  type_3 *__s;
  type_2 oVar3;
  void *var_9;
  int var_4;
  type_4 var_13;
  type_4 var_7;
  char *var_12;
  type_2 in_stack_ffffffd4;
  type_4 var_6;
  
  if ((((var_1 != (char *)0x0 && 0 < var_2) && (var_3 != (type_1)0x0)) && (var_3[1].have == 0x1c4f)) &&
     ((var_4 = (int)var_3[5].pos, var_4 == 0 || (var_4 == -5)))) {
    if (var_3[5].next != (type_3 *)0x0) {
      var_3[5].next = (type_3 *)0x0;
      var_4 = var_5((type_5)var_3,in_stack_ffffffd4);
      if (var_4 == -1) {
        return (char *)0x0;
      }
    }
    var_6 = var_2 - 1;
    if (var_6 != 0) {
      var_7 = var_3->have;
      var_12 = var_1;
      if (var_7 == 0) goto LAB_00021adf;
      do {
        do {
          __s = var_3->next;
          var_13 = var_7;
          if (var_6 <= var_7) {
            var_13 = var_6;
          }
          var_9 = var_8(__s,10,var_13);
          if (var_9 != (void *)0x0) {
            var_7 = (int)var_9 + (1 - (int)__s);
            var_10(var_12,__s,var_7);
            var_3->have = var_3->have - var_7;
            var_3->next = var_3->next + var_7;
            poVar1 = &var_3->pos;
            oVar3 = *poVar1;
            *(type_4 *)poVar1 = (int)*poVar1 + var_7;
            piVar2 = (int *)((int)&var_3->pos + 4);
            *piVar2 = *piVar2 + (type_4)var_11((type_4)oVar3,var_7);
            var_12 = var_12 + var_7;
            goto LAB_00021a6b;
          }
          var_10(var_12,__s,var_13);
          var_3->next = var_3->next + var_13;
          var_7 = var_3->have - var_13;
          poVar1 = &var_3->pos;
          oVar3 = *poVar1;
          *(type_4 *)poVar1 = (int)*poVar1 + var_13;
          piVar2 = (int *)((int)&var_3->pos + 4);
          *piVar2 = *piVar2 + (type_4)var_11((type_4)oVar3,var_13);
          var_12 = var_12 + var_13;
          var_6 = var_6 - var_13;
          var_3->have = var_7;
          if (var_6 == 0) goto LAB_00021a6b;
        } while (var_7 != 0);
LAB_00021adf:
        var_4 = var_14((type_5)var_3);
        if (var_4 == -1) {
          return (char *)0x0;
        }
        var_7 = var_3->have;
      } while (var_7 != 0);
      var_3[4].have = 1;
LAB_00021a6b:
      if (var_12 != var_1) {
        *var_12 = '\0';
        return var_1;
      }
    }
  }
  return (char *)0x0;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (ERROR (identifier)) (identifier) (ERROR (identifier)) (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier)) (identifier))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) right: (binary_expression left: (number_literal) right: (identifier)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (do_statement body: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier))))))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))

undefined1 * __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined1 *param_3,int param_4)

{
  uint *puVar1;
  uint uVar2;
  void *__s;
  void *pvVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  undefined1 *__dest;
  uint *unaff_retaddr;
  uint local_28;
  
  entry(param_2,0x219a9);
  if ((((param_3 != (undefined1 *)0x0 && 0 < param_4) && (unaff_retaddr != (uint *)0x0)) &&
      (unaff_retaddr[4] == 0x1c4f)) &&
     ((unaff_retaddr[0x16] == 0 || (unaff_retaddr[0x16] == 0xfffffffb)))) {
    if (unaff_retaddr[0x15] != 0) {
      unaff_retaddr[0x15] = 0;
      iVar4 = FUN_000214d0();
      if (iVar4 == -1) {
        return (undefined1 *)0x0;
      }
    }
    local_28 = param_4 - 1;
    if (local_28 != 0) {
      uVar6 = *unaff_retaddr;
      __dest = param_3;
      if (uVar6 == 0) goto LAB_00021adf;
      do {
        do {
          __s = (void *)unaff_retaddr[1];
          uVar5 = uVar6;
          if (local_28 <= uVar6) {
            uVar5 = local_28;
          }
          pvVar3 = memchr(__s,10,uVar5);
          if (pvVar3 != (void *)0x0) {
            uVar6 = (int)pvVar3 + (1 - (int)__s);
            memcpy(__dest,__s,uVar6);
            *unaff_retaddr = *unaff_retaddr - uVar6;
            unaff_retaddr[1] = unaff_retaddr[1] + uVar6;
            puVar1 = unaff_retaddr + 2;
            uVar5 = *puVar1;
            *puVar1 = *puVar1 + uVar6;
            unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar5,uVar6);
            __dest = __dest + uVar6;
            goto LAB_00021a6b;
          }
          memcpy(__dest,__s,uVar5);
          unaff_retaddr[1] = unaff_retaddr[1] + uVar5;
          uVar6 = *unaff_retaddr - uVar5;
          puVar1 = unaff_retaddr + 2;
          uVar2 = *puVar1;
          *puVar1 = *puVar1 + uVar5;
          unaff_retaddr[3] = unaff_retaddr[3] + (uint)CARRY4(uVar2,uVar5);
          __dest = __dest + uVar5;
          local_28 = local_28 - uVar5;
          *unaff_retaddr = uVar6;
          if (local_28 == 0) goto LAB_00021a6b;
        } while (uVar6 != 0);
LAB_00021adf:
        iVar4 = FUN_000212c0();
        if (iVar4 == -1) {
          return (undefined1 *)0x0;
        }
        uVar6 = *unaff_retaddr;
      } while (uVar6 != 0);
      unaff_retaddr[0x10] = 1;
LAB_00021a6b:
      if (__dest != param_3) {
        *__dest = 0;
        return param_3;
      }
    }
  }
  return (undefined1 *)0x0;
}

