// File: /workspace/github_c_makefile_star2_O3/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 $0x258, %rsp            # imm = 0x258
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rsi), %rax
leaq 0x240a8(%rip), %rcx     # 0x35210
cmpq %rcx, %rax
jne 0x1117b
movq 0x18(%r14), %r13
cmpl %r12d, 0x14(%r13)
je 0x1140c
movq %rbx, -0x90(%rbp)
movq (%r14), %rbx
testq %rbx, %rbx
jne 0x11193
movq %r14, %rdi
callq *0x18(%rax)
movq (%r14), %rbx
movq %r14, -0x88(%rbp)
movl 0x14(%r14), %r13d
xorl %r14d, %r14d
movl $0x28, %esi
xorl %edi, %edi
callq *0x260da(%rip)          # 0x37288
movq %rax, -0x80(%rbp)
leaq -0x270(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x14, -0x8(%rax)
movq %rbx, -0x78(%rbp)
movl %r13d, -0x70(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movl $0x1, %ecx
movl %ecx, -0x6c(%rbp)
movabsq $0x2000000001, %rax     # imm = 0x2000000001
movq %rax, -0x48(%rbp)
movl %ecx, -0x40(%rbp)
movl %r12d, %eax
andl $0x4, %eax
cmpl %ecx, %eax
movl $0x0, %eax
adcl %ecx, %eax
movl %eax, -0x2c(%rbp)
movq %rbx, -0x68(%rbp)
movl %ecx, -0x58(%rbp)
movl $0x0, %esi
testl %r13d, %r13d
je 0x1133b
movb (%rbx), %al
testb $0x2, %r12b
jne 0x11247
cmpb $0x5b, %al
jne 0x11247
incq %rbx
movq %rbx, -0x68(%rbp)
movl %ecx, -0x58(%rbp)
movl $0x5, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x180df
jmp 0x112f1
testb $0x1, %r12b
jne 0x11280
cmpb $0x24, %al
jne 0x11280
leaq -0x78(%rbp), %rdi
callq 0x17dd5
testl %eax, %eax
je 0x112f1
movq -0x78(%rbp), %rbx
movq %rbx, -0x68(%rbp)
incq %rbx
movq %rbx, -0x78(%rbp)
movl -0x70(%rbp), %r13d
decl %r13d
movl %r13d, -0x70(%rbp)
je 0x112e4
movb (%rbx), %al
testb $0x1, %r12b
sete %sil
testb $0x2, %r12b
sete %cl
cmpb $0x24, %al
sete %dil
cmpb $0x5b, %al
sete %dl
testb %dil, %sil
jne 0x112dc
andb %dl, %cl
jne 0x112dc
movl %r13d, %ecx
cmpb $0x5c, %al
sete %al
cmpl $0x2, %r13d
setge %dl
andb %al, %dl
movzbl %dl, %r13d
addq %r13, %rbx
incq %rbx
notl %r13d
addl %ecx, %r13d
je 0x112d9
testb $0x1, %r12b
sete %sil
testb $0x2, %r12b
sete %cl
movb (%rbx), %al
jmp 0x1128f
xorl %r13d, %r13d
movq %rbx, -0x78(%rbp)
movl %r13d, -0x70(%rbp)
decq %rbx
movq %rbx, -0x60(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x50(%rbp)
jne 0x11330
movq -0x68(%rbp), %rsi
movl -0x60(%rbp), %edx
subl %esi, %edx
incl %edx
movl -0x54(%rbp), %ecx
movl -0x58(%rbp), %r8d
leaq -0x280(%rbp), %rdi
callq 0x17b02
movq -0x78(%rbp), %rbx
movl -0x6c(%rbp), %ecx
movl -0x70(%rbp), %r13d
movq %rbx, -0x68(%rbp)
movl %ecx, -0x58(%rbp)
testl %r13d, %r13d
jne 0x1121c
movslq -0x274(%rbp), %rsi
shlq $0x4, %rsi
movq -0x80(%rbp), %r13
movl $0x1, 0x18(%r13)
movl %r12d, 0x14(%r13)
movq 0x128(%r15), %rax
movq %rax, 0x8(%r13)
incl 0x10(%rax)
xorl %edi, %edi
callq *0x25f27(%rip)          # 0x37288
movq %rax, (%r13)
cmpl $0x0, -0x274(%rbp)
jle 0x113b6
movq %rax, %rbx
addq $0x8, %rbx
xorl %r13d, %r13d
xorl %r14d, %r14d
movq -0x280(%rbp), %rsi
movl 0xc(%rsi,%r13), %eax
addq %r13, %rsi
movl %eax, (%rbx)
movq %r15, %rdi
callq 0x182d9
movq %rax, -0x8(%rbx)
incl 0x10(%rax)
incq %r14
movslq -0x274(%rbp), %rax
addq $0x18, %r13
addq $0x10, %rbx
cmpq %rax, %r14
jl 0x1137b
movq -0x80(%rbp), %r13
movl %r14d, 0x10(%r13)
movq -0x280(%rbp), %rdi
leaq -0x270(%rbp), %rax
cmpq %rax, %rdi
je 0x113d5
xorl %esi, %esi
callq *0x25eb3(%rip)          # 0x37288
movq -0x88(%rbp), %r14
movq 0x8(%r14), %rax
testq %rax, %rax
movq -0x90(%rbp), %rbx
je 0x113fd
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x113fd
movq %r15, %rdi
movq %r14, %rsi
callq *%rax
movq %r13, 0x18(%r14)
leaq 0x23e08(%rip), %rax     # 0x35210
movq %rax, 0x8(%r14)
incl 0x10(%r14)
incl 0x18(%r13)
movq (%r13), %rsi
movl 0x10(%r13), %edx
movq %r15, %rdi
movl %r12d, %ecx
callq 0x10b65
movq %rax, (%rbx)
decl 0x18(%r13)
movl 0x10(%r14), %ecx
leal -0x1(%rcx), %edx
movl %edx, 0x10(%r14)
cmpl $0x1, %ecx
jg 0x1144c
movq %r15, %rdi
movq %r14, %rsi
callq 0x758c
movq (%rbx), %rax
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
movl %ecx, %eax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq