// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rsi, %r13
movq %rdi, %r15
movq 0x8(%rsi), %rax
leaq 0x24f75(%rip), %rcx     # 0x36200
cmpq %rcx, %rax
jne 0x1129e
movq 0x18(%r13), %rcx
cmpl %r12d, 0x14(%rcx)
je 0x11531
movq %r14, -0x90(%rbp)
cmpq $0x0, (%r13)
jne 0x112b2
movq %r13, %rdi
callq *0x18(%rax)
movl 0x14(%r13), %eax
movl %eax, -0x38(%rbp)
movq %r13, -0x88(%rbp)
movq (%r13), %r13
xorl %r14d, %r14d
movl $0x28, %esi
xorl %edi, %edi
callq *0x26fb4(%rip)          # 0x38288
movq %rax, -0x30(%rbp)
leaq -0x270(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x14, -0x8(%rax)
leaq -0x80(%rbp), %rbx
movq %r13, (%rbx)
movl -0x38(%rbp), %eax
movl %eax, 0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movl $0x1, %eax
movl %eax, 0xc(%rbx)
movabsq $0x2000000001, %rcx     # imm = 0x2000000001
movq %rcx, 0x30(%rbx)
movl %eax, 0x38(%rbx)
movl %r12d, %ecx
andl $0x4, %ecx
cmpl %eax, %ecx
adcl %eax, %r14d
movq %r14, -0x38(%rbp)
leaq -0x280(%rbp), %r13
movl %r12d, %r14d
andl $0x2, %r14d
shrl %r14d
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movl -0x74(%rbp), %ecx
movl %ecx, -0x60(%rbp)
cmpl $0x0, -0x78(%rbp)
je 0x1137c
movb (%rax), %dl
cmpb $0x5b, %dl
setne %sil
orb %r14b, %sil
jne 0x11393
incq %rax
movq %rax, -0x70(%rbp)
movl %ecx, -0x60(%rbp)
movl $0x5, -0x5c(%rbp)
movq %rbx, %rdi
callq 0x185da
jmp 0x11429
movq %rax, -0x68(%rbp)
movabsq $0x100000007, %rax      # imm = 0x100000007
movq %rax, -0x5c(%rbp)
jmp 0x11429
cmpb $0x24, %dl
setne %al
orb %r12b, %al
testb $0x1, %al
jne 0x113be
movq %rbx, %rdi
callq 0x18311
testl %eax, %eax
je 0x11429
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
incq %rax
movq %rax, -0x80(%rbp)
decl -0x78(%rbp)
movl -0x78(%rbp), %eax
testl %eax, %eax
je 0x11417
movq -0x80(%rbp), %rcx
testb $0x1, %r12b
sete %r8b
testb $0x2, %r12b
sete %sil
movb (%rcx), %dl
cmpb $0x24, %dl
sete %r9b
cmpb $0x5b, %dl
sete %dil
testb %r9b, %r8b
jne 0x11417
andb %dil, %sil
jne 0x11417
cmpl $0x2, %eax
jl 0x11409
cmpb $0x5c, %dl
jne 0x11409
incq %rcx
movq %rcx, -0x80(%rbp)
decl %eax
movl %eax, -0x78(%rbp)
incq %rcx
movq %rcx, -0x80(%rbp)
decl %eax
movl %eax, -0x78(%rbp)
jne 0x113c9
movq -0x80(%rbp), %rax
decq %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
movl %eax, -0x5c(%rbp)
cmpl $0x0, -0x58(%rbp)
jne 0x1144e
movq -0x70(%rbp), %rsi
movl -0x68(%rbp), %edx
subl %esi, %edx
incl %edx
movl -0x5c(%rbp), %ecx
movl -0x60(%rbp), %r8d
movq %r13, %rdi
callq 0x18041
jmp 0x1133c
movq -0x30(%rbp), %r13
movl $0x1, 0x18(%r13)
movl %r12d, 0x14(%r13)
movq 0x128(%r15), %rax
movq %rax, 0x8(%r13)
incl 0x10(%rax)
movslq -0x274(%rbp), %rsi
shlq $0x4, %rsi
xorl %r14d, %r14d
xorl %edi, %edi
callq *0x26e06(%rip)          # 0x38288
movq %rax, (%r13)
cmpl $0x0, -0x274(%rbp)
jle 0x114d3
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 0x18797
movq %rax, -0x8(%rbx)
incl 0x10(%rax)
incq %r14
movslq -0x274(%rbp), %rax
addq $0x18, %r13
addq $0x10, %rbx
cmpq %rax, %r14
jl 0x1149c
movq -0x30(%rbp), %rax
movl %r14d, 0x10(%rax)
movq -0x280(%rbp), %rdi
leaq -0x270(%rbp), %rax
cmpq %rax, %rdi
je 0x114f6
xorl %esi, %esi
callq *0x26d92(%rip)          # 0x38288
movq -0x88(%rbp), %r13
movq 0x8(%r13), %rax
testq %rax, %rax
movq -0x90(%rbp), %r14
je 0x1151e
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x1151e
movq %r15, %rdi
movq %r13, %rsi
callq *%rax
movq -0x30(%rbp), %rax
movq %rax, 0x18(%r13)
leaq 0x24cd3(%rip), %rax     # 0x36200
movq %rax, 0x8(%r13)
movq 0x18(%r13), %rbx
incl 0x10(%r13)
incl 0x18(%rbx)
movq (%rbx), %rsi
movl 0x10(%rbx), %edx
movq %r15, %rdi
movl %r12d, %ecx
callq 0x10c96
movq %rax, (%r14)
decl 0x18(%rbx)
movl 0x10(%r13), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r13)
cmpl $0x1, %eax
jg 0x1156e
movq %r15, %rdi
movq %r13, %rsi
callq 0x759a
xorl %eax, %eax
cmpq $0x0, (%r14)
sete %al
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq