// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99_putzecstr
static void mw_mirth_c99_zaC99_putzecstr (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, STR* in_Str_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99* *out_zaC99_5) {
	bool v6 = false;
	enum std_byte_Byte v7 = std_byte_Byte_BQUOTE;
	struct mirth_mirth_zaMirth* v8;
	struct mirth_c99_zaC99* v9;
	mw_mirth_c99_zaC99_putzebyte(in_zaMirth_1, in_zaC99_2, v7, &v8, &v9);
	incref(MKSTR(in_Str_3));
	incref(MKSTR(in_Str_3));
	void* v10 = str_base(in_Str_3);
	uint64_t v11 = str_size(in_Str_3);
	INT v12 = u64_to_int(v11);
	incref(MKINT(v12));
	INT v13 = WRAP_I63(0LL);
	INT v14 = v13;
	bool v15 = int_le(v14, v12);
	INT branch_Nat_16;
	if (v15) {
		INT v17 = v12;
		branch_Nat_16 = v17;
	} else {
		decref(MKINT(v12));
		INT v18 = WRAP_I63(0LL);
		branch_Nat_16 = v18;
	}
	incref(MKNAT(branch_Nat_16));
	INT v19 = WRAP_I63(0LL);
	INT v20 = branch_Nat_16;
	INT v21 = v19;
	bool v22 = int_lt(v21, v20);
	struct mirth_mirth_zaMirth* r23 = v8;
	struct mirth_c99_zaC99* r24 = v9;
	bool v25 = v6;
	void* v26 = v10;
	INT v27 = branch_Nat_16;
	bool v28 = v22;
	while (v28) {
		struct mirth_mirth_zaMirth* r29 = r23;
		struct mirth_c99_zaC99* r30 = r24;
		bool v31 = v25;
		void* v32 = v26;
		INT v33 = v27;
		enum std_byte_Byte v34 = mw_std_prelude_unsafe_1_sp9(v32);
		struct mirth_mirth_zaMirth* v35;
		struct mirth_c99_zaC99* v36;
		bool v37;
		mw_mirth_c99_c99zestringzebytezx(r29, r30, v31, v34, &v35, &v36, &v37);
		INT v38 = WRAP_I63(1LL);
		void* v39 = mw_std_prelude_unsafe_1_sp5(v38, v32);
		INT v40 = WRAP_I63(1LL);
		INT v41 = v33;
		INT v42 = v40;
		INT v43 = int_sub(v41, v42);
		incref(MKINT(v43));
		INT v44 = WRAP_I63(0LL);
		INT v45 = v44;
		bool v46 = int_le(v45, v43);
		INT branch_Nat_47;
		if (v46) {
			INT v48 = v43;
			branch_Nat_47 = v48;
		} else {
			decref(MKINT(v43));
			INT v49 = WRAP_I63(0LL);
			branch_Nat_47 = v49;
		}
		incref(MKNAT(branch_Nat_47));
		INT v50 = WRAP_I63(0LL);
		INT v51 = branch_Nat_47;
		INT v52 = v50;
		bool v53 = int_lt(v52, v51);
		v28 = v53;
		v27 = branch_Nat_47;
		v26 = v39;
		v25 = v37;
		r24 = v36;
		r23 = v35;
	}
	decref(MKNAT(v27));
	decref(MKSTR(in_Str_3));
	enum std_byte_Byte v54 = std_byte_Byte_BQUOTE;
	struct mirth_mirth_zaMirth* v55;
	struct mirth_c99_zaC99* v56;
	mw_mirth_c99_zaC99_putzebyte(r23, r24, v54, &v55, &v56);
	*out_zaC99_5 = v56;
	*out_zaMirth_4 = v55;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, -0x58(%rbp)
movq %rcx, -0x60(%rbp)
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
cmpb $0x1, 0x18(%rsi)
jne 0x93912
movq 0x28(%r12), %rsi
leaq -0x38(%rbp), %rbx
movl $0x22, %edi
movq %rbx, %rdx
callq 0x92a13
movq (%rbx), %rax
movq %rax, 0x28(%r12)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r14, %rcx
andq %rax, %rcx
setne %al
testb $0x3, %r14b
sete %dl
andb %al, %dl
movb %dl, -0x29(%rbp)
cmpb $0x1, %dl
jne 0x93939
addl $0x2, (%rcx)
movq %rcx, -0x50(%rbp)
movq %r14, %rdi
callq 0xe7f9
movq %rax, %rbx
movq %r14, -0x48(%rbp)
movq %r14, %rdi
callq 0xe36d
movq %rax, %rdi
callq 0xe3d6
movq %rax, %rdx
movq %rax, %r15
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r15
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x939b6
incl (%r15)
movl $0x1, %r14d
movl $0x1, %edi
movq %rdx, -0x40(%rbp)
movq %rdx, %rsi
callq 0xe83a
movl (%r15), %ecx
testl %eax, %eax
jle 0x939d7
movq -0x40(%rbp), %rdi
decl %ecx
movl %ecx, (%r15)
jne 0x939e0
leaq 0x7da7a(%rip), %rsi     # 0x111429
callq 0xd13d
jmp 0x939e0
movl $0x1, %r14d
movl $0x1, %edi
movq %rdx, %r15
movq %rdx, %rsi
callq 0xe83a
testl %eax, %eax
cmovgq %r14, %r15
movq %r15, %r14
jmp 0x939e0
incl %ecx
movl %ecx, (%r15)
movq -0x40(%rbp), %r14
movl $0x1, %edi
movq %r14, %rsi
callq 0xe83a
testl %eax, %eax
jns 0x93ad4
xorl %r15d, %r15d
movzbl (%rbx), %edi
callq 0xe3d6
movq %rax, %rdi
callq 0xe445
leaq -0x2a(%rbp), %rcx
movq %rcx, (%rsp)
movzbl %r15b, %edx
andl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
movl %eax, %ecx
leaq -0x38(%rbp), %r8
leaq -0x68(%rbp), %r9
callq 0x941f4
movl $0x3, %esi
movq %r14, %rdi
callq 0xe9fc
movq %rax, %r12
movq %rax, %r15
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r15
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x93a8f
incl (%r15)
movl $0x1, %edi
movq %r12, %rsi
callq 0xe83a
movl (%r15), %ecx
testl %eax, %eax
jle 0x93aa8
movl $0x1, %r14d
decl %ecx
movl %ecx, (%r15)
jne 0x93ab0
movq %r12, %rdi
leaq 0x7d9a1(%rip), %rsi     # 0x111429
callq 0xd13d
jmp 0x93ab0
movl $0x1, %edi
movq %r12, %rsi
callq 0xe83a
testl %eax, %eax
jle 0x93aad
movl $0x1, %r12d
jmp 0x93aad
incl %ecx
movl %ecx, (%r15)
movq %r12, %r14
incq %rbx
movl $0x1, %edi
movq %r14, %rsi
callq 0xe83a
movb -0x2a(%rbp), %r15b
movq -0x68(%rbp), %r12
movq -0x38(%rbp), %r13
testl %eax, %eax
js 0x939f8
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r14, %rdx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x93b02
decl (%rdx)
jne 0x93b02
leaq 0x7d617(%rip), %rsi     # 0x111111
movq %r14, %rdi
callq 0xd13d
cmpb $0x0, -0x29(%rbp)
je 0x93b20
movq -0x50(%rbp), %rax
decl (%rax)
jne 0x93b20
leaq 0x7d642(%rip), %rsi     # 0x111159
movq -0x48(%rbp), %rdi
callq 0xd13d
cmpb $0x1, 0x18(%r12)
jne 0x93b46
movq 0x28(%r12), %rsi
leaq -0x38(%rbp), %rbx
movl $0x22, %edi
movq %rbx, %rdx
callq 0x92a13
movq (%rbx), %rax
movq %rax, 0x28(%r12)
movq -0x58(%rbp), %rax
movq %r12, (%rax)
movq -0x60(%rbp), %rax
movq %r13, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq