// File: /workspace/github_c_makefile_star2_O2/msteveb[P]autosetup/./jimsh0.c
// Function: JimCreateProcedureCmd
static Jim_Cmd *JimCreateProcedureCmd(Jim_Interp *interp, Jim_Obj *argListObjPtr,
    Jim_Obj *staticsListObjPtr, Jim_Obj *bodyObjPtr, Jim_Obj *nsObj)
{
    Jim_Cmd *cmdPtr;
    int argListLen;
    int i;

    argListLen = Jim_ListLength(interp, argListObjPtr);


    cmdPtr = Jim_Alloc(sizeof(*cmdPtr) + sizeof(struct Jim_ProcArg) * argListLen);
    assert(cmdPtr);
    memset(cmdPtr, 0, sizeof(*cmdPtr));
    cmdPtr->inUse = 1;
    cmdPtr->isproc = 1;
    cmdPtr->u.proc.argListObjPtr = argListObjPtr;
    cmdPtr->u.proc.argListLen = argListLen;
    cmdPtr->u.proc.bodyObjPtr = bodyObjPtr;
    cmdPtr->u.proc.argsPos = -1;
    cmdPtr->u.proc.arglist = (struct Jim_ProcArg *)(cmdPtr + 1);
    cmdPtr->u.proc.nsObj = nsObj ? nsObj : interp->emptyObj;
    Jim_IncrRefCount(argListObjPtr);
    Jim_IncrRefCount(bodyObjPtr);
    Jim_IncrRefCount(cmdPtr->u.proc.nsObj);


    if (staticsListObjPtr && JimCreateProcedureStatics(interp, cmdPtr, staticsListObjPtr) != JIM_OK) {
        goto err;
    }



    for (i = 0; i < argListLen; i++) {
        Jim_Obj *argPtr;
        Jim_Obj *nameObjPtr;
        Jim_Obj *defaultObjPtr;
        int len;


        argPtr = Jim_ListGetIndex(interp, argListObjPtr, i);
        len = Jim_ListLength(interp, argPtr);
        if (len == 0) {
            Jim_SetResultString(interp, "argument with no name", -1);
err:
            JimDecrCmdRefCount(interp, cmdPtr);
            return NULL;
        }
        if (len > 2) {
            Jim_SetResultFormatted(interp, "too many fields in argument specifier \"%#s\"", argPtr);
            goto err;
        }

        if (len == 2) {

            nameObjPtr = Jim_ListGetIndex(interp, argPtr, 0);
            defaultObjPtr = Jim_ListGetIndex(interp, argPtr, 1);
        }
        else {

            nameObjPtr = argPtr;
            defaultObjPtr = NULL;
        }


        if (Jim_CompareStringImmediate(interp, nameObjPtr, "args")) {
            if (cmdPtr->u.proc.argsPos >= 0) {
                Jim_SetResultString(interp, "'args' specified more than once", -1);
                goto err;
            }
            cmdPtr->u.proc.argsPos = i;
        }
        else {
            if (len == 2) {
                cmdPtr->u.proc.optArity++;
            }
            else {
                cmdPtr->u.proc.reqArity++;
            }
        }

        cmdPtr->u.proc.arglist[i].nameObjPtr = nameObjPtr;
        cmdPtr->u.proc.arglist[i].defaultObjPtr = defaultObjPtr;
    }

    return cmdPtr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r15
movq %rdx, -0x38(%rbp)
movq %rsi, %r12
movq %rdi, %rbx
callq 0x8b3c
movl %eax, %r13d
movslq %eax, %rsi
shlq $0x4, %rsi
addq $0x58, %rsi
xorl %edi, %edi
callq *0x134d7(%rip)          # 0x33288
testq %rax, %rax
je 0x201d8
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x8(%rax)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, (%r14)
movq %r12, 0x18(%r14)
movq %r13, -0x50(%rbp)
movl %r13d, 0x30(%r14)
movq %r15, 0x20(%r14)
orl $-0x1, 0x3c(%r14)
movq %r14, %rax
addq $0x58, %rax
movq %rax, 0x48(%r14)
movq 0x128(%rbx), %rax
movq %rax, 0x50(%r14)
movq %r12, -0x60(%rbp)
incl 0x10(%r12)
incl 0x10(%r15)
movq 0x50(%r14), %rax
incl 0x10(%rax)
movq -0x38(%rbp), %r15
testq %r15, %r15
movq %rbx, -0x30(%rbp)
movq %r14, -0x40(%rbp)
je 0x1ffd3
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8b3c
testl %eax, %eax
je 0x1ffd3
movl %eax, %r12d
xorl %r13d, %r13d
pushq $0x30
popq %rsi
xorl %edi, %edi
callq *0x1342f(%rip)          # 0x33288
movq %rax, 0x28(%r14)
andq $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
andl $0x0, 0x28(%rax)
leaq 0x11f5d(%rip), %rcx     # 0x31dd0
movq %rcx, 0x8(%rax)
testl %r12d, %r12d
cmovlel %r13d, %r12d
movl %r12d, -0x48(%rbp)
movq %rbx, 0x10(%rax)
cmpl %r13d, -0x48(%rbp)
je 0x1ffd3
movq %rbx, %rdi
movq %r15, %rsi
movl %r13d, %edx
callq 0xd95e
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8b3c
movl %eax, %r12d
leal -0x3(%r12), %eax
cmpl $-0x3, %eax
jbe 0x20122
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xd95e
movq %rax, %r15
cmpl $0x1, %r12d
jne 0x1ff30
movq %r15, %rdi
leaq -0x54(%rbp), %rsi
callq 0x7fc7
movb (%rax), %r14b
cmpb $0x26, %r14b
jne 0x1fefe
incq %rax
movl -0x54(%rbp), %edx
decl %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7363
movq %rax, %r15
movq %rbx, %rdi
leaq 0x10(%r15), %rbx
incl 0x10(%r15)
movq %r15, %rsi
callq 0xb6e9
testl %eax, %eax
je 0x1ffac
cmpl $0x1, %eax
je 0x20184
cmpl $0x64, %eax
je 0x2016c
xorl %r14d, %r14d
jmp 0x1ff4c
movq %rbx, %rdi
movq %r15, %rbx
addq $0x10, %rbx
incl 0x10(%r15)
movq %r14, %rsi
pushq $0x1
popq %rdx
callq 0xd95e
movq %rax, %r14
xorl %edi, %edi
pushq $0x18
popq %rsi
callq *0x13331(%rip)          # 0x33288
movq %rax, %r12
movq %r14, (%rax)
incl 0x10(%r14)
andq $0x0, 0x8(%rax)
andl $0x0, 0x10(%rax)
movq -0x40(%rbp), %r14
movq 0x28(%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xa043
testl %eax, %eax
jne 0x20138
movl (%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rbx)
cmpl $0x1, %eax
movq -0x30(%rbp), %rbx
jg 0x1ffa0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x73bf
incl %r13d
movq -0x38(%rbp), %r15
jmp 0x1fe86
cmpb $0x26, %r14b
jne 0x1ffc0
movq 0x18(%r15), %r12
testq %r12, %r12
jne 0x1ff6a
jmp 0x1ff2b
movq -0x30(%rbp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x9378
jmp 0x1ff49
xorl %r15d, %r15d
movq -0x50(%rbp), %rbx
testl %ebx, %ebx
cmovlel %r15d, %ebx
xorl %edx, %edx
movq %rbx, -0x50(%rbp)
cmpq %rdx, %rbx
movq -0x60(%rbp), %rsi
je 0x201c6
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rdx, %rbx
callq 0xd95e
movq %rax, %r13
movq %r14, %rdi
movq %rax, %rsi
callq 0x8b3c
testl %eax, %eax
je 0x200c9
movl %eax, %r12d
cmpl $0x3, %eax
jge 0x200d2
cmpl $0x2, %r12d
jne 0x20057
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xd95e
movq %rax, -0x48(%rbp)
movq %r14, %rdi
movq %r13, %rsi
pushq $0x1
popq %rdx
callq 0xd95e
movq %rax, -0x38(%rbp)
movq -0x48(%rbp), %r13
jmp 0x20063
movq $0x0, -0x38(%rbp)
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
leaq 0x893b(%rip), %rdx      # 0x289ab
callq 0x7223
testl %eax, %eax
je 0x2008d
movq -0x40(%rbp), %r14
cmpl $0x0, 0x3c(%r14)
jns 0x200e5
movq %rbx, %rdx
movl %edx, 0x3c(%r14)
jmp 0x200a4
cmpl $0x2, %r12d
movq -0x40(%rbp), %r14
jne 0x2009d
incl 0x38(%r14)
jmp 0x200a1
incl 0x34(%r14)
movq %rbx, %rdx
movq 0x48(%r14), %rax
movq %r13, (%rax,%r15)
movq 0x48(%r14), %rax
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax,%r15)
incq %rdx
addq $0x10, %r15
movq -0x50(%rbp), %rbx
jmp 0x1ffe6
leaq 0x8899(%rip), %rsi      # 0x28969
jmp 0x200ec
leaq 0x88a6(%rip), %rsi      # 0x2897f
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r13, %rdx
jmp 0x2012f
leaq 0x88c4(%rip), %rsi      # 0x289b0
pushq $-0x1
popq %rdx
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x7363
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 0x2011a
movq %rbx, %rdi
callq 0x73bf
movq %r14, (%rbx)
jmp 0x201b7
leaq 0x88a7(%rip), %rsi      # 0x289d0
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x68a7
jmp 0x201b7
leaq 0x894d(%rip), %rsi      # 0x28a8c
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x68a7
incl 0x10(%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x16a24
movl (%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rbx)
movq %r14, %rbx
jmp 0x201a7
cmpb $0x26, %r14b
leaq 0x8883(%rip), %rax      # 0x289fa
leaq 0x889e(%rip), %rsi      # 0x28a1c
cmoveq %rax, %rsi
jmp 0x2018b
leaq 0x88b6(%rip), %rsi      # 0x28a41
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x68a7
movl 0x10(%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r15)
cmpl $0x1, %eax
jg 0x201b7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x73bf
movq %rbx, %rdi
movq -0x40(%rbp), %rsi
callq 0x16865
xorl %r14d, %r14d
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x872a(%rip), %rdi      # 0x28909
leaq 0x6a15(%rip), %rsi      # 0x26bfb
leaq 0x8723(%rip), %rcx      # 0x28910
movl $0x28ff, %edx           # imm = 0x28FF
callq 0x6220