// File: /workspace/github_c_makefile_star2_O1/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
movl %edx, %r12d
movq %rsi, -0x48(%rbp)
movq %rdi, %r13
movl %edx, %r15d
cmpl $0x21, %edx
jl 0x1949d
xorl %edi, %edi
movq %r15, %rsi
callq *0x1edf0(%rip)          # 0x38288
movq %rax, %r14
jmp 0x194a1
leaq -0x70(%rbp), %r14
testl %r12d, %r12d
movq %r13, -0x38(%rbp)
movq %r14, -0x40(%rbp)
jle 0x19693
movl %r12d, -0x2c(%rbp)
movq %r15, %r12
xorl %r15d, %r15d
xorl %r13d, %r13d
movq -0x48(%rbp), %rax
movq (%rax,%r15,8), %rbx
cmpq $0x0, (%rbx)
jne 0x194d7
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movslq 0x14(%rbx), %rax
movq (%rbx), %rcx
testq %rax, %rax
je 0x195da
movzbl (%rcx), %esi
movb $0x1, %dl
cmpl $0x22, %esi
je 0x194fa
cmpl $0x7b, %esi
jne 0x1961e
movb $0x2, %sil
cmpb $0x5c, -0x1(%rcx,%rax)
je 0x195dd
xorl %edi, %edi
testl %eax, %eax
jle 0x1958a
xorl %r8d, %r8d
xorl %r9d, %r9d
movslq %r9d, %r10
movzbl (%rcx,%r10), %r11d
cmpl $0x5c, %r11d
jle 0x19539
cmpl $0x5d, %r11d
je 0x19562
cmpl $0x7d, %r11d
je 0x19566
cmpl $0x7b, %r11d
jne 0x19572
incl %r8d
jmp 0x19572
cmpl $0x5b, %r11d
je 0x19570
cmpl $0x5c, %r11d
jne 0x19572
movzbl 0x1(%rcx,%r10), %r11d
testl %r11d, %r11d
je 0x19572
cmpl $0xa, %r11d
je 0x195dd
incq %r10
movl %r10d, %r9d
jmp 0x19572
decl %edi
jmp 0x19572
testl %r8d, %r8d
jle 0x195dd
decl %r8d
jmp 0x19572
incl %edi
incl %r9d
cmpl %eax, %r9d
jl 0x19514
testl %edi, %edi
sets %sil
testl %r8d, %r8d
setne %dil
orb %sil, %dil
movzbl %dl, %esi
testb %dil, %dil
movl $0x2, %r8d
cmovnel %r8d, %esi
testl %eax, %eax
jle 0x195dd
orb %dil, %dl
jne 0x195dd
xorl %edx, %edx
movzbl (%rcx,%rdx), %edi
movb $0x1, %sil
leal -0x20(%rdi), %r8d
cmpl $0x3d, %r8d
ja 0x195c6
movabsq $0x3800000008000015, %r9 # imm = 0x3800000008000015
btq %r8, %r9
jb 0x195dd
addl $-0x9, %edi
cmpl $0x5, %edi
jb 0x195dd
incq %rdx
xorl %esi, %esi
cmpq %rdx, %rax
jne 0x195a5
jmp 0x195dd
movb $0x1, %sil
movb %sil, (%r14,%r15)
cmpb $0x2, %sil
je 0x195f5
movzbl %sil, %edx
cmpl $0x1, %edx
jne 0x195f9
addl $0x2, %eax
jmp 0x1960a
addl %eax, %eax
jmp 0x1960a
testq %r15, %r15
jne 0x1960a
cmpb $0x23, (%rcx)
jne 0x1960a
movb $0x1, (%r14,%r15)
jmp 0x195f0
addl %eax, %r13d
incl %r13d
incq %r15
cmpq %r12, %r15
jne 0x194bf
jmp 0x1967f
testl %eax, %eax
jle 0x19671
xorl %edi, %edi
movzbl (%rcx,%rdi), %esi
cmpl $0x5a, %esi
jg 0x1964a
cmpl $0x3b, %esi
ja 0x19662
movl %esi, %esi
movabsq $0x800001500003e00, %r8 # imm = 0x800001500003E00
btq %rsi, %r8
jb 0x194fa
jmp 0x19662
leal -0x5b(%rsi), %r8d
cmpl $0x3, %r8d
jb 0x194fa
cmpl $0x7b, %esi
je 0x19678
cmpl $0x7d, %esi
je 0x19678
incq %rdi
xorl %esi, %esi
cmpq %rdi, %rax
jne 0x19624
jmp 0x195dd
xorl %esi, %esi
jmp 0x195dd
xorl %edx, %edx
jmp 0x194fa
addl $0x2, %r13d
movslq %r13d, %rsi
movq %r12, %r15
movl -0x2c(%rbp), %r12d
movq -0x38(%rbp), %r13
jmp 0x19698
movl $0x2, %esi
xorl %edi, %edi
callq *0x1ebe8(%rip)          # 0x38288
movq %rax, %rbx
movq %rax, (%r13)
testl %r12d, %r12d
jle 0x19833
xorl %r12d, %r12d
xorl %r11d, %r11d
movq %r15, %r14
movq -0x48(%rbp), %rax
movq (%rax,%r12,8), %r15
cmpq $0x0, (%r15)
jne 0x196d7
movq 0x8(%r15), %rax
movq %r15, %rdi
movq %r11, %r13
callq *0x18(%rax)
movq %r13, %r11
movslq 0x14(%r15), %r13
movq (%r15), %rsi
movq -0x40(%rbp), %rax
movzbl (%rax,%r12), %eax
cmpl $0x2, %eax
je 0x19742
cmpl $0x1, %eax
movq %r14, %r15
je 0x19718
testl %eax, %eax
jne 0x19817
movq %rbx, %rdi
movq %r13, %rdx
movq %r11, %r14
callq 0x6320
movq %r14, %r11
addq %r13, %rbx
addl %r13d, %r11d
jmp 0x19817
leaq 0x1(%rbx), %rdi
movb $0x7b, (%rbx)
movq %r13, %rdx
movq %r11, %r14
callq 0x6320
addq %r13, %rbx
addq $0x2, %rbx
movb $0x7d, -0x1(%rbx)
leal (%r14,%r13), %r11d
addl $0x2, %r11d
jmp 0x19817
testq %r12, %r12
movq %r14, %r15
je 0x19756
movabsq $0x3800000008000015, %r10 # imm = 0x3800000008000015
jmp 0x1976e
cmpb $0x23, (%rsi)
movabsq $0x3800000008000015, %r10 # imm = 0x3800000008000015
jne 0x1976e
movb $0x5c, (%rbx)
incq %rbx
incl %r11d
movq %rbx, %rax
testl %r13d, %r13d
je 0x19809
movl %r13d, %ecx
xorl %edx, %edx
movq %rbx, %rax
movb (%rsi,%rdx), %dil
movzbl %dil, %r8d
cmpl $0x1f, %r8d
jle 0x197b8
leal -0x20(%r8), %r9d
cmpl $0x3d, %r9d
ja 0x197d9
btq %r9, %r10
jae 0x197d9
movb $0x5c, (%rax)
movb (%rsi,%rdx), %dil
movb %dil, 0x1(%rax)
addq $0x2, %rax
incq %rdx
cmpl %edx, %ecx
jne 0x19782
jmp 0x19809
addl $-0x9, %r8d
cmpl $0x4, %r8d
ja 0x197e5
leaq 0xeb07(%rip), %r9       # 0x282d0
movslq (%r9,%r8,4), %rdi
addq %r9, %rdi
jmpq *%rdi
movw $0x745c, (%rax)         # imm = 0x745C
jmp 0x197ab
cmpl $0x7d, %r8d
je 0x197a0
cmpl $0x7b, %r8d
je 0x197a0
movb %dil, (%rax)
incq %rax
jmp 0x197af
movw $0x725c, (%rax)         # imm = 0x725C
jmp 0x197ab
movw $0x765c, (%rax)         # imm = 0x765C
jmp 0x197ab
movw $0x665c, (%rax)         # imm = 0x665C
jmp 0x197ab
movw $0x6e5c, (%rax)         # imm = 0x6E5C
jmp 0x197ab
movb $0x0, (%rax)
subq %rbx, %rax
cltq
addq %rax, %rbx
addl %eax, %r11d
incq %r12
cmpq %r15, %r12
je 0x19828
movb $0x20, (%rbx)
incq %rbx
incl %r11d
cmpq %r15, %r12
jne 0x196b6
jmp 0x19836
xorl %r11d, %r11d
movb $0x0, (%rbx)
movq -0x38(%rbp), %rax
movl %r11d, 0x14(%rax)
leaq -0x70(%rbp), %rax
movq -0x40(%rbp), %rdi
cmpq %rax, %rdi
je 0x19856
xorl %esi, %esi
callq *0x1ea32(%rip)          # 0x38288
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq