// File: /workspace/github_c_makefile_star2_O2/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 $0x18, %rsp
movq %rdx, %r15
movl %esi, %r12d
andq $0x0, -0x40(%rbp)
movq %rdi, %rbx
movq $0x1, -0x30(%rbp)
leal -0x5(%r12), %eax
cmpl $-0x4, %eax
ja 0x1e702
leaq 0xad2b(%rip), %rcx      # 0x29416
pushq $0x1
popq %r14
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x72a5
jmp 0x1e850
movq 0x8(%r15), %rsi
pushq $0x1
popq %r14
cmpl $0x2, %r12d
jne 0x1e77a
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xcace
testl %eax, %eax
jne 0x1e850
pushq $0x1
popq %r13
movq -0x40(%rbp), %r15
movq -0x38(%rbp), %rcx
xorl %r12d, %r12d
cmpq %r15, %rcx
jne 0x1e7fc
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x745b
movq %rax, %r14
movq %rax, %rdi
movl %r12d, %esi
callq 0x1706b
movl %r12d, %r12d
subq $0x1, %r12
jb 0x1e7d7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8212
movq %r14, %rdi
movq %rax, %rsi
callq 0xd88d
addq %r13, %r15
jmp 0x1e759
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0xcace
testl %eax, %eax
jne 0x1e850
movq 0x10(%r15), %rsi
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xcace
testl %eax, %eax
jne 0x1e850
cmpl $0x4, %r12d
jne 0x1e724
movq 0x18(%r15), %rsi
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0xcace
testl %eax, %eax
jne 0x1e850
movq -0x30(%rbp), %r13
testq %r13, %r13
jne 0x1e728
jmp 0x1e81c
incl 0x10(%r14)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1e7f4
movq %rbx, %rdi
callq 0x73bf
movq %r14, (%rbx)
xorl %r14d, %r14d
jmp 0x1e850
testq %r13, %r13
setg %al
cmpq %r15, %rcx
setl %dl
testb %al, %dl
jne 0x1e81c
testq %r13, %r13
sets %al
subq %r15, %rcx
setg %dl
testb %al, %dl
je 0x1e862
leaq 0xac06(%rip), %rsi      # 0x29429
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x7363
movq %rax, %r15
incl 0x10(%rax)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1e84d
movq %rbx, %rdi
callq 0x73bf
movq %r15, (%rbx)
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rcx, %rax
negq %rax
cmovsq %rcx, %rax
movq %r13, %rcx
negq %rcx
cmovsq %r13, %rcx
decq %rax
cqto
idivq %rcx
movl $0x7ffffffe, %r12d      # imm = 0x7FFFFFFE
cmpq %r12, %rax
cmovlq %rax, %r12
incl %r12d
jmp 0x1e73c