// File: /workspace/github_c_makefile_star2_O0/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_IncrCoreCommand
static int Jim_IncrCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
    jim_wide wideValue, increment = 1;
    Jim_Obj *intObjPtr;

    if (argc != 2 && argc != 3) {
        Jim_WrongNumArgs(interp, 1, argv, "varName ?increment?");
        return JIM_ERR;
    }
    if (argc == 3) {
        if (Jim_GetWideExpr(interp, argv[2], &increment) != JIM_OK)
            return JIM_ERR;
    }
    intObjPtr = Jim_GetVariable(interp, argv[1], JIM_UNSHARED);
    if (!intObjPtr) {

        wideValue = 0;
    }
    else if (Jim_GetWide(interp, intObjPtr, &wideValue) != JIM_OK) {
        return JIM_ERR;
    }
    if (!intObjPtr || Jim_IsShared(intObjPtr)) {
        intObjPtr = Jim_NewIntObj(interp, wideValue + increment);
        if (Jim_SetVariable(interp, argv[1], intObjPtr) != JIM_OK) {
            Jim_FreeNewObj(interp, intObjPtr);
            return JIM_ERR;
        }
    }
    else {

        Jim_InvalidateStringRep(intObjPtr);
        JimWideValue(intObjPtr) = wideValue + increment;

        if (argv[1]->typePtr != &variableObjType) {

            Jim_SetVariable(interp, argv[1], intObjPtr);
        }
    }
    Jim_SetResult(interp, intObjPtr);
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq $0x1, -0x30(%rbp)
cmpl $0x2, -0x14(%rbp)
je 0x2633c
cmpl $0x3, -0x14(%rbp)
je 0x2633c
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl $0x1, %esi
leaq 0x164a6(%rip), %rcx     # 0x3c7d1
callq 0x7880
movl $0x1, -0x4(%rbp)
jmp 0x264a7
cmpl $0x3, -0x14(%rbp)
jne 0x2636a
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x30(%rbp), %rdx
callq 0xf830
cmpl $0x0, %eax
je 0x26368
movl $0x1, -0x4(%rbp)
jmp 0x264a7
jmp 0x2636a
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x4, %edx
callq 0xa7b0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x26395
movq $0x0, -0x28(%rbp)
jmp 0x263b9
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0xf640
cmpl $0x0, %eax
je 0x263b7
movl $0x1, -0x4(%rbp)
jmp 0x264a7
jmp 0x263b9
cmpq $0x0, -0x38(%rbp)
je 0x263ca
movq -0x38(%rbp), %rax
cmpl $0x1, 0x10(%rax)
jle 0x26414
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
addq -0x30(%rbp), %rsi
callq 0x8d60
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x38(%rbp), %rdx
callq 0x8df0
cmpl $0x0, %eax
je 0x26412
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x7a10
movl $0x1, -0x4(%rbp)
jmp 0x264a7
jmp 0x26459
movq -0x38(%rbp), %rdi
callq 0xa9b0
movq -0x28(%rbp), %rcx
addq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
leaq 0x2099c(%rip), %rcx     # 0x46dd8
cmpq %rcx, 0x8(%rax)
je 0x26457
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x38(%rbp), %rdx
callq 0x8df0
jmp 0x26459
jmp 0x2645b
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%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 0x26495
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x7a10
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq