// File: /workspace/github_c_makefile_star2_O2/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 $0x68, %rsp
movq %rdx, %r12
movl %esi, %r15d
movq %rdi, -0x50(%rbp)
xorl %ecx, %ecx
testl %esi, %esi
movl $0x0, %eax
cmovgl %esi, %eax
movl %eax, %r13d
leaq 0x236b3(%rip), %rdx     # 0x31408
cmpq %rcx, %r13
je 0xdd6b
movq (%r12,%rcx,8), %rsi
cmpq %rdx, 0x8(%rsi)
jne 0xdd69
incq %rcx
jmp 0xdd55
movl %ecx, %eax
xorl %r14d, %r14d
cmpl %r15d, %eax
jne 0xdd9d
movq -0x50(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x745b
movq %rax, %rbx
cmpq %r14, %r13
je 0xdf5f
movq (%r12,%r14,8), %rsi
movq %rbx, %rdi
callq 0xd8ea
incq %r14
jmp 0xdd83
xorl %ebx, %ebx
cmpq %r14, %r13
je 0xddb4
movq (%r12,%r14,8), %rdi
callq 0xa61a
addl %eax, %ebx
incq %r14
jmp 0xdd9f
xorl %r14d, %r14d
movl %r15d, %eax
subl $0x1, %eax
cmovbl %r14d, %eax
leal (%rbx,%rax), %ecx
movq %rcx, -0x38(%rbp)
addl %ebx, %eax
incl %eax
movslq %eax, %rsi
xorl %edi, %edi
callq *0x254b1(%rip)          # 0x33288
movq %rax, %rbx
movl %r15d, %ecx
movq %rcx, -0x78(%rbp)
movq %rax, -0x70(%rbp)
movq %r12, -0x60(%rbp)
movq %r13, -0x58(%rbp)
cmpq %r13, %r14
je 0xdf48
movq %rbx, -0x80(%rbp)
movq %r14, -0x88(%rbp)
movq (%r12,%r14,8), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x7fc7
movq %rax, %r15
movslq -0x2c(%rbp), %rcx
movq -0x38(%rbp), %rax
subl %ecx, %eax
movq %rax, -0x40(%rbp)
movl %ecx, %eax
addq %r15, %rax
movq %rax, -0x48(%rbp)
leal -0x1(%rcx), %r13d
movq %rcx, %r12
shlq $0x20, %r12
movq %rcx, -0x68(%rbp)
leaq -0x1(%rcx), %r14
movabsq $-0x100000000, %rbx     # imm = 0xFFFFFFFF00000000
cmpl $-0x1, %r13d
je 0xde7e
callq 0x64e0
movq (%rax), %rax
movzbl (%r15), %ecx
testb $0x20, 0x1(%rax,%rcx,2)
je 0xde84
incq %r15
movl %r13d, -0x2c(%rbp)
movq -0x38(%rbp), %rax
decl %eax
movq %rax, -0x38(%rbp)
decq -0x68(%rbp)
decl %r13d
addq %rbx, %r12
decq %r14
jmp 0xde45
movq -0x48(%rbp), %r15
jmp 0xde8c
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq %r15, -0x48(%rbp)
addq %r15, %r14
xorl %r15d, %r15d
movq -0x68(%rbp), %rbx
addq %r15, %rbx
je 0xdeda
callq 0x64e0
movq (%rax), %rax
movzbl (%r14,%r15), %ecx
testb $0x20, 0x1(%rax,%rcx,2)
je 0xdeda
cmpq $0x2, %rbx
jl 0xdec1
cmpb $0x5c, -0x1(%r14,%r15)
je 0xdeda
movl %r13d, -0x2c(%rbp)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %rax, %r12
decq %r15
decl %r13d
jmp 0xde96
sarq $0x20, %r12
movq -0x80(%rbp), %rbx
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
movq %r12, %rdx
callq 0x6320
movslq -0x2c(%rbp), %rax
addq %rax, %rbx
movq -0x88(%rbp), %r14
incq %r14
movl -0x40(%rbp), %ecx
addq %r15, %rcx
movq %rcx, -0x38(%rbp)
cmpq -0x78(%rbp), %r14
jne 0xdf1f
movq -0x60(%rbp), %r12
movq -0x58(%rbp), %r13
jmp 0xdded
testl %eax, %eax
movq -0x60(%rbp), %r12
movq -0x58(%rbp), %r13
je 0xdf36
movb $0x20, (%rbx)
incq %rbx
jmp 0xdded
movq -0x40(%rbp), %rax
addl %r15d, %eax
decl %eax
movq %rax, -0x38(%rbp)
jmp 0xdded
movb $0x0, (%rbx)
movq -0x50(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0xa654
movq %rax, %rbx
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq