// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_ConcatObj
Jim_Obj *Jim_ConcatObj(Jim_Interp *interp, int objc, Jim_Obj *const *objv)
{
    int i;

    for (i = 0; i < objc; i++) {
        if (!Jim_IsList(objv[i]))
            break;
    }
    if (i == objc) {
        Jim_Obj *objPtr = Jim_NewListObj(interp, NULL, 0);

        for (i = 0; i < objc; i++)
            ListAppendList(objPtr, objv[i]);
        return objPtr;
    }
    else {

        int len = 0, objLen;
        char *bytes, *p;


        for (i = 0; i < objc; i++) {
            len += Jim_Length(objv[i]);
        }
        if (objc)
            len += objc - 1;

        p = bytes = Jim_Alloc(len + 1);
        for (i = 0; i < objc; i++) {
            const char *s = Jim_GetString(objv[i], &objLen);


            while (objLen && isspace(UCHAR(*s))) {
                s++;
                objLen--;
                len--;
            }

            while (objLen && isspace(UCHAR(s[objLen - 1]))) {

                if (objLen > 1 && s[objLen - 2] == '\\') {
                    break;
                }
                objLen--;
                len--;
            }
            memcpy(p, s, objLen);
            p += objLen;
            if (i + 1 != objc) {
                if (objLen)
                    *p++ = ' ';
                else {
                    len--;
                }
            }
        }
        *p = '\0';
        return Jim_NewStringObjNoAlloc(interp, bytes, len);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r13
movl %esi, %r15d
movl %esi, %ebx
testl %esi, %esi
movl %esi, -0x2c(%rbp)
jle 0xec8b
xorl %eax, %eax
leaq 0x266f2(%rip), %rcx     # 0x35368
movq (%r13,%rax,8), %rdx
cmpq %rcx, 0x8(%rdx)
jne 0xec96
incq %rax
cmpq %rax, %rbx
jne 0xec76
jmp 0xec9a
je 0xec9a
movq %rdi, -0x50(%rbp)
jmp 0xed29
cmpl %eax, %ebx
jne 0xecf7
callq 0xae38
movq %rax, %r14
leaq 0x266bf(%rip), %rax     # 0x35368
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
testl %r15d, %r15d
jle 0xece5
xorl %r15d, %r15d
movq (%r13,%r15,8), %rax
movq 0x18(%rax), %rcx
movl 0x20(%rax), %edx
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe263
incq %r15
cmpq %r15, %rbx
jne 0xecc4
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, -0x50(%rbp)
testl %r15d, %r15d
jle 0xed29
xorl %r12d, %r12d
xorl %r15d, %r15d
movq (%r13,%r12,8), %r14
cmpq $0x0, (%r14)
jne 0xed1b
movq 0x8(%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
addl 0x14(%r14), %r15d
incq %r12
cmpq %r12, %rbx
jne 0xed06
jmp 0xed2c
xorl %r15d, %r15d
xorl %ecx, %ecx
movl -0x2c(%rbp), %r12d
movl %r12d, %eax
subl $0x1, %eax
cmovbl %ecx, %eax
leal (%r15,%rax), %r14d
addl %r15d, %eax
incl %eax
movslq %eax, %rsi
xorl %edi, %edi
callq *0x28539(%rip)          # 0x37288
testl %r12d, %r12d
movq %rax, -0x58(%rbp)
jle 0xeea3
movq %rax, -0x38(%rbp)
xorl %r15d, %r15d
movl %r14d, %edi
movq %r13, -0x40(%rbp)
movl %r15d, %eax
movq (%r13,%rax,8), %r14
movq (%r14), %rbx
testq %rbx, %rbx
jne 0xed8b
movq 0x8(%r14), %rax
movl %edi, %ebx
movq %r14, %rdi
callq *0x18(%rax)
movl %ebx, %edi
movq (%r14), %rbx
movl 0x14(%r14), %r14d
testq %r14, %r14
je 0xee4a
movq %r15, -0x48(%rbp)
movslq %r14d, %r15
movl %edi, %r12d
callq 0x64e0
movl %r12d, %edi
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
movq (%rax), %rax
movl %r12d, %ecx
subl %r15d, %ecx
movslq %r14d, %r8
movq %r14, %r13
shlq $0x20, %r13
xorl %r12d, %r12d
movzbl (%rbx,%r12), %edx
testb $0x20, 0x1(%rax,%rdx,2)
je 0xede5
incq %r12
addq %rsi, %r13
cmpl %r12d, %r14d
jne 0xedca
movl %ecx, %edi
jmp 0xee3e
movl %edi, %r14d
movq %r8, -0x60(%rbp)
callq 0x64e0
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
movq (%rax), %rax
subl %r12d, %r14d
subq %r12, %r15
movl %r14d, %edi
subl %r15d, %edi
addq %rbx, %r12
movq -0x60(%rbp), %rcx
addq %rbx, %rcx
decq %rcx
movzbl (%rcx), %edx
testb $0x20, 0x1(%rax,%rdx,2)
je 0xee65
cmpq $0x2, %r15
jl 0xee2d
cmpb $0x5c, -0x1(%rcx)
je 0xee65
decq %r15
decl %r14d
addq %rsi, %r13
decq %rcx
testq %r15, %r15
jne 0xee17
movq -0x40(%rbp), %r13
movl -0x2c(%rbp), %r12d
movq -0x48(%rbp), %r15
incl %r15d
xorl %eax, %eax
cmpl %r12d, %r15d
setne %al
subl %eax, %edi
movl %edi, %r14d
cmpl %r12d, %r15d
jl 0xed6a
jmp 0xeead
sarq $0x20, %r13
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6320
addq %rbx, %r13
movq -0x48(%rbp), %r15
incl %r15d
movl -0x2c(%rbp), %r12d
cmpl %r12d, %r15d
je 0xeea9
movb $0x20, (%r13)
incq %r13
movq %r13, -0x38(%rbp)
movl %r14d, %edi
movq -0x40(%rbp), %r13
jmp 0xee5a
movq %rax, -0x38(%rbp)
jmp 0xeead
movq %r13, -0x38(%rbp)
movq -0x38(%rbp), %rax
movb $0x0, (%rax)
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movl %r14d, %edx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xaee8