// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_prim_Str_reprzj
static void mw_std_prim_Str_reprzj (STR* in_Str_1, STR* in_zaStr_2, STR* *out_zaStr_3) {
	STR* v4;
	STRLIT(v4, "\"", 1);
	STR* v5;
	mw_std_str_zaStr_pushzestrzx(v4, in_zaStr_2, &v5);
	bool v6 = false;
	incref(MKSTR(in_Str_1));
	incref(MKSTR(in_Str_1));
	void* v7 = str_base(in_Str_1);
	uint64_t v8 = str_size(in_Str_1);
	INT v9 = u64_to_int(v8);
	incref(MKINT(v9));
	INT v10 = WRAP_I63(0LL);
	INT v11 = v10;
	bool v12 = int_le(v11, v9);
	INT branch_Nat_13;
	if (v12) {
		INT v14 = v9;
		branch_Nat_13 = v14;
	} else {
		decref(MKINT(v9));
		INT v15 = WRAP_I63(0LL);
		branch_Nat_13 = v15;
	}
	incref(MKNAT(branch_Nat_13));
	INT v16 = WRAP_I63(0LL);
	INT v17 = branch_Nat_13;
	INT v18 = v16;
	bool v19 = int_lt(v18, v17);
	STR* r20 = v5;
	bool v21 = v6;
	void* v22 = v7;
	INT v23 = branch_Nat_13;
	bool v24 = v19;
	while (v24) {
		STR* r25 = r20;
		bool v26 = v21;
		void* v27 = v22;
		INT v28 = v23;
		enum std_byte_Byte v29 = mw_std_prelude_unsafe_1_sp9(v27);
		bool v30;
		STR* v31;
		mw_std_str_zaStr_pushzereprzebytezx(r25, v26, v29, &v30, &v31);
		INT v32 = WRAP_I63(1LL);
		void* v33 = mw_std_prelude_unsafe_1_sp5(v32, v27);
		INT v34 = WRAP_I63(1LL);
		INT v35 = v28;
		INT v36 = v34;
		INT v37 = int_sub(v35, v36);
		incref(MKINT(v37));
		INT v38 = WRAP_I63(0LL);
		INT v39 = v38;
		bool v40 = int_le(v39, v37);
		INT branch_Nat_41;
		if (v40) {
			INT v42 = v37;
			branch_Nat_41 = v42;
		} else {
			decref(MKINT(v37));
			INT v43 = WRAP_I63(0LL);
			branch_Nat_41 = v43;
		}
		incref(MKNAT(branch_Nat_41));
		INT v44 = WRAP_I63(0LL);
		INT v45 = branch_Nat_41;
		INT v46 = v44;
		bool v47 = int_lt(v46, v45);
		v24 = v47;
		v23 = branch_Nat_41;
		v22 = v33;
		v21 = v30;
		r20 = v31;
	}
	decref(MKNAT(v23));
	decref(MKSTR(in_Str_1));
	STR* v48;
	STRLIT(v48, "\"", 1);
	STR* v49;
	mw_std_str_zaStr_pushzestrzx(v48, r20, &v49);
	*out_zaStr_3 = v49;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x68(%rbp)
movq %rsi, %rbx
movq %rdi, %r15
movq 0x1091aad(%rip), %rsi   # 0x110d560
testq %rsi, %rsi
jne 0x7bad1
leaq 0x60c2e(%rip), %rdi     # 0xdc6ed
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x1091a8f(%rip)   # 0x110d560
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rsi, %rax
andq %r14, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x7baf1
incl (%rax)
movq %rbx, %rdi
callq 0xd8b0
movq %rax, -0x38(%rbp)
movq %r15, %rcx
andq %r14, %rcx
setne %al
testb $0x3, %r15b
sete %dl
andb %al, %dl
movb %dl, -0x39(%rbp)
cmpb $0x1, %dl
jne 0x7bb1a
addl $0x2, (%rcx)
movq %rcx, -0x60(%rbp)
movq %r15, %rdi
callq 0xdf99
movq %rax, %r12
movq %r15, -0x58(%rbp)
movq %r15, %rdi
callq 0xdb65
movq %rax, %rdi
callq 0xdbc8
movq %rax, %r14
movq %rax, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
sete %al
testb $0x3, %r14b
setne %r15b
orb %al, %r15b
jne 0x7bb64
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
jne 0x7bba3
decl (%r13)
je 0x7bb91
movq %rcx, %rbx
jmp 0x7bba3
movq %rcx, %rbx
movq %r14, %rdi
leaq 0x8c88b(%rip), %rsi     # 0x108429
callq 0xce94
movq %rbx, %rax
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
movl $0x0, -0x2c(%rbp)
orb %cl, %dl
jne 0x7bbc9
incl (%rax)
pushq $0x1
popq %rdi
movq %rbx, %rsi
callq 0x89cc
testb %al, %al
je 0x7bf28
movq %r12, %rdi
callq 0x12ef5
cmpl $0x9, %eax
je 0x7be28
movl %eax, %r14d
cmpl $0xa, %eax
je 0x7bc3d
cmpl $0xd, %r14d
je 0x7bc99
cmpl $0x5c, %r14d
je 0x7bc6b
cmpl $0x22, %r14d
jne 0x7bcc7
movq 0x109195a(%rip), %rsi   # 0x110d570
testq %rsi, %rsi
jne 0x7be4d
leaq 0x60ac6(%rip), %rdi     # 0xdc6ec
pushq $0x2
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x1091938(%rip)   # 0x110d570
jmp 0x7be4d
movq 0x109193c(%rip), %rsi   # 0x110d580
testq %rsi, %rsi
jne 0x7be4d
leaq 0x59d92(%rip), %rdi     # 0xd59e6
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x109191a(%rip)   # 0x110d580
jmp 0x7be4d
movq 0x1091906(%rip), %rsi   # 0x110d578
testq %rsi, %rsi
jne 0x7be4d
leaq 0x60a6d(%rip), %rdi     # 0xdc6ef
pushq $0x2
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10918e4(%rip)   # 0x110d578
jmp 0x7be4d
movq 0x10918e8(%rip), %rsi   # 0x110d588
testq %rsi, %rsi
jne 0x7be4d
leaq 0x60a42(%rip), %rdi     # 0xdc6f2
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10918c6(%rip)   # 0x110d588
jmp 0x7be4d
movl %r14d, %r15d
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
testb $-0x20, %al
je 0x7bda8
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
movzbl %al, %eax
cmpq $0x7f, %rax
setae %cl
movl -0x2c(%rbp), %edx
notb %dl
orb %cl, %dl
testb $0x1, %dl
jne 0x7bf06
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
andl $0xf0, %eax
cmpl $0x30, %eax
jb 0x7bd40
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
andl $0xfe, %eax
cmpl $0x3a, %eax
jb 0x7bda8
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
movzbl %al, %eax
cmpl $0x41, %eax
jb 0x7bd70
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
movzbl %al, %eax
cmpl $0x47, %eax
jb 0x7bda8
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
movzbl %al, %eax
cmpl $0x61, %eax
jb 0x7bf0f
movq %r15, %rdi
callq 0xd86d
movq %rax, %rdi
callq 0xdc43
movzbl %al, %eax
cmpl $0x66, %eax
ja 0x7bf0f
movq 0x10917e9(%rip), %rsi   # 0x110d598
testq %rsi, %rsi
jne 0x7bdcd
leaq 0x6093b(%rip), %rdi     # 0xdc6f6
pushq $0x2
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10917cb(%rip)   # 0x110d598
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x7bde3
incl (%rax)
movq -0x38(%rbp), %rdi
callq 0xd8b0
movq %rax, %r15
movl %r14d, %edi
leaq -0x4c(%rbp), %rsi
callq 0x7bfc5
movl %eax, %edi
movq %r15, %rsi
leaq -0x48(%rbp), %rdx
callq 0x11e73
movl -0x4c(%rbp), %edi
movq -0x48(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x11e73
movq -0x70(%rbp), %rax
movq %rax, -0x38(%rbp)
movb $0x1, %al
movl %eax, -0x2c(%rbp)
jmp 0x7be77
movq 0x1091761(%rip), %rsi   # 0x110d590
testq %rsi, %rsi
jne 0x7be4d
leaq 0x608b9(%rip), %rdi     # 0xdc6f4
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x1091743(%rip)   # 0x110d590
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x7be63
incl (%rax)
movq -0x38(%rbp), %rdi
callq 0xd8b0
movq %rax, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
movq %rbx, %rdi
pushq $0x3
popq %rsi
callq 0xe191
movq %rax, %r14
movq %rax, %r15
andq %r13, %r15
sete %al
testb $0x3, %r14b
setne %r13b
orb %al, %r13b
jne 0x7be9e
incl (%r15)
pushq $0x1
popq %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdfd4
movq %rbx, %rdi
orb %al, %r13b
testb %al, %al
movq %r14, %rbx
cmoveq %rdi, %rbx
testb %r13b, %r13b
jne 0x7bedd
decl (%r15)
movq %rdi, %rbx
jne 0x7bedd
movq %r14, %rdi
leaq 0x8c557(%rip), %rsi     # 0x108429
callq 0xce94
pushq $0x1
popq %rdi
movq %rdi, %rbx
incq %r12
movq %rbx, %rax
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
andq %r13, %rax
setne %cl
testb $0x3, %bl
sete %dl
testb %dl, %cl
je 0x7bbcc
jmp 0x7bbc7
cmpl $0x7e, %eax
ja 0x7bda8
movl %r14d, %edi
movq -0x38(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x11e73
movq -0x48(%rbp), %rax
jmp 0x7be6c
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x7bf4e
decl (%rax)
jne 0x7bf4e
movq %rbx, %rdi
leaq 0x8c1c8(%rip), %rsi     # 0x108111
callq 0xce94
cmpb $0x0, -0x39(%rbp)
je 0x7bf6c
movq -0x60(%rbp), %rax
decl (%rax)
jne 0x7bf6c
movq -0x58(%rbp), %rdi
leaq 0x8c1f2(%rip), %rsi     # 0x108159
callq 0xce94
movq 0x10915f5(%rip), %rsi   # 0x110d568
testq %rsi, %rsi
jne 0x7bf91
leaq 0x6076e(%rip), %rdi     # 0xdc6ed
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10915d7(%rip)   # 0x110d568
andq %rsi, %r13
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x7bfa6
incl (%r13)
movq -0x38(%rbp), %rdi
callq 0xd8b0
movq -0x68(%rbp), %rcx
movq %rax, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq