// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/string_type.c
// Function: subtilis_string_zt_non_const
subtilis_exp_t *subtilis_string_zt_non_const(subtilis_parser_t *p,
					     subtilis_exp_t *e,
					     subtilis_error_t *err)
{
	if (e->type.type != SUBTILIS_TYPE_STRING) {
		subtilis_error_set_string_variable_expected(
		    err, p->l->stream->name, p->l->line);
		subtilis_exp_delete(e);
		return NULL;
	}

	if (e->temporary)
		return prv_zt_non_const_tmp(p, e, err);

	/*
	 * We need to create a brand new temporary string and copy
	 * the contents of the old string appending a 0 to the end
	 */

	return prv_zt_non_const(p, e, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
cmpl $0x7, (%rsi)
jne 0x48b67
cmpq $0x0, 0x158(%rbx)
je 0x48b8d
movq 0x148(%rbx), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d258
cmpl $0x0, (%r14)
jne 0x48b5a
movq %rax, %rbp
movq 0x148(%rbx), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d272
cmpl $0x0, (%r14)
jne 0x48b5a
movq %rax, %r13
movq 0x148(%rbx), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d8c4
cmpl $0x0, (%r14)
jne 0x48b5a
movq %rax, %r12
movq 0x48(%r15), %rdi
movl $0x1, %edx
movl $0x1b, %esi
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x48b57
movq %rax, (%rsp)
movq 0x48(%r15), %rdi
movl $0x1, %ecx
movl $0x9, %esi
movq %r12, %rdx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
je 0x48c5e
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x2b166
jmp 0x48bf5
movq (%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x2cf68(%rip), %r8      # 0x75ae0
movq %r14, %rdi
movl $0x4b, %esi
movl $0x279, %r9d            # imm = 0x279
callq 0x145c8
jmp 0x48bea
leaq 0x8(%rsp), %r12
movl $0x2, %esi
movq %r12, %rdi
callq 0x149f4
leaq 0x2cf51(%rip), %rsi     # 0x75af7
movl $0x2, %edx
movq %r12, %rdi
movq %r14, %rcx
callq 0x14ae8
cmpl $0x0, (%r14)
je 0x48bc1
xorl %r13d, %r13d
jmp 0x48be2
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2b854
movq %rax, %r13
movq %r12, %rdi
callq 0x14d5c
cmpl $0x0, (%r14)
je 0x48c07
movq %r13, %rdi
callq 0x2b166
movq %rbx, %rdi
callq 0x2b166
xorl %r12d, %r12d
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x4bada
cmpl $0x0, (%r14)
jne 0x48bf5
movq %rax, %rbx
movq 0x148(%rax), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d258
movq %rax, %r15
movq %rbx, %rdi
callq 0x2b166
cmpl $0x0, (%r14)
jne 0x48bf5
movl %r15d, %edi
movq %r14, %rsi
callq 0x2b71f
movq %rax, %r12
jmp 0x48bf5
movq 0x148(%rbx), %rdx
movq %r12, %r9
xorl %r12d, %r12d
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rcx
movq %rbp, %r8
movq %r9, %rbp
pushq %r14
pushq $-0x1
pushq 0x10(%rsp)
pushq %rax
callq 0x4debe
addq $0x20, %rsp
cmpl $0x0, (%r14)
jne 0x48b5a
movq %rax, %r13
movq %rbp, %rcx
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
andq %rax, %rbp
movq 0x48(%r15), %rdi
movl $0x1b, %esi
movq %rcx, %r12
movq %rbp, %rdx
movq %r14, %rcx
callq 0x2be09
cmpl $0x0, (%r14)
jne 0x48b57
movq %rax, (%rsp)
movq 0x48(%r15), %rdi
movq %r12, %rcx
xorl %r12d, %r12d
xorl %esi, %esi
movq %r13, %rdx
movq %r14, %r8
callq 0x2bc8f
cmpl $0x0, (%r14)
jne 0x48b5a
movq 0x48(%r15), %rdi
movl $0x16, %esi
movq (%rsp), %rdx
movq %rax, %rcx
movq %rbp, %r8
movq %r14, %r9
callq 0x2bd42
cmpl $0x0, (%r14)
jne 0x48b57
movl %r13d, %edi
movq %r14, %rsi
callq 0x2b71f
movq %rax, %r12
jmp 0x48b5a