
char * concat(char *first,...)

{
  size_t sVar1;
  ulong uVar2;
  char *pcVar3;
  undefined8 in_RCX;
  undefined8 in_RDX;
  long lVar4;
  char *pcVar5;
  undefined8 in_RSI;
  undefined8 in_R8;
  undefined8 in_R9;
  va_list args;
  long local_58 [4];
  undefined8 local_38;
  undefined8 local_30;
  
  args[0].overflow_arg_area = &stack0x00000008;
  args[0].gp_offset = 8;
  local_58[1] = in_RSI;
  local_58[2] = in_RDX;
  local_58[3] = in_RCX;
  local_38 = in_R8;
  local_30 = in_R9;
  if (first == (char *)0x0) {
    pcVar5 = (char *)xmalloc(1);
    pcVar3 = pcVar5;
  }
  else {
    lVar4 = 0;
    pcVar5 = first;
    do {
      while( true ) {
        sVar1 = strlen(pcVar5);
        lVar4 = lVar4 + sVar1;
        uVar2 = (ulong)args[0].gp_offset;
        if (args[0].gp_offset < 0x30) break;
                    /* WARNING: Load size is inaccurate */
        pcVar5 = *args[0].overflow_arg_area;
        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);
        if (pcVar5 == (char *)0x0) goto LAB_001568a3;
      }
      args[0].gp_offset = args[0].gp_offset + 8;
      pcVar5 = *(char **)((long)local_58 + uVar2);
    } while (pcVar5 != (char *)0x0);
LAB_001568a3:
    pcVar3 = (char *)xmalloc(lVar4 + 1);
    args[0].gp_offset = 8;
    args[0].overflow_arg_area = &stack0x00000008;
    pcVar5 = pcVar3;
    do {
      while( true ) {
        sVar1 = strlen(first);
        memcpy(pcVar5,first,sVar1);
        uVar2 = (ulong)args[0].gp_offset;
        pcVar5 = pcVar5 + sVar1;
        if (args[0].gp_offset < 0x30) break;
                    /* WARNING: Load size is inaccurate */
        first = *args[0].overflow_arg_area;
        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);
        if (first == (char *)0x0) goto LAB_00156929;
      }
      args[0].gp_offset = args[0].gp_offset + 8;
      first = *(char **)((long)local_58 + uVar2);
    } while (first != (char *)0x0);
  }
LAB_00156929:
  *pcVar5 = '\0';
  return pcVar3;
}



undefined1 *
FUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
            undefined8 param_5,undefined8 param_6)

{
  size_t sVar1;
  ulong uVar2;
  undefined1 *puVar3;
  long lVar4;
  undefined1 *__dest;
  char *__s;
  uint local_70;
  long *local_68;
  long local_58 [4];
  undefined8 local_38;
  undefined8 local_30;
  
  local_68 = (long *)&stack0x00000008;
  local_70 = 8;
  local_58[1] = param_2;
  local_58[2] = param_3;
  local_58[3] = param_4;
  local_38 = param_5;
  local_30 = param_6;
  if (param_1 == (char *)0x0) {
    __dest = (undefined1 *)FUN_001594b0(1);
    puVar3 = __dest;
  }
  else {
    lVar4 = 0;
    __s = param_1;
    do {
      while( true ) {
        sVar1 = strlen(__s);
        lVar4 = lVar4 + sVar1;
        uVar2 = (ulong)local_70;
        if (local_70 < 0x30) break;
        __s = (char *)*local_68;
        local_68 = local_68 + 1;
        if (__s == (char *)0x0) goto LAB_001568a3;
      }
      local_70 = local_70 + 8;
      __s = *(char **)((long)local_58 + uVar2);
    } while (__s != (char *)0x0);
LAB_001568a3:
    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);
    local_70 = 8;
    local_68 = (long *)&stack0x00000008;
    __dest = puVar3;
    do {
      while( true ) {
        sVar1 = strlen(param_1);
        memcpy(__dest,param_1,sVar1);
        uVar2 = (ulong)local_70;
        __dest = __dest + sVar1;
        if (local_70 < 0x30) break;
        param_1 = (char *)*local_68;
        local_68 = local_68 + 1;
        if (param_1 == (char *)0x0) goto LAB_00156929;
      }
      local_70 = local_70 + 8;
      param_1 = *(char **)((long)local_58 + uVar2);
    } while (param_1 != (char *)0x0);
  }
LAB_00156929:
  *__dest = 0;
  return puVar3;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x58
LEA RAX,[RSP + 0x80]
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[RSP + 0x20]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x40],R8
MOV qword ptr [RSP + 0x48],R9
MOV dword ptr [RSP + 0x8],0x8
MOV qword ptr [RSP + 0x18],RAX
TEST RDI,RDI
JZ 0x00156940
MOV RBX,RDI
MOV R12,RAX
XOR EBP,EBP
JMP 0x0015687c
MOV EDX,EAX
ADD EAX,0x8
ADD RDX,R12
MOV dword ptr [RSP + 0x8],EAX
MOV RDI,qword ptr [RDX]
TEST RDI,RDI
JZ 0x001568a3
CALL 0x00107150
ADD RBP,RAX
MOV EAX,dword ptr [RSP + 0x8]
CMP EAX,0x2f
JBE 0x00156868
MOV RDX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RDX]
LEA RAX,[RDX + 0x8]
MOV qword ptr [RSP + 0x10],RAX
TEST RDI,RDI
JNZ 0x0015687c
LEA RDI,[RBP + 0x1]
CALL 0x001594b0
MOV dword ptr [RSP + 0x8],0x8
MOV R12,RAX
LEA RAX,[RSP + 0x80]
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[RSP + 0x20]
MOV RBP,R12
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001568ee
MOV EDX,EAX
ADD RDX,qword ptr [RSP + 0x18]
ADD EAX,0x8
MOV RBX,qword ptr [RDX]
MOV dword ptr [RSP + 0x8],EAX
TEST RBX,RBX
JZ 0x00156929
MOV RDI,RBX
CALL 0x00107150
MOV RDI,RBP
MOV RSI,RBX
MOV RDX,RAX
MOV R13,RAX
CALL 0x001072b0
MOV EAX,dword ptr [RSP + 0x8]
ADD RBP,R13
CMP EAX,0x2f
JBE 0x001568d8
MOV RDX,qword ptr [RSP + 0x10]
MOV RBX,qword ptr [RDX]
LEA RAX,[RDX + 0x8]
MOV qword ptr [RSP + 0x10],RAX
TEST RBX,RBX
JNZ 0x001568ee
MOV byte ptr [RBP],0x0
ADD RSP,0x58
MOV RAX,R12
POP RBX
POP RBP
POP R12
POP R13
RET
MOV EDI,0x1
CALL 0x001594b0
MOV dword ptr [RSP + 0x8],0x8
MOV RBP,RAX
LEA RAX,[RSP + 0x80]
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[RSP + 0x20]
MOV R12,RBP
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00156929
(translation_unit "undefined1 *\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)\n\n{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}\n\n" (function_definition "undefined1 *\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)\n\n{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}" type_identifier (pointer_declarator "*\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" * (function_declarator "FUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) )))) (compound_statement "{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "uint local_70;" type_identifier identifier ;) (declaration "long *local_68;" (sized_type_specifier "long" long) (pointer_declarator "*local_68" * identifier) ;) (declaration "long local_58 [4];" (sized_type_specifier "long" long) (array_declarator "local_58 [4]" identifier [ number_literal ]) ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (expression_statement "local_68 = (long *)&stack0x00000008;" (assignment_expression "local_68 = (long *)&stack0x00000008" identifier = (cast_expression "(long *)&stack0x00000008" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (expression_statement "local_70 = 8;" (assignment_expression "local_70 = 8" identifier = number_literal) ;) (expression_statement "local_58[1] = param_2;" (assignment_expression "local_58[1] = param_2" (subscript_expression "local_58[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_58[2] = param_3;" (assignment_expression "local_58[2] = param_3" (subscript_expression "local_58[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_58[3] = param_4;" (assignment_expression "local_58[3] = param_4" (subscript_expression "local_58[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_38 = param_5;" (assignment_expression "local_38 = param_5" identifier = identifier) ;) (expression_statement "local_30 = param_6;" (assignment_expression "local_30 = param_6" identifier = identifier) ;) (if_statement "if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }" { (expression_statement "__dest = (undefined1 *)FUN_001594b0(1);" (assignment_expression "__dest = (undefined1 *)FUN_001594b0(1)" identifier = (cast_expression "(undefined1 *)FUN_001594b0(1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001594b0(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "puVar3 = __dest;" (assignment_expression "puVar3 = __dest" identifier = identifier) ;) }) (else_clause "else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" else (compound_statement "{\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);" do (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    }" { (while_statement "while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }" { (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "lVar4 = lVar4 + sVar1;" (assignment_expression "lVar4 = lVar4 + sVar1" identifier = (binary_expression "lVar4 + sVar1" identifier + identifier)) ;) (expression_statement "uVar2 = (ulong)local_70;" (assignment_expression "uVar2 = (ulong)local_70" identifier = (cast_expression "(ulong)local_70" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (local_70 < 0x30) break;" if (parenthesized_expression "(local_70 < 0x30)" ( (binary_expression "local_70 < 0x30" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "__s = (char *)*local_68;" (assignment_expression "__s = (char *)*local_68" identifier = (cast_expression "(char *)*local_68" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_68" * identifier))) ;) (expression_statement "local_68 = local_68 + 1;" (assignment_expression "local_68 = local_68 + 1" identifier = (binary_expression "local_68 + 1" identifier + number_literal)) ;) (if_statement "if (__s == (char *)0x0) goto LAB_001568a3;" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001568a3;" goto statement_identifier ;)) })) (expression_statement "local_70 = local_70 + 8;" (assignment_expression "local_70 = local_70 + 8" identifier = (binary_expression "local_70 + 8" identifier + number_literal)) ;) (expression_statement "__s = *(char **)((long)local_58 + uVar2);" (assignment_expression "__s = *(char **)((long)local_58 + uVar2)" identifier = (pointer_expression "*(char **)((long)local_58 + uVar2)" * (cast_expression "(char **)((long)local_58 + uVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)local_58 + uVar2)" ( (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);" statement_identifier : (expression_statement "puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);" (assignment_expression "puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1)" identifier = (cast_expression "(undefined1 *)FUN_001594b0(lVar4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001594b0(lVar4 + 1)" identifier (argument_list "(lVar4 + 1)" ( (binary_expression "lVar4 + 1" identifier + number_literal) ))))) ;)) (expression_statement "local_70 = 8;" (assignment_expression "local_70 = 8" identifier = number_literal) ;) (expression_statement "local_68 = (long *)&stack0x00000008;" (assignment_expression "local_68 = (long *)&stack0x00000008" identifier = (cast_expression "(long *)&stack0x00000008" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (expression_statement "__dest = puVar3;" (assignment_expression "__dest = puVar3" identifier = identifier) ;) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);" do (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    }" { (while_statement "while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }" { (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "memcpy(__dest,param_1,sVar1);" (call_expression "memcpy(__dest,param_1,sVar1)" identifier (argument_list "(__dest,param_1,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar2 = (ulong)local_70;" (assignment_expression "uVar2 = (ulong)local_70" identifier = (cast_expression "(ulong)local_70" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "__dest = __dest + sVar1;" (assignment_expression "__dest = __dest + sVar1" identifier = (binary_expression "__dest + sVar1" identifier + identifier)) ;) (if_statement "if (local_70 < 0x30) break;" if (parenthesized_expression "(local_70 < 0x30)" ( (binary_expression "local_70 < 0x30" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_1 = (char *)*local_68;" (assignment_expression "param_1 = (char *)*local_68" identifier = (cast_expression "(char *)*local_68" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_68" * identifier))) ;) (expression_statement "local_68 = local_68 + 1;" (assignment_expression "local_68 = local_68 + 1" identifier = (binary_expression "local_68 + 1" identifier + number_literal)) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_00156929;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00156929;" goto statement_identifier ;)) })) (expression_statement "local_70 = local_70 + 8;" (assignment_expression "local_70 = local_70 + 8" identifier = (binary_expression "local_70 + 8" identifier + number_literal)) ;) (expression_statement "param_1 = *(char **)((long)local_58 + uVar2);" (assignment_expression "param_1 = *(char **)((long)local_58 + uVar2)" identifier = (pointer_expression "*(char **)((long)local_58 + uVar2)" * (cast_expression "(char **)((long)local_58 + uVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)local_58 + uVar2)" ( (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (labeled_statement "LAB_00156929:\n  *__dest = 0;" statement_identifier : (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" * identifier) = number_literal) ;)) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "char * concat(char *first,...)\n\n{\n  size_t sVar1;\n  ulong uVar2;\n  char *pcVar3;\n  undefined8 in_RCX;\n  undefined8 in_RDX;\n  long lVar4;\n  char *pcVar5;\n  undefined8 in_RSI;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  va_list args;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  args[0].overflow_arg_area = &stack0x00000008;\n  args[0].gp_offset = 8;\n  local_58[1] = in_RSI;\n  local_58[2] = in_RDX;\n  local_58[3] = in_RCX;\n  local_38 = in_R8;\n  local_30 = in_R9;\n  if (first == (char *)0x0) {\n    pcVar5 = (char *)xmalloc(1);\n    pcVar3 = pcVar5;\n  }\n  else {\n    lVar4 = 0;\n    pcVar5 = first;\n    do {\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    } while (pcVar5 != (char *)0x0);\nLAB_001568a3:\n    pcVar3 = (char *)xmalloc(lVar4 + 1);\n    args[0].gp_offset = 8;\n    args[0].overflow_arg_area = &stack0x00000008;\n    pcVar5 = pcVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    } while (first != (char *)0x0);\n  }\nLAB_00156929:\n  *pcVar5 = '\0';\n  return pcVar3;\n}\n\n" (function_definition "char * concat(char *first,...)\n\n{\n  size_t sVar1;\n  ulong uVar2;\n  char *pcVar3;\n  undefined8 in_RCX;\n  undefined8 in_RDX;\n  long lVar4;\n  char *pcVar5;\n  undefined8 in_RSI;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  va_list args;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  args[0].overflow_arg_area = &stack0x00000008;\n  args[0].gp_offset = 8;\n  local_58[1] = in_RSI;\n  local_58[2] = in_RDX;\n  local_58[3] = in_RCX;\n  local_38 = in_R8;\n  local_30 = in_R9;\n  if (first == (char *)0x0) {\n    pcVar5 = (char *)xmalloc(1);\n    pcVar3 = pcVar5;\n  }\n  else {\n    lVar4 = 0;\n    pcVar5 = first;\n    do {\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    } while (pcVar5 != (char *)0x0);\nLAB_001568a3:\n    pcVar3 = (char *)xmalloc(lVar4 + 1);\n    args[0].gp_offset = 8;\n    args[0].overflow_arg_area = &stack0x00000008;\n    pcVar5 = pcVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    } while (first != (char *)0x0);\n  }\nLAB_00156929:\n  *pcVar5 = '\0';\n  return pcVar3;\n}" primitive_type (pointer_declarator "* concat(char *first,...)" * (function_declarator "concat(char *first,...)" identifier (parameter_list "(char *first,...)" ( (parameter_declaration "char *first" primitive_type (pointer_declarator "*first" * identifier)) , (variadic_parameter "..." ...) )))) (compound_statement "{\n  size_t sVar1;\n  ulong uVar2;\n  char *pcVar3;\n  undefined8 in_RCX;\n  undefined8 in_RDX;\n  long lVar4;\n  char *pcVar5;\n  undefined8 in_RSI;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  va_list args;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  args[0].overflow_arg_area = &stack0x00000008;\n  args[0].gp_offset = 8;\n  local_58[1] = in_RSI;\n  local_58[2] = in_RDX;\n  local_58[3] = in_RCX;\n  local_38 = in_R8;\n  local_30 = in_R9;\n  if (first == (char *)0x0) {\n    pcVar5 = (char *)xmalloc(1);\n    pcVar3 = pcVar5;\n  }\n  else {\n    lVar4 = 0;\n    pcVar5 = first;\n    do {\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    } while (pcVar5 != (char *)0x0);\nLAB_001568a3:\n    pcVar3 = (char *)xmalloc(lVar4 + 1);\n    args[0].gp_offset = 8;\n    args[0].overflow_arg_area = &stack0x00000008;\n    pcVar5 = pcVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    } while (first != (char *)0x0);\n  }\nLAB_00156929:\n  *pcVar5 = '\0';\n  return pcVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined8 in_RCX;" type_identifier identifier ;) (declaration "undefined8 in_RDX;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined8 in_RSI;" type_identifier identifier ;) (declaration "undefined8 in_R8;" type_identifier identifier ;) (declaration "undefined8 in_R9;" type_identifier identifier ;) (declaration "va_list args;" type_identifier identifier ;) (declaration "long local_58 [4];" (sized_type_specifier "long" long) (array_declarator "local_58 [4]" identifier [ number_literal ]) ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (expression_statement "args[0].overflow_arg_area = &stack0x00000008;" (assignment_expression "args[0].overflow_arg_area = &stack0x00000008" (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "args[0].gp_offset = 8;" (assignment_expression "args[0].gp_offset = 8" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "local_58[1] = in_RSI;" (assignment_expression "local_58[1] = in_RSI" (subscript_expression "local_58[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_58[2] = in_RDX;" (assignment_expression "local_58[2] = in_RDX" (subscript_expression "local_58[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_58[3] = in_RCX;" (assignment_expression "local_58[3] = in_RCX" (subscript_expression "local_58[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_38 = in_R8;" (assignment_expression "local_38 = in_R8" identifier = identifier) ;) (expression_statement "local_30 = in_R9;" (assignment_expression "local_30 = in_R9" identifier = identifier) ;) (if_statement "if (first == (char *)0x0) {\n    pcVar5 = (char *)xmalloc(1);\n    pcVar3 = pcVar5;\n  }\n  else {\n    lVar4 = 0;\n    pcVar5 = first;\n    do {\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    } while (pcVar5 != (char *)0x0);\nLAB_001568a3:\n    pcVar3 = (char *)xmalloc(lVar4 + 1);\n    args[0].gp_offset = 8;\n    args[0].overflow_arg_area = &stack0x00000008;\n    pcVar5 = pcVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    } while (first != (char *)0x0);\n  }" if (parenthesized_expression "(first == (char *)0x0)" ( (binary_expression "first == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar5 = (char *)xmalloc(1);\n    pcVar3 = pcVar5;\n  }" { (expression_statement "pcVar5 = (char *)xmalloc(1);" (assignment_expression "pcVar5 = (char *)xmalloc(1)" identifier = (cast_expression "(char *)xmalloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) }) (else_clause "else {\n    lVar4 = 0;\n    pcVar5 = first;\n    do {\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    } while (pcVar5 != (char *)0x0);\nLAB_001568a3:\n    pcVar3 = (char *)xmalloc(lVar4 + 1);\n    args[0].gp_offset = 8;\n    args[0].overflow_arg_area = &stack0x00000008;\n    pcVar5 = pcVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    } while (first != (char *)0x0);\n  }" else (compound_statement "{\n    lVar4 = 0;\n    pcVar5 = first;\n    do {\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    } while (pcVar5 != (char *)0x0);\nLAB_001568a3:\n    pcVar3 = (char *)xmalloc(lVar4 + 1);\n    args[0].gp_offset = 8;\n    args[0].overflow_arg_area = &stack0x00000008;\n    pcVar5 = pcVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    } while (first != (char *)0x0);\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = first;" (assignment_expression "pcVar5 = first" identifier = identifier) ;) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    } while (pcVar5 != (char *)0x0);" do (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      pcVar5 = *(char **)((long)local_58 + uVar2);\n    }" { (while_statement "while( true ) {\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        sVar1 = strlen(pcVar5);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)args[0].gp_offset;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        pcVar5 = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (pcVar5 == (char *)0x0) goto LAB_001568a3;\n      }" { (expression_statement "sVar1 = strlen(pcVar5);" (assignment_expression "sVar1 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "lVar4 = lVar4 + sVar1;" (assignment_expression "lVar4 = lVar4 + sVar1" identifier = (binary_expression "lVar4 + sVar1" identifier + identifier)) ;) (expression_statement "uVar2 = (ulong)args[0].gp_offset;" (assignment_expression "uVar2 = (ulong)args[0].gp_offset" identifier = (cast_expression "(ulong)args[0].gp_offset" ( (type_descriptor "ulong" type_identifier) ) (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier))) ;) (if_statement "if (args[0].gp_offset < 0x30) break;" if (parenthesized_expression "(args[0].gp_offset < 0x30)" ( (binary_expression "args[0].gp_offset < 0x30" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) < number_literal) )) (break_statement "break;" break ;)) comment (expression_statement "pcVar5 = *args[0].overflow_arg_area;" (assignment_expression "pcVar5 = *args[0].overflow_arg_area" identifier = (pointer_expression "*args[0].overflow_arg_area" * (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);" (assignment_expression "args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8)" (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(void *)((long)args[0].overflow_arg_area + 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)args[0].overflow_arg_area + 8)" ( (binary_expression "(long)args[0].overflow_arg_area + 8" (cast_expression "(long)args[0].overflow_arg_area" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier)) + number_literal) )))) ;) (if_statement "if (pcVar5 == (char *)0x0) goto LAB_001568a3;" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001568a3;" goto statement_identifier ;)) })) (expression_statement "args[0].gp_offset = args[0].gp_offset + 8;" (assignment_expression "args[0].gp_offset = args[0].gp_offset + 8" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = (binary_expression "args[0].gp_offset + 8" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "pcVar5 = *(char **)((long)local_58 + uVar2);" (assignment_expression "pcVar5 = *(char **)((long)local_58 + uVar2)" identifier = (pointer_expression "*(char **)((long)local_58 + uVar2)" * (cast_expression "(char **)((long)local_58 + uVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)local_58 + uVar2)" ( (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(pcVar5 != (char *)0x0)" ( (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_001568a3:\n    pcVar3 = (char *)xmalloc(lVar4 + 1);" statement_identifier : (expression_statement "pcVar3 = (char *)xmalloc(lVar4 + 1);" (assignment_expression "pcVar3 = (char *)xmalloc(lVar4 + 1)" identifier = (cast_expression "(char *)xmalloc(lVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(lVar4 + 1)" identifier (argument_list "(lVar4 + 1)" ( (binary_expression "lVar4 + 1" identifier + number_literal) ))))) ;)) (expression_statement "args[0].gp_offset = 8;" (assignment_expression "args[0].gp_offset = 8" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "args[0].overflow_arg_area = &stack0x00000008;" (assignment_expression "args[0].overflow_arg_area = &stack0x00000008" (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "pcVar5 = pcVar3;" (assignment_expression "pcVar5 = pcVar3" identifier = identifier) ;) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    } while (first != (char *)0x0);" do (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }\n      args[0].gp_offset = args[0].gp_offset + 8;\n      first = *(char **)((long)local_58 + uVar2);\n    }" { (while_statement "while( true ) {\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        sVar1 = strlen(first);\n        memcpy(pcVar5,first,sVar1);\n        uVar2 = (ulong)args[0].gp_offset;\n        pcVar5 = pcVar5 + sVar1;\n        if (args[0].gp_offset < 0x30) break;\n                    /* WARNING: Load size is inaccurate */\n        first = *args[0].overflow_arg_area;\n        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);\n        if (first == (char *)0x0) goto LAB_00156929;\n      }" { (expression_statement "sVar1 = strlen(first);" (assignment_expression "sVar1 = strlen(first)" identifier = (call_expression "strlen(first)" identifier (argument_list "(first)" ( identifier )))) ;) (expression_statement "memcpy(pcVar5,first,sVar1);" (call_expression "memcpy(pcVar5,first,sVar1)" identifier (argument_list "(pcVar5,first,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar2 = (ulong)args[0].gp_offset;" (assignment_expression "uVar2 = (ulong)args[0].gp_offset" identifier = (cast_expression "(ulong)args[0].gp_offset" ( (type_descriptor "ulong" type_identifier) ) (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "pcVar5 = pcVar5 + sVar1;" (assignment_expression "pcVar5 = pcVar5 + sVar1" identifier = (binary_expression "pcVar5 + sVar1" identifier + identifier)) ;) (if_statement "if (args[0].gp_offset < 0x30) break;" if (parenthesized_expression "(args[0].gp_offset < 0x30)" ( (binary_expression "args[0].gp_offset < 0x30" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) < number_literal) )) (break_statement "break;" break ;)) comment (expression_statement "first = *args[0].overflow_arg_area;" (assignment_expression "first = *args[0].overflow_arg_area" identifier = (pointer_expression "*args[0].overflow_arg_area" * (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);" (assignment_expression "args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8)" (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(void *)((long)args[0].overflow_arg_area + 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)args[0].overflow_arg_area + 8)" ( (binary_expression "(long)args[0].overflow_arg_area + 8" (cast_expression "(long)args[0].overflow_arg_area" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier)) + number_literal) )))) ;) (if_statement "if (first == (char *)0x0) goto LAB_00156929;" if (parenthesized_expression "(first == (char *)0x0)" ( (binary_expression "first == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00156929;" goto statement_identifier ;)) })) (expression_statement "args[0].gp_offset = args[0].gp_offset + 8;" (assignment_expression "args[0].gp_offset = args[0].gp_offset + 8" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = (binary_expression "args[0].gp_offset + 8" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) + number_literal)) ;) (expression_statement "first = *(char **)((long)local_58 + uVar2);" (assignment_expression "first = *(char **)((long)local_58 + uVar2)" identifier = (pointer_expression "*(char **)((long)local_58 + uVar2)" * (cast_expression "(char **)((long)local_58 + uVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)local_58 + uVar2)" ( (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(first != (char *)0x0)" ( (binary_expression "first != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (labeled_statement "LAB_00156929:\n  *pcVar5 = '\0';" statement_identifier : (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "undefined1 *\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)\n\n{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}\n\n" (function_definition "undefined1 *\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)\n\n{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}" type_identifier (pointer_declarator "*\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" * (function_declarator "FUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) )))) (compound_statement "{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "uint local_70;" type_identifier identifier ;) (declaration "long *local_68;" (sized_type_specifier "long" long) (pointer_declarator "*local_68" * identifier) ;) (declaration "long local_58 [4];" (sized_type_specifier "long" long) (array_declarator "local_58 [4]" identifier [ number_literal ]) ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (expression_statement "local_68 = (long *)&stack0x00000008;" (assignment_expression "local_68 = (long *)&stack0x00000008" identifier = (cast_expression "(long *)&stack0x00000008" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (expression_statement "local_70 = 8;" (assignment_expression "local_70 = 8" identifier = number_literal) ;) (expression_statement "local_58[1] = param_2;" (assignment_expression "local_58[1] = param_2" (subscript_expression "local_58[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_58[2] = param_3;" (assignment_expression "local_58[2] = param_3" (subscript_expression "local_58[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_58[3] = param_4;" (assignment_expression "local_58[3] = param_4" (subscript_expression "local_58[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_38 = param_5;" (assignment_expression "local_38 = param_5" identifier = identifier) ;) (expression_statement "local_30 = param_6;" (assignment_expression "local_30 = param_6" identifier = identifier) ;) (if_statement "if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }" { (expression_statement "__dest = (undefined1 *)FUN_001594b0(1);" (assignment_expression "__dest = (undefined1 *)FUN_001594b0(1)" identifier = (cast_expression "(undefined1 *)FUN_001594b0(1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001594b0(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "puVar3 = __dest;" (assignment_expression "puVar3 = __dest" identifier = identifier) ;) }) (else_clause "else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" else (compound_statement "{\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" { (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);" do (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    }" { (while_statement "while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }" { (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "lVar4 = lVar4 + sVar1;" (assignment_expression "lVar4 = lVar4 + sVar1" identifier = (binary_expression "lVar4 + sVar1" identifier + identifier)) ;) (expression_statement "uVar2 = (ulong)local_70;" (assignment_expression "uVar2 = (ulong)local_70" identifier = (cast_expression "(ulong)local_70" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (local_70 < 0x30) break;" if (parenthesized_expression "(local_70 < 0x30)" ( (binary_expression "local_70 < 0x30" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "__s = (char *)*local_68;" (assignment_expression "__s = (char *)*local_68" identifier = (cast_expression "(char *)*local_68" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_68" * identifier))) ;) (expression_statement "local_68 = local_68 + 1;" (assignment_expression "local_68 = local_68 + 1" identifier = (binary_expression "local_68 + 1" identifier + number_literal)) ;) (if_statement "if (__s == (char *)0x0) goto LAB_001568a3;" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001568a3;" goto statement_identifier ;)) })) (expression_statement "local_70 = local_70 + 8;" (assignment_expression "local_70 = local_70 + 8" identifier = (binary_expression "local_70 + 8" identifier + number_literal)) ;) (expression_statement "__s = *(char **)((long)local_58 + uVar2);" (assignment_expression "__s = *(char **)((long)local_58 + uVar2)" identifier = (pointer_expression "*(char **)((long)local_58 + uVar2)" * (cast_expression "(char **)((long)local_58 + uVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)local_58 + uVar2)" ( (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);" statement_identifier : (expression_statement "puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);" (assignment_expression "puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1)" identifier = (cast_expression "(undefined1 *)FUN_001594b0(lVar4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001594b0(lVar4 + 1)" identifier (argument_list "(lVar4 + 1)" ( (binary_expression "lVar4 + 1" identifier + number_literal) ))))) ;)) (expression_statement "local_70 = 8;" (assignment_expression "local_70 = 8" identifier = number_literal) ;) (expression_statement "local_68 = (long *)&stack0x00000008;" (assignment_expression "local_68 = (long *)&stack0x00000008" identifier = (cast_expression "(long *)&stack0x00000008" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (expression_statement "__dest = puVar3;" (assignment_expression "__dest = puVar3" identifier = identifier) ;) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);" do (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    }" { (while_statement "while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }" { (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "memcpy(__dest,param_1,sVar1);" (call_expression "memcpy(__dest,param_1,sVar1)" identifier (argument_list "(__dest,param_1,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar2 = (ulong)local_70;" (assignment_expression "uVar2 = (ulong)local_70" identifier = (cast_expression "(ulong)local_70" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "__dest = __dest + sVar1;" (assignment_expression "__dest = __dest + sVar1" identifier = (binary_expression "__dest + sVar1" identifier + identifier)) ;) (if_statement "if (local_70 < 0x30) break;" if (parenthesized_expression "(local_70 < 0x30)" ( (binary_expression "local_70 < 0x30" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_1 = (char *)*local_68;" (assignment_expression "param_1 = (char *)*local_68" identifier = (cast_expression "(char *)*local_68" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_68" * identifier))) ;) (expression_statement "local_68 = local_68 + 1;" (assignment_expression "local_68 = local_68 + 1" identifier = (binary_expression "local_68 + 1" identifier + number_literal)) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_00156929;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00156929;" goto statement_identifier ;)) })) (expression_statement "local_70 = local_70 + 8;" (assignment_expression "local_70 = local_70 + 8" identifier = (binary_expression "local_70 + 8" identifier + number_literal)) ;) (expression_statement "param_1 = *(char **)((long)local_58 + uVar2);" (assignment_expression "param_1 = *(char **)((long)local_58 + uVar2)" identifier = (pointer_expression "*(char **)((long)local_58 + uVar2)" * (cast_expression "(char **)((long)local_58 + uVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)local_58 + uVar2)" ( (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) }) while (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (labeled_statement "LAB_00156929:\n  *__dest = 0;" statement_identifier : (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" * identifier) = number_literal) ;)) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (return_statement return IDENT ;) })))
(function_definition "undefined1 *\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)\n\n{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}" (type_identifier "undefined1") (pointer_declarator "*\nFUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" (* "*") (function_declarator "FUN_00156810(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" (identifier "FUN_00156810") (parameter_list "(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n            undefined8 param_5,undefined8 param_6)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) () ")")))) (compound_statement "{\n  size_t sVar1;\n  ulong uVar2;\n  undefined1 *puVar3;\n  long lVar4;\n  undefined1 *__dest;\n  char *__s;\n  uint local_70;\n  long *local_68;\n  long local_58 [4];\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_68 = (long *)&stack0x00000008;\n  local_70 = 8;\n  local_58[1] = param_2;\n  local_58[2] = param_3;\n  local_58[3] = param_4;\n  local_38 = param_5;\n  local_30 = param_6;\n  if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }\nLAB_00156929:\n  *__dest = 0;\n  return puVar3;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "undefined1 *__dest;" (type_identifier "undefined1") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "uint local_70;" (type_identifier "uint") (identifier "local_70") (; ";")) (declaration "long *local_68;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*local_68" (* "*") (identifier "local_68")) (; ";")) (declaration "long local_58 [4];" (sized_type_specifier "long" (long "long")) (array_declarator "local_58 [4]" (identifier "local_58") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (declaration "undefined8 local_30;" (type_identifier "undefined8") (identifier "local_30") (; ";")) (expression_statement "local_68 = (long *)&stack0x00000008;" (assignment_expression "local_68 = (long *)&stack0x00000008" (identifier "local_68") (= "=") (cast_expression "(long *)&stack0x00000008" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008")))) (; ";")) (expression_statement "local_70 = 8;" (assignment_expression "local_70 = 8" (identifier "local_70") (= "=") (number_literal "8")) (; ";")) (expression_statement "local_58[1] = param_2;" (assignment_expression "local_58[1] = param_2" (subscript_expression "local_58[1]" (identifier "local_58") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_58[2] = param_3;" (assignment_expression "local_58[2] = param_3" (subscript_expression "local_58[2]" (identifier "local_58") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_58[3] = param_4;" (assignment_expression "local_58[3] = param_4" (subscript_expression "local_58[3]" (identifier "local_58") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "local_38 = param_5;" (assignment_expression "local_38 = param_5" (identifier "local_38") (= "=") (identifier "param_5")) (; ";")) (expression_statement "local_30 = param_6;" (assignment_expression "local_30 = param_6" (identifier "local_30") (= "=") (identifier "param_6")) (; ";")) (if_statement "if (param_1 == (char *)0x0) {\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }\n  else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __dest = (undefined1 *)FUN_001594b0(1);\n    puVar3 = __dest;\n  }" ({ "{") (expression_statement "__dest = (undefined1 *)FUN_001594b0(1);" (assignment_expression "__dest = (undefined1 *)FUN_001594b0(1)" (identifier "__dest") (= "=") (cast_expression "(undefined1 *)FUN_001594b0(1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001594b0(1)" (identifier "FUN_001594b0") (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (expression_statement "puVar3 = __dest;" (assignment_expression "puVar3 = __dest" (identifier "puVar3") (= "=") (identifier "__dest")) (; ";")) (} "}")) (else_clause "else {\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" (else "else") (compound_statement "{\n    lVar4 = 0;\n    __s = param_1;\n    do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);\nLAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);\n    local_70 = 8;\n    local_68 = (long *)&stack0x00000008;\n    __dest = puVar3;\n    do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);\n  }" ({ "{") (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" (identifier "lVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" (identifier "__s") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    } while (__s != (char *)0x0);" (do "do") (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }\n      local_70 = local_70 + 8;\n      __s = *(char **)((long)local_58 + uVar2);\n    }" ({ "{") (while_statement "while( true ) {\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        sVar1 = strlen(__s);\n        lVar4 = lVar4 + sVar1;\n        uVar2 = (ulong)local_70;\n        if (local_70 < 0x30) break;\n        __s = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (__s == (char *)0x0) goto LAB_001568a3;\n      }" ({ "{") (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" (identifier "sVar1") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "lVar4 = lVar4 + sVar1;" (assignment_expression "lVar4 = lVar4 + sVar1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + sVar1" (identifier "lVar4") (+ "+") (identifier "sVar1"))) (; ";")) (expression_statement "uVar2 = (ulong)local_70;" (assignment_expression "uVar2 = (ulong)local_70" (identifier "uVar2") (= "=") (cast_expression "(ulong)local_70" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "local_70"))) (; ";")) (if_statement "if (local_70 < 0x30) break;" (if "if") (parenthesized_expression "(local_70 < 0x30)" (( "(") (binary_expression "local_70 < 0x30" (identifier "local_70") (< "<") (number_literal "0x30")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "__s = (char *)*local_68;" (assignment_expression "__s = (char *)*local_68" (identifier "__s") (= "=") (cast_expression "(char *)*local_68" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_68" (* "*") (identifier "local_68")))) (; ";")) (expression_statement "local_68 = local_68 + 1;" (assignment_expression "local_68 = local_68 + 1" (identifier "local_68") (= "=") (binary_expression "local_68 + 1" (identifier "local_68") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (__s == (char *)0x0) goto LAB_001568a3;" (if "if") (parenthesized_expression "(__s == (char *)0x0)" (( "(") (binary_expression "__s == (char *)0x0" (identifier "__s") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_001568a3;" (goto "goto") (statement_identifier "LAB_001568a3") (; ";"))) (} "}"))) (expression_statement "local_70 = local_70 + 8;" (assignment_expression "local_70 = local_70 + 8" (identifier "local_70") (= "=") (binary_expression "local_70 + 8" (identifier "local_70") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "__s = *(char **)((long)local_58 + uVar2);" (assignment_expression "__s = *(char **)((long)local_58 + uVar2)" (identifier "__s") (= "=") (pointer_expression "*(char **)((long)local_58 + uVar2)" (* "*") (cast_expression "(char **)((long)local_58 + uVar2)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)local_58 + uVar2)" (( "(") (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_58")) (+ "+") (identifier "uVar2")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (labeled_statement "LAB_001568a3:\n    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);" (statement_identifier "LAB_001568a3") (: ":") (expression_statement "puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);" (assignment_expression "puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)FUN_001594b0(lVar4 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001594b0(lVar4 + 1)" (identifier "FUN_001594b0") (argument_list "(lVar4 + 1)" (( "(") (binary_expression "lVar4 + 1" (identifier "lVar4") (+ "+") (number_literal "1")) () ")"))))) (; ";"))) (expression_statement "local_70 = 8;" (assignment_expression "local_70 = 8" (identifier "local_70") (= "=") (number_literal "8")) (; ";")) (expression_statement "local_68 = (long *)&stack0x00000008;" (assignment_expression "local_68 = (long *)&stack0x00000008" (identifier "local_68") (= "=") (cast_expression "(long *)&stack0x00000008" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008")))) (; ";")) (expression_statement "__dest = puVar3;" (assignment_expression "__dest = puVar3" (identifier "__dest") (= "=") (identifier "puVar3")) (; ";")) (do_statement "do {\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    } while (param_1 != (char *)0x0);" (do "do") (compound_statement "{\n      while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }\n      local_70 = local_70 + 8;\n      param_1 = *(char **)((long)local_58 + uVar2);\n    }" ({ "{") (while_statement "while( true ) {\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        sVar1 = strlen(param_1);\n        memcpy(__dest,param_1,sVar1);\n        uVar2 = (ulong)local_70;\n        __dest = __dest + sVar1;\n        if (local_70 < 0x30) break;\n        param_1 = (char *)*local_68;\n        local_68 = local_68 + 1;\n        if (param_1 == (char *)0x0) goto LAB_00156929;\n      }" ({ "{") (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "memcpy(__dest,param_1,sVar1);" (call_expression "memcpy(__dest,param_1,sVar1)" (identifier "memcpy") (argument_list "(__dest,param_1,sVar1)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") (, ",") (identifier "sVar1") () ")"))) (; ";")) (expression_statement "uVar2 = (ulong)local_70;" (assignment_expression "uVar2 = (ulong)local_70" (identifier "uVar2") (= "=") (cast_expression "(ulong)local_70" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "local_70"))) (; ";")) (expression_statement "__dest = __dest + sVar1;" (assignment_expression "__dest = __dest + sVar1" (identifier "__dest") (= "=") (binary_expression "__dest + sVar1" (identifier "__dest") (+ "+") (identifier "sVar1"))) (; ";")) (if_statement "if (local_70 < 0x30) break;" (if "if") (parenthesized_expression "(local_70 < 0x30)" (( "(") (binary_expression "local_70 < 0x30" (identifier "local_70") (< "<") (number_literal "0x30")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_1 = (char *)*local_68;" (assignment_expression "param_1 = (char *)*local_68" (identifier "param_1") (= "=") (cast_expression "(char *)*local_68" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_68" (* "*") (identifier "local_68")))) (; ";")) (expression_statement "local_68 = local_68 + 1;" (assignment_expression "local_68 = local_68 + 1" (identifier "local_68") (= "=") (binary_expression "local_68 + 1" (identifier "local_68") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_1 == (char *)0x0) goto LAB_00156929;" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00156929;" (goto "goto") (statement_identifier "LAB_00156929") (; ";"))) (} "}"))) (expression_statement "local_70 = local_70 + 8;" (assignment_expression "local_70 = local_70 + 8" (identifier "local_70") (= "=") (binary_expression "local_70 + 8" (identifier "local_70") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "param_1 = *(char **)((long)local_58 + uVar2);" (assignment_expression "param_1 = *(char **)((long)local_58 + uVar2)" (identifier "param_1") (= "=") (pointer_expression "*(char **)((long)local_58 + uVar2)" (* "*") (cast_expression "(char **)((long)local_58 + uVar2)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)local_58 + uVar2)" (( "(") (binary_expression "(long)local_58 + uVar2" (cast_expression "(long)local_58" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_58")) (+ "+") (identifier "uVar2")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_00156929:\n  *__dest = 0;" (statement_identifier "LAB_00156929") (: ":") (expression_statement "*__dest = 0;" (assignment_expression "*__dest = 0" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

char * function_1(char *var_1,...)

{
  size_t var_5;
  type_1 var_7;
  char *pcVar3;
  type_2 in_RCX;
  type_2 in_RDX;
  long var_4;
  char *var_6;
  type_2 in_RSI;
  type_2 in_R8;
  type_2 in_R9;
  type_3 args;
  long local_58 [4];
  type_2 local_38;
  type_2 local_30;
  
  args[0].overflow_arg_area = &stack0x00000008;
  args[0].gp_offset = 8;
  local_58[1] = in_RSI;
  local_58[2] = in_RDX;
  local_58[3] = in_RCX;
  local_38 = in_R8;
  local_30 = in_R9;
  if (var_1 == (char *)0x0) {
    var_6 = (char *)var_2(1);
    pcVar3 = var_6;
  }
  else {
    var_4 = 0;
    var_6 = var_1;
    do {
      while( true ) {
        var_5 = var_3(var_6);
        var_4 = var_4 + var_5;
        var_7 = (type_1)args[0].gp_offset;
        if (args[0].gp_offset < 0x30) break;
                    /* WARNING: Load size is inaccurate */
        var_6 = *args[0].overflow_arg_area;
        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);
        if (var_6 == (char *)0x0) goto LAB_001568a3;
      }
      args[0].gp_offset = args[0].gp_offset + 8;
      var_6 = *(char **)((long)local_58 + var_7);
    } while (var_6 != (char *)0x0);
LAB_001568a3:
    pcVar3 = (char *)var_2(var_4 + 1);
    args[0].gp_offset = 8;
    args[0].overflow_arg_area = &stack0x00000008;
    var_6 = pcVar3;
    do {
      while( true ) {
        var_5 = var_3(var_1);
        var_8(var_6,var_1,var_5);
        var_7 = (type_1)args[0].gp_offset;
        var_6 = var_6 + var_5;
        if (args[0].gp_offset < 0x30) break;
                    /* WARNING: Load size is inaccurate */
        var_1 = *args[0].overflow_arg_area;
        args[0].overflow_arg_area = (void *)((long)args[0].overflow_arg_area + 8);
        if (var_1 == (char *)0x0) goto LAB_00156929;
      }
      args[0].gp_offset = args[0].gp_offset + 8;
      var_1 = *(char **)((long)local_58 + var_7);
    } while (var_1 != (char *)0x0);
  }
LAB_00156929:
  *var_6 = '\0';
  return pcVar3;
}


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

undefined1 *
MASKED(char *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
            undefined8 param_5,undefined8 param_6)

{
  size_t sVar1;
  ulong uVar2;
  undefined1 *puVar3;
  long lVar4;
  undefined1 *__dest;
  char *__s;
  uint local_70;
  long *local_68;
  long local_58 [4];
  undefined8 local_38;
  undefined8 local_30;
  
  local_68 = (long *)&stack0x00000008;
  local_70 = 8;
  local_58[1] = param_2;
  local_58[2] = param_3;
  local_58[3] = param_4;
  local_38 = param_5;
  local_30 = param_6;
  if (param_1 == (char *)0x0) {
    __dest = (undefined1 *)FUN_001594b0(1);
    puVar3 = __dest;
  }
  else {
    lVar4 = 0;
    __s = param_1;
    do {
      while( true ) {
        sVar1 = strlen(__s);
        lVar4 = lVar4 + sVar1;
        uVar2 = (ulong)local_70;
        if (local_70 < 0x30) break;
        __s = (char *)*local_68;
        local_68 = local_68 + 1;
        if (__s == (char *)0x0) goto LAB_001568a3;
      }
      local_70 = local_70 + 8;
      __s = *(char **)((long)local_58 + uVar2);
    } while (__s != (char *)0x0);
LAB_001568a3:
    puVar3 = (undefined1 *)FUN_001594b0(lVar4 + 1);
    local_70 = 8;
    local_68 = (long *)&stack0x00000008;
    __dest = puVar3;
    do {
      while( true ) {
        sVar1 = strlen(param_1);
        memcpy(__dest,param_1,sVar1);
        uVar2 = (ulong)local_70;
        __dest = __dest + sVar1;
        if (local_70 < 0x30) break;
        param_1 = (char *)*local_68;
        local_68 = local_68 + 1;
        if (param_1 == (char *)0x0) goto LAB_00156929;
      }
      local_70 = local_70 + 8;
      param_1 = *(char **)((long)local_58 + uVar2);
    } while (param_1 != (char *)0x0);
  }
LAB_00156929:
  *__dest = 0;
  return puVar3;
}

