// File: /workspace/github_c_makefile_star2_O2/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_SubstObj
int Jim_SubstObj(Jim_Interp *interp, Jim_Obj *substObjPtr, Jim_Obj **resObjPtrPtr, int flags)
{
    ScriptObj *script;

    JimPanic((substObjPtr->refCount == 0, "Jim_SubstObj() called with zero refcount object"));

    script = Jim_GetSubst(interp, substObjPtr, flags);

    Jim_IncrRefCount(substObjPtr);
    script->inUse++;

    *resObjPtrPtr = JimInterpolateTokens(interp, script->token, script->len, flags);

    script->inUse--;
    Jim_DecrRefCount(interp, substObjPtr);
    if (*resObjPtrPtr == NULL) {
        return JIM_ERR;
    }
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x213bd(%rip), %rax     # 0x312b0
cmpq %rax, 0x8(%rsi)
jne 0xff07
movq 0x18(%r14), %r13
cmpl %r12d, 0x14(%r13)
je 0x10161
movq %rbx, -0x88(%rbp)
leaq -0x94(%rbp), %rbx
movq %r14, -0x80(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7fc7
movq %rax, %r13
xorl %r14d, %r14d
pushq $0x28
popq %rsi
xorl %edi, %edi
callq *0x23353(%rip)          # 0x33288
movq %rax, -0x30(%rbp)
leaq -0x278(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x14, -0x8(%rax)
movl (%rbx), %eax
leaq -0x78(%rbp), %rbx
movq %r13, (%rbx)
movl %eax, 0x8(%rbx)
andq $0x0, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
pushq $0x1
popq %rcx
movl %ecx, 0xc(%rbx)
movabsq $0x2000000001, %rdx     # imm = 0x2000000001
movq %rdx, 0x30(%rbx)
movl %ecx, 0x38(%rbx)
movl %r12d, %edx
andl $0x4, %edx
cmpl %ecx, %edx
adcl %ecx, %r14d
movq %r14, -0x90(%rbp)
movl %r12d, %r14d
andl $0x2, %r14d
shrl %r14d
movq %r13, -0x68(%rbp)
movl %ecx, -0x58(%rbp)
testl %eax, %eax
je 0x1008c
movb (%r13), %cl
cmpb $0x5b, %cl
setne %dl
orb %r14b, %dl
jne 0xffc2
movq %rbx, %rdi
callq 0x15c64
jmp 0x10059
cmpb $0x24, %cl
setne %cl
orb %r12b, %cl
testb $0x1, %cl
jne 0xfff3
movq %rbx, %rdi
callq 0x15c85
testl %eax, %eax
je 0x10059
movq -0x78(%rbp), %r13
movq %r13, -0x68(%rbp)
incq %r13
movq %r13, -0x78(%rbp)
movl -0x70(%rbp), %eax
decl %eax
movl %eax, -0x70(%rbp)
testl %eax, %eax
je 0x10041
testb $0x1, %r12b
sete %dil
testb $0x2, %r12b
sete %dl
movb (%r13), %cl
cmpb $0x24, %cl
sete %r8b
cmpb $0x5b, %cl
sete %sil
testb %r8b, %dil
jne 0x10041
andb %sil, %dl
jne 0x10041
cmpb $0x5c, %cl
sete %cl
cmpl $0x2, %eax
setge %dl
andb %cl, %dl
movzbl %dl, %ecx
addq %rcx, %r13
incq %r13
notl %ecx
addl %eax, %ecx
movl %ecx, %eax
jmp 0xfff3
movq %r13, -0x78(%rbp)
movl %eax, -0x70(%rbp)
decq %r13
movq %r13, -0x60(%rbp)
movq -0x90(%rbp), %rax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x50(%rbp)
jne 0x1008c
movq -0x68(%rbp), %rsi
movl -0x60(%rbp), %edx
subl %esi, %edx
incl %edx
movl -0x54(%rbp), %ecx
movl -0x58(%rbp), %r8d
leaq -0x288(%rbp), %rdi
callq 0x159bb
movq -0x78(%rbp), %r13
movl -0x6c(%rbp), %ecx
movl -0x70(%rbp), %eax
jmp 0xff97
movq -0x30(%rbp), %r13
movl $0x1, 0x18(%r13)
movl %r12d, 0x14(%r13)
movq 0x128(%r15), %rax
movq %rax, 0x8(%r13)
incl 0x10(%rax)
movslq -0x27c(%rbp), %rsi
shlq $0x4, %rsi
xorl %r14d, %r14d
xorl %edi, %edi
callq *0x231c8(%rip)          # 0x33288
movq %rax, %rbx
movq %rax, (%r13)
addq $0x8, %rbx
xorl %r13d, %r13d
movslq -0x27c(%rbp), %rax
cmpq %rax, %r13
jge 0x10107
movq -0x288(%rbp), %rsi
movl 0xc(%rsi,%r14), %eax
addq %r14, %rsi
movl %eax, (%rbx)
movq %r15, %rdi
callq 0x161ac
movq %rax, -0x8(%rbx)
incl 0x10(%rax)
incq %r13
addq $0x18, %r14
addq $0x10, %rbx
jmp 0x100ce
movq -0x30(%rbp), %rax
movl %r13d, 0x10(%rax)
movq %rax, %r13
movq -0x288(%rbp), %rdi
leaq -0x278(%rbp), %rax
cmpq %rax, %rdi
je 0x1012d
xorl %esi, %esi
callq *0x2315b(%rip)          # 0x33288
movq -0x80(%rbp), %r14
movq 0x8(%r14), %rax
testq %rax, %rax
movq -0x88(%rbp), %rbx
je 0x10152
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x10152
movq %r15, %rdi
movq %r14, %rsi
callq *%rax
movq %r13, 0x18(%r14)
leaq 0x21153(%rip), %rax     # 0x312b0
movq %rax, 0x8(%r14)
incl 0x10(%r14)
incl 0x18(%r13)
movq (%r13), %rsi
movl 0x10(%r13), %edx
movq %r15, %rdi
movl %r12d, %ecx
callq 0xf9b2
movq %rax, (%rbx)
decl 0x18(%r13)
movl 0x10(%r14), %ecx
leal -0x1(%rcx), %edx
movl %edx, 0x10(%r14)
cmpl $0x1, %ecx
jg 0x101a1
movq %r15, %rdi
movq %r14, %rsi
callq 0x73bf
movq (%rbx), %rax
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
movl %ecx, %eax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq