// File: /workspace/github_c_makefile_star2_O1/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 0x96017
movq 0x28(%r12), %rsi
leaq -0x38(%rbp), %rbx
movl $0x22, %edi
movq %rbx, %rdx
callq 0x95160
movq (%rbx), %rax
movq %rax, 0x28(%r12)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %r14, %rcx
andq %r15, %rcx
setne %al
testb $0x3, %r14b
sete %dl
andb %al, %dl
movb %dl, -0x29(%rbp)
cmpb $0x1, %dl
jne 0x9603e
addl $0x2, (%rcx)
movq %rcx, -0x50(%rbp)
movq %r14, %rdi
callq 0xebc3
movq %rax, %rbx
movq %r14, -0x40(%rbp)
movq %r14, %rdi
callq 0xe740
movq %rax, %rdi
callq 0xe7a9
movq %rax, %r14
movq %rax, %rcx
andq %r15, %rcx
sete %al
testb $0x3, %r14b
setne %r15b
orb %al, %r15b
jne 0x9607c
incl (%rcx)
movq %rcx, -0x48(%rbp)
movl $0x1, %edi
movq %r14, %rsi
callq 0xec04
testl %eax, %eax
setle %al
movq %r14, %rdi
movl $0x1, %ecx
cmovgq %rcx, %r14
orb %al, %r15b
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
jne 0x960c7
movq -0x48(%rbp), %rax
decl (%rax)
jne 0x960c1
leaq 0x7f36d(%rip), %rsi     # 0x115429
callq 0xd4e3
movl $0x1, %r14d
movq %r14, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x960dd
incl (%rax)
movl $0x1, %edi
movq %r14, %rsi
callq 0xec04
testl %eax, %eax
jns 0x961dc
xorl %r15d, %r15d
movzbl (%rbx), %edi
callq 0xe7a9
movq %rax, %rdi
callq 0xe818
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 0x96950
movl $0x3, %esi
movq %r14, %rdi
callq 0xedca
movq %rax, %r12
movq %rax, %r15
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r15
sete %al
testb $0x3, %r12b
setne %r13b
orb %al, %r13b
jne 0x9615c
incl (%r15)
movl $0x1, %edi
movq %r12, %rsi
callq 0xec04
movq %r12, %r14
testl %eax, %eax
setle %al
jle 0x96179
movl $0x1, %r14d
orb %al, %r13b
jne 0x96198
decl (%r15)
movl $0x1, %r14d
jne 0x96198
movq %r12, %rdi
leaq 0x7f296(%rip), %rsi     # 0x115429
callq 0xd4e3
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x961b8
incl (%rax)
incq %rbx
movl $0x1, %edi
movq %r14, %rsi
callq 0xec04
movb -0x2a(%rbp), %r15b
movq -0x68(%rbp), %r12
movq -0x38(%rbp), %r13
testl %eax, %eax
js 0x960f5
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r14, %rdx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x9620a
decl (%rdx)
jne 0x9620a
leaq 0x7ef0f(%rip), %rsi     # 0x115111
movq %r14, %rdi
callq 0xd4e3
cmpb $0x0, -0x29(%rbp)
je 0x96228
movq -0x50(%rbp), %rax
decl (%rax)
jne 0x96228
leaq 0x7ef3a(%rip), %rsi     # 0x115159
movq -0x40(%rbp), %rdi
callq 0xd4e3
cmpb $0x1, 0x18(%r12)
jne 0x9624e
movq 0x28(%r12), %rsi
leaq -0x38(%rbp), %rbx
movl $0x22, %edi
movq %rbx, %rdx
callq 0x95160
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