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

_Bool __regparm3 save_abbr(timezone_t tz,tm_conflict *tm)

{
  tm_conflict *__s2;
  tm_zone *ptVar1;
  int iVar2;
  size_t sVar3;
  uint __n;
  uint uVar4;
  int *piVar5;
  timezone_t ptVar6;
  char *__s1;
  
  __s2 = (tm_conflict *)tm->tm_zone;
  if (__s2 == (tm_conflict *)0x0) {
    return true;
  }
  if ((__s2 < tm) || (tm + 1 <= __s2)) {
    __s1 = &tz->field_0x5;
    if ((char)__s2->tm_sec == '\0') {
      __s1 = "";
    }
    else {
      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {
        if (*__s1 == '\0') {
          if (&tz->field_0x5 == __s1) {
            if (tz->tz_is_set != '\0') goto LAB_0002be90;
            sVar3 = strlen((char *)__s2);
            __n = sVar3 + 1;
            uVar4 = 0;
          }
          else {
            sVar3 = strlen((char *)__s2);
            __n = sVar3 + 1;
            uVar4 = (int)__s1 - (int)&tz->field_0x5;
            if (~uVar4 < __n) {
              piVar5 = __errno_location();
              *piVar5 = 0xc;
              return false;
            }
          }
          if (uVar4 + __n < 0x3b) {
            memcpy(__s1,__s2,__n);
            __s1[__n] = '\0';
          }
          else {
            ptVar6 = tzalloc((char *)__s2);
            tz->next = ptVar6;
            if (ptVar6 == (timezone_t)0x0) {
              return false;
            }
            ptVar6->tz_is_set = '\0';
            __s1 = &ptVar6->field_0x5;
          }
          break;
        }
LAB_0002be90:
        sVar3 = strlen(__s1);
        __s1 = __s1 + sVar3 + 1;
        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {
          __s1 = &ptVar1->field_0x5;
          tz = ptVar1;
        }
      }
    }
    tm->tm_zone = __s1;
  }
  return true;
}



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

undefined4 __regparm3 FUN_0002be20(int *param_1,char *param_2)

{
  char *__s2;
  int iVar1;
  size_t sVar2;
  uint __n;
  uint uVar3;
  int *piVar4;
  char *__s1;
  
  __s2 = *(char **)(param_2 + 0x28);
  if (__s2 == (char *)0x0) {
    return 1;
  }
  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {
    __s1 = (char *)((int)param_1 + 5);
    if (*__s2 == '\0') {
      __s1 = "";
    }
    else {
      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {
        if (*__s1 == '\0') {
          if ((char *)((int)param_1 + 5) == __s1) {
            if ((char)param_1[1] != '\0') goto LAB_0002be90;
            sVar2 = strlen(__s2);
            __n = sVar2 + 1;
            uVar3 = 0;
          }
          else {
            sVar2 = strlen(__s2);
            __n = sVar2 + 1;
            uVar3 = (int)__s1 - ((int)param_1 + 5);
            if (~uVar3 < __n) {
              piVar4 = __errno_location();
              *piVar4 = 0xc;
              return 0;
            }
          }
          if (uVar3 + __n < 0x3b) {
            memcpy(__s1,__s2,__n);
            __s1[__n] = '\0';
          }
          else {
            iVar1 = FUN_0002bd70(__s2);
            *param_1 = iVar1;
            if (iVar1 == 0) {
              return 0;
            }
            *(undefined1 *)(iVar1 + 4) = 0;
            __s1 = (char *)(iVar1 + 5);
          }
          break;
        }
LAB_0002be90:
        sVar2 = strlen(__s1);
        __s1 = __s1 + sVar2 + 1;
        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {
          __s1 = (char *)((int)piVar4 + 5);
          param_1 = piVar4;
        }
      }
    }
    *(char **)(param_2 + 0x28) = __s1;
  }
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000142a0
ADD EBX,0x111d7
SUB ESP,0x1c
MOV EDI,dword ptr [EDX + 0x28]
MOV dword ptr [ESP + 0x8],EDX
TEST EDI,EDI
JZ 0x0002bf10
MOV ESI,EAX
CMP EDX,EDI
JA 0x0002be57
LEA EDX,[EDX + 0x2c]
MOV EAX,0x1
CMP EDI,EDX
JC 0x0002befc
CMP byte ptr [EDI],0x0
LEA EBP,[ESI + 0x5]
JZ 0x0002bf08
LEA ESI,[ESI]
NOP
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x000120a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002bef0
CMP byte ptr [EBP],0x0
JNZ 0x0002be90
LEA ECX,[ESI + 0x5]
CMP ECX,EBP
JNZ 0x0002bf20
CMP byte ptr [ESI + 0x4],0x0
JZ 0x0002beb8
SUB ESP,0xc
PUSH EBP
CALL 0x00012420
ADD ESP,0x10
LEA EBP,[EBP + EAX*0x1 + 0x1]
CMP byte ptr [EBP],0x0
JNZ 0x0002be68
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x0002be68
LEA EBP,[EAX + 0x5]
MOV ESI,EAX
JMP 0x0002be68
SUB ESP,0xc
PUSH EDI
CALL 0x00012420
ADD ESP,0x10
ADD EAX,0x1
MOV EDX,EAX
XOR EAX,EAX
ADD EAX,EDX
CMP EAX,0x3a
JA 0x0002bf58
SUB ESP,0x4
MOV ESI,EDX
PUSH EDX
PUSH EDI
PUSH EBP
CALL 0x00012140
MOV byte ptr [EBP + ESI*0x1],0x0
ADD ESP,0x10
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0x28],EBP
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EBP,[EBX + 0xffff299f]
JMP 0x0002bef0
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH EDI
CALL 0x00012420
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
LEA EDX,[EAX + 0x1]
MOV EAX,EBP
SUB EAX,ECX
MOV ECX,EAX
NOT ECX
CMP ECX,EDX
JNC 0x0002becb
CALL 0x000124a0
MOV dword ptr [EAX],0xc
XOR EAX,EAX
JMP 0x0002befc
SUB ESP,0xc
PUSH EDI
CALL 0x0002bd70
ADD ESP,0x10
MOV dword ptr [ESI],EAX
TEST EAX,EAX
JZ 0x0002bf76
MOV byte ptr [EAX + 0x4],0x0
LEA EBP,[EAX + 0x5]
JMP 0x0002bef0
XOR EAX,EAX
JMP 0x0002befc
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0002be20(int *param_1,char *param_2)\n\n{\n  char *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0002be20(int *param_1,char *param_2)\n\n{\n  char *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002be20(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}" { (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (expression_statement "__s2 = *(char **)(param_2 + 0x28);" (assignment_expression "__s2 = *(char **)(param_2 + 0x28)" identifier = (pointer_expression "*(char **)(param_2 + 0x28)" * (cast_expression "(char **)(param_2 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" 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 ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }" if (parenthesized_expression "((__s2 < param_2) || (param_2 + 0x2c <= __s2))" ( (binary_expression "(__s2 < param_2) || (param_2 + 0x2c <= __s2)" (parenthesized_expression "(__s2 < param_2)" ( (binary_expression "__s2 < param_2" identifier < identifier) )) || (parenthesized_expression "(param_2 + 0x2c <= __s2)" ( (binary_expression "param_2 + 0x2c <= __s2" (binary_expression "param_2 + 0x2c" identifier + number_literal) <= identifier) ))) )) (compound_statement "{\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }" { (expression_statement "__s1 = (char *)((int)param_1 + 5);" (assignment_expression "__s1 = (char *)((int)param_1 + 5)" identifier = (cast_expression "(char *)((int)param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\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      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }" else (compound_statement "{\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }" { (while_statement "while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }" while (parenthesized_expression "(iVar1 = strcmp(__s1,__s2), iVar1 != 0)" ( (comma_expression "iVar1 = strcmp(__s1,__s2), iVar1 != 0" (assignment_expression "iVar1 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }" { (if_statement "if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }" if (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }" { (if_statement "if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" if (parenthesized_expression "((char *)((int)param_1 + 5) == __s1)" ( (binary_expression "(char *)((int)param_1 + 5) == __s1" (cast_expression "(char *)((int)param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) == identifier) )) (compound_statement "{\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }" { (if_statement "if ((char)param_1[1] != '\0') goto LAB_0002be90;" 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 ')) )) (goto_statement "goto LAB_0002be90;" goto statement_identifier ;)) (expression_statement "sVar2 = strlen(__s2);" (assignment_expression "sVar2 = strlen(__s2)" identifier = (call_expression "strlen(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "__n = sVar2 + 1;" (assignment_expression "__n = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" else (compound_statement "{\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" { (expression_statement "sVar2 = strlen(__s2);" (assignment_expression "sVar2 = strlen(__s2)" identifier = (call_expression "strlen(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "__n = sVar2 + 1;" (assignment_expression "__n = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (int)__s1 - ((int)param_1 + 5);" (assignment_expression "uVar3 = (int)__s1 - ((int)param_1 + 5)" identifier = (binary_expression "(int)__s1 - ((int)param_1 + 5)" (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }" if (parenthesized_expression "(~uVar3 < __n)" ( (binary_expression "~uVar3 < __n" (unary_expression "~uVar3" ~ 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 ;) })) }))) (if_statement "if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" if (parenthesized_expression "(uVar3 + __n < 0x3b)" ( (binary_expression "uVar3 + __n < 0x3b" (binary_expression "uVar3 + __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            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" else (compound_statement "{\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" { (expression_statement "iVar1 = FUN_0002bd70(__s2);" (assignment_expression "iVar1 = FUN_0002bd70(__s2)" identifier = (call_expression "FUN_0002bd70(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n              return 0;\n            }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n              return 0;\n            }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)(iVar1 + 4) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 4) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 4)" * (cast_expression "(undefined1 *)(iVar1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__s1 = (char *)(iVar1 + 5);" (assignment_expression "__s1 = (char *)(iVar1 + 5)" identifier = (cast_expression "(char *)(iVar1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 5)" ( (binary_expression "iVar1 + 5" identifier + number_literal) )))) ;) }))) (break_statement "break;" break ;) })) (labeled_statement "LAB_0002be90:\n        sVar2 = strlen(__s1);" statement_identifier : (expression_statement "sVar2 = strlen(__s1);" (assignment_expression "sVar2 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;)) (expression_statement "__s1 = __s1 + sVar2 + 1;" (assignment_expression "__s1 = __s1 + sVar2 + 1" identifier = (binary_expression "__s1 + sVar2 + 1" (binary_expression "__s1 + sVar2" identifier + identifier) + number_literal)) ;) (if_statement "if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }" if (parenthesized_expression "((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0))" ( (binary_expression "(*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)" (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(piVar4 = (int *)*param_1, piVar4 != (int *)0x0)" ( (comma_expression "piVar4 = (int *)*param_1, piVar4 != (int *)0x0" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }" { (expression_statement "__s1 = (char *)((int)piVar4 + 5);" (assignment_expression "__s1 = (char *)((int)piVar4 + 5)" identifier = (cast_expression "(char *)((int)piVar4 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar4 + 5)" ( (binary_expression "(int)piVar4 + 5" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" identifier = identifier) ;) })) })) }))) (expression_statement "*(char **)(param_2 + 0x28) = __s1;" (assignment_expression "*(char **)(param_2 + 0x28) = __s1" (pointer_expression "*(char **)(param_2 + 0x28)" * (cast_expression "(char **)(param_2 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n_Bool __regparm3 save_abbr(timezone_t tz,tm_conflict *tm)\n\n{\n  tm_conflict *__s2;\n  tm_zone *ptVar1;\n  int iVar2;\n  size_t sVar3;\n  uint __n;\n  uint uVar4;\n  int *piVar5;\n  timezone_t ptVar6;\n  char *__s1;\n  \n  __s2 = (tm_conflict *)tm->tm_zone;\n  if (__s2 == (tm_conflict *)0x0) {\n    return true;\n  }\n  if ((__s2 < tm) || (tm + 1 <= __s2)) {\n    __s1 = &tz->field_0x5;\n    if ((char)__s2->tm_sec == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }\n    }\n    tm->tm_zone = __s1;\n  }\n  return true;\n}\n\n" comment (function_definition "_Bool __regparm3 save_abbr(timezone_t tz,tm_conflict *tm)\n\n{\n  tm_conflict *__s2;\n  tm_zone *ptVar1;\n  int iVar2;\n  size_t sVar3;\n  uint __n;\n  uint uVar4;\n  int *piVar5;\n  timezone_t ptVar6;\n  char *__s1;\n  \n  __s2 = (tm_conflict *)tm->tm_zone;\n  if (__s2 == (tm_conflict *)0x0) {\n    return true;\n  }\n  if ((__s2 < tm) || (tm + 1 <= __s2)) {\n    __s1 = &tz->field_0x5;\n    if ((char)__s2->tm_sec == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }\n    }\n    tm->tm_zone = __s1;\n  }\n  return true;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "save_abbr(timezone_t tz,tm_conflict *tm)" identifier (parameter_list "(timezone_t tz,tm_conflict *tm)" ( (parameter_declaration "timezone_t tz" type_identifier identifier) , (parameter_declaration "tm_conflict *tm" type_identifier (pointer_declarator "*tm" * identifier)) ))) (compound_statement "{\n  tm_conflict *__s2;\n  tm_zone *ptVar1;\n  int iVar2;\n  size_t sVar3;\n  uint __n;\n  uint uVar4;\n  int *piVar5;\n  timezone_t ptVar6;\n  char *__s1;\n  \n  __s2 = (tm_conflict *)tm->tm_zone;\n  if (__s2 == (tm_conflict *)0x0) {\n    return true;\n  }\n  if ((__s2 < tm) || (tm + 1 <= __s2)) {\n    __s1 = &tz->field_0x5;\n    if ((char)__s2->tm_sec == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }\n    }\n    tm->tm_zone = __s1;\n  }\n  return true;\n}" { (declaration "tm_conflict *__s2;" type_identifier (pointer_declarator "*__s2" * identifier) ;) (declaration "tm_zone *ptVar1;" type_identifier (pointer_declarator "*ptVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "timezone_t ptVar6;" type_identifier identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (expression_statement "__s2 = (tm_conflict *)tm->tm_zone;" (assignment_expression "__s2 = (tm_conflict *)tm->tm_zone" identifier = (cast_expression "(tm_conflict *)tm->tm_zone" ( (type_descriptor "tm_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "tm->tm_zone" identifier -> field_identifier))) ;) (if_statement "if (__s2 == (tm_conflict *)0x0) {\n    return true;\n  }" if (parenthesized_expression "(__s2 == (tm_conflict *)0x0)" ( (binary_expression "__s2 == (tm_conflict *)0x0" identifier == (cast_expression "(tm_conflict *)0x0" ( (type_descriptor "tm_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (if_statement "if ((__s2 < tm) || (tm + 1 <= __s2)) {\n    __s1 = &tz->field_0x5;\n    if ((char)__s2->tm_sec == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }\n    }\n    tm->tm_zone = __s1;\n  }" if (parenthesized_expression "((__s2 < tm) || (tm + 1 <= __s2))" ( (binary_expression "(__s2 < tm) || (tm + 1 <= __s2)" (parenthesized_expression "(__s2 < tm)" ( (binary_expression "__s2 < tm" identifier < identifier) )) || (parenthesized_expression "(tm + 1 <= __s2)" ( (binary_expression "tm + 1 <= __s2" (binary_expression "tm + 1" identifier + number_literal) <= identifier) ))) )) (compound_statement "{\n    __s1 = &tz->field_0x5;\n    if ((char)__s2->tm_sec == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }\n    }\n    tm->tm_zone = __s1;\n  }" { (expression_statement "__s1 = &tz->field_0x5;" (assignment_expression "__s1 = &tz->field_0x5" identifier = (pointer_expression "&tz->field_0x5" & (field_expression "tz->field_0x5" identifier -> field_identifier))) ;) (if_statement "if ((char)__s2->tm_sec == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\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      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }\n    }" else (compound_statement "{\n      while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }\n    }" { (while_statement "while (iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0) {\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }" while (parenthesized_expression "(iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0)" ( (comma_expression "iVar2 = strcmp(__s1,(char *)__s2), iVar2 != 0" (assignment_expression "iVar2 = 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 "iVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n        if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar3 = strlen(__s1);\n        __s1 = __s1 + sVar3 + 1;\n        if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }\n      }" { (if_statement "if (*__s1 == '\0') {\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }" if (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }\n          if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }\n          break;\n        }" { (if_statement "if (&tz->field_0x5 == __s1) {\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }\n          else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }" if (parenthesized_expression "(&tz->field_0x5 == __s1)" ( (binary_expression "&tz->field_0x5 == __s1" (pointer_expression "&tz->field_0x5" & (field_expression "tz->field_0x5" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n            if (tz->tz_is_set != '\0') goto LAB_0002be90;\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = 0;\n          }" { (if_statement "if (tz->tz_is_set != '\0') goto LAB_0002be90;" 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 ')) )) (goto_statement "goto LAB_0002be90;" goto statement_identifier ;)) (expression_statement "sVar3 = strlen((char *)__s2);" (assignment_expression "sVar3 = strlen((char *)__s2)" identifier = (call_expression "strlen((char *)__s2)" identifier (argument_list "((char *)__s2)" ( (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "__n = sVar3 + 1;" (assignment_expression "__n = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }" else (compound_statement "{\n            sVar3 = strlen((char *)__s2);\n            __n = sVar3 + 1;\n            uVar4 = (int)__s1 - (int)&tz->field_0x5;\n            if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }\n          }" { (expression_statement "sVar3 = strlen((char *)__s2);" (assignment_expression "sVar3 = strlen((char *)__s2)" identifier = (call_expression "strlen((char *)__s2)" identifier (argument_list "((char *)__s2)" ( (cast_expression "(char *)__s2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "__n = sVar3 + 1;" (assignment_expression "__n = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = (int)__s1 - (int)&tz->field_0x5;" (assignment_expression "uVar4 = (int)__s1 - (int)&tz->field_0x5" identifier = (binary_expression "(int)__s1 - (int)&tz->field_0x5" (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)&tz->field_0x5" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&tz->field_0x5" & (field_expression "tz->field_0x5" identifier -> field_identifier))))) ;) (if_statement "if (~uVar4 < __n) {\n              piVar5 = __errno_location();\n              *piVar5 = 0xc;\n              return false;\n            }" if (parenthesized_expression "(~uVar4 < __n)" ( (binary_expression "~uVar4 < __n" (unary_expression "~uVar4" ~ 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 ;) })) }))) (if_statement "if (uVar4 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\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_0x5;\n          }" if (parenthesized_expression "(uVar4 + __n < 0x3b)" ( (binary_expression "uVar4 + __n < 0x3b" (binary_expression "uVar4 + __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            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_0x5;\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_0x5;\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_0x5;" (assignment_expression "__s1 = &ptVar6->field_0x5" identifier = (pointer_expression "&ptVar6->field_0x5" & (field_expression "ptVar6->field_0x5" identifier -> field_identifier))) ;) }))) (break_statement "break;" break ;) })) (labeled_statement "LAB_0002be90:\n        sVar3 = strlen(__s1);" statement_identifier : (expression_statement "sVar3 = strlen(__s1);" (assignment_expression "sVar3 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;)) (expression_statement "__s1 = __s1 + sVar3 + 1;" (assignment_expression "__s1 = __s1 + sVar3 + 1" identifier = (binary_expression "__s1 + sVar3 + 1" (binary_expression "__s1 + sVar3" identifier + identifier) + number_literal)) ;) (if_statement "if ((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)) {\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }" if (parenthesized_expression "((*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0))" ( (binary_expression "(*__s1 == '\0') && (ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)" (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0)" ( (comma_expression "ptVar1 = tz->next, ptVar1 != (tm_zone *)0x0" (assignment_expression "ptVar1 = tz->next" identifier = (field_expression "tz->next" identifier -> field_identifier)) , (binary_expression "ptVar1 != (tm_zone *)0x0" identifier != (cast_expression "(tm_zone *)0x0" ( (type_descriptor "tm_zone *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          __s1 = &ptVar1->field_0x5;\n          tz = ptVar1;\n        }" { (expression_statement "__s1 = &ptVar1->field_0x5;" (assignment_expression "__s1 = &ptVar1->field_0x5" identifier = (pointer_expression "&ptVar1->field_0x5" & (field_expression "ptVar1->field_0x5" identifier -> field_identifier))) ;) (expression_statement "tz = ptVar1;" (assignment_expression "tz = ptVar1" identifier = 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 "undefined4 __regparm3 FUN_0002be20(int *param_1,char *param_2)\n\n{\n  char *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0002be20(int *param_1,char *param_2)\n\n{\n  char *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002be20(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}" { (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint __n;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (expression_statement "__s2 = *(char **)(param_2 + 0x28);" (assignment_expression "__s2 = *(char **)(param_2 + 0x28)" identifier = (pointer_expression "*(char **)(param_2 + 0x28)" * (cast_expression "(char **)(param_2 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" 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 ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }" if (parenthesized_expression "((__s2 < param_2) || (param_2 + 0x2c <= __s2))" ( (binary_expression "(__s2 < param_2) || (param_2 + 0x2c <= __s2)" (parenthesized_expression "(__s2 < param_2)" ( (binary_expression "__s2 < param_2" identifier < identifier) )) || (parenthesized_expression "(param_2 + 0x2c <= __s2)" ( (binary_expression "param_2 + 0x2c <= __s2" (binary_expression "param_2 + 0x2c" identifier + number_literal) <= identifier) ))) )) (compound_statement "{\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }" { (expression_statement "__s1 = (char *)((int)param_1 + 5);" (assignment_expression "__s1 = (char *)((int)param_1 + 5)" identifier = (cast_expression "(char *)((int)param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\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      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }" else (compound_statement "{\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }" { (while_statement "while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }" while (parenthesized_expression "(iVar1 = strcmp(__s1,__s2), iVar1 != 0)" ( (comma_expression "iVar1 = strcmp(__s1,__s2), iVar1 != 0" (assignment_expression "iVar1 = strcmp(__s1,__s2)" identifier = (call_expression "strcmp(__s1,__s2)" identifier (argument_list "(__s1,__s2)" ( identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }" { (if_statement "if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }" if (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }" { (if_statement "if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" if (parenthesized_expression "((char *)((int)param_1 + 5) == __s1)" ( (binary_expression "(char *)((int)param_1 + 5) == __s1" (cast_expression "(char *)((int)param_1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) == identifier) )) (compound_statement "{\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }" { (if_statement "if ((char)param_1[1] != '\0') goto LAB_0002be90;" 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 ')) )) (goto_statement "goto LAB_0002be90;" goto statement_identifier ;)) (expression_statement "sVar2 = strlen(__s2);" (assignment_expression "sVar2 = strlen(__s2)" identifier = (call_expression "strlen(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "__n = sVar2 + 1;" (assignment_expression "__n = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" else (compound_statement "{\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" { (expression_statement "sVar2 = strlen(__s2);" (assignment_expression "sVar2 = strlen(__s2)" identifier = (call_expression "strlen(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "__n = sVar2 + 1;" (assignment_expression "__n = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (int)__s1 - ((int)param_1 + 5);" (assignment_expression "uVar3 = (int)__s1 - ((int)param_1 + 5)" identifier = (binary_expression "(int)__s1 - ((int)param_1 + 5)" (cast_expression "(int)__s1" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "((int)param_1 + 5)" ( (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }" if (parenthesized_expression "(~uVar3 < __n)" ( (binary_expression "~uVar3 < __n" (unary_expression "~uVar3" ~ 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 ;) })) }))) (if_statement "if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" if (parenthesized_expression "(uVar3 + __n < 0x3b)" ( (binary_expression "uVar3 + __n < 0x3b" (binary_expression "uVar3 + __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            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" else (compound_statement "{\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" { (expression_statement "iVar1 = FUN_0002bd70(__s2);" (assignment_expression "iVar1 = FUN_0002bd70(__s2)" identifier = (call_expression "FUN_0002bd70(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n              return 0;\n            }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n              return 0;\n            }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)(iVar1 + 4) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 4) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 4)" * (cast_expression "(undefined1 *)(iVar1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__s1 = (char *)(iVar1 + 5);" (assignment_expression "__s1 = (char *)(iVar1 + 5)" identifier = (cast_expression "(char *)(iVar1 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 5)" ( (binary_expression "iVar1 + 5" identifier + number_literal) )))) ;) }))) (break_statement "break;" break ;) })) (labeled_statement "LAB_0002be90:\n        sVar2 = strlen(__s1);" statement_identifier : (expression_statement "sVar2 = strlen(__s1);" (assignment_expression "sVar2 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;)) (expression_statement "__s1 = __s1 + sVar2 + 1;" (assignment_expression "__s1 = __s1 + sVar2 + 1" identifier = (binary_expression "__s1 + sVar2 + 1" (binary_expression "__s1 + sVar2" identifier + identifier) + number_literal)) ;) (if_statement "if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }" if (parenthesized_expression "((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0))" ( (binary_expression "(*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)" (parenthesized_expression "(*__s1 == '\0')" ( (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(piVar4 = (int *)*param_1, piVar4 != (int *)0x0)" ( (comma_expression "piVar4 = (int *)*param_1, piVar4 != (int *)0x0" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }" { (expression_statement "__s1 = (char *)((int)piVar4 + 5);" (assignment_expression "__s1 = (char *)((int)piVar4 + 5)" identifier = (cast_expression "(char *)((int)piVar4 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar4 + 5)" ( (binary_expression "(int)piVar4 + 5" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" identifier = identifier) ;) })) })) }))) (expression_statement "*(char **)(param_2 + 0x28) = __s1;" (assignment_expression "*(char **)(param_2 + 0x28) = __s1" (pointer_expression "*(char **)(param_2 + 0x28)" * (cast_expression "(char **)(param_2 + 0x28)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 (binary_expression IDENT + LIT) <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + 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 { (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 { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (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 ;) })) }))) (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) )))) ;) }))) (break_statement break ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (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 TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (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 TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) }))) (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 "undefined4 __regparm3 FUN_0002be20(int *param_1,char *param_2)\n\n{\n  char *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002be20(int *param_1,char *param_2)" (identifier "FUN_0002be20") (parameter_list "(int *param_1,char *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (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 *__s2;\n  int iVar1;\n  size_t sVar2;\n  uint __n;\n  uint uVar3;\n  int *piVar4;\n  char *__s1;\n  \n  __s2 = *(char **)(param_2 + 0x28);\n  if (__s2 == (char *)0x0) {\n    return 1;\n  }\n  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }\n  return 1;\n}" ({ "{") (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (expression_statement "__s2 = *(char **)(param_2 + 0x28);" (assignment_expression "__s2 = *(char **)(param_2 + 0x28)" (identifier "__s2") (= "=") (pointer_expression "*(char **)(param_2 + 0x28)" (* "*") (cast_expression "(char **)(param_2 + 0x28)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (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 ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }" (if "if") (parenthesized_expression "((__s2 < param_2) || (param_2 + 0x2c <= __s2))" (( "(") (binary_expression "(__s2 < param_2) || (param_2 + 0x2c <= __s2)" (parenthesized_expression "(__s2 < param_2)" (( "(") (binary_expression "__s2 < param_2" (identifier "__s2") (< "<") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(param_2 + 0x2c <= __s2)" (( "(") (binary_expression "param_2 + 0x2c <= __s2" (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) (<= "<=") (identifier "__s2")) () ")"))) () ")")) (compound_statement "{\n    __s1 = (char *)((int)param_1 + 5);\n    if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }\n    *(char **)(param_2 + 0x28) = __s1;\n  }" ({ "{") (expression_statement "__s1 = (char *)((int)param_1 + 5);" (assignment_expression "__s1 = (char *)((int)param_1 + 5)" (identifier "__s1") (= "=") (cast_expression "(char *)((int)param_1 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 5)" (( "(") (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "5")) () ")")))) (; ";")) (if_statement "if (*__s2 == '\0') {\n      __s1 = "";\n    }\n    else {\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\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      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }" (else "else") (compound_statement "{\n      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }\n    }" ({ "{") (while_statement "while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }" (while "while") (parenthesized_expression "(iVar1 = strcmp(__s1,__s2), iVar1 != 0)" (( "(") (comma_expression "iVar1 = strcmp(__s1,__s2), iVar1 != 0" (assignment_expression "iVar1 = strcmp(__s1,__s2)" (identifier "iVar1") (= "=") (call_expression "strcmp(__s1,__s2)" (identifier "strcmp") (argument_list "(__s1,__s2)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }\nLAB_0002be90:\n        sVar2 = strlen(__s1);\n        __s1 = __s1 + sVar2 + 1;\n        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }\n      }" ({ "{") (if_statement "if (*__s1 == '\0') {\n          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\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          if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }\n          if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }\n          break;\n        }" ({ "{") (if_statement "if ((char *)((int)param_1 + 5) == __s1) {\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }\n          else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" (if "if") (parenthesized_expression "((char *)((int)param_1 + 5) == __s1)" (( "(") (binary_expression "(char *)((int)param_1 + 5) == __s1" (cast_expression "(char *)((int)param_1 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 5)" (( "(") (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "5")) () ")"))) (== "==") (identifier "__s1")) () ")")) (compound_statement "{\n            if ((char)param_1[1] != '\0') goto LAB_0002be90;\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = 0;\n          }" ({ "{") (if_statement "if ((char)param_1[1] != '\0') goto LAB_0002be90;" (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") (' "'"))) () ")")) (goto_statement "goto LAB_0002be90;" (goto "goto") (statement_identifier "LAB_0002be90") (; ";"))) (expression_statement "sVar2 = strlen(__s2);" (assignment_expression "sVar2 = strlen(__s2)" (identifier "sVar2") (= "=") (call_expression "strlen(__s2)" (identifier "strlen") (argument_list "(__s2)" (( "(") (identifier "__s2") () ")")))) (; ";")) (expression_statement "__n = sVar2 + 1;" (assignment_expression "__n = sVar2 + 1" (identifier "__n") (= "=") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" (else "else") (compound_statement "{\n            sVar2 = strlen(__s2);\n            __n = sVar2 + 1;\n            uVar3 = (int)__s1 - ((int)param_1 + 5);\n            if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }\n          }" ({ "{") (expression_statement "sVar2 = strlen(__s2);" (assignment_expression "sVar2 = strlen(__s2)" (identifier "sVar2") (= "=") (call_expression "strlen(__s2)" (identifier "strlen") (argument_list "(__s2)" (( "(") (identifier "__s2") () ")")))) (; ";")) (expression_statement "__n = sVar2 + 1;" (assignment_expression "__n = sVar2 + 1" (identifier "__n") (= "=") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = (int)__s1 - ((int)param_1 + 5);" (assignment_expression "uVar3 = (int)__s1 - ((int)param_1 + 5)" (identifier "uVar3") (= "=") (binary_expression "(int)__s1 - ((int)param_1 + 5)" (cast_expression "(int)__s1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s1")) (- "-") (parenthesized_expression "((int)param_1 + 5)" (( "(") (binary_expression "(int)param_1 + 5" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "5")) () ")")))) (; ";")) (if_statement "if (~uVar3 < __n) {\n              piVar4 = __errno_location();\n              *piVar4 = 0xc;\n              return 0;\n            }" (if "if") (parenthesized_expression "(~uVar3 < __n)" (( "(") (binary_expression "~uVar3 < __n" (unary_expression "~uVar3" (~ "~") (identifier "uVar3")) (< "<") (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") (; ";")) (} "}"))) (} "}")))) (if_statement "if (uVar3 + __n < 0x3b) {\n            memcpy(__s1,__s2,__n);\n            __s1[__n] = '\0';\n          }\n          else {\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" (if "if") (parenthesized_expression "(uVar3 + __n < 0x3b)" (( "(") (binary_expression "uVar3 + __n < 0x3b" (binary_expression "uVar3 + __n" (identifier "uVar3") (+ "+") (identifier "__n")) (< "<") (number_literal "0x3b")) () ")")) (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            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" (else "else") (compound_statement "{\n            iVar1 = FUN_0002bd70(__s2);\n            *param_1 = iVar1;\n            if (iVar1 == 0) {\n              return 0;\n            }\n            *(undefined1 *)(iVar1 + 4) = 0;\n            __s1 = (char *)(iVar1 + 5);\n          }" ({ "{") (expression_statement "iVar1 = FUN_0002bd70(__s2);" (assignment_expression "iVar1 = FUN_0002bd70(__s2)" (identifier "iVar1") (= "=") (call_expression "FUN_0002bd70(__s2)" (identifier "FUN_0002bd70") (argument_list "(__s2)" (( "(") (identifier "__s2") () ")")))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n              return 0;\n            }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              return 0;\n            }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(iVar1 + 4) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 4) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "__s1 = (char *)(iVar1 + 5);" (assignment_expression "__s1 = (char *)(iVar1 + 5)" (identifier "__s1") (= "=") (cast_expression "(char *)(iVar1 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 5)" (( "(") (binary_expression "iVar1 + 5" (identifier "iVar1") (+ "+") (number_literal "5")) () ")")))) (; ";")) (} "}")))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (labeled_statement "LAB_0002be90:\n        sVar2 = strlen(__s1);" (statement_identifier "LAB_0002be90") (: ":") (expression_statement "sVar2 = strlen(__s1);" (assignment_expression "sVar2 = strlen(__s1)" (identifier "sVar2") (= "=") (call_expression "strlen(__s1)" (identifier "strlen") (argument_list "(__s1)" (( "(") (identifier "__s1") () ")")))) (; ";"))) (expression_statement "__s1 = __s1 + sVar2 + 1;" (assignment_expression "__s1 = __s1 + sVar2 + 1" (identifier "__s1") (= "=") (binary_expression "__s1 + sVar2 + 1" (binary_expression "__s1 + sVar2" (identifier "__s1") (+ "+") (identifier "sVar2")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }" (if "if") (parenthesized_expression "((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0))" (( "(") (binary_expression "(*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)" (parenthesized_expression "(*__s1 == '\0')" (( "(") (binary_expression "*__s1 == '\0'" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(piVar4 = (int *)*param_1, piVar4 != (int *)0x0)" (( "(") (comma_expression "piVar4 = (int *)*param_1, piVar4 != (int *)0x0" (assignment_expression "piVar4 = (int *)*param_1" (identifier "piVar4") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (, ",") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n          __s1 = (char *)((int)piVar4 + 5);\n          param_1 = piVar4;\n        }" ({ "{") (expression_statement "__s1 = (char *)((int)piVar4 + 5);" (assignment_expression "__s1 = (char *)((int)piVar4 + 5)" (identifier "__s1") (= "=") (cast_expression "(char *)((int)piVar4 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar4 + 5)" (( "(") (binary_expression "(int)piVar4 + 5" (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4")) (+ "+") (number_literal "5")) () ")")))) (; ";")) (expression_statement "param_1 = piVar4;" (assignment_expression "param_1 = piVar4" (identifier "param_1") (= "=") (identifier "piVar4")) (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "*(char **)(param_2 + 0x28) = __s1;" (assignment_expression "*(char **)(param_2 + 0x28) = __s1" (pointer_expression "*(char **)(param_2 + 0x28)" (* "*") (cast_expression "(char **)(param_2 + 0x28)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "__s1")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 tz,type_3 *var_2)

{
  type_3 *var_1;
  type_4 *var_14;
  int var_4;
  size_t var_7;
  type_5 var_8;
  type_5 var_10;
  int *piVar5;
  type_2 var_13;
  char *var_5;
  
  var_1 = (type_3 *)var_2->type_4;
  if (var_1 == (type_3 *)0x0) {
    return true;
  }
  if ((var_1 < var_2) || (var_2 + 1 <= var_1)) {
    var_5 = &tz->field_0x5;
    if ((char)var_1->tm_sec == '\0') {
      var_5 = "";
    }
    else {
      while (var_4 = var_3(var_5,(char *)var_1), var_4 != 0) {
        if (*var_5 == '\0') {
          if (&tz->field_0x5 == var_5) {
            if (tz->tz_is_set != '\0') goto LAB_0002be90;
            var_7 = var_6((char *)var_1);
            var_8 = var_7 + 1;
            var_10 = 0;
          }
          else {
            var_7 = var_6((char *)var_1);
            var_8 = var_7 + 1;
            var_10 = (int)var_5 - (int)&tz->field_0x5;
            if (~var_10 < var_8) {
              piVar5 = var_9();
              *piVar5 = 0xc;
              return false;
            }
          }
          if (var_10 + var_8 < 0x3b) {
            var_11(var_5,var_1,var_8);
            var_5[var_8] = '\0';
          }
          else {
            var_13 = var_12((char *)var_1);
            tz->next = var_13;
            if (var_13 == (type_2)0x0) {
              return false;
            }
            var_13->tz_is_set = '\0';
            var_5 = &var_13->field_0x5;
          }
          break;
        }
LAB_0002be90:
        var_7 = var_6(var_5);
        var_5 = var_5 + var_7 + 1;
        if ((*var_5 == '\0') && (var_14 = tz->next, var_14 != (type_4 *)0x0)) {
          var_5 = &var_14->field_0x5;
          tz = var_14;
        }
      }
    }
    var_2->type_4 = var_5;
  }
  return true;
}


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

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

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

{
  char *__s2;
  int iVar1;
  size_t sVar2;
  uint __n;
  uint uVar3;
  int *piVar4;
  char *__s1;
  
  __s2 = *(char **)(param_2 + 0x28);
  if (__s2 == (char *)0x0) {
    return 1;
  }
  if ((__s2 < param_2) || (param_2 + 0x2c <= __s2)) {
    __s1 = (char *)((int)param_1 + 5);
    if (*__s2 == '\0') {
      __s1 = "";
    }
    else {
      while (iVar1 = strcmp(__s1,__s2), iVar1 != 0) {
        if (*__s1 == '\0') {
          if ((char *)((int)param_1 + 5) == __s1) {
            if ((char)param_1[1] != '\0') goto LAB_0002be90;
            sVar2 = strlen(__s2);
            __n = sVar2 + 1;
            uVar3 = 0;
          }
          else {
            sVar2 = strlen(__s2);
            __n = sVar2 + 1;
            uVar3 = (int)__s1 - ((int)param_1 + 5);
            if (~uVar3 < __n) {
              piVar4 = __errno_location();
              *piVar4 = 0xc;
              return 0;
            }
          }
          if (uVar3 + __n < 0x3b) {
            memcpy(__s1,__s2,__n);
            __s1[__n] = '\0';
          }
          else {
            iVar1 = FUN_0002bd70(__s2);
            *param_1 = iVar1;
            if (iVar1 == 0) {
              return 0;
            }
            *(undefined1 *)(iVar1 + 4) = 0;
            __s1 = (char *)(iVar1 + 5);
          }
          break;
        }
LAB_0002be90:
        sVar2 = strlen(__s1);
        __s1 = __s1 + sVar2 + 1;
        if ((*__s1 == '\0') && (piVar4 = (int *)*param_1, piVar4 != (int *)0x0)) {
          __s1 = (char *)((int)piVar4 + 5);
          param_1 = piVar4;
        }
      }
    }
    *(char **)(param_2 + 0x28) = __s1;
  }
  return 1;
}

