// File: /workspace/github_c_makefile_star2_O0/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_TimeCoreCommand
static int Jim_TimeCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
    long i, count = 1;
    jim_wide start, elapsed;

    if (argc < 2) {
        Jim_WrongNumArgs(interp, 1, argv, "script ?count?");
        return JIM_ERR;
    }
    if (argc == 3) {
        if (Jim_GetLong(interp, argv[2], &count) != JIM_OK)
            return JIM_ERR;
    }
    if (count < 0)
        return JIM_OK;
    i = count;
    start = Jim_GetTimeUsec(CLOCK_MONOTONIC_RAW);
    while (i-- > 0) {
        int retval;

        retval = Jim_EvalObj(interp, argv[1]);
        if (retval != JIM_OK) {
            return retval;
        }
    }
    elapsed = Jim_GetTimeUsec(CLOCK_MONOTONIC_RAW) - start;
    if (elapsed < count * 10) {
        Jim_SetResult(interp, Jim_NewDoubleObj(interp, elapsed * 1.0 / count));
    }
    else {
        Jim_SetResultInt(interp, count == 0 ? 0 : elapsed / count);
    }
    Jim_AppendString(interp, Jim_GetResult(interp)," microseconds per iteration", -1);
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq $0x1, -0x30(%rbp)
cmpl $0x2, -0x14(%rbp)
jge 0x2ad86
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl $0x1, %esi
leaq 0x12375(%rip), %rcx     # 0x3d0ea
callq 0x7880
movl $0x1, -0x4(%rbp)
jmp 0x2af3d
cmpl $0x3, -0x14(%rbp)
jne 0x2adb4
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x30(%rbp), %rdx
callq 0xf4d0
cmpl $0x0, %eax
je 0x2adb2
movl $0x1, -0x4(%rbp)
jmp 0x2af3d
jmp 0x2adb4
cmpq $0x0, -0x30(%rbp)
jge 0x2adc7
movl $0x0, -0x4(%rbp)
jmp 0x2af3d
movq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x4, %edi
callq 0xb820
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x28(%rbp)
cmpq $0x0, %rax
jle 0x2ae19
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x9b80
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
je 0x2ae17
movl -0x44(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2af3d
jmp 0x2addd
movl $0x4, %edi
callq 0xb820
subq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
imulq $0xa, -0x30(%rbp), %rcx
cmpq %rcx, %rax
jge 0x2aea3
jmp 0x2ae3b
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x40(%rbp), %xmm0
movsd 0xca43(%rip), %xmm1     # 0x37890
mulsd %xmm1, %xmm0
cvtsi2sdq -0x30(%rbp), %xmm1
divsd %xmm1, %xmm0
callq 0xfbe0
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movl 0x10(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rcx)
cmpl $0x0, %eax
jg 0x2ae96
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x7a10
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2af1a
jmp 0x2aea5
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x2aebc
xorl %eax, %eax
movq %rax, -0x68(%rbp)
jmp 0x2aeca
movq -0x40(%rbp), %rax
cqto
idivq -0x30(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x8d60
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movl 0x10(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rcx)
cmpl $0x0, %eax
jg 0x2af0d
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x7a10
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2af1a
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0x121cd(%rip), %rdx     # 0x3d0f9
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x8db0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)