// File: /workspace/github_c_makefile_star2_O1/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_RangeCoreCommand
static int Jim_RangeCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
    jim_wide start = 0, end, step = 1;
    int len, i;
    Jim_Obj *objPtr;

    if (argc < 2 || argc > 4) {
        Jim_WrongNumArgs(interp, 1, argv, "?start? end ?step?");
        return JIM_ERR;
    }
    if (argc == 2) {
        if (Jim_GetWideExpr(interp, argv[1], &end) != JIM_OK)
            return JIM_ERR;
    }
    else {
        if (Jim_GetWideExpr(interp, argv[1], &start) != JIM_OK ||
            Jim_GetWideExpr(interp, argv[2], &end) != JIM_OK)
            return JIM_ERR;
        if (argc == 4 && Jim_GetWideExpr(interp, argv[3], &step) != JIM_OK)
            return JIM_ERR;
    }
    if ((len = JimRangeLen(start, end, step)) == -1) {
        Jim_SetResultString(interp, "Invalid (infinite?) range specified", -1);
        return JIM_ERR;
    }
    objPtr = Jim_NewListObj(interp, NULL, 0);
    ListEnsureLength(objPtr, len);
    for (i = 0; i < len; i++)
        ListAppendElement(objPtr, Jim_NewIntObj(interp, start + i * step));
    Jim_SetResult(interp, objPtr);
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %rbx
movq $0x0, -0x40(%rbp)
movq $0x1, -0x30(%rbp)
leal -0x5(%r12), %eax
cmpl $-0x4, %eax
ja 0x21b45
leaq 0xc8fe(%rip), %rcx      # 0x2e428
movl $0x1, %r14d
movq %rbx, %rdi
movl $0x1, %esi
movq %r15, %rdx
callq 0x7454
jmp 0x21ccf
movq 0x8(%r15), %rsi
cmpl $0x2, %r12d
jne 0x21c4a
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xd80a
movl $0x1, %r14d
testl %eax, %eax
jne 0x21ccf
movq -0x40(%rbp), %r12
movq -0x30(%rbp), %r15
testq %r15, %r15
je 0x21b9a
movq -0x38(%rbp), %rcx
xorl %r13d, %r13d
cmpq %r12, %rcx
je 0x21ba0
testq %r15, %r15
setg %al
cmpq %r12, %rcx
setl %dl
testb %al, %dl
je 0x21ce1
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpl $-0x1, %r13d
je 0x21c93
movq %rbx, %rdi
callq 0xae58
movq %rax, %r14
leaq 0x1479c(%rip), %rax     # 0x36358
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
movq %r14, %rdi
movl %r13d, %esi
callq 0x19865
testl %r13d, %r13d
jle 0x21c22
movl %r13d, %r13d
movq %rbx, %rdi
callq 0xae58
leaq 0x146ef(%rip), %rcx     # 0x362e0
movq %rcx, 0x8(%rax)
movq $0x0, (%rax)
movq %r12, 0x18(%rax)
movq %rax, -0x48(%rbp)
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
leaq -0x48(%rbp), %rcx
callq 0xe29d
addq %r15, %r12
decq %r13
jne 0x21be2
incl 0x10(%r14)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x21c3f
movq %rbx, %rdi
callq 0x759a
movq %r14, (%rbx)
xorl %r14d, %r14d
jmp 0x21ccf
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0xd80a
movl $0x1, %r14d
testl %eax, %eax
jne 0x21ccf
movq 0x10(%r15), %rsi
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xd80a
testl %eax, %eax
jne 0x21ccf
cmpl $0x4, %r12d
jne 0x21b6d
movq 0x18(%r15), %rsi
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0xd80a
jmp 0x21b65
leaq 0xc7a1(%rip), %rsi      # 0x2e43b
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %rax, %r14
incl 0x10(%rax)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x21cc6
movq %rbx, %rdi
callq 0x759a
movq %r14, (%rbx)
movl $0x1, %r14d
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r15, %r15
sets %al
subq %r12, %rcx
setg %dl
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testb %al, %dl
jne 0x21ba0
movq %rcx, %rax
negq %rax
cmovsq %rcx, %rax
movq %r15, %rcx
negq %rcx
cmovsq %r15, %rcx
decq %rax
cqto
idivq %rcx
movl $0x7ffffffe, %r13d      # imm = 0x7FFFFFFE
cmpq %r13, %rax
cmovlq %rax, %r13
incl %r13d
jmp 0x21ba0