// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: JimMakeListStringRep
static void JimMakeListStringRep(Jim_Obj *objPtr, Jim_Obj **objv, int objc)
{
    #define STATIC_QUOTING_LEN 32
    int i, bufLen, realLength;
    const char *strRep;
    char *p;
    unsigned char *quotingType, staticQuoting[STATIC_QUOTING_LEN];


    if (objc > STATIC_QUOTING_LEN) {
        quotingType = Jim_Alloc(objc);
    }
    else {
        quotingType = staticQuoting;
    }
    bufLen = 0;
    for (i = 0; i < objc; i++) {
        int len;

        strRep = Jim_GetString(objv[i], &len);
        quotingType[i] = ListElementQuotingType(strRep, len);
        switch (quotingType[i]) {
            case JIM_ELESTR_SIMPLE:
                if (i != 0 || strRep[0] != '#') {
                    bufLen += len;
                    break;
                }

                quotingType[i] = JIM_ELESTR_BRACE;

            case JIM_ELESTR_BRACE:
                bufLen += len + 2;
                break;
            case JIM_ELESTR_QUOTE:
                bufLen += len * 2;
                break;
        }
        bufLen++;
    }
    bufLen++;


    p = objPtr->bytes = Jim_Alloc(bufLen + 1);
    realLength = 0;
    for (i = 0; i < objc; i++) {
        int len, qlen;

        strRep = Jim_GetString(objv[i], &len);

        switch (quotingType[i]) {
            case JIM_ELESTR_SIMPLE:
                memcpy(p, strRep, len);
                p += len;
                realLength += len;
                break;
            case JIM_ELESTR_BRACE:
                *p++ = '{';
                memcpy(p, strRep, len);
                p += len;
                *p++ = '}';
                realLength += len + 2;
                break;
            case JIM_ELESTR_QUOTE:
                if (i == 0 && strRep[0] == '#') {
                    *p++ = '\\';
                    realLength++;
                }
                qlen = BackslashQuoteString(strRep, len, p);
                p += qlen;
                realLength += qlen;
                break;
        }

        if (i + 1 != objc) {
            *p++ = ' ';
            realLength++;
        }
    }
    *p = '\0';
    objPtr->length = realLength;

    if (quotingType != staticQuoting) {
        Jim_Free(quotingType);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r12
movq %rdi, %rbx
movl %edx, %esi
cmpl $0x21, %edx
movq %rsi, -0x30(%rbp)
jl 0x18fa6
movq %rbx, -0x40(%rbp)
xorl %edi, %edi
callq *0x1e2e8(%rip)          # 0x37288
movq -0x30(%rbp), %rsi
jmp 0x18fb6
testl %edx, %edx
jle 0x19371
movq %rbx, -0x40(%rbp)
leaq -0x70(%rbp), %rax
xorl %r13d, %r13d
xorl %r14d, %r14d
movq %rax, -0x38(%rbp)
movq (%r12,%r13,8), %rbx
movq (%rbx), %rcx
testq %rcx, %rcx
jne 0x18fe1
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rsi
movq (%rbx), %rcx
movslq 0x14(%rbx), %r15
testq %r15, %r15
je 0x19197
movl %r15d, %edx
movzbl (%rcx), %edi
movb $0x1, %bl
cmpl $0x22, %edi
je 0x19004
cmpl $0x7b, %edi
jne 0x190c8
cmpb $0x5c, -0x1(%rcx,%r15)
jne 0x19021
movq -0x38(%rbp), %rax
movb $0x2, (%rax,%r13)
movq -0x30(%rbp), %rsi
addl %r15d, %r15d
jmp 0x191a2
testl %r15d, %r15d
jle 0x19129
xorl %r8d, %r8d
xorl %edi, %edi
xorl %r9d, %r9d
movslq %r9d, %r10
movzbl (%rcx,%r10), %r11d
cmpl $0x5c, %r11d
jle 0x19056
cmpl $0x5d, %r11d
je 0x1907b
cmpl $0x7d, %r11d
je 0x19080
cmpl $0x7b, %r11d
jne 0x1908b
incl %edi
jmp 0x1908b
cmpl $0x5b, %r11d
je 0x19088
cmpl $0x5c, %r11d
jne 0x1908b
movzbl 0x1(%rcx,%r10), %r11d
testl %r11d, %r11d
je 0x1908b
cmpl $0xa, %r11d
je 0x1900c
incq %r10
movl %r10d, %r9d
jmp 0x1908b
decl %r8d
jmp 0x1908b
testl %edi, %edi
jle 0x1900c
decl %edi
jmp 0x1908b
incl %r8d
incl %r9d
cmpl %r15d, %r9d
jl 0x19032
testl %r8d, %r8d
sets %r8b
testl %edi, %edi
setne %r9b
orb %r8b, %r9b
movzbl %bl, %edi
orb %r9b, %bl
testb %r9b, %r9b
movl $0x2, %eax
cmovnel %eax, %edi
testb %bl, %bl
movq -0x38(%rbp), %rax
je 0x1914c
movl %edi, %ebx
movq -0x30(%rbp), %rsi
jmp 0x19131
testl %r15d, %r15d
jle 0x19182
xorl %edi, %edi
movzbl (%rcx,%rdi), %r8d
cmpl $0x5a, %r8d
jg 0x190fd
cmpl $0x3b, %r8d
ja 0x1911f
movl %r8d, %r8d
movabsq $0x800001500003e00, %r9 # imm = 0x800001500003E00
btq %r8, %r9
jb 0x19004
jmp 0x1911f
leal -0x5b(%r8), %r9d
cmpl $0x3, %r9d
jb 0x19004
cmpl $0x7b, %r8d
je 0x191b6
cmpl $0x7d, %r8d
je 0x191b6
incq %rdi
cmpq %rdi, %rdx
jne 0x190d3
jmp 0x19182
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rax
movb %bl, (%rax,%r13)
cmpb $0x2, %bl
je 0x19019
movzbl %bl, %edx
cmpl $0x1, %edx
je 0x1919e
leaq (%rax,%r13), %rdx
jmp 0x1918b
xorl %r9d, %r9d
movq -0x30(%rbp), %rsi
movzbl (%rcx,%r9), %edi
leal -0x20(%rdi), %r8d
cmpl $0x3d, %r8d
ja 0x19172
movabsq $0x3800000008000015, %r10 # imm = 0x3800000008000015
btq %r8, %r10
jb 0x19197
addl $-0x9, %edi
cmpl $0x5, %edi
jb 0x19197
incq %r9
cmpq %r9, %rdx
jne 0x19153
leaq (%rax,%r13), %rdx
movb $0x0, (%rax,%r13)
testq %r13, %r13
jne 0x191a2
cmpb $0x23, (%rcx)
je 0x1919b
jmp 0x191a2
leaq (%rax,%r13), %rdx
movb $0x1, (%rdx)
addl $0x2, %r15d
addl %r15d, %r14d
incl %r14d
incq %r13
cmpq %rsi, %r13
jne 0x18fc0
jmp 0x191bd
xorl %ebx, %ebx
jmp 0x19004
movq %r12, -0x48(%rbp)
addl $0x2, %r14d
movslq %r14d, %rsi
xorl %r14d, %r14d
xorl %edi, %edi
callq *0x1e0b5(%rip)          # 0x37288
movq -0x30(%rbp), %r10
movq %rax, %r13
movq -0x40(%rbp), %rax
movq %r13, (%rax)
leaq 0xe0c4(%rip), %r12      # 0x272ac
xorl %r15d, %r15d
movq -0x48(%rbp), %rax
movq (%rax,%r14,8), %rbx
movq (%rbx), %rsi
testq %rsi, %rsi
jne 0x1920c
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq -0x30(%rbp), %r10
movq (%rbx), %rsi
movslq 0x14(%rbx), %rbx
movq -0x38(%rbp), %rax
movzbl (%rax,%r14), %eax
cmpl $0x2, %eax
je 0x19272
cmpl $0x1, %eax
je 0x19245
testl %eax, %eax
jne 0x19331
movq %r13, %rdi
movq %rbx, %rdx
callq 0x6320
movq -0x30(%rbp), %r10
addq %rbx, %r13
addl %ebx, %r15d
jmp 0x19331
leaq 0x1(%r13), %rdi
movb $0x7b, (%r13)
movq %rbx, %rdx
callq 0x6320
movq -0x30(%rbp), %r10
addq %rbx, %r13
addq $0x2, %r13
movb $0x7d, -0x1(%r13)
addl %ebx, %r15d
addl $0x2, %r15d
jmp 0x19331
testq %r14, %r14
jne 0x19287
cmpb $0x23, (%rsi)
jne 0x19287
movb $0x5c, (%r13)
incq %r13
incl %r15d
movq %r13, %rax
testl %ebx, %ebx
je 0x19323
movl %ebx, %ecx
xorl %edx, %edx
movq %r13, %rax
movb (%rsi,%rdx), %dil
movzbl %dil, %r8d
cmpl $0x1f, %r8d
jle 0x192d9
leal -0x20(%r8), %r9d
cmpl $0x3d, %r9d
ja 0x192f3
movabsq $0x3800000008000015, %r11 # imm = 0x3800000008000015
btq %r9, %r11
jae 0x192f3
movb $0x5c, (%rax)
movb (%rsi,%rdx), %dil
movb %dil, 0x1(%rax)
addq $0x2, %rax
incq %rdx
cmpl %edx, %ecx
jne 0x19299
jmp 0x19323
addl $-0x9, %r8d
cmpl $0x4, %r8d
ja 0x192ff
movslq (%r12,%r8,4), %rdi
addq %r12, %rdi
jmpq *%rdi
movw $0x745c, (%rax)         # imm = 0x745C
jmp 0x192cc
cmpl $0x7d, %r8d
je 0x192c1
cmpl $0x7b, %r8d
je 0x192c1
movb %dil, (%rax)
incq %rax
jmp 0x192d0
movw $0x725c, (%rax)         # imm = 0x725C
jmp 0x192cc
movw $0x765c, (%rax)         # imm = 0x765C
jmp 0x192cc
movw $0x665c, (%rax)         # imm = 0x665C
jmp 0x192cc
movw $0x6e5c, (%rax)         # imm = 0x6E5C
jmp 0x192cc
movb $0x0, (%rax)
subq %r13, %rax
cltq
addq %rax, %r13
addl %eax, %r15d
incq %r14
cmpq %r10, %r14
je 0x19344
movb $0x20, (%r13)
incq %r13
incl %r15d
cmpq %r10, %r14
jne 0x191eb
movb $0x0, (%r13)
movq -0x40(%rbp), %rax
movl %r15d, 0x14(%rax)
leaq -0x70(%rbp), %rax
movq -0x38(%rbp), %rdi
cmpq %rax, %rdi
je 0x1938b
xorl %esi, %esi
callq *0x1df19(%rip)          # 0x37288
jmp 0x1938b
movl $0x2, %esi
xorl %edi, %edi
callq *0x1df0a(%rip)          # 0x37288
movq %rax, (%rbx)
movb $0x0, (%rax)
movl $0x0, 0x14(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq