// File: /workspace/github_c_makefile_star2_O1/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 0x48be7
cmpq $0x0, 0x158(%rbx)
je 0x48c0d
movq 0x148(%rbx), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d29c
cmpl $0x0, (%r14)
jne 0x48bda
movq %rax, %rbp
movq 0x148(%rbx), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d2b6
cmpl $0x0, (%r14)
jne 0x48bda
movq %rax, %r13
movq 0x148(%rbx), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d908
cmpl $0x0, (%r14)
jne 0x48bda
movq %rax, %r12
movq 0x48(%r15), %rdi
movl $0x1, %edx
movl $0x1b, %esi
movq %r14, %rcx
callq 0x2c189
cmpl $0x0, (%r14)
jne 0x48bd7
movq %rax, (%rsp)
movq 0x48(%r15), %rdi
movl $0x1, %ecx
movl $0x9, %esi
movq %r12, %rdx
movq %r14, %r8
callq 0x2c00f
cmpl $0x0, (%r14)
je 0x48cde
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x2b4c3
jmp 0x48c75
movq (%r15), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x2cea4(%rip), %r8      # 0x75a9c
movq %r14, %rdi
movl $0x4b, %esi
movl $0x279, %r9d            # imm = 0x279
callq 0x14618
jmp 0x48c6a
leaq 0x8(%rsp), %r12
movl $0x2, %esi
movq %r12, %rdi
callq 0x14a40
leaq 0x2ce8d(%rip), %rsi     # 0x75ab3
movl $0x2, %edx
movq %r12, %rdi
movq %r14, %rcx
callq 0x14b32
cmpl $0x0, (%r14)
je 0x48c41
xorl %r13d, %r13d
jmp 0x48c62
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2bbce
movq %rax, %r13
movq %r12, %rdi
callq 0x14da6
cmpl $0x0, (%r14)
je 0x48c87
movq %r13, %rdi
callq 0x2b4c3
movq %rbx, %rdi
callq 0x2b4c3
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 0x4bb28
cmpl $0x0, (%r14)
jne 0x48c75
movq %rax, %rbx
movq 0x148(%rax), %rsi
xorl %r12d, %r12d
movq %r15, %rdi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4d29c
movq %rax, %r15
movq %rbx, %rdi
callq 0x2b4c3
cmpl $0x0, (%r14)
jne 0x48c75
movl %r15d, %edi
movq %r14, %rsi
callq 0x2ba99
movq %rax, %r12
jmp 0x48c75
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 0x4df02
addq $0x20, %rsp
cmpl $0x0, (%r14)
jne 0x48bda
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 0x2c189
cmpl $0x0, (%r14)
jne 0x48bd7
movq %rax, (%rsp)
movq 0x48(%r15), %rdi
movq %r12, %rcx
xorl %r12d, %r12d
xorl %esi, %esi
movq %r13, %rdx
movq %r14, %r8
callq 0x2c00f
cmpl $0x0, (%r14)
jne 0x48bda
movq 0x48(%r15), %rdi
movl $0x16, %esi
movq (%rsp), %rdx
movq %rax, %rcx
movq %rbp, %r8
movq %r14, %r9
callq 0x2c0c2
cmpl $0x0, (%r14)
jne 0x48bd7
movl %r13d, %edi
movq %r14, %rsi
callq 0x2ba99
movq %rax, %r12
jmp 0x48bda