// File: /workspace/github_c_makefile_star2_O2/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 0x1db30
leaq 0xb6b3(%rip), %rcx      # 0x291d2
pushq $0x1
popq %r15
movl %r15d, %esi
callq 0x72a5
jmp 0x1e1a0
movq %rsi, -0x78(%rbp)
movq %rdi, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movq 0x10(%rdx), %r14
leaq 0x15181(%rip), %rax     # 0x32cc8
cmpq %rax, 0x8(%r14)
je 0x1e036
movq %r14, %rdi
callq 0x7340
movq %rax, %r13
movq %r14, %rdi
callq 0xa61a
movslq %eax, %rbx
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x1db82
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x1db82
movq -0x60(%rbp), %rdi
movq %r14, %rsi
callq *%rax
movq %r13, %r8
addq %rbx, %r8
xorl %ecx, %ecx
testl %ebx, %ebx
movl $0x0, %edx
cmovgl %ebx, %edx
xorl %eax, %eax
cmpq %rcx, %rdx
je 0x1dbae
xorl %esi, %esi
cmpb $0x25, (%r13,%rcx)
sete %sil
addl %esi, %eax
incq %rcx
jmp 0x1db96
movq %r14, -0x38(%rbp)
movl %eax, %r14d
shlq $0x5, %r14
leal 0x1(%rax), %ecx
shll $0x5, %ecx
leal (%rbx,%rbx,2), %edx
addl %edx, %eax
incl %eax
addl %ecx, %eax
addl $0x5e, %eax
movslq %eax, %r15
xorl %edi, %edi
movq %r15, %rsi
movq %r8, -0x40(%rbp)
callq *0x156ab(%rip)          # 0x33288
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x6240
movq %r15, (%r12)
andq $0x0, 0x20(%r12)
leaq 0x38(%r12), %rax
movq %rax, -0x80(%rbp)
leaq (%r14,%r12), %rax
addq $0x38, %rax
leaq 0x58(%r14,%r12), %rcx
movq %rcx, 0x30(%r12)
leaq 0x24(%rbx,%rax), %rdi
movq %rdi, 0x8(%r12)
movq %r13, %rsi
movq %rbx, %rdx
callq 0x6320
movq -0x40(%rbp), %r9
movq 0x8(%r12), %rax
leaq (%rax,%rbx), %r14
incq %r14
movq %r12, %rbx
movq -0x38(%rbp), %rcx
movq %r12, 0x18(%rcx)
leaq 0x1507f(%rip), %rax     # 0x32cc8
movq %rax, 0x8(%rcx)
movq %r12, %rax
addq $0x50, %rax
movq %rax, -0x70(%rbp)
pushq $-0x1
popq %rax
movl %eax, -0x4c(%rbp)
xorl %eax, %eax
xorl %r12d, %r12d
movq %rbx, -0x48(%rbp)
cmpq %r9, %r13
jae 0x1e036
andl $0x0, -0x2c(%rbp)
movq %rax, -0x58(%rbp)
incq 0x10(%rbx)
shlq $0x5, %rax
movq -0x80(%rbp), %rcx
andq $0x0, 0x10(%rcx,%rax)
leaq (%rcx,%rax), %rdi
cmpb $0x25, (%r13)
jne 0x1dc9c
cmpb $0x25, 0x1(%r13)
jne 0x1dcf0
movb $0x0, 0x1c(%rdi)
movslq %r12d, %r12
leaq (%r14,%r12), %rcx
movq %rcx, 0x8(%rdi)
movq %r12, %rax
shlq $0x20, %rax
incl %r12d
movabsq $0x100000000, %rsi      # imm = 0x100000000
cmpq %r9, %r13
jae 0x1dce7
movb (%r13), %dl
cmpb $0x25, %dl
jne 0x1dcd7
cmpb $0x25, 0x1(%r13)
jne 0x1dce7
incq %r13
movb %dl, (%rcx)
incq %r13
addq %rsi, %rax
incl %r12d
incq %rcx
jmp 0x1dcbf
sarq $0x20, %rax
movb $0x0, (%r14,%rax)
leaq 0x1(%r13), %r15
cmpq %r9, %r15
jae 0x1e036
andl $0x0, 0x18(%rdi)
cmpb $0x2a, (%r15)
movq %rdi, -0x38(%rbp)
jne 0x1dd18
orl $-0x1, 0x18(%rdi)
addq $0x2, %r13
movq %r13, %r15
jmp 0x1dd1c
incq 0x18(%rbx)
pushq $0x1
popq %r13
movq %r15, %rdi
leaq 0xb54c(%rip), %rsi      # 0x29276
leaq -0x2c(%rbp), %rdx
leaq -0x50(%rbp), %rcx
xorl %eax, %eax
callq 0x6380
cmpl $0x1, %eax
jne 0x1dd82
movslq -0x50(%rbp), %rax
addq %rax, %r15
movq -0x38(%rbp), %rsi
cmpl $-0x1, 0x18(%rsi)
je 0x1dd96
cmpb $0x24, (%r15)
jne 0x1dd96
movl -0x2c(%rbp), %eax
movl %eax, 0x18(%rsi)
andl $0x0, -0x2c(%rbp)
cmpl $0x0, -0x4c(%rbp)
je 0x1df5e
movq -0x58(%rbp), %rax
jle 0x1df6c
cmpl $0x0, 0x18(%rsi)
jne 0x1df6c
jmp 0x1e25d
movq -0x40(%rbp), %r9
movabsq $0x100000000, %rdi      # imm = 0x100000000
movq -0x38(%rbp), %rsi
jmp 0x1ddac
movslq -0x2c(%rbp), %rax
movq %rax, 0x10(%rsi)
movq -0x40(%rbp), %r9
movabsq $0x100000000, %rdi      # imm = 0x100000000
cmpl $-0x1, -0x4c(%rbp)
jne 0x1ddb8
movl 0x18(%rsi), %eax
movl %eax, -0x4c(%rbp)
movsbl (%r15), %ebx
cmpl $0x5b, %ebx
jne 0x1dde8
movb $0x5b, 0x1c(%rsi)
movslq %r12d, %rax
leaq (%r14,%rax), %rdx
movq %rdx, (%rsi)
movb 0x1(%r15), %cl
cmpb $0x5e, %cl
jne 0x1de25
incl %r12d
movb $0x5e, (%rdx)
movb 0x2(%r15), %cl
addq $0x2, %r15
jmp 0x1de28
cmpq %r9, %r15
jae 0x1deda
leaq 0xb504(%rip), %rdi      # 0x292fc
movl %ebx, %esi
pushq $0x4
popq %rdx
callq 0x6290
testq %rax, %rax
je 0x1ded2
incq %r15
movl %ebx, %edi
callq 0x6350
movq -0x38(%rbp), %rsi
movb %al, 0x1d(%rsi)
movq -0x40(%rbp), %r9
jmp 0x1deda
incq %r15
movq -0x48(%rbp), %rbx
cmpb $0x5d, %cl
jne 0x1de3f
incq %r15
movslq %r12d, %rcx
incl %r12d
movb $0x5d, (%r14,%rcx)
movslq %r12d, %rdx
movq %rdx, %rcx
shlq $0x20, %rcx
leal 0x1(%rdx), %r12d
addq %r14, %rdx
movzbl (%r15), %esi
testl %esi, %esi
je 0x1de6e
cmpl $0x5d, %esi
je 0x1de6e
incq %r15
movb %sil, (%rdx)
addq %rdi, %rcx
incl %r12d
incq %rdx
jmp 0x1de50
cmpb $0x5d, %sil
jne 0x1e01e
movq %rcx, %rdx
sarq $0x20, %rdx
movb $0x0, (%r14,%rdx)
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
addq %rdx, %rcx
sarq $0x20, %rcx
movl %r13d, %edx
testl %edx, %edx
je 0x1df4c
xorl %edx, %edx
movq %rax, %rsi
incq %rsi
cmpq %rcx, %rsi
jge 0x1de98
cmpb $0x2d, (%r14,%rsi)
jne 0x1dea5
movb -0x1(%r14,%rsi), %dil
movb 0x1(%r14,%rsi), %r8b
cmpb %r8b, %dil
jle 0x1dea5
movb %r8b, -0x1(%r14,%rsi)
movb %dil, 0x1(%r14,%rsi)
movl %r13d, %edx
jmp 0x1dea5
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %rsi
cmpq %r9, %r15
jae 0x1e015
movsbl (%r15), %ebx
movb %bl, 0x1c(%rsi)
leaq 0xb431(%rip), %rdi      # 0x29322
movl %ebx, %esi
pushq $0xc
popq %rdx
callq 0x6290
testq %rax, %rax
je 0x1e027
movzbl %bl, %eax
cmpl $0x75, %eax
je 0x1df2d
cmpl $0x63, %eax
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %rax
jne 0x1df48
cmpq $0x0, 0x10(%rax)
movq -0x48(%rbp), %rbx
movq -0x58(%rbp), %rax
je 0x1df50
jmp 0x1e203
movq -0x38(%rbp), %rax
cmpb $0x6c, 0x1d(%rax)
movq -0x40(%rbp), %r9
movq -0x48(%rbp), %rbx
movq -0x58(%rbp), %rax
jne 0x1df50
jmp 0x1e1f7
movq -0x48(%rbp), %rbx
movq -0x58(%rbp), %rax
incq %rax
incq %r15
movq %r15, %r13
jmp 0x1dc67
cmpl $0x0, 0x18(%rsi)
movq -0x58(%rbp), %rax
jg 0x1e25d
incq %r15
movq -0x70(%rbp), %rcx
subq $0x1, %rax
jb 0x1df8f
movl (%rcx), %edx
cmpl $-0x1, %edx
je 0x1df89
cmpl 0x18(%rsi), %edx
je 0x1e00c
addq $0x20, %rcx
jmp 0x1df73
cmpl $0x0, 0x18(%rsi)
js 0x1e269
movq %r15, %rdi
leaq 0xb2d3(%rip), %rsi      # 0x29276
leaq -0x2c(%rbp), %rdx
leaq -0x50(%rbp), %rcx
xorl %eax, %eax
callq 0x6380
cmpl $0x1, %eax
jne 0x1dfda
movslq -0x2c(%rbp), %rax
movq -0x38(%rbp), %rsi
movq %rax, 0x10(%rsi)
movslq -0x50(%rbp), %rax
addq %rax, %r15
movq -0x40(%rbp), %r9
movabsq $0x100000000, %rdi      # imm = 0x100000000
jmp 0x1dfec
movq -0x40(%rbp), %r9
movabsq $0x100000000, %rdi      # imm = 0x100000000
movq -0x38(%rbp), %rsi
movslq 0x18(%rsi), %rax
testq %rax, %rax
jle 0x1ddac
cmpq %rax, 0x20(%rbx)
jae 0x1ddac
movq %rax, 0x20(%rbx)
jmp 0x1ddac
leaq 0xb268(%rip), %rax      # 0x2927b
jmp 0x1e032
leaq 0xb2e4(%rip), %rax      # 0x29300
jmp 0x1e02e
leaq 0xb2ba(%rip), %rax      # 0x292df
jmp 0x1e032
leaq 0xb300(%rip), %rax      # 0x2932e
movq -0x48(%rbp), %rbx
movq %rax, 0x28(%rbx)
movq -0x68(%rbp), %rdi
movq 0x10(%rdi), %rdx
movq 0x18(%rdx), %rax
movq 0x28(%rax), %rsi
testq %rsi, %rsi
je 0x1e057
pushq $-0x1
popq %rdx
movq -0x60(%rbp), %r14
jmp 0x1e172
movq -0x78(%rbp), %rbx
cmpl $0x3, %ebx
movq -0x60(%rbp), %r14
jne 0x1e0b8
movq 0x8(%rdi), %rsi
pushq $0x1
popq %r15
movq %r14, %rdi
movl %r15d, %ecx
callq 0xec59
testq %rax, %rax
je 0x1e1a0
movq %rax, %r12
cmpl $0x3, %ebx
jne 0x1e0e1
cmpq $-0x1, %r12
je 0x1e1bf
incl 0x10(%r12)
movq (%r14), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1e0b0
movq %r14, %rdi
callq 0x73bf
movq %r12, (%r14)
jmp 0x1e255
leal -0x3(%rbx), %ecx
cmpl 0x20(%rax), %ecx
jge 0x1e0cc
leaq 0x904e(%rip), %rsi      # 0x27115
jmp 0x1e16f
cmpl 0x18(%rax), %ecx
jge 0x1e162
leaq 0xb11a(%rip), %rsi      # 0x291f6
jmp 0x1e16f
cmpq $-0x1, %r12
je 0x1e1f2
movq %r14, %rdi
movq %r12, %rsi
callq 0x8b3c
testl %eax, %eax
je 0x1e20f
movq %r14, %rdi
movq %r12, %rsi
callq 0x8b3c
movl %eax, %ebx
xorl %r14d, %r14d
testl %eax, %eax
cmovlel %r14d, %ebx
movq %r12, -0x38(%rbp)
movq 0x18(%r12), %r13
xorl %r12d, %r12d
xorl %r15d, %r15d
cmpq %r14, %rbx
je 0x1e1b2
movq (%r13,%r14,8), %rdi
callq 0xa61a
testl %eax, %eax
jle 0x1e15d
incl %r12d
movq -0x68(%rbp), %rax
movq 0x18(%rax,%r14,8), %rsi
movq (%r13,%r14,8), %rdx
movq -0x60(%rbp), %rdi
callq 0x8306
testl %eax, %eax
pushq $0x1
popq %rax
cmovnel %eax, %r15d
incq %r14
jmp 0x1e123
jle 0x1e064
leaq 0xb0c0(%rip), %rsi      # 0x2922f
pushq $-0x1
popq %rdx
movq %r14, %rdi
callq 0x7363
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 0x1e199
movq %r14, %rdi
callq 0x73bf
movq %rbx, (%r14)
pushq $0x1
popq %r15
movl %r15d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq %r12d, %rbx
movq -0x60(%rbp), %r14
movq -0x38(%rbp), %r12
jmp 0x1e214
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x745b
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 0x1e1ed
movq %r14, %rdi
callq 0x73bf
movq %rbx, (%r14)
jmp 0x1e1a0
pushq $-0x1
popq %rbx
jmp 0x1e228
leaq 0xb180(%rip), %rax      # 0x2937e
jmp 0x1e032
leaq 0xb142(%rip), %rax      # 0x2934c
jmp 0x1e032
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %r14, %rdi
movq %r12, %rsi
callq 0x73bf
testl %r15d, %r15d
jne 0x1e1a0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8212
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 0x1e252
movq %r14, %rdi
callq 0x73bf
movq %rbx, (%r14)
xorl %r15d, %r15d
jmp 0x1e1a0
leaq 0x8e53(%rip), %rax      # 0x270b7
jmp 0x1e032
leaq 0xb048(%rip), %rax      # 0x292b8
jmp 0x1e032