// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_ScanCoreCommand
static int Jim_ScanCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
    Jim_Obj *listPtr, **outVec;
    int outc, i;

    if (argc < 3) {
        Jim_WrongNumArgs(interp, 1, argv, "string format ?varName varName ...?");
        return JIM_ERR;
    }
    if (argv[2]->typePtr != &scanFmtStringObjType)
        SetScanFmtFromAny(interp, argv[2]);
    if (FormatGetError(argv[2]) != 0) {
        Jim_SetResultString(interp, FormatGetError(argv[2]), -1);
        return JIM_ERR;
    }
    if (argc > 3) {
        int maxPos = FormatGetMaxPos(argv[2]);
        int count = FormatGetCnvCount(argv[2]);

        if (maxPos > argc - 3) {
            Jim_SetResultString(interp, "\"%n$\" argument index out of range", -1);
            return JIM_ERR;
        }
        else if (count > argc - 3) {
            Jim_SetResultString(interp, "different numbers of variable names and "
                "field specifiers", -1);
            return JIM_ERR;
        }
        else if (count < argc - 3) {
            Jim_SetResultString(interp, "variable is not assigned by any "
                "conversion specifiers", -1);
            return JIM_ERR;
        }
    }
    listPtr = Jim_ScanString(interp, argv[1], argv[2], JIM_ERRMSG);
    if (listPtr == 0)
        return JIM_ERR;
    if (argc > 3) {
        int rc = JIM_OK;
        int count = 0;

        if (listPtr != 0 && listPtr != (Jim_Obj *)EOF) {
            int len = Jim_ListLength(interp, listPtr);

            if (len != 0) {
                JimListGetElements(interp, listPtr, &outc, &outVec);
                for (i = 0; i < outc; ++i) {
                    if (Jim_Length(outVec[i]) > 0) {
                        ++count;
                        if (Jim_SetVariable(interp, argv[3 + i], outVec[i]) != JIM_OK) {
                            rc = JIM_ERR;
                        }
                    }
                }
            }
            Jim_FreeNewObj(interp, listPtr);
        }
        else {
            count = -1;
        }
        if (rc == JIM_OK) {
            Jim_SetResultInt(interp, count);
        }
        return rc;
    }
    else {
        if (listPtr == (Jim_Obj *)EOF) {
            Jim_SetResult(interp, Jim_NewListObj(interp, 0, 0));
            return JIM_OK;
        }
        Jim_SetResult(interp, listPtr);
    }
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
cmpl $0x2, %esi
jg 0x206f2
leaq 0xcaa5(%rip), %rcx      # 0x2d182
movl $0x1, %r14d
movl $0x1, %esi
callq 0x7446
jmp 0x20d43
movl %esi, -0x5c(%rbp)
movq %rdi, -0x50(%rbp)
movq %rdx, -0x68(%rbp)
movq 0x10(%rdx), %r14
movq 0x8(%r14), %rax
leaq 0x165bc(%rip), %rcx     # 0x36cc8
cmpq %rcx, %rax
je 0x20bf7
movq (%r14), %r13
testq %r13, %r13
jne 0x20739
movq %r14, %rdi
callq *0x18(%rax)
movq (%r14), %r13
testq %r13, %r13
jne 0x20735
movq 0x8(%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq 0x8(%r14), %rax
movslq 0x14(%r14), %rbx
testq %rax, %rax
je 0x20754
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x20754
movq -0x50(%rbp), %rdi
movq %r14, %rsi
callq *%rax
testl %ebx, %ebx
movq %r14, -0x38(%rbp)
jle 0x20779
xorl %ecx, %ecx
xorl %eax, %eax
xorl %edx, %edx
cmpb $0x25, (%r13,%rcx)
sete %dl
addl %edx, %eax
incq %rcx
cmpq %rcx, %rbx
jne 0x20760
incl %eax
jmp 0x2077e
movl $0x1, %eax
movslq %eax, %r12
leal (%rbx,%rbx,2), %eax
addl %r12d, %eax
movl %r12d, %ecx
shll $0x5, %ecx
addl %ecx, %eax
addl $0x5e, %eax
movslq %eax, %r15
xorl %edi, %edi
movq %r15, %rsi
callq *0x16ae8(%rip)          # 0x37288
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x6240
movq %r15, (%r14)
movq $0x0, 0x20(%r14)
shlq $0x5, %r12
leaq (%r14,%r12), %rax
addq $0x38, %rax
movq %rax, 0x30(%r14)
leaq 0x4(%rbx,%rax), %rdi
movq %rdi, 0x8(%r14)
movq %r13, %rsi
movq %rbx, %rdx
callq 0x6320
movq 0x8(%r14), %rax
movq -0x38(%rbp), %rcx
movq %r14, 0x18(%rcx)
leaq 0x164d6(%rip), %rdx     # 0x36cc8
movq %rdx, 0x8(%rcx)
testl %ebx, %ebx
jle 0x20bf7
movq %r14, %r11
leaq (%rbx,%r13), %rcx
leaq 0x38(%r14), %rdx
movq %rdx, -0x80(%rbp)
leaq (%rax,%rbx), %r12
incq %r12
movq %r14, %rdx
addq $0x50, %rdx
movq %rdx, -0x70(%rbp)
addq %rbx, %rax
incq %rax
movq %rax, -0x78(%rbp)
movq %rcx, %rbx
movl $0xffffffff, -0x54(%rbp) # imm = 0xFFFFFFFF
xorl %eax, %eax
xorl %r15d, %r15d
movq %r14, -0x40(%rbp)
movl $0x0, -0x2c(%rbp)
movq %rax, -0x48(%rbp)
shlq $0x5, %rax
incq 0x10(%r11)
movq -0x80(%rbp), %rcx
leaq (%rcx,%rax), %rdx
movq $0x0, 0x10(%rcx,%rax)
cmpb $0x25, (%r13)
jne 0x2086e
cmpb $0x25, 0x1(%r13)
jne 0x208b1
movb $0x0, 0x1c(%rdx)
movslq %r15d, %rax
leaq (%r12,%rax), %rcx
movq %rcx, 0x8(%rdx)
cmpq %rbx, %r13
jae 0x208a9
movb (%r13), %cl
cmpb $0x25, %cl
jne 0x20895
cmpb $0x25, 0x1(%r13)
jne 0x208a4
incq %r13
movb %cl, (%r12,%rax)
incq %rax
incq %r13
cmpq %rbx, %r13
jb 0x20882
movl %eax, %r15d
cltq
incl %r15d
movb $0x0, (%r12,%rax)
leaq 0x1(%r13), %r14
cmpq %rbx, %r14
jae 0x20bf7
movl $0x0, 0x18(%rdx)
cmpb $0x2a, (%r14)
movq %rdx, -0x38(%rbp)
jne 0x208df
movl $0xffffffff, 0x18(%rdx) # imm = 0xFFFFFFFF
addq $0x2, %r13
movq %r13, %r14
jmp 0x208e3
incq 0x18(%r11)
movq %r14, %rdi
leaq 0xc939(%rip), %rsi      # 0x2d226
leaq -0x2c(%rbp), %rdx
leaq -0x58(%rbp), %rcx
xorl %eax, %eax
callq 0x6380
cmpl $0x1, %eax
jne 0x2094c
movslq -0x58(%rbp), %rax
addq %rax, %r14
movq -0x38(%rbp), %rsi
cmpl $-0x1, 0x18(%rsi)
je 0x20956
cmpb $0x24, (%r14)
jne 0x20956
movl -0x2c(%rbp), %eax
movl %eax, 0x18(%rsi)
movl $0x0, -0x2c(%rbp)
cmpl $0x0, -0x54(%rbp)
je 0x20b2d
movq -0x40(%rbp), %r11
movq -0x48(%rbp), %rax
jle 0x20b3f
cmpl $0x0, 0x18(%rsi)
jne 0x20b3f
jmp 0x20e46
movq -0x40(%rbp), %r11
movq -0x38(%rbp), %rsi
jmp 0x20962
movslq -0x2c(%rbp), %rax
movq %rax, 0x10(%rsi)
movq -0x40(%rbp), %r11
movq %rbx, %r13
cmpl $-0x1, -0x54(%rbp)
jne 0x20971
movl 0x18(%rsi), %eax
movl %eax, -0x54(%rbp)
movsbl (%r14), %ebx
cmpl $0x5b, %ebx
jne 0x209a1
movb $0x5b, 0x1c(%rsi)
movslq %r15d, %rdx
addq %r12, %rdx
movq %rdx, (%rsi)
movb 0x1(%r14), %cl
cmpb $0x5e, %cl
jne 0x209dc
leal 0x1(%r15), %eax
movb $0x5e, (%rdx)
movb 0x2(%r14), %cl
addq $0x2, %r14
jmp 0x209e2
cmpq %r13, %r14
jae 0x20aa8
movl $0x4, %edx
leaq 0xc8f6(%rip), %rdi      # 0x2d2ac
movl %ebx, %esi
callq 0x6290
testq %rax, %rax
je 0x20aa4
incq %r14
movl %ebx, %edi
callq 0x6350
movq -0x38(%rbp), %rsi
movb %al, 0x1d(%rsi)
jmp 0x20aa8
incq %r14
movl %r15d, %eax
movq %r13, %rbx
cmpb $0x5d, %cl
movabsq $0x100000000, %rdi      # imm = 0x100000000
jne 0x20a01
incq %r14
movslq %eax, %rcx
incl %eax
movb $0x5d, (%r12,%rcx)
movslq %eax, %rcx
leal -0x1(%rcx), %eax
movq -0x78(%rbp), %rdx
addq %rcx, %rdx
shlq $0x20, %rcx
movzbl (%r14), %esi
testl %esi, %esi
je 0x20a2f
cmpl $0x5d, %esi
je 0x20a2f
incq %r14
movb %sil, (%rdx)
incl %eax
addq %rdi, %rcx
incq %rdx
jmp 0x20a12
cmpb $0x5d, %sil
jne 0x20bdf
sarq $0x20, %rcx
movb $0x0, (%r12,%rcx)
leal 0x1(%r15), %ecx
cmpl %eax, %ecx
jge 0x20a9c
movslq %ecx, %rcx
movslq %eax, %rdx
xorl %esi, %esi
movq %rcx, %rdi
movl %r15d, %r8d
cmpb $0x2d, (%r12,%rdi)
jne 0x20a7e
movslq %r8d, %r8
movb (%r12,%r8), %r9b
movb 0x2(%r12,%r8), %r10b
cmpb %r10b, %r9b
jle 0x20a7e
movb %r10b, (%r12,%r8)
movb %r9b, 0x2(%r12,%r8)
movl $0x1, %esi
movl %edi, %r8d
leaq 0x1(%rdi), %r9
movq %r9, %rdi
cmpq %rdx, %r9
jne 0x20a58
movq %rcx, %rdi
movl %r15d, %r8d
testl %esi, %esi
movl $0x0, %esi
jne 0x20a58
addl $0x2, %eax
movl %eax, %r15d
jmp 0x20afc
movq -0x38(%rbp), %rsi
cmpq %r13, %r14
jae 0x20bd6
movsbl (%r14), %ebx
movb %bl, 0x1c(%rsi)
movl $0xc, %edx
leaq 0xc80e(%rip), %rdi      # 0x2d2d2
movl %ebx, %esi
callq 0x6290
testq %rax, %rax
je 0x20be8
movzbl %bl, %eax
cmpl $0x75, %eax
movq -0x40(%rbp), %r11
je 0x20b17
cmpl $0x63, %eax
movq %r13, %rbx
movq -0x38(%rbp), %rax
jne 0x20afc
cmpq $0x0, 0x10(%rax)
movq -0x48(%rbp), %rax
je 0x20b00
jmp 0x20e3a
movq -0x48(%rbp), %rax
incq %rax
incq %r14
movq %r14, %r13
cmpq %rbx, %r14
jb 0x2083c
jmp 0x20bf7
movq -0x38(%rbp), %rax
cmpb $0x6c, 0x1d(%rax)
movq %r13, %rbx
movq -0x48(%rbp), %rax
jne 0x20b00
jmp 0x20e2e
cmpl $0x0, 0x18(%rsi)
movq -0x40(%rbp), %r11
movq -0x48(%rbp), %rax
jg 0x20e46
testq %rax, %rax
je 0x20b61
movq -0x70(%rbp), %rax
movq -0x48(%rbp), %rcx
movl (%rax), %edx
cmpl $-0x1, %edx
je 0x20b58
cmpl 0x18(%rsi), %edx
je 0x20bcd
addq $0x20, %rax
decq %rcx
jne 0x20b4c
cmpl $0x0, 0x18(%rsi)
js 0x20e52
incq %r14
movq %r14, %rdi
leaq 0xc6ae(%rip), %rsi      # 0x2d226
leaq -0x2c(%rbp), %rdx
leaq -0x58(%rbp), %rcx
xorl %eax, %eax
callq 0x6380
cmpl $0x1, %eax
jne 0x20ba5
movslq -0x2c(%rbp), %rax
movq -0x38(%rbp), %rsi
movq %rax, 0x10(%rsi)
movslq -0x58(%rbp), %rax
addq %rax, %r14
movq -0x40(%rbp), %r11
jmp 0x20bad
movq -0x40(%rbp), %r11
movq -0x38(%rbp), %rsi
movslq 0x18(%rsi), %rax
testq %rax, %rax
jle 0x20962
cmpq %rax, 0x20(%r11)
jae 0x20962
movq %rax, 0x20(%r11)
jmp 0x20962
leaq 0xc657(%rip), %rax      # 0x2d22b
jmp 0x20bf3
leaq 0xc6d3(%rip), %rax      # 0x2d2b0
jmp 0x20bef
leaq 0xc6a9(%rip), %rax      # 0x2d28f
jmp 0x20bf3
leaq 0xc6ef(%rip), %rax      # 0x2d2de
movq -0x40(%rbp), %r11
movq %rax, 0x28(%r11)
movq -0x68(%rbp), %rcx
movq 0x10(%rcx), %rdx
movq 0x18(%rdx), %rax
movq 0x28(%rax), %rsi
testq %rsi, %rsi
je 0x20c44
movq -0x50(%rbp), %r14
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rax, %rbx
incl 0x10(%rax)
movq (%r14), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x20c3c
movq %r14, %rdi
callq 0x758c
movq %rbx, (%r14)
jmp 0x20d3d
movl -0x5c(%rbp), %esi
cmpl $0x3, %esi
movq -0x50(%rbp), %r15
jne 0x20c9e
movq 0x8(%rcx), %rsi
movl $0x1, %r14d
movq %r15, %rdi
movl $0x1, %ecx
callq 0xfd58
cmpq $-0x1, %rax
je 0x20cbd
movq %rax, %rbx
testq %rax, %rax
je 0x20d43
incl 0x10(%rbx)
movq -0x50(%rbp), %r14
movq (%r14), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x20c99
movq %r14, %rdi
callq 0x758c
movq %rbx, (%r14)
jmp 0x20d00
addl $-0x3, %esi
cmpl 0x20(%rax), %esi
jge 0x20caf
leaq 0xa418(%rip), %rsi      # 0x2b0c5
jmp 0x20d0e
cmpl 0x18(%rax), %esi
jge 0x20d05
leaq 0xc4eb(%rip), %rsi      # 0x2d1a6
jmp 0x20d0e
movq %r15, %rdi
callq 0xae38
movq %rax, %rbx
leaq 0x14699(%rip), %rax     # 0x35368
movq %rax, 0x8(%rbx)
movq $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
incl 0x10(%rbx)
movq (%r15), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x20cfd
movq %r15, %rdi
callq 0x758c
movq %rbx, (%r15)
xorl %r14d, %r14d
jmp 0x20d43
jle 0x20d55
leaq 0xc4d1(%rip), %rsi      # 0x2d1df
movq %r15, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rax, %rbx
incl 0x10(%rax)
movq (%r15), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x20d3a
movq %r15, %rdi
callq 0x758c
movq %rbx, (%r15)
movl $0x1, %r14d
movl %r14d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rcx), %rsi
movl $0x1, %r14d
movq %r15, %rdi
movl $0x1, %ecx
callq 0xfd58
movq %rax, %r12
cmpq $-0x1, %rax
je 0x20e6c
testq %r12, %r12
je 0x20d43
movq -0x50(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0xe2fe
cmpl $0x0, 0x20(%r12)
je 0x20e5e
movq %r15, %rdi
movq %r12, %rsi
callq 0xe2fe
movslq 0x20(%r12), %rax
movq %rax, -0x38(%rbp)
testq %rax, %rax
jle 0x20e5e
movq %r12, -0x48(%rbp)
movq 0x18(%r12), %r15
xorl %r12d, %r12d
xorl %r14d, %r14d
xorl %r13d, %r13d
movq (%r15,%r12,8), %rbx
cmpq $0x0, (%rbx)
jne 0x20ddc
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
cmpl $0x0, 0x14(%rbx)
jle 0x20e06
incl %r13d
movq -0x68(%rbp), %rax
movq 0x18(%rax,%r12,8), %rsi
movq (%r15,%r12,8), %rdx
movq -0x50(%rbp), %rdi
callq 0x876e
testl %eax, %eax
movl $0x1, %eax
cmovnel %eax, %r14d
incq %r12
cmpq %r12, -0x38(%rbp)
jne 0x20dc8
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x758c
testl %r14d, %r14d
jne 0x20d43
movslq %r13d, %r12
movq -0x50(%rbp), %r15
jmp 0x20e6c
leaq 0xc4f9(%rip), %rax      # 0x2d32e
jmp 0x20bf3
leaq 0xc4bb(%rip), %rax      # 0x2d2fc
jmp 0x20bf3
leaq 0xa21a(%rip), %rax      # 0x2b067
jmp 0x20bf3
leaq 0xc40f(%rip), %rax      # 0x2d268
jmp 0x20bf3
movq %r15, %rdi
movq %r12, %rsi
callq 0x758c
xorl %r12d, %r12d
movq %r15, %rdi
callq 0xae38
movq %rax, %rbx
leaq 0x14472(%rip), %rax     # 0x352f0
movq %rax, 0x8(%rbx)
movq $0x0, (%rbx)
movq %r12, 0x18(%rbx)
jmp 0x20ce1