// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: JimGetScript
static ScriptObj *JimGetScript(Jim_Interp *interp, Jim_Obj *objPtr)
{
    if (objPtr == interp->emptyObj) {

        objPtr = interp->nullScriptObj;
    }

    if (objPtr->typePtr != &scriptObjType || ((struct ScriptObj *)Jim_GetIntRepPtr(objPtr))->substFlags) {
        JimSetScriptFromAny(interp, objPtr);
    }

    return (ScriptObj *)Jim_GetIntRepPtr(objPtr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rdi, -0x38(%rbp)
cmpq %rsi, 0x128(%rdi)
jne 0xb6a5
movq -0x38(%rbp), %rax
movq 0x120(%rax), %rsi
movq 0x8(%rsi), %rcx
leaq 0x29b60(%rip), %rax     # 0x35210
cmpq %rax, %rcx
jne 0xb6c3
movq 0x18(%rsi), %rax
cmpl $0x0, 0x14(%rax)
je 0xbdbd
movq (%rsi), %r13
testq %r13, %r13
movq %rsi, -0x40(%rbp)
jne 0xb6e1
movq -0x40(%rbp), %rdi
callq *0x18(%rcx)
movq -0x40(%rbp), %rsi
movq (%rsi), %r13
movq 0x8(%rsi), %rcx
movl 0x14(%rsi), %ebx
leaq 0x29afd(%rip), %rax     # 0x351e8
cmpq %rax, %rcx
je 0xb70d
leaq 0x29b19(%rip), %rax     # 0x35210
cmpq %rax, %rcx
je 0xb716
movq -0x38(%rbp), %rax
addq $0x128, %rax            # imm = 0x128
movl $0x1, %ecx
jmp 0xb72a
leaq 0x18(%rsi), %rax
movl 0x20(%rsi), %ecx
jmp 0xb72a
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xb679
movl 0x1c(%rax), %ecx
addq $0x8, %rax
movslq %ebx, %rdx
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
leaq -0x298(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x14, -0x8(%rax)
leaq -0x98(%rbp), %r12
movq %r13, (%r12)
movq %rdx, -0xa8(%rbp)
movl %edx, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
movups %xmm0, 0x20(%r12)
movl %ecx, 0xc(%r12)
movabsq $0x2000000001, %rax     # imm = 0x2000000001
movq %rax, 0x30(%r12)
movl %ecx, 0x38(%r12)
movq %r13, -0x48(%rbp)
movl -0x90(%rbp), %r15d
testl %r15d, %r15d
je 0xb7ef
movq -0x98(%rbp), %r14
movzbl (%r14), %ebx
cmpl $0x23, %ebx
jne 0xb7bd
cmpl $0x0, -0x68(%rbp)
je 0xb933
movq %r12, %rdi
callq 0x17fe0
jmp 0xb78d
cmpl $0x3b, %ebx
ja 0xb917
movl %ebx, %eax
movabsq $0x100003200, %rcx      # imm = 0x100003200
btq %rax, %rcx
jae 0xb82d
cmpl $0x0, -0x6c(%rbp)
jne 0xb92c
movq %r12, %rdi
callq 0x17bae
jmp 0xb93b
movq -0x98(%rbp), %rax
movq %rax, -0x88(%rbp)
decq %rax
movq %rax, -0x80(%rbp)
movl -0x8c(%rbp), %eax
movl %eax, -0x78(%rbp)
movl $0x7, -0x74(%rbp)
cmpl $0x0, -0x6c(%rbp)
je 0xb821
movl $0x22, -0x64(%rbp)
movl $0x1, -0x70(%rbp)
jmp 0xb93b
movabsq $0x800000000000400, %rcx # imm = 0x800000000000400
btq %rax, %rcx
jae 0xb8d2
movl $0x1, -0x68(%rbp)
cmpl $0x0, -0x6c(%rbp)
jne 0xb933
movq %r14, -0x88(%rbp)
movl -0x8c(%rbp), %r13d
movl %r13d, -0x78(%rbp)
callq 0x64e0
movq (%rax), %rax
cmpb $0x3b, %bl
je 0xb87d
movzwl (%rax,%rbx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
je 0xb8be
movl %r13d, %ecx
leal 0x1(%rcx), %edx
cmpb $0xa, %bl
cmovel %edx, %r13d
cmovel %edx, %ecx
decl %r15d
movzbl 0x1(%r14), %ebx
incq %r14
cmpl $0x3b, %ebx
je 0xb880
movzwl (%rax,%rbx,2), %edx
andl $0x2000, %edx           # imm = 0x2000
jne 0xb880
movl %r13d, -0x8c(%rbp)
movq %r14, -0x98(%rbp)
movl %r15d, -0x90(%rbp)
movq -0x48(%rbp), %r13
decq %r14
movq %r14, -0x80(%rbp)
movl $0x7, -0x74(%rbp)
jmp 0xb93b
cmpq $0x24, %rax
jne 0xb917
movl $0x0, -0x68(%rbp)
movq %r12, %rdi
callq 0x17dd5
testl %eax, %eax
je 0xb93b
movq -0x98(%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, -0x98(%rbp)
movq %rax, -0x80(%rbp)
movq %rax, -0x88(%rbp)
decl -0x90(%rbp)
movl $0x2, -0x74(%rbp)
jmp 0xb93b
cmpl $0x5b, %ebx
je 0xb968
cmpl $0x5c, %ebx
jne 0xb92c
cmpb $0xa, 0x1(%r14)
je 0xb7d8
movl $0x0, -0x68(%rbp)
movq %r12, %rdi
callq 0x17c2f
movq -0x88(%rbp), %rsi
movl -0x80(%rbp), %edx
subl %esi, %edx
incl %edx
movl -0x74(%rbp), %ecx
movl -0x78(%rbp), %r8d
leaq -0x2a8(%rbp), %rdi
callq 0x17b02
cmpl $0x0, -0x70(%rbp)
je 0xb78d
jmp 0xb993
movl $0x0, -0x68(%rbp)
incq %r14
movq %r14, -0x88(%rbp)
movl -0x8c(%rbp), %eax
movl %eax, -0x78(%rbp)
movl $0x5, -0x74(%rbp)
movq %r12, %rdi
callq 0x180df
jmp 0xb93b
addq -0xa8(%rbp), %r13
leaq -0x2a8(%rbp), %r12
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
movl $0x8, %ecx
xorl %r8d, %r8d
callq 0x17b02
movl $0x28, %esi
xorl %edi, %edi
callq *0x2b8c5(%rip)          # 0x37288
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq $0x0, 0x20(%rax)
movl $0x1, 0x18(%rax)
movq -0xb8(%rbp), %rcx
movq %rcx, 0x8(%rax)
incl 0x10(%rcx)
movl -0x64(%rbp), %ecx
movl %ecx, 0x24(%rax)
movl -0x60(%rbp), %ecx
movq %rax, -0xa8(%rbp)
movl %ecx, 0x20(%rax)
movslq 0xc(%r12), %rax
movq (%r12), %rcx
testq %rax, %rax
jle 0xba2e
movq %rax, %rdx
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rdx
xorl %esi, %esi
xorl %edi, %edi
cmpl $0x7, 0xc(%rcx,%rsi)
sete %dil
addl %edi, %eax
addq $0x18, %rsi
cmpq %rsi, %rdx
jne 0xba18
movl 0x10(%rcx), %ecx
movq -0xa8(%rbp), %r12
movl %ecx, -0x4c(%rbp)
movl %ecx, 0x1c(%r12)
movslq %eax, %rsi
shlq $0x4, %rsi
xorl %ebx, %ebx
xorl %edi, %edi
callq *0x2b837(%rip)          # 0x37288
movq %rax, %rdi
movq %rax, (%r12)
movq %rax, %rdx
addq $0x10, %rdx
cmpl $0x0, -0x29c(%rbp)
jle 0xbd55
xorl %esi, %esi
movslq %ebx, %rax
leaq (%rax,%rax,2), %r14
shlq $0x3, %r14
addq -0x2a8(%rbp), %r14
movl 0xc(%r14), %eax
cmpl $0x6, %eax
jne 0xba91
incl %ebx
addq $0x18, %r14
jmp 0xba80
cmpl $0x1, %eax
jne 0xbac7
movl 0x24(%r14), %eax
addl $-0x6, %eax
cmpl $0x3, %eax
jb 0xbb2f
leaq 0x18(%r14), %r13
movl 0x8(%r14), %eax
cmpl $0x6, %eax
je 0xbad1
cmpl $0x1, %eax
jne 0xbb15
movq (%r14), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpb $0x2a, (%rcx)
jne 0xbb15
jmp 0xbb37
movl $0x1, %eax
movq %r14, %r13
jmp 0xbb37
movq %rdi, -0xa0(%rbp)
movq (%r14), %rdi
movq %rbx, -0xb0(%rbp)
movq %rdx, %rbx
movl $0x6, %edx
movl %esi, %r15d
leaq 0x20030(%rip), %rsi     # 0x2bb24
callq 0x60b0
movq -0xa0(%rbp), %rdi
movl %r15d, %esi
movq %rbx, %rdx
movq -0xb0(%rbp), %rbx
testl %eax, %eax
je 0xbd37
cmpl $0x20, 0x24(%r12)
jne 0xbb2f
movl $0x7d, 0x24(%r12)
movl 0x28(%r14), %eax
movl %eax, 0x20(%r12)
movq %r14, %r13
movl $0x1, %eax
movl 0xc(%r13), %ecx
addl $-0x9, %ecx
xorl %r8d, %r8d
cmpl $-0x4, %ecx
ja 0xbb60
addq $0x24, %r13
xorl %r8d, %r8d
incl %r8d
movl (%r13), %ecx
addl $-0x9, %ecx
addq $0x18, %r13
cmpl $-0x3, %ecx
jb 0xbb4d
imull %eax, %r8d
testl %r8d, %r8d
je 0xbbcc
cmpl $0x1, %r8d
movq %rdi, -0xa0(%rbp)
je 0xbc36
movl %esi, -0x2c(%rbp)
movq %rbx, %r13
movl $0xa, 0x8(%rdx)
movslq %r8d, %rbx
movq -0x38(%rbp), %rdi
movq %rdx, %r14
movl %r8d, %r15d
callq 0xae38
movl %r15d, %r8d
movq %r14, %rdx
leaq 0x2974a(%rip), %rcx     # 0x352f0
movq %rcx, 0x8(%rax)
movq $0x0, (%rax)
movq %rbx, 0x18(%rax)
movq %rax, (%r14)
incl 0x10(%rax)
addq $0x10, %rdx
movq %r13, %rbx
testl %r15d, %r15d
js 0xbc2c
movl -0x2c(%rbp), %esi
jmp 0xbc36
testl %esi, %esi
je 0xbc23
movl $0x9, 0x8(%rdi)
movq %rdi, %r13
movq -0x38(%rbp), %rdi
movq %rbx, %r14
movq %rdx, %rbx
movl %esi, %r15d
callq 0xae38
leaq 0x2b6a5(%rip), %rcx     # 0x37298
movq %rcx, (%rax)
movl $0x0, 0x14(%rax)
leaq 0x2a12c(%rip), %rcx     # 0x35d30
movq %rcx, 0x8(%rax)
movl %r15d, 0x1c(%rax)
movl -0x4c(%rbp), %ecx
movl %ecx, 0x18(%rax)
movq %rax, (%r13)
incl 0x10(%rax)
movq %rbx, %rdi
leaq 0x10(%rbx), %rdx
movq %r14, %rbx
incl %ebx
xorl %esi, %esi
jmp 0xbd29
incl %ebx
notl %r8d
movl -0x2c(%rbp), %esi
decl %esi
testl %esi, %esi
jne 0xbc4f
movq -0x2a8(%rbp), %rax
movslq %ebx, %rcx
leaq (%rcx,%rcx,2), %rcx
movl 0x10(%rax,%rcx,8), %eax
movl %eax, -0x4c(%rbp)
incl %esi
testl %r8d, %r8d
je 0xbd22
movl %esi, -0x2c(%rbp)
movq %rbx, -0xb0(%rbp)
movslq %ebx, %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %r15
negl %r8d
xorl %ebx, %ebx
movl %r8d, -0xb8(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x2a8(%rbp), %r14
leaq (%r14,%r15), %rsi
movl 0xc(%r14,%r15), %eax
movl %eax, 0x8(%rdx)
movq -0x38(%rbp), %rdi
callq 0x182d9
movq -0x48(%rbp), %rdx
movq %rax, %r13
movq %rax, (%rdx)
incl 0x10(%rax)
movq 0x8(%r12), %r12
movl 0x10(%r14,%r15), %r14d
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xbcd1
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xbcd1
movq -0x38(%rbp), %rdi
movq %r13, %rsi
callq *%rax
movq -0x48(%rbp), %rdx
incl 0x10(%r12)
movq %r12, 0x18(%r13)
movl %r14d, 0x20(%r13)
leaq 0x29503(%rip), %rax     # 0x351e8
movq %rax, 0x8(%r13)
addq $0x10, %rdx
addq $0x18, %r15
decl %ebx
movl -0xb8(%rbp), %r8d
cmpl %ebx, %r8d
movq -0xa8(%rbp), %r12
jne 0xbc7b
movq -0xb0(%rbp), %rax
subl %ebx, %eax
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
movl -0x2c(%rbp), %esi
jmp 0xbd29
movq -0xa0(%rbp), %rdi
cmpl -0x29c(%rbp), %ebx
jl 0xba6e
jmp 0xbd41
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xbb37
movq (%r12), %rdi
xorl %eax, %eax
testl %esi, %esi
setne %al
shll $0x4, %eax
addq $-0x10, %rax
jmp 0xbd5c
movq $-0x10, %rax
addq %rax, %rdx
subq %rdi, %rdx
shrq $0x4, %rdx
movl %edx, 0x10(%r12)
movq -0x2a8(%rbp), %rdi
leaq -0x298(%rbp), %rax
cmpq %rax, %rdi
je 0xbd86
xorl %esi, %esi
callq *0x2b502(%rip)          # 0x37288
movq -0x40(%rbp), %rcx
movq 0x8(%rcx), %rax
testq %rax, %rax
je 0xbdaa
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xbdaa
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq *%rax
movq -0x40(%rbp), %rcx
movq %r12, 0x18(%rcx)
leaq 0x2945b(%rip), %rax     # 0x35210
movq %rax, 0x8(%rcx)
movq 0x18(%rcx), %rax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq