// File: /workspace/github_c_makefile_star2_O1/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, %r12
movl %esi, %r14d
movl %esi, %esi
xorl %eax, %eax
testl %r14d, %r14d
jle 0xeced
leaq 0x2767f(%rip), %rcx     # 0x36358
movq (%r12,%rax,8), %rdx
cmpq %rcx, 0x8(%rdx)
jne 0xeced
incq %rax
cmpq %rax, %rsi
jne 0xecd9
movl %esi, %eax
cmpl %r14d, %eax
jne 0xed50
movq %rsi, %r13
callq 0xae58
movq %rax, %r15
leaq 0x27654(%rip), %rax     # 0x36358
movq %rax, 0x8(%r15)
movq $0x0, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r15)
testl %r14d, %r14d
jle 0xed3e
xorl %ebx, %ebx
movq (%r12,%rbx,8), %rax
movl 0x20(%rax), %edx
movq 0x18(%rax), %rcx
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe29d
incq %rbx
cmpq %rbx, %r13
jne 0xed1e
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, -0x48(%rbp)
movq %r12, -0x38(%rbp)
xorl %ebx, %ebx
movl $0x0, %r13d
testl %r14d, %r14d
movq %rsi, -0x30(%rbp)
jle 0xed97
xorl %r12d, %r12d
xorl %r13d, %r13d
movq -0x38(%rbp), %rax
movq (%rax,%r12,8), %r15
cmpq $0x0, (%r15)
jne 0xed8b
movq 0x8(%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq -0x30(%rbp), %rsi
addl 0x14(%r15), %r13d
incq %r12
cmpq %r12, %rsi
jne 0xed6f
movl %r14d, %eax
subl $0x1, %eax
cmovbl %ebx, %eax
leal (%rax,%r13), %r12d
addl %r13d, %eax
incl %eax
movslq %eax, %rsi
xorl %edi, %edi
callq *0x294d4(%rip)          # 0x38288
testl %r14d, %r14d
movq %rax, -0x40(%rbp)
jle 0xeece
xorl %ebx, %ebx
movq %rax, %r14
movq %r14, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq (%rax,%rbx,8), %r14
cmpq $0x0, (%r14)
jne 0xede2
movq 0x8(%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq %rbx, -0x50(%rbp)
movl 0x14(%r14), %r15d
movq (%r14), %r14
testl %r15d, %r15d
je 0xee26
callq 0x64e0
movq (%rax), %rax
movl %r12d, %r13d
subl %r15d, %r13d
leal -0x1(%r15), %ecx
leaq (%r14,%rcx), %rbx
incq %rbx
movzbl (%r14), %ecx
testb $0x20, 0x1(%rax,%rcx,2)
je 0xee26
incq %r14
decl %r12d
decl %r15d
jne 0xee0b
xorl %r15d, %r15d
jmp 0xee2c
movl %r12d, %r13d
movq %r14, %rbx
testl %r15d, %r15d
sete %r12b
movq -0x58(%rbp), %r14
je 0xee8a
callq 0x64e0
movq (%rax), %rax
movslq %r15d, %rcx
movzbl -0x1(%rcx,%rbx), %edx
testb $0x20, 0x1(%rax,%rdx,2)
je 0xee8a
movl %r13d, %edx
subl %r15d, %edx
cmpq $0x2, %rcx
jl 0xee63
cmpb $0x5c, -0x2(%rbx,%rcx)
je 0xee8a
cmpq $0x1, %rcx
sete %r12b
je 0xee84
decl %r13d
movzbl -0x2(%rbx,%rcx), %esi
decl %r15d
decq %rcx
testb $0x20, 0x1(%rax,%rsi,2)
jne 0xee56
jmp 0xee8a
xorl %r15d, %r15d
movl %edx, %r13d
movslq %r15d, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x6320
addq %r15, %r14
movq -0x50(%rbp), %rbx
incq %rbx
movq -0x30(%rbp), %rax
cmpq %rax, %rbx
je 0xeec0
testb $0x1, %r12b
je 0xeeb9
decl %r13d
jmp 0xeec0
movb $0x20, (%r14)
incq %r14
movl %r13d, %r12d
cmpq %rax, %rbx
jne 0xedc6
jmp 0xeed4
movl %r12d, %r13d
movq %rax, %r14
movb $0x0, (%r14)
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %r13d, %edx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xaf08