// File: /workspace/github_c_makefile_star2_O1/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, -0x60(%rbp)
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x109527b(%rip)   # 0x111a558
jne 0x852fc
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x22, 0x18(%rax)
movq %rax, 0x109525c(%rip)   # 0x111a558
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq 0x109524b(%rip), %rsi   # 0x111a558
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x85323
incl (%rax)
movq %rbx, %rdi
callq 0xe43c
movq %rax, -0x30(%rbp)
movq %r14, %rcx
andq %r13, %rcx
setne %al
testb $0x3, %r14b
sete %dl
andb %al, %dl
movb %dl, -0x35(%rbp)
cmpb $0x1, %dl
jne 0x8534c
addl $0x2, (%rcx)
movq %rcx, -0x50(%rbp)
movq %r14, %rdi
callq 0xebc3
movq %rax, %r12
movq %r14, -0x58(%rbp)
movq %r14, %rdi
callq 0xe740
movq %rax, %rdi
callq 0xe7a9
movq %rax, %r14
movq %rax, %r15
andq %r13, %r15
sete %al
testb $0x3, %r14b
setne %r13b
orb %al, %r13b
jne 0x8538b
incl (%r15)
movl $0x1, %edi
movq %r14, %rsi
callq 0xec04
testl %eax, %eax
setle %al
movq %r14, %rbx
movl $0x1, %ecx
cmovgq %rcx, %rbx
orb %al, %r13b
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
jne 0x853d1
decl (%r15)
jne 0x853cc
movq %r14, %rdi
leaq 0x90062(%rip), %rsi     # 0x115429
callq 0xd4e3
movl $0x1, %ebx
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x853e6
incl (%rax)
movl $0x1, %edi
movq %rbx, %rsi
callq 0xec04
testl %eax, %eax
js 0x854a1
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x85421
decl (%rax)
jne 0x85421
leaq 0x8fcf8(%rip), %rsi     # 0x115111
movq %rbx, %rdi
callq 0xd4e3
cmpb $0x0, -0x35(%rbp)
movq -0x58(%rbp), %rdi
je 0x8543f
movq -0x50(%rbp), %rax
decl (%rax)
jne 0x8543f
leaq 0x8fd1f(%rip), %rsi     # 0x115159
callq 0xd4e3
cmpq $0x0, 0x1095119(%rip)   # 0x111a560
jne 0x85466
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x22, 0x18(%rax)
movq %rax, 0x10950fa(%rip)   # 0x111a560
movq 0x10950f3(%rip), %rsi   # 0x111a560
andq %rsi, %r13
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x85482
incl (%r13)
movq -0x30(%rbp), %rdi
callq 0xe43c
movq -0x60(%rbp), %rcx
movq %rax, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x0, -0x34(%rbp)
movzbl (%r12), %edi
callq 0xe7a9
movq %rax, %rdi
callq 0xe818
movq %rax, %r13
cmpl $0xc, %r13d
jle 0x85516
cmpl $0xd, %r13d
je 0x8555d
cmpl $0x5c, %r13d
je 0x8558d
cmpl $0x22, %r13d
jne 0x856c2
cmpq $0x0, 0x109507f(%rip)   # 0x111a568
jne 0x8550a
movl $0x2, %edi
callq 0xf9f7
movq $0x2, 0x10(%rax)
movw $0x225c, 0x18(%rax)     # imm = 0x225C
movq %rax, 0x109505e(%rip)   # 0x111a568
movq 0x1095057(%rip), %rsi   # 0x111a568
jmp 0x855ed
cmpl $0x9, %r13d
je 0x855bf
cmpl $0xa, %r13d
jne 0x856c2
cmpq $0x0, 0x1095046(%rip)   # 0x111a578
jne 0x85551
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0xa, 0x18(%rax)
movq %rax, 0x1095027(%rip)   # 0x111a578
movq 0x1095020(%rip), %rsi   # 0x111a578
jmp 0x855ed
cmpq $0x0, 0x109501b(%rip)   # 0x111a580
jne 0x85584
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0xd, 0x18(%rax)
movq %rax, 0x1094ffc(%rip)   # 0x111a580
movq 0x1094ff5(%rip), %rsi   # 0x111a580
jmp 0x855ed
cmpq $0x0, 0x1094fdb(%rip)   # 0x111a570
jne 0x855b6
movl $0x2, %edi
callq 0xf9f7
movq $0x2, 0x10(%rax)
movw $0x5c5c, 0x18(%rax)     # imm = 0x5C5C
movq %rax, 0x1094fba(%rip)   # 0x111a570
movq 0x1094fb3(%rip), %rsi   # 0x111a570
jmp 0x855ed
cmpq $0x0, 0x1094fc1(%rip)   # 0x111a588
jne 0x855e6
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x9, 0x18(%rax)
movq %rax, 0x1094fa2(%rip)   # 0x111a588
movq 0x1094f9b(%rip), %rsi   # 0x111a588
movq %rsi, %rax
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x8560d
incl (%rax)
movq -0x30(%rbp), %rdi
callq 0xe43c
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x3, %esi
movq %rbx, %rdi
callq 0xedca
movq %rax, %r14
movq %rax, %r15
andq %r13, %r15
sete %al
testb $0x3, %r14b
setne %r13b
orb %al, %r13b
jne 0x8564a
incl (%r15)
movl $0x1, %edi
movq %r14, %rsi
callq 0xec04
testl %eax, %eax
setle %al
movq %r14, %rbx
movl $0x1, %ecx
cmovgq %rcx, %rbx
orb %al, %r13b
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
jne 0x85690
decl (%r15)
movl $0x1, %ebx
jne 0x85690
movq %r14, %rdi
leaq 0x8fd9e(%rip), %rsi     # 0x115429
callq 0xd4e3
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x856a5
incl (%rax)
incq %r12
movl $0x1, %edi
movq %rbx, %rsi
callq 0xec04
testl %eax, %eax
js 0x854a8
jmp 0x853fb
movl %r13d, %eax
leaq 0x1(,%rax,2), %r14
movq %r14, %rdi
callq 0xe818
testb $-0x20, %al
je 0x85741
movq %r14, %rdi
callq 0xe818
movzbl %al, %eax
cmpl $0x7f, %eax
setb %r15b
movl -0x34(%rbp), %eax
andb %r15b, %al
cmpb $0x1, %al
jne 0x85744
movq %r14, %rdi
callq 0xe818
andl $0xf0, %eax
cmpl $0x30, %eax
jb 0x85719
movq %r14, %rdi
callq 0xe818
andl $0xfe, %eax
cmpl $0x3a, %eax
jb 0x85741
movq %r14, %rdi
callq 0xe818
movzbl %al, %eax
cmpl $0x41, %eax
jb 0x85807
movq %r14, %rdi
callq 0xe818
movzbl %al, %eax
cmpl $0x47, %eax
jae 0x85807
xorl %r15d, %r15d
testb %r15b, %r15b
je 0x85762
movl %r13d, %edi
movq -0x30(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x12e3b
movq -0x40(%rbp), %rax
jmp 0x857ec
cmpq $0x0, 0x1094e26(%rip)   # 0x111a590
jne 0x8578b
movl $0x2, %edi
callq 0xf9f7
movq $0x2, 0x10(%rax)
movw $0x785c, 0x18(%rax)     # imm = 0x785C
movq %rax, 0x1094e05(%rip)   # 0x111a590
movq 0x1094dfe(%rip), %rsi   # 0x111a590
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x857b2
incl (%rax)
movq -0x30(%rbp), %rdi
callq 0xe43c
movq %rax, %r14
movl %r13d, %edi
leaq -0x44(%rbp), %rsi
callq 0x85835
movl %eax, %edi
movq %r14, %rsi
leaq -0x40(%rbp), %rdx
callq 0x12e3b
movl -0x44(%rbp), %edi
movq -0x40(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x12e3b
movq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
xorb $0x1, %r15b
movl %r15d, -0x34(%rbp)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
jmp 0x85621
movq %r14, %rdi
callq 0xe818
movzbl %al, %eax
movb $0x1, %r15b
cmpl $0x61, %eax
jb 0x85744
movq %r14, %rdi
callq 0xe818
movzbl %al, %eax
cmpl $0x67, %eax
setae %r15b
jmp 0x85744