// File: /workspace/github_c_makefile_star2_O2/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 $0x58, %rsp
movq %r8, -0x58(%rbp)
movq %rcx, -0x60(%rbp)
movq %rdx, %rbx
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
pushq $0x22
popq %rdx
leaq -0x70(%rbp), %rcx
leaq -0x68(%rbp), %r8
callq 0x8c6c2
movq %rbx, %rcx
andq %r15, %rcx
setne %al
testb $0x3, %bl
sete %dl
andb %al, %dl
movb %dl, -0x29(%rbp)
cmpb $0x1, %dl
jne 0x8bea3
addl $0x2, (%rcx)
movq %rcx, -0x50(%rbp)
movq %rbx, %rdi
callq 0xdf99
movq %rax, %r12
movq %rbx, -0x48(%rbp)
movq %rbx, %rdi
callq 0xdb65
movq %rax, %rdi
callq 0xdbc8
movq %rax, %r14
movq %rax, %r13
andq %r15, %r13
sete %al
testb $0x3, %r14b
setne %r15b
orb %al, %r15b
jne 0x8bee3
incl (%r13)
pushq $0x1
popq %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdfd4
movq %rbx, %rcx
orb %al, %r15b
testb %al, %al
movq %r14, %rbx
cmoveq %rcx, %rbx
testb %r15b, %r15b
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
jne 0x8bf2c
decl (%r13)
je 0x8bf1a
movq %rcx, %rbx
jmp 0x8bf2c
movq %rcx, %rbx
movq %r14, %rdi
leaq 0x7c502(%rip), %rsi     # 0x108429
callq 0xce94
movq %rbx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x8bf41
incl (%rax)
pushq $0x1
popq %rdi
movq %rbx, %rsi
callq 0x89cc
movq -0x70(%rbp), %r13
xorl %r14d, %r14d
movq -0x68(%rbp), %r15
testb $0x1, %al
je 0x8c02b
movq %r12, %rdi
callq 0x12ef5
leaq -0x2a(%rbp), %rcx
movq %rcx, (%rsp)
movzbl %r14b, %edx
andl $0x1, %edx
movq %r13, %rdi
movq %r15, %rsi
movl %eax, %ecx
leaq -0x40(%rbp), %r8
leaq -0x38(%rbp), %r9
callq 0x8c713
movq %rbx, %rdi
pushq $0x3
popq %rsi
callq 0xe191
movq %rax, %r15
movq %rax, %r14
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r14
sete %al
testb $0x3, %r15b
setne %r13b
orb %al, %r13b
jne 0x8bfbc
incl (%r14)
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0xdfd4
movq %r15, %rbx
testb %al, %al
jne 0x8bfd1
pushq $0x1
popq %rbx
orb %al, %r13b
jne 0x8bfed
decl (%r14)
pushq $0x1
popq %rbx
jne 0x8bfed
movq %r15, %rdi
leaq 0x7c441(%rip), %rsi     # 0x108429
callq 0xce94
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x8c00c
incl (%rax)
incq %r12
pushq $0x1
popq %rdi
movq %rbx, %rsi
callq 0x89cc
movb -0x2a(%rbp), %r14b
movq -0x38(%rbp), %r15
movq -0x40(%rbp), %r13
jmp 0x8bf57
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rdx
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x8c058
decl (%rdx)
jne 0x8c058
movq %rbx, %rdi
leaq 0x7c0be(%rip), %rsi     # 0x108111
callq 0xce94
cmpb $0x0, -0x29(%rbp)
je 0x8c076
movq -0x50(%rbp), %rax
decl (%rax)
jne 0x8c076
movq -0x48(%rbp), %rdi
leaq 0x7c0e8(%rip), %rsi     # 0x108159
callq 0xce94
pushq $0x22
popq %rdx
leaq -0x40(%rbp), %rbx
leaq -0x38(%rbp), %r14
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rcx
movq %r14, %r8
callq 0x8c6c2
movq (%r14), %rax
movq -0x58(%rbp), %rcx
movq %rax, (%rcx)
movq (%rbx), %rax
movq -0x60(%rbp), %rcx
movq %rax, (%rcx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq