
_Bool save_abbr(timezone_t tz,tm *tm)

{
  undefined1 *puVar1;
  char cVar2;
  tm *__s2;
  tm_zone *ptVar3;
  int iVar4;
  int *piVar5;
  timezone_t ptVar6;
  ulong uVar7;
  ulong uVar8;
  char *__s1;
  char *pcVar9;
  tm *ptVar10;
  byte bVar11;
  
  bVar11 = 0;
  __s2 = (tm *)tm->tm_zone;
  if (__s2 == (tm *)0x0) {
    return true;
  }
  if ((tm <= __s2) && (__s2 < tm + 1)) {
    return true;
  }
  if ((char)__s2->tm_sec == '\0') {
    __s1 = "";
  }
  else {
    __s1 = &tz->field_0x9;
    while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {
      if (*__s1 == '\0') {
        puVar1 = &tz->field_0x9;
        if (puVar1 != __s1) {
          uVar8 = 0xffffffffffffffff;
          ptVar10 = __s2;
          goto code_r0x0010ac26;
        }
        if (tz->tz_is_set == '\0') {
          uVar8 = 0xffffffffffffffff;
          ptVar10 = __s2;
          goto code_r0x0010acae;
        }
      }
      uVar8 = 0xffffffffffffffff;
      pcVar9 = __s1;
      do {
        if (uVar8 == 0) break;
        uVar8 = uVar8 - 1;
        cVar2 = *pcVar9;
        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;
      } while (cVar2 != '\0');
      __s1 = __s1 + ~uVar8;
      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {
        __s1 = &ptVar3->field_0x9;
        tz = ptVar3;
      }
    }
  }
  goto LAB_0010ac79;
  while( true ) {
    uVar8 = uVar8 - 1;
    piVar5 = &ptVar10->tm_sec;
    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);
    if ((char)*piVar5 == '\0') break;
code_r0x0010ac26:
    if (uVar8 == 0) break;
  }
  uVar8 = ~uVar8;
  uVar7 = (long)__s1 - (long)puVar1;
  if (~uVar7 < uVar8) {
    piVar5 = __errno_location();
    *piVar5 = 0xc;
    return false;
  }
  goto LAB_0010acbc;
  while( true ) {
    uVar8 = uVar8 - 1;
    piVar5 = &ptVar10->tm_sec;
    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);
    if ((char)*piVar5 == '\0') break;
code_r0x0010acae:
    if (uVar8 == 0) break;
  }
  uVar8 = ~uVar8;
  uVar7 = (long)__s1 - (long)puVar1;
LAB_0010acbc:
  if (uVar7 + uVar8 < 0x77) {
    memcpy(__s1,__s2,uVar8);
    __s1[uVar8] = '\0';
  }
  else {
    ptVar6 = tzalloc((char *)__s2);
    tz->next = ptVar6;
    if (ptVar6 == (timezone_t)0x0) {
      return false;
    }
    ptVar6->tz_is_set = '\0';
    __s1 = &ptVar6->field_0x9;
  }
LAB_0010ac79:
  tm->tm_zone = __s1;
  return true;
}



undefined8 FUN_0010ab70(long *param_1,char *param_2)

{
  char cVar1;
  char *__s2;
  long *plVar2;
  int iVar3;
  int *piVar4;
  long lVar5;
  ulong uVar6;
  size_t __n;
  char *__s1;
  char *pcVar7;
  char *pcVar8;
  byte bVar9;
  
  bVar9 = 0;
  __s2 = *(char **)(param_2 + 0x30);
  if (__s2 == (char *)0x0) {
    return 1;
  }
  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {
    return 1;
  }
  if (*__s2 == '\0') {
    __s1 = "";
  }
  else {
    __s1 = (char *)((long)param_1 + 9);
    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {
      if (*__s1 == '\0') {
        pcVar7 = (char *)((long)param_1 + 9);
        if (pcVar7 != __s1) {
          uVar6 = 0xffffffffffffffff;
          pcVar8 = __s2;
          goto code_r0x0010ac26;
        }
        if ((char)param_1[1] == '\0') {
          uVar6 = 0xffffffffffffffff;
          pcVar8 = __s2;
          goto code_r0x0010acae;
        }
      }
      uVar6 = 0xffffffffffffffff;
      pcVar7 = __s1;
      do {
        if (uVar6 == 0) break;
        uVar6 = uVar6 - 1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;
      } while (cVar1 != '\0');
      __s1 = __s1 + ~uVar6;
      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {
        __s1 = (char *)((long)plVar2 + 9);
        param_1 = plVar2;
      }
    }
  }
  goto LAB_0010ac79;
  while( true ) {
    uVar6 = uVar6 - 1;
    cVar1 = *pcVar8;
    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;
    if (cVar1 == '\0') break;
code_r0x0010ac26:
    if (uVar6 == 0) break;
  }
  __n = ~uVar6;
  uVar6 = (long)__s1 - (long)pcVar7;
  if (~uVar6 < __n) {
    piVar4 = __errno_location();
    *piVar4 = 0xc;
    return 0;
  }
  goto LAB_0010acbc;
  while( true ) {
    uVar6 = uVar6 - 1;
    cVar1 = *pcVar8;
    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;
    if (cVar1 == '\0') break;
code_r0x0010acae:
    if (uVar6 == 0) break;
  }
  __n = ~uVar6;
  uVar6 = (long)__s1 - (long)pcVar7;
LAB_0010acbc:
  if (uVar6 + __n < 0x77) {
    memcpy(__s1,__s2,__n);
    __s1[__n] = '\0';
  }
  else {
    lVar5 = FUN_0010aae0(__s2);
    *param_1 = lVar5;
    if (lVar5 == 0) {
      return 0;
    }
    *(undefined1 *)(lVar5 + 8) = 0;
    __s1 = (char *)(lVar5 + 9);
  }
LAB_0010ac79:
  *(char **)(param_2 + 0x30) = __s1;
  return 1;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV R12,qword ptr [RSI + 0x30]
TEST R12,R12
JZ 0x0010ac91
MOV RBP,RDI
MOV R15,RSI
CMP RSI,R12
JA 0x0010aba8
LEA RDX,[RSI + 0x38]
MOV EAX,0x1
CMP R12,RDX
JC 0x0010ac82
CMP byte ptr [R12],0x0
JZ 0x0010ac72
LEA RBX,[RBP + 0x9]
MOV R14,-0x1
MOV R13D,0x0
MOV RSI,R12
MOV RDI,RBX
CALL 0x00102330
TEST EAX,EAX
JZ 0x0010ac79
CMP byte ptr [RBX],0x0
JNZ 0x0010abef
LEA RSI,[RBP + 0x9]
CMP RSI,RBX
JNZ 0x0010ac17
CMP byte ptr [RBP + 0x8],0x0
JZ 0x0010ac9f
MOV RCX,R14
MOV RDI,RBX
MOV EAX,R13D
SCASB.REPNE RDI
NOT RCX
ADD RBX,RCX
CMP byte ptr [RBX],0x0
JNZ 0x0010abc4
MOV RAX,qword ptr [RBP]
TEST RAX,RAX
JZ 0x0010abc4
LEA RBX,[RAX + 0x9]
MOV RBP,RAX
JMP 0x0010abc4
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,R12
SCASB.REPNE RDI
MOV RDX,RCX
NOT RDX
MOV RCX,RDX
MOV R13,RDX
MOV RAX,RBX
SUB RAX,RSI
MOV RDX,RAX
NOT RDX
CMP RDX,RCX
JNC 0x0010acbc
CALL 0x001020a0
MOV dword ptr [RAX],0xc
MOV EAX,0x0
JMP 0x0010ac82
MOV RDI,R12
CALL 0x0010aae0
MOV qword ptr [RBP],RAX
TEST RAX,RAX
JZ 0x0010ac98
MOV byte ptr [RAX + 0x8],0x0
LEA RBX,[RAX + 0x9]
JMP 0x0010ac79
LEA RBX,[0x111401]
MOV qword ptr [R15 + 0x30],RBX
MOV EAX,0x1
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EAX,0x1
JMP 0x0010ac82
MOV EAX,0x0
JMP 0x0010ac82
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,R12
SCASB.REPNE RDI
NOT RCX
MOV R13,RCX
MOV RAX,RBX
SUB RAX,RSI
ADD RAX,R13
CMP RAX,0x76
JA 0x0010ac57
MOV RDX,R13
MOV RSI,R12
MOV RDI,RBX
CALL 0x00102350
MOV byte ptr [RBX + R13*0x1],0x0
JMP 0x0010ac79
(translation_unit "undefined8 FUN_0010ab70(long *param_1,char *param_2)\n\n{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_0010ab70(long *param_1,char *param_2)\n\n{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0010ab70(long *param_1,char *param_2)" identifier (parameter_list "(long *param_1,char *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "__s2 = *(char **)(param_2 + 0x30);" (assignment_expression "__s2 = *(char **)(param_2 + 0x30)" identifier = (pointer_expression "*(char **)(param_2 + 0x30)" * (cast_expression "(char **)(param_2 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (__s2 == (char *)0x0) {\n    return 1;\n  }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }" if (parenthesized_expression "((param_2 <= __s2) && (__s2 < param_2 + 0x38))" ( (binary_expression "(param_2 <= __s2) && (__s2 < param_2 + 0x38)" (parenthesized_expression "(param_2 <= __s2)" ( (binary_expression "param_2 <= __s2" identifier <= identifier) )) && (parenthesized_expression "(__s2 < param_2 + 0x38)" ( (binary_expression "__s2 < param_2 + 0x38" identifier < (binary_expression "param_2 + 0x38" identifier + number_literal)) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" if (parenthesized_expression "(*__s2 == '\0')" ( (binary_expression "*__s2 == '\0'" (pointer_expression "*__s2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __s1 = "";\n  }" { (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ identifier = (string_literal """" " ")) ;) }) (else_clause "else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" else (compound_statement "{\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" { (expression_statement "__s1 = (char *)((long)param_1 + 9);" (assignment_expression "__s1 = (char *)((long)param_1 + 9)" identifier = (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (while_statement "while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }" while (parenthesized_expression "(iVar3 = strcmp(__s1,__s2), iVar3 != 0)" ( (comma_expression "iVar3 = strcmp(__s1,__s2), iVar3 != 0" (assignment_expression "iVar3 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) )) (compound_statement "{\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }" { (if_statement "if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" if (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" { (expression_statement "pcVar7 = (char *)((long)param_1 + 9);" (assignment_expression "pcVar7 = (char *)((long)param_1 + 9)" identifier = (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (if_statement "if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }" if (parenthesized_expression "(pcVar7 != __s1)" ( (binary_expression "pcVar7 != __s1" identifier != identifier) )) (compound_statement "{\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }" { (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = __s2;" (assignment_expression "pcVar8 = __s2" identifier = identifier) ;) (goto_statement "goto code_r0x0010ac26;" goto statement_identifier ;) })) (if_statement "if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }" if (parenthesized_expression "((char)param_1[1] == '\0')" ( (binary_expression "(char)param_1[1] == '\0'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }" { (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = __s2;" (assignment_expression "pcVar8 = __s2" identifier = identifier) ;) (goto_statement "goto code_r0x0010acae;" goto statement_identifier ;) })) })) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = __s1;" (assignment_expression "pcVar7 = __s1" identifier = identifier) ;) (do_statement "do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "__s1 = __s1 + ~uVar6;" (assignment_expression "__s1 = __s1 + ~uVar6" identifier = (binary_expression "__s1 + ~uVar6" identifier + (unary_expression "~uVar6" ~ identifier))) ;) (if_statement "if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }" if (parenthesized_expression "((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0))" ( (binary_expression "(*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)" (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(plVar2 = (long *)*param_1, plVar2 != (long *)0x0)" ( (comma_expression "plVar2 = (long *)*param_1, plVar2 != (long *)0x0" (assignment_expression "plVar2 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }" { (expression_statement "__s1 = (char *)((long)plVar2 + 9);" (assignment_expression "__s1 = (char *)((long)plVar2 + 9)" identifier = (cast_expression "(char *)((long)plVar2 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 9)" ( (binary_expression "(long)plVar2 + 9" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "param_1 = plVar2;" (assignment_expression "param_1 = plVar2" identifier = identifier) ;) })) })) }))) (goto_statement "goto LAB_0010ac79;" goto statement_identifier ;) (while_statement "while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x0010ac26:\n    if (uVar6 == 0) break;" statement_identifier : (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (expression_statement "__n = ~uVar6;" (assignment_expression "__n = ~uVar6" identifier = (unary_expression "~uVar6" ~ identifier)) ;) (expression_statement "uVar6 = (long)__s1 - (long)pcVar7;" (assignment_expression "uVar6 = (long)__s1 - (long)pcVar7" identifier = (binary_expression "(long)__s1 - (long)pcVar7" (cast_expression "(long)__s1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }" if (parenthesized_expression "(~uVar6 < __n)" ( (binary_expression "~uVar6 < __n" (unary_expression "~uVar6" ~ identifier) < identifier) )) (compound_statement "{\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar4 = 0xc;" (assignment_expression "*piVar4 = 0xc" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_0010acbc;" goto statement_identifier ;) (while_statement "while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x0010acae:\n    if (uVar6 == 0) break;" statement_identifier : (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (expression_statement "__n = ~uVar6;" (assignment_expression "__n = ~uVar6" identifier = (unary_expression "~uVar6" ~ identifier)) ;) (expression_statement "uVar6 = (long)__s1 - (long)pcVar7;" (assignment_expression "uVar6 = (long)__s1 - (long)pcVar7" identifier = (binary_expression "(long)__s1 - (long)pcVar7" (cast_expression "(long)__s1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (labeled_statement "LAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" statement_identifier : (if_statement "if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" if (parenthesized_expression "(uVar6 + __n < 0x77)" ( (binary_expression "uVar6 + __n < 0x77" (binary_expression "uVar6 + __n" identifier + identifier) < number_literal) )) (compound_statement "{\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }" { (expression_statement "memcpy(__s1,__s2,__n);" (call_expression "memcpy(__s1,__s2,__n)" identifier (argument_list "(__s1,__s2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__s1[__n] = '\0';" (assignment_expression "__s1[__n] = '\0'" (subscript_expression "__s1[__n]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" else (compound_statement "{\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" { (expression_statement "lVar5 = FUN_0010aae0(__s2);" (assignment_expression "lVar5 = FUN_0010aae0(__s2)" identifier = (call_expression "FUN_0010aae0(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "*param_1 = lVar5;" (assignment_expression "*param_1 = lVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (lVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)(lVar5 + 8) = 0;" (assignment_expression "*(undefined1 *)(lVar5 + 8) = 0" (pointer_expression "*(undefined1 *)(lVar5 + 8)" * (cast_expression "(undefined1 *)(lVar5 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__s1 = (char *)(lVar5 + 9);" (assignment_expression "__s1 = (char *)(lVar5 + 9)" identifier = (cast_expression "(char *)(lVar5 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 9)" ( (binary_expression "lVar5 + 9" identifier + number_literal) )))) ;) })))) (labeled_statement "LAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;" statement_identifier : (expression_statement "*(char **)(param_2 + 0x30) = __s1;" (assignment_expression "*(char **)(param_2 + 0x30) = __s1" (pointer_expression "*(char **)(param_2 + 0x30)" * (cast_expression "(char **)(param_2 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = identifier) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "_Bool save_abbr(timezone_t tz,tm *tm)\n\n{\n  undefined1 *puVar1;\n  char cVar2;\n  tm *__s2;\n  tm_zone *ptVar3;\n  int iVar4;\n  int *piVar5;\n  timezone_t ptVar6;\n  ulong uVar7;\n  ulong uVar8;\n  char *__s1;\n  char *pcVar9;\n  tm *ptVar10;\n  byte bVar11;\n  \n  bVar11 = 0;\n  __s2 = (tm *)tm->tm_zone;\n  if (__s2 == (tm *)0x0) {\n    return true;\n  }\n  if ((tm <= __s2) && (__s2 < tm + 1)) {\n    return true;\n  }\n  if ((char)__s2->tm_sec == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = &tz->field_0x9;\n    while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar8 == 0) break;\n  }\n  uVar8 = ~uVar8;\n  uVar7 = (long)__s1 - (long)puVar1;\n  if (~uVar7 < uVar8) {\n    piVar5 = __errno_location();\n    *piVar5 = 0xc;\n    return false;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010acae:\n    if (uVar8 == 0) break;\n  }\n  uVar8 = ~uVar8;\n  uVar7 = (long)__s1 - (long)puVar1;\nLAB_0010acbc:\n  if (uVar7 + uVar8 < 0x77) {\n    memcpy(__s1,__s2,uVar8);\n    __s1[uVar8] = '\0';\n  }\n  else {\n    ptVar6 = tzalloc((char *)__s2);\n    tz->next = ptVar6;\n    if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }\n    ptVar6->tz_is_set = '\0';\n    __s1 = &ptVar6->field_0x9;\n  }\nLAB_0010ac79:\n  tm->tm_zone = __s1;\n  return true;\n}\n\n" (function_definition "_Bool save_abbr(timezone_t tz,tm *tm)\n\n{\n  undefined1 *puVar1;\n  char cVar2;\n  tm *__s2;\n  tm_zone *ptVar3;\n  int iVar4;\n  int *piVar5;\n  timezone_t ptVar6;\n  ulong uVar7;\n  ulong uVar8;\n  char *__s1;\n  char *pcVar9;\n  tm *ptVar10;\n  byte bVar11;\n  \n  bVar11 = 0;\n  __s2 = (tm *)tm->tm_zone;\n  if (__s2 == (tm *)0x0) {\n    return true;\n  }\n  if ((tm <= __s2) && (__s2 < tm + 1)) {\n    return true;\n  }\n  if ((char)__s2->tm_sec == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = &tz->field_0x9;\n    while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar8 == 0) break;\n  }\n  uVar8 = ~uVar8;\n  uVar7 = (long)__s1 - (long)puVar1;\n  if (~uVar7 < uVar8) {\n    piVar5 = __errno_location();\n    *piVar5 = 0xc;\n    return false;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010acae:\n    if (uVar8 == 0) break;\n  }\n  uVar8 = ~uVar8;\n  uVar7 = (long)__s1 - (long)puVar1;\nLAB_0010acbc:\n  if (uVar7 + uVar8 < 0x77) {\n    memcpy(__s1,__s2,uVar8);\n    __s1[uVar8] = '\0';\n  }\n  else {\n    ptVar6 = tzalloc((char *)__s2);\n    tz->next = ptVar6;\n    if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }\n    ptVar6->tz_is_set = '\0';\n    __s1 = &ptVar6->field_0x9;\n  }\nLAB_0010ac79:\n  tm->tm_zone = __s1;\n  return true;\n}" type_identifier (function_declarator "save_abbr(timezone_t tz,tm *tm)" identifier (parameter_list "(timezone_t tz,tm *tm)" ( (parameter_declaration "timezone_t tz" type_identifier identifier) , (parameter_declaration "tm *tm" type_identifier (pointer_declarator "*tm" * identifier)) ))) (compound_statement "{\n  undefined1 *puVar1;\n  char cVar2;\n  tm *__s2;\n  tm_zone *ptVar3;\n  int iVar4;\n  int *piVar5;\n  timezone_t ptVar6;\n  ulong uVar7;\n  ulong uVar8;\n  char *__s1;\n  char *pcVar9;\n  tm *ptVar10;\n  byte bVar11;\n  \n  bVar11 = 0;\n  __s2 = (tm *)tm->tm_zone;\n  if (__s2 == (tm *)0x0) {\n    return true;\n  }\n  if ((tm <= __s2) && (__s2 < tm + 1)) {\n    return true;\n  }\n  if ((char)__s2->tm_sec == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = &tz->field_0x9;\n    while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar8 == 0) break;\n  }\n  uVar8 = ~uVar8;\n  uVar7 = (long)__s1 - (long)puVar1;\n  if (~uVar7 < uVar8) {\n    piVar5 = __errno_location();\n    *piVar5 = 0xc;\n    return false;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010acae:\n    if (uVar8 == 0) break;\n  }\n  uVar8 = ~uVar8;\n  uVar7 = (long)__s1 - (long)puVar1;\nLAB_0010acbc:\n  if (uVar7 + uVar8 < 0x77) {\n    memcpy(__s1,__s2,uVar8);\n    __s1[uVar8] = '\0';\n  }\n  else {\n    ptVar6 = tzalloc((char *)__s2);\n    tz->next = ptVar6;\n    if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }\n    ptVar6->tz_is_set = '\0';\n    __s1 = &ptVar6->field_0x9;\n  }\nLAB_0010ac79:\n  tm->tm_zone = __s1;\n  return true;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "tm *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "tm_zone *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "timezone_t ptVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "tm *ptVar10;" type_identifier (pointer_declarator "*ptVar10" * identifier) ;) (declaration "byte bVar11;" type_identifier identifier ;) (expression_statement "bVar11 = 0;" (assignment_expression "bVar11 = 0" identifier = number_literal) ;) (expression_statement "__s2 = (tm *)tm->tm_zone;" (assignment_expression "__s2 = (tm *)tm->tm_zone" identifier = (cast_expression "(tm *)tm->tm_zone" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "tm->tm_zone" identifier -> field_identifier))) ;) (if_statement "if (__s2 == (tm *)0x0) {\n    return true;\n  }" if (parenthesized_expression "(__s2 == (tm *)0x0)" ( (binary_expression "__s2 == (tm *)0x0" identifier == (cast_expression "(tm *)0x0" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (if_statement "if ((tm <= __s2) && (__s2 < tm + 1)) {\n    return true;\n  }" if (parenthesized_expression "((tm <= __s2) && (__s2 < tm + 1))" ( (binary_expression "(tm <= __s2) && (__s2 < tm + 1)" (parenthesized_expression "(tm <= __s2)" ( (binary_expression "tm <= __s2" identifier <= identifier) )) && (parenthesized_expression "(__s2 < tm + 1)" ( (binary_expression "__s2 < tm + 1" identifier < (binary_expression "tm + 1" identifier + number_literal)) ))) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (if_statement "if ((char)__s2->tm_sec == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = &tz->field_0x9;\n    while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }\n  }" if (parenthesized_expression "((char)__s2->tm_sec == '\0')" ( (binary_expression "(char)__s2->tm_sec == '\0'" (cast_expression "(char)__s2->tm_sec" ( (type_descriptor "char" primitive_type) ) (field_expression "__s2->tm_sec" identifier -> field_identifier)) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __s1 = "";\n  }" { (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ identifier = (string_literal """" " ")) ;) }) (else_clause "else {\n    __s1 = &tz->field_0x9;\n    while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }\n  }" else (compound_statement "{\n    __s1 = &tz->field_0x9;\n    while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }\n  }" { (expression_statement "__s1 = &tz->field_0x9;" (assignment_expression "__s1 = &tz->field_0x9" identifier = (pointer_expression "&tz->field_0x9" & (field_expression "tz->field_0x9" identifier -> field_identifier))) ;) (while_statement "while (iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0) {\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }" while (parenthesized_expression "(iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0)" ( (comma_expression "iVar4 = strcmp(__s1,(char *)__s2), iVar4 != 0" (assignment_expression "iVar4 = strcmp(__s1,(char *)__s2)" identifier = (call_expression "strcmp(__s1,(char *)__s2)" identifier (argument_list "(__s1,(char *)__s2)" ( identifier , (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n      if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar8 = 0xffffffffffffffff;\n      pcVar9 = __s1;\n      do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');\n      __s1 = __s1 + ~uVar8;\n      if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }\n    }" { (if_statement "if (*__s1 == '\0') {\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" if (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        puVar1 = &tz->field_0x9;\n        if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" { (expression_statement "puVar1 = &tz->field_0x9;" (assignment_expression "puVar1 = &tz->field_0x9" identifier = (pointer_expression "&tz->field_0x9" & (field_expression "tz->field_0x9" identifier -> field_identifier))) ;) (if_statement "if (puVar1 != __s1) {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }" if (parenthesized_expression "(puVar1 != __s1)" ( (binary_expression "puVar1 != __s1" identifier != identifier) )) (compound_statement "{\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010ac26;\n        }" { (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "ptVar10 = __s2;" (assignment_expression "ptVar10 = __s2" identifier = identifier) ;) (goto_statement "goto code_r0x0010ac26;" goto statement_identifier ;) })) (if_statement "if (tz->tz_is_set == '\0') {\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }" if (parenthesized_expression "(tz->tz_is_set == '\0')" ( (binary_expression "tz->tz_is_set == '\0'" (field_expression "tz->tz_is_set" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar8 = 0xffffffffffffffff;\n          ptVar10 = __s2;\n          goto code_r0x0010acae;\n        }" { (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "ptVar10 = __s2;" (assignment_expression "ptVar10 = __s2" identifier = identifier) ;) (goto_statement "goto code_r0x0010acae;" goto statement_identifier ;) })) })) (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar9 = __s1;" (assignment_expression "pcVar9 = __s1" identifier = identifier) ;) (do_statement "do {\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (uVar8 == 0) break;\n        uVar8 = uVar8 - 1;\n        cVar2 = *pcVar9;\n        pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;\n      }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar9;" (assignment_expression "cVar2 = *pcVar9" identifier = (pointer_expression "*pcVar9" * identifier)) ;) (expression_statement "pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1;" (assignment_expression "pcVar9 = pcVar9 + (ulong)bVar11 * -2 + 1" identifier = (binary_expression "pcVar9 + (ulong)bVar11 * -2 + 1" (binary_expression "pcVar9 + (ulong)bVar11 * -2" identifier + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "__s1 = __s1 + ~uVar8;" (assignment_expression "__s1 = __s1 + ~uVar8" identifier = (binary_expression "__s1 + ~uVar8" identifier + (unary_expression "~uVar8" ~ identifier))) ;) (if_statement "if ((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)) {\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }" if (parenthesized_expression "((*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0))" ( (binary_expression "(*__s1 == '\0') && (ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)" (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0)" ( (comma_expression "ptVar3 = tz->next, ptVar3 != (tm_zone *)0x0" (assignment_expression "ptVar3 = tz->next" identifier = (field_expression "tz->next" identifier -> field_identifier)) , (binary_expression "ptVar3 != (tm_zone *)0x0" identifier != (cast_expression "(tm_zone *)0x0" ( (type_descriptor "tm_zone *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        __s1 = &ptVar3->field_0x9;\n        tz = ptVar3;\n      }" { (expression_statement "__s1 = &ptVar3->field_0x9;" (assignment_expression "__s1 = &ptVar3->field_0x9" identifier = (pointer_expression "&ptVar3->field_0x9" & (field_expression "ptVar3->field_0x9" identifier -> field_identifier))) ;) (expression_statement "tz = ptVar3;" (assignment_expression "tz = ptVar3" identifier = identifier) ;) })) })) }))) (goto_statement "goto LAB_0010ac79;" goto statement_identifier ;) (while_statement "while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar8 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar8 == 0) break;\n  }" { (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "piVar5 = &ptVar10->tm_sec;" (assignment_expression "piVar5 = &ptVar10->tm_sec" identifier = (pointer_expression "&ptVar10->tm_sec" & (field_expression "ptVar10->tm_sec" identifier -> field_identifier))) ;) (expression_statement "ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);" (assignment_expression "ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1)" identifier = (cast_expression "(tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1)" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ptVar10 + (ulong)bVar11 * -2 + 1)" ( (binary_expression "(long)ptVar10 + (ulong)bVar11 * -2 + 1" (binary_expression "(long)ptVar10 + (ulong)bVar11 * -2" (cast_expression "(long)ptVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (if_statement "if ((char)*piVar5 == '\0') break;" if (parenthesized_expression "((char)*piVar5 == '\0')" ( (binary_expression "(char)*piVar5 == '\0'" (cast_expression "(char)*piVar5" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*piVar5" * identifier)) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x0010ac26:\n    if (uVar8 == 0) break;" statement_identifier : (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (expression_statement "uVar8 = ~uVar8;" (assignment_expression "uVar8 = ~uVar8" identifier = (unary_expression "~uVar8" ~ identifier)) ;) (expression_statement "uVar7 = (long)__s1 - (long)puVar1;" (assignment_expression "uVar7 = (long)__s1 - (long)puVar1" identifier = (binary_expression "(long)__s1 - (long)puVar1" (cast_expression "(long)__s1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (~uVar7 < uVar8) {\n    piVar5 = __errno_location();\n    *piVar5 = 0xc;\n    return false;\n  }" if (parenthesized_expression "(~uVar7 < uVar8)" ( (binary_expression "~uVar7 < uVar8" (unary_expression "~uVar7" ~ identifier) < identifier) )) (compound_statement "{\n    piVar5 = __errno_location();\n    *piVar5 = 0xc;\n    return false;\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar5 = 0xc;" (assignment_expression "*piVar5 = 0xc" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (return_statement "return false;" return false ;) })) (goto_statement "goto LAB_0010acbc;" goto statement_identifier ;) (while_statement "while( true ) {\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010acae:\n    if (uVar8 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar8 = uVar8 - 1;\n    piVar5 = &ptVar10->tm_sec;\n    ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);\n    if ((char)*piVar5 == '\0') break;\ncode_r0x0010acae:\n    if (uVar8 == 0) break;\n  }" { (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "piVar5 = &ptVar10->tm_sec;" (assignment_expression "piVar5 = &ptVar10->tm_sec" identifier = (pointer_expression "&ptVar10->tm_sec" & (field_expression "ptVar10->tm_sec" identifier -> field_identifier))) ;) (expression_statement "ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1);" (assignment_expression "ptVar10 = (tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1)" identifier = (cast_expression "(tm *)((long)ptVar10 + (ulong)bVar11 * -2 + 1)" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ptVar10 + (ulong)bVar11 * -2 + 1)" ( (binary_expression "(long)ptVar10 + (ulong)bVar11 * -2 + 1" (binary_expression "(long)ptVar10 + (ulong)bVar11 * -2" (cast_expression "(long)ptVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "(ulong)bVar11 * -2" (cast_expression "(ulong)bVar11" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (if_statement "if ((char)*piVar5 == '\0') break;" if (parenthesized_expression "((char)*piVar5 == '\0')" ( (binary_expression "(char)*piVar5 == '\0'" (cast_expression "(char)*piVar5" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*piVar5" * identifier)) == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x0010acae:\n    if (uVar8 == 0) break;" statement_identifier : (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (expression_statement "uVar8 = ~uVar8;" (assignment_expression "uVar8 = ~uVar8" identifier = (unary_expression "~uVar8" ~ identifier)) ;) (expression_statement "uVar7 = (long)__s1 - (long)puVar1;" (assignment_expression "uVar7 = (long)__s1 - (long)puVar1" identifier = (binary_expression "(long)__s1 - (long)puVar1" (cast_expression "(long)__s1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (labeled_statement "LAB_0010acbc:\n  if (uVar7 + uVar8 < 0x77) {\n    memcpy(__s1,__s2,uVar8);\n    __s1[uVar8] = '\0';\n  }\n  else {\n    ptVar6 = tzalloc((char *)__s2);\n    tz->next = ptVar6;\n    if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }\n    ptVar6->tz_is_set = '\0';\n    __s1 = &ptVar6->field_0x9;\n  }" statement_identifier : (if_statement "if (uVar7 + uVar8 < 0x77) {\n    memcpy(__s1,__s2,uVar8);\n    __s1[uVar8] = '\0';\n  }\n  else {\n    ptVar6 = tzalloc((char *)__s2);\n    tz->next = ptVar6;\n    if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }\n    ptVar6->tz_is_set = '\0';\n    __s1 = &ptVar6->field_0x9;\n  }" if (parenthesized_expression "(uVar7 + uVar8 < 0x77)" ( (binary_expression "uVar7 + uVar8 < 0x77" (binary_expression "uVar7 + uVar8" identifier + identifier) < number_literal) )) (compound_statement "{\n    memcpy(__s1,__s2,uVar8);\n    __s1[uVar8] = '\0';\n  }" { (expression_statement "memcpy(__s1,__s2,uVar8);" (call_expression "memcpy(__s1,__s2,uVar8)" identifier (argument_list "(__s1,__s2,uVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "__s1[uVar8] = '\0';" (assignment_expression "__s1[uVar8] = '\0'" (subscript_expression "__s1[uVar8]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    ptVar6 = tzalloc((char *)__s2);\n    tz->next = ptVar6;\n    if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }\n    ptVar6->tz_is_set = '\0';\n    __s1 = &ptVar6->field_0x9;\n  }" else (compound_statement "{\n    ptVar6 = tzalloc((char *)__s2);\n    tz->next = ptVar6;\n    if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }\n    ptVar6->tz_is_set = '\0';\n    __s1 = &ptVar6->field_0x9;\n  }" { (expression_statement "ptVar6 = tzalloc((char *)__s2);" (assignment_expression "ptVar6 = tzalloc((char *)__s2)" identifier = (call_expression "tzalloc((char *)__s2)" identifier (argument_list "((char *)__s2)" ( (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "tz->next = ptVar6;" (assignment_expression "tz->next = ptVar6" (field_expression "tz->next" identifier -> field_identifier) = identifier) ;) (if_statement "if (ptVar6 == (timezone_t)0x0) {\n      return false;\n    }" if (parenthesized_expression "(ptVar6 == (timezone_t)0x0)" ( (binary_expression "ptVar6 == (timezone_t)0x0" identifier == (cast_expression "(timezone_t)0x0" ( (type_descriptor "timezone_t" type_identifier) ) number_literal)) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (expression_statement "ptVar6->tz_is_set = '\0';" (assignment_expression "ptVar6->tz_is_set = '\0'" (field_expression "ptVar6->tz_is_set" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "__s1 = &ptVar6->field_0x9;" (assignment_expression "__s1 = &ptVar6->field_0x9" identifier = (pointer_expression "&ptVar6->field_0x9" & (field_expression "ptVar6->field_0x9" identifier -> field_identifier))) ;) })))) (labeled_statement "LAB_0010ac79:\n  tm->tm_zone = __s1;" statement_identifier : (expression_statement "tm->tm_zone = __s1;" (assignment_expression "tm->tm_zone = __s1" (field_expression "tm->tm_zone" identifier -> field_identifier) = identifier) ;)) (return_statement "return true;" return true ;) })))
(translation_unit "undefined8 FUN_0010ab70(long *param_1,char *param_2)\n\n{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_0010ab70(long *param_1,char *param_2)\n\n{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}" type_identifier (function_declarator "FUN_0010ab70(long *param_1,char *param_2)" identifier (parameter_list "(long *param_1,char *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "__s2 = *(char **)(param_2 + 0x30);" (assignment_expression "__s2 = *(char **)(param_2 + 0x30)" identifier = (pointer_expression "*(char **)(param_2 + 0x30)" * (cast_expression "(char **)(param_2 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (__s2 == (char *)0x0) {\n    return 1;\n  }" if (parenthesized_expression "(__s2 == (char *)0x0)" ( (binary_expression "__s2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }" if (parenthesized_expression "((param_2 <= __s2) && (__s2 < param_2 + 0x38))" ( (binary_expression "(param_2 <= __s2) && (__s2 < param_2 + 0x38)" (parenthesized_expression "(param_2 <= __s2)" ( (binary_expression "param_2 <= __s2" identifier <= identifier) )) && (parenthesized_expression "(__s2 < param_2 + 0x38)" ( (binary_expression "__s2 < param_2 + 0x38" identifier < (binary_expression "param_2 + 0x38" identifier + number_literal)) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" if (parenthesized_expression "(*__s2 == '\0')" ( (binary_expression "*__s2 == '\0'" (pointer_expression "*__s2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __s1 = "";\n  }" { (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ identifier = (string_literal """" " ")) ;) }) (else_clause "else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" else (compound_statement "{\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" { (expression_statement "__s1 = (char *)((long)param_1 + 9);" (assignment_expression "__s1 = (char *)((long)param_1 + 9)" identifier = (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (while_statement "while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }" while (parenthesized_expression "(iVar3 = strcmp(__s1,__s2), iVar3 != 0)" ( (comma_expression "iVar3 = strcmp(__s1,__s2), iVar3 != 0" (assignment_expression "iVar3 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) )) (compound_statement "{\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }" { (if_statement "if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" if (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" { (expression_statement "pcVar7 = (char *)((long)param_1 + 9);" (assignment_expression "pcVar7 = (char *)((long)param_1 + 9)" identifier = (cast_expression "(char *)((long)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 9)" ( (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (if_statement "if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }" if (parenthesized_expression "(pcVar7 != __s1)" ( (binary_expression "pcVar7 != __s1" identifier != identifier) )) (compound_statement "{\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }" { (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = __s2;" (assignment_expression "pcVar8 = __s2" identifier = identifier) ;) (goto_statement "goto code_r0x0010ac26;" goto statement_identifier ;) })) (if_statement "if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }" if (parenthesized_expression "((char)param_1[1] == '\0')" ( (binary_expression "(char)param_1[1] == '\0'" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }" { (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar8 = __s2;" (assignment_expression "pcVar8 = __s2" identifier = identifier) ;) (goto_statement "goto code_r0x0010acae;" goto statement_identifier ;) })) })) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = __s1;" (assignment_expression "pcVar7 = __s1" identifier = identifier) ;) (do_statement "do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "__s1 = __s1 + ~uVar6;" (assignment_expression "__s1 = __s1 + ~uVar6" identifier = (binary_expression "__s1 + ~uVar6" identifier + (unary_expression "~uVar6" ~ identifier))) ;) (if_statement "if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }" if (parenthesized_expression "((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0))" ( (binary_expression "(*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)" (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(plVar2 = (long *)*param_1, plVar2 != (long *)0x0)" ( (comma_expression "plVar2 = (long *)*param_1, plVar2 != (long *)0x0" (assignment_expression "plVar2 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }" { (expression_statement "__s1 = (char *)((long)plVar2 + 9);" (assignment_expression "__s1 = (char *)((long)plVar2 + 9)" identifier = (cast_expression "(char *)((long)plVar2 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 9)" ( (binary_expression "(long)plVar2 + 9" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "param_1 = plVar2;" (assignment_expression "param_1 = plVar2" identifier = identifier) ;) })) })) }))) (goto_statement "goto LAB_0010ac79;" goto statement_identifier ;) (while_statement "while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x0010ac26:\n    if (uVar6 == 0) break;" statement_identifier : (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (expression_statement "__n = ~uVar6;" (assignment_expression "__n = ~uVar6" identifier = (unary_expression "~uVar6" ~ identifier)) ;) (expression_statement "uVar6 = (long)__s1 - (long)pcVar7;" (assignment_expression "uVar6 = (long)__s1 - (long)pcVar7" identifier = (binary_expression "(long)__s1 - (long)pcVar7" (cast_expression "(long)__s1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }" if (parenthesized_expression "(~uVar6 < __n)" ( (binary_expression "~uVar6 < __n" (unary_expression "~uVar6" ~ identifier) < identifier) )) (compound_statement "{\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar4 = 0xc;" (assignment_expression "*piVar4 = 0xc" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_0010acbc;" goto statement_identifier ;) (while_statement "while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }" { (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pcVar8 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (labeled_statement "code_r0x0010acae:\n    if (uVar6 == 0) break;" statement_identifier : (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;))) })) (expression_statement "__n = ~uVar6;" (assignment_expression "__n = ~uVar6" identifier = (unary_expression "~uVar6" ~ identifier)) ;) (expression_statement "uVar6 = (long)__s1 - (long)pcVar7;" (assignment_expression "uVar6 = (long)__s1 - (long)pcVar7" identifier = (binary_expression "(long)__s1 - (long)pcVar7" (cast_expression "(long)__s1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (labeled_statement "LAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" statement_identifier : (if_statement "if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" if (parenthesized_expression "(uVar6 + __n < 0x77)" ( (binary_expression "uVar6 + __n < 0x77" (binary_expression "uVar6 + __n" identifier + identifier) < number_literal) )) (compound_statement "{\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }" { (expression_statement "memcpy(__s1,__s2,__n);" (call_expression "memcpy(__s1,__s2,__n)" identifier (argument_list "(__s1,__s2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__s1[__n] = '\0';" (assignment_expression "__s1[__n] = '\0'" (subscript_expression "__s1[__n]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" else (compound_statement "{\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" { (expression_statement "lVar5 = FUN_0010aae0(__s2);" (assignment_expression "lVar5 = FUN_0010aae0(__s2)" identifier = (call_expression "FUN_0010aae0(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "*param_1 = lVar5;" (assignment_expression "*param_1 = lVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (lVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)(lVar5 + 8) = 0;" (assignment_expression "*(undefined1 *)(lVar5 + 8) = 0" (pointer_expression "*(undefined1 *)(lVar5 + 8)" * (cast_expression "(undefined1 *)(lVar5 + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 8)" ( (binary_expression "lVar5 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__s1 = (char *)(lVar5 + 9);" (assignment_expression "__s1 = (char *)(lVar5 + 9)" identifier = (cast_expression "(char *)(lVar5 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 9)" ( (binary_expression "lVar5 + 9" identifier + number_literal) )))) ;) })))) (labeled_statement "LAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;" statement_identifier : (expression_statement "*(char **)(param_2 + 0x30) = __s1;" (assignment_expression "*(char **)(param_2 + 0x30) = __s1" (pointer_expression "*(char **)(param_2 + 0x30)" * (cast_expression "(char **)(param_2 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = identifier) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression ~ IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) }))) (goto_statement goto statement_identifier ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;))) })) (expression_statement (assignment_expression IDENT = (unary_expression ~ IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;))) })) (expression_statement (assignment_expression IDENT = (unary_expression ~ IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_0010ab70(long *param_1,char *param_2)\n\n{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_0010ab70(long *param_1,char *param_2)" (identifier "FUN_0010ab70") (parameter_list "(long *param_1,char *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  char *__s2;\n  long *plVar2;\n  int iVar3;\n  int *piVar4;\n  long lVar5;\n  ulong uVar6;\n  size_t __n;\n  char *__s1;\n  char *pcVar7;\n  char *pcVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  __s2 = *(char **)(param_2 + 0x30);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }\n  if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }\n  goto LAB_0010ac79;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\n  if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }\n  goto LAB_0010acbc;\n  while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }\n  __n = ~uVar6;\n  uVar6 = (long)__s1 - (long)pcVar7;\nLAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }\nLAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;\n  return 1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s2 = *(char **)(param_2 + 0x30);" (assignment_expression "__s2 = *(char **)(param_2 + 0x30)" (identifier "__s2") (= "=") (pointer_expression "*(char **)(param_2 + 0x30)" (* "*") (cast_expression "(char **)(param_2 + 0x30)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if (__s2 == (char *)0x0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(__s2 == (char *)0x0)" (( "(") (binary_expression "__s2 == (char *)0x0" (identifier "__s2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {\n    return 1;\n  }" (if "if") (parenthesized_expression "((param_2 <= __s2) && (__s2 < param_2 + 0x38))" (( "(") (binary_expression "(param_2 <= __s2) && (__s2 < param_2 + 0x38)" (parenthesized_expression "(param_2 <= __s2)" (( "(") (binary_expression "param_2 <= __s2" (identifier "param_2") (<= "<=") (identifier "__s2")) () ")")) (&& "&&") (parenthesized_expression "(__s2 < param_2 + 0x38)" (( "(") (binary_expression "__s2 < param_2 + 0x38" (identifier "__s2") (< "<") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38"))) () ")"))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*__s2 == '\0') {\n    __s1 = "";\n  }\n  else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*__s2 == '\0')" (( "(") (binary_expression "*__s2 == '\0'" (pointer_expression "*__s2" (* "*") (identifier "__s2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    __s1 = "";\n  }" ({ "{") (expression_statement "__s1 = "";" (assignment_expression "__s1 = """ (identifier "__s1") (= "=") (string_literal """" (" """) (" """))) (; ";")) (} "}")) (else_clause "else {\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    __s1 = (char *)((long)param_1 + 9);\n    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }\n  }" ({ "{") (expression_statement "__s1 = (char *)((long)param_1 + 9);" (assignment_expression "__s1 = (char *)((long)param_1 + 9)" (identifier "__s1") (= "=") (cast_expression "(char *)((long)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 9)" (( "(") (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (; ";")) (while_statement "while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }" (while "while") (parenthesized_expression "(iVar3 = strcmp(__s1,__s2), iVar3 != 0)" (( "(") (comma_expression "iVar3 = strcmp(__s1,__s2), iVar3 != 0" (assignment_expression "iVar3 = strcmp(__s1,__s2)" (identifier "iVar3") (= "=") (call_expression "strcmp(__s1,__s2)" (identifier "strcmp") (argument_list "(__s1,__s2)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }\n      uVar6 = 0xffffffffffffffff;\n      pcVar7 = __s1;\n      do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');\n      __s1 = __s1 + ~uVar6;\n      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }\n    }" ({ "{") (if_statement "if (*__s1 == '\0') {\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" (if "if") (parenthesized_expression "(*__s1 == '\0')" (( "(") (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        pcVar7 = (char *)((long)param_1 + 9);\n        if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }\n        if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }\n      }" ({ "{") (expression_statement "pcVar7 = (char *)((long)param_1 + 9);" (assignment_expression "pcVar7 = (char *)((long)param_1 + 9)" (identifier "pcVar7") (= "=") (cast_expression "(char *)((long)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 9)" (( "(") (binary_expression "(long)param_1 + 9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (; ";")) (if_statement "if (pcVar7 != __s1) {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }" (if "if") (parenthesized_expression "(pcVar7 != __s1)" (( "(") (binary_expression "pcVar7 != __s1" (identifier "pcVar7") (!= "!=") (identifier "__s1")) () ")")) (compound_statement "{\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010ac26;\n        }" ({ "{") (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" (identifier "uVar6") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar8 = __s2;" (assignment_expression "pcVar8 = __s2" (identifier "pcVar8") (= "=") (identifier "__s2")) (; ";")) (goto_statement "goto code_r0x0010ac26;" (goto "goto") (statement_identifier "code_r0x0010ac26") (; ";")) (} "}"))) (if_statement "if ((char)param_1[1] == '\0') {\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }" (if "if") (parenthesized_expression "((char)param_1[1] == '\0')" (( "(") (binary_expression "(char)param_1[1] == '\0'" (cast_expression "(char)param_1[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          uVar6 = 0xffffffffffffffff;\n          pcVar8 = __s2;\n          goto code_r0x0010acae;\n        }" ({ "{") (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" (identifier "uVar6") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar8 = __s2;" (assignment_expression "pcVar8 = __s2" (identifier "pcVar8") (= "=") (identifier "__s2")) (; ";")) (goto_statement "goto code_r0x0010acae;" (goto "goto") (statement_identifier "code_r0x0010acae") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar6 = 0xffffffffffffffff;" (assignment_expression "uVar6 = 0xffffffffffffffff" (identifier "uVar6") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar7 = __s1;" (assignment_expression "pcVar7 = __s1" (identifier "pcVar7") (= "=") (identifier "__s1")) (; ";")) (do_statement "do {\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (uVar6 == 0) break;\n        uVar6 = uVar6 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;\n      }" ({ "{") (if_statement "if (uVar6 == 0) break;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" (identifier "cVar1") (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar9 * -2" (identifier "pcVar7") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "__s1 = __s1 + ~uVar6;" (assignment_expression "__s1 = __s1 + ~uVar6" (identifier "__s1") (= "=") (binary_expression "__s1 + ~uVar6" (identifier "__s1") (+ "+") (unary_expression "~uVar6" (~ "~") (identifier "uVar6")))) (; ";")) (if_statement "if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }" (if "if") (parenthesized_expression "((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0))" (( "(") (binary_expression "(*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)" (parenthesized_expression "(*__s1 == '\0')" (( "(") (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(plVar2 = (long *)*param_1, plVar2 != (long *)0x0)" (( "(") (comma_expression "plVar2 = (long *)*param_1, plVar2 != (long *)0x0" (assignment_expression "plVar2 = (long *)*param_1" (identifier "plVar2") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (, ",") (binary_expression "plVar2 != (long *)0x0" (identifier "plVar2") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n        __s1 = (char *)((long)plVar2 + 9);\n        param_1 = plVar2;\n      }" ({ "{") (expression_statement "__s1 = (char *)((long)plVar2 + 9);" (assignment_expression "__s1 = (char *)((long)plVar2 + 9)" (identifier "__s1") (= "=") (cast_expression "(char *)((long)plVar2 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 9)" (( "(") (binary_expression "(long)plVar2 + 9" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "9")) () ")")))) (; ";")) (expression_statement "param_1 = plVar2;" (assignment_expression "param_1 = plVar2" (identifier "param_1") (= "=") (identifier "plVar2")) (; ";")) (} "}"))) (} "}"))) (} "}")))) (goto_statement "goto LAB_0010ac79;" (goto "goto") (statement_identifier "LAB_0010ac79") (; ";")) (while_statement "while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010ac26:\n    if (uVar6 == 0) break;\n  }" ({ "{") (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" (identifier "cVar1") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar9 * -2" (identifier "pcVar8") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar1 == '\0') break;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "code_r0x0010ac26:\n    if (uVar6 == 0) break;" (statement_identifier "code_r0x0010ac26") (: ":") (if_statement "if (uVar6 == 0) break;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";")))) (} "}"))) (expression_statement "__n = ~uVar6;" (assignment_expression "__n = ~uVar6" (identifier "__n") (= "=") (unary_expression "~uVar6" (~ "~") (identifier "uVar6"))) (; ";")) (expression_statement "uVar6 = (long)__s1 - (long)pcVar7;" (assignment_expression "uVar6 = (long)__s1 - (long)pcVar7" (identifier "uVar6") (= "=") (binary_expression "(long)__s1 - (long)pcVar7" (cast_expression "(long)__s1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__s1")) (- "-") (cast_expression "(long)pcVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar7")))) (; ";")) (if_statement "if (~uVar6 < __n) {\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }" (if "if") (parenthesized_expression "(~uVar6 < __n)" (( "(") (binary_expression "~uVar6 < __n" (unary_expression "~uVar6" (~ "~") (identifier "uVar6")) (< "<") (identifier "__n")) () ")")) (compound_statement "{\n    piVar4 = __errno_location();\n    *piVar4 = 0xc;\n    return 0;\n  }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar4 = 0xc;" (assignment_expression "*piVar4 = 0xc" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0xc")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (goto_statement "goto LAB_0010acbc;" (goto "goto") (statement_identifier "LAB_0010acbc") (; ";")) (while_statement "while( true ) {\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar6 = uVar6 - 1;\n    cVar1 = *pcVar8;\n    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;\n    if (cVar1 == '\0') break;\ncode_r0x0010acae:\n    if (uVar6 == 0) break;\n  }" ({ "{") (expression_statement "uVar6 = uVar6 - 1;" (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" (identifier "cVar1") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (expression_statement "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + (ulong)bVar9 * -2 + 1" (binary_expression "pcVar8 + (ulong)bVar9 * -2" (identifier "pcVar8") (+ "+") (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar1 == '\0') break;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "code_r0x0010acae:\n    if (uVar6 == 0) break;" (statement_identifier "code_r0x0010acae") (: ":") (if_statement "if (uVar6 == 0) break;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";")))) (} "}"))) (expression_statement "__n = ~uVar6;" (assignment_expression "__n = ~uVar6" (identifier "__n") (= "=") (unary_expression "~uVar6" (~ "~") (identifier "uVar6"))) (; ";")) (expression_statement "uVar6 = (long)__s1 - (long)pcVar7;" (assignment_expression "uVar6 = (long)__s1 - (long)pcVar7" (identifier "uVar6") (= "=") (binary_expression "(long)__s1 - (long)pcVar7" (cast_expression "(long)__s1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__s1")) (- "-") (cast_expression "(long)pcVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar7")))) (; ";")) (labeled_statement "LAB_0010acbc:\n  if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" (statement_identifier "LAB_0010acbc") (: ":") (if_statement "if (uVar6 + __n < 0x77) {\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }\n  else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" (if "if") (parenthesized_expression "(uVar6 + __n < 0x77)" (( "(") (binary_expression "uVar6 + __n < 0x77" (binary_expression "uVar6 + __n" (identifier "uVar6") (+ "+") (identifier "__n")) (< "<") (number_literal "0x77")) () ")")) (compound_statement "{\n    memcpy(__s1,__s2,__n);\n    __s1[__n] = '\0';\n  }" ({ "{") (expression_statement "memcpy(__s1,__s2,__n);" (call_expression "memcpy(__s1,__s2,__n)" (identifier "memcpy") (argument_list "(__s1,__s2,__n)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "__s1[__n] = '\0';" (assignment_expression "__s1[__n] = '\0'" (subscript_expression "__s1[__n]" (identifier "__s1") ([ "[") (identifier "__n") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" (else "else") (compound_statement "{\n    lVar5 = FUN_0010aae0(__s2);\n    *param_1 = lVar5;\n    if (lVar5 == 0) {\n      return 0;\n    }\n    *(undefined1 *)(lVar5 + 8) = 0;\n    __s1 = (char *)(lVar5 + 9);\n  }" ({ "{") (expression_statement "lVar5 = FUN_0010aae0(__s2);" (assignment_expression "lVar5 = FUN_0010aae0(__s2)" (identifier "lVar5") (= "=") (call_expression "FUN_0010aae0(__s2)" (identifier "FUN_0010aae0") (argument_list "(__s2)" (( "(") (identifier "__s2") () ")")))) (; ";")) (expression_statement "*param_1 = lVar5;" (assignment_expression "*param_1 = lVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar5")) (; ";")) (if_statement "if (lVar5 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(lVar5 == 0)" (( "(") (binary_expression "lVar5 == 0" (identifier "lVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(lVar5 + 8) = 0;" (assignment_expression "*(undefined1 *)(lVar5 + 8) = 0" (pointer_expression "*(undefined1 *)(lVar5 + 8)" (* "*") (cast_expression "(undefined1 *)(lVar5 + 8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 8)" (( "(") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "__s1 = (char *)(lVar5 + 9);" (assignment_expression "__s1 = (char *)(lVar5 + 9)" (identifier "__s1") (= "=") (cast_expression "(char *)(lVar5 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 9)" (( "(") (binary_expression "lVar5 + 9" (identifier "lVar5") (+ "+") (number_literal "9")) () ")")))) (; ";")) (} "}"))))) (labeled_statement "LAB_0010ac79:\n  *(char **)(param_2 + 0x30) = __s1;" (statement_identifier "LAB_0010ac79") (: ":") (expression_statement "*(char **)(param_2 + 0x30) = __s1;" (assignment_expression "*(char **)(param_2 + 0x30) = __s1" (pointer_expression "*(char **)(param_2 + 0x30)" (* "*") (cast_expression "(char **)(param_2 + 0x30)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "__s1")) (; ";"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(type_2 tz,type_3 *type_3)

{
  type_4 *var_4;
  char var_8;
  type_3 *var_1;
  type_5 *var_9;
  int var_3;
  int *piVar5;
  type_2 var_14;
  type_6 var_11;
  type_6 var_6;
  char *var_5;
  char *var_7;
  type_3 *ptVar10;
  type_7 bVar11;
  
  bVar11 = 0;
  var_1 = (type_3 *)type_3->type_5;
  if (var_1 == (type_3 *)0x0) {
    return true;
  }
  if ((type_3 <= var_1) && (var_1 < type_3 + 1)) {
    return true;
  }
  if ((char)var_1->tm_sec == '\0') {
    var_5 = "";
  }
  else {
    var_5 = &tz->field_0x9;
    while (var_3 = var_2(var_5,(char *)var_1), var_3 != 0) {
      if (*var_5 == '\0') {
        var_4 = &tz->field_0x9;
        if (var_4 != var_5) {
          var_6 = 0xffffffffffffffff;
          ptVar10 = var_1;
          goto code_r0x0010ac26;
        }
        if (tz->tz_is_set == '\0') {
          var_6 = 0xffffffffffffffff;
          ptVar10 = var_1;
          goto code_r0x0010acae;
        }
      }
      var_6 = 0xffffffffffffffff;
      var_7 = var_5;
      do {
        if (var_6 == 0) break;
        var_6 = var_6 - 1;
        var_8 = *var_7;
        var_7 = var_7 + (type_6)bVar11 * -2 + 1;
      } while (var_8 != '\0');
      var_5 = var_5 + ~var_6;
      if ((*var_5 == '\0') && (var_9 = tz->next, var_9 != (type_5 *)0x0)) {
        var_5 = &var_9->field_0x9;
        tz = var_9;
      }
    }
  }
  goto LAB_0010ac79;
  while( true ) {
    var_6 = var_6 - 1;
    piVar5 = &ptVar10->tm_sec;
    ptVar10 = (type_3 *)((long)ptVar10 + (type_6)bVar11 * -2 + 1);
    if ((char)*piVar5 == '\0') break;
code_r0x0010ac26:
    if (var_6 == 0) break;
  }
  var_6 = ~var_6;
  var_11 = (long)var_5 - (long)var_4;
  if (~var_11 < var_6) {
    piVar5 = var_10();
    *piVar5 = 0xc;
    return false;
  }
  goto LAB_0010acbc;
  while( true ) {
    var_6 = var_6 - 1;
    piVar5 = &ptVar10->tm_sec;
    ptVar10 = (type_3 *)((long)ptVar10 + (type_6)bVar11 * -2 + 1);
    if ((char)*piVar5 == '\0') break;
code_r0x0010acae:
    if (var_6 == 0) break;
  }
  var_6 = ~var_6;
  var_11 = (long)var_5 - (long)var_4;
LAB_0010acbc:
  if (var_11 + var_6 < 0x77) {
    var_12(var_5,var_1,var_6);
    var_5[var_6] = '\0';
  }
  else {
    var_14 = var_13((char *)var_1);
    tz->next = var_14;
    if (var_14 == (type_2)0x0) {
      return false;
    }
    var_14->tz_is_set = '\0';
    var_5 = &var_14->field_0x9;
  }
LAB_0010ac79:
  type_3->type_5 = var_5;
  return true;
}


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

undefined8 MASKED(long *param_1,char *param_2)

{
  char cVar1;
  char *__s2;
  long *plVar2;
  int iVar3;
  int *piVar4;
  long lVar5;
  ulong uVar6;
  size_t __n;
  char *__s1;
  char *pcVar7;
  char *pcVar8;
  byte bVar9;
  
  bVar9 = 0;
  __s2 = *(char **)(param_2 + 0x30);
  if (__s2 == (char *)0x0) {
    return 1;
  }
  if ((param_2 <= __s2) && (__s2 < param_2 + 0x38)) {
    return 1;
  }
  if (*__s2 == '\0') {
    __s1 = "";
  }
  else {
    __s1 = (char *)((long)param_1 + 9);
    while (iVar3 = strcmp(__s1,__s2), iVar3 != 0) {
      if (*__s1 == '\0') {
        pcVar7 = (char *)((long)param_1 + 9);
        if (pcVar7 != __s1) {
          uVar6 = 0xffffffffffffffff;
          pcVar8 = __s2;
          goto code_r0x0010ac26;
        }
        if ((char)param_1[1] == '\0') {
          uVar6 = 0xffffffffffffffff;
          pcVar8 = __s2;
          goto code_r0x0010acae;
        }
      }
      uVar6 = 0xffffffffffffffff;
      pcVar7 = __s1;
      do {
        if (uVar6 == 0) break;
        uVar6 = uVar6 - 1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar9 * -2 + 1;
      } while (cVar1 != '\0');
      __s1 = __s1 + ~uVar6;
      if ((*__s1 == '\0') && (plVar2 = (long *)*param_1, plVar2 != (long *)0x0)) {
        __s1 = (char *)((long)plVar2 + 9);
        param_1 = plVar2;
      }
    }
  }
  goto LAB_0010ac79;
  while( true ) {
    uVar6 = uVar6 - 1;
    cVar1 = *pcVar8;
    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;
    if (cVar1 == '\0') break;
code_r0x0010ac26:
    if (uVar6 == 0) break;
  }
  __n = ~uVar6;
  uVar6 = (long)__s1 - (long)pcVar7;
  if (~uVar6 < __n) {
    piVar4 = __errno_location();
    *piVar4 = 0xc;
    return 0;
  }
  goto LAB_0010acbc;
  while( true ) {
    uVar6 = uVar6 - 1;
    cVar1 = *pcVar8;
    pcVar8 = pcVar8 + (ulong)bVar9 * -2 + 1;
    if (cVar1 == '\0') break;
code_r0x0010acae:
    if (uVar6 == 0) break;
  }
  __n = ~uVar6;
  uVar6 = (long)__s1 - (long)pcVar7;
LAB_0010acbc:
  if (uVar6 + __n < 0x77) {
    memcpy(__s1,__s2,__n);
    __s1[__n] = '\0';
  }
  else {
    lVar5 = FUN_0010aae0(__s2);
    *param_1 = lVar5;
    if (lVar5 == 0) {
      return 0;
    }
    *(undefined1 *)(lVar5 + 8) = 0;
    __s1 = (char *)(lVar5 + 9);
  }
LAB_0010ac79:
  *(char **)(param_2 + 0x30) = __s1;
  return 1;
}

