// File: /workspace/github_c_makefile_star2_O3/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
movq 0x10933e2(%rip), %rsi   # 0x1116558
testq %rsi, %rsi
jne 0x8319b
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1, 0x10(%rax)
movb $0x22, 0x18(%rax)
movq %rax, 0x10933bd(%rip)   # 0x1116558
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %rsi, %rax
andq %r15, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x831bb
incl (%rax)
movq %rbx, %rdi
callq 0xe069
movq %rax, -0x30(%rbp)
movq %r14, %rcx
andq %r15, %rcx
setne %al
testb $0x3, %r14b
sete %dl
andb %al, %dl
movb %dl, -0x31(%rbp)
cmpb $0x1, %dl
jne 0x831e4
addl $0x2, (%rcx)
movq %rcx, -0x58(%rbp)
movq %r14, %rdi
callq 0xe7f9
movq %rax, %r12
movq %r14, -0x50(%rbp)
movq %r14, %rdi
callq 0xe36d
movq %rax, %rdi
callq 0xe3d6
movq %rax, %rbx
movq %rax, %r14
andq %r15, %r14
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x83252
incl (%r14)
movl $0x1, %r13d
movl $0x1, %edi
movq %rbx, %rsi
callq 0xe83a
movl (%r14), %ecx
testl %eax, %eax
jle 0x8326d
decl %ecx
movl %ecx, (%r14)
jne 0x83275
movq %rbx, %rdi
leaq 0x8e1de(%rip), %rsi     # 0x111429
callq 0xd13d
jmp 0x83275
movl $0x1, %r14d
movl $0x1, %edi
movq %rbx, %rsi
callq 0xe83a
testl %eax, %eax
cmovgq %r14, %rbx
jmp 0x83272
incl %ecx
movl %ecx, (%r14)
movq %rbx, %r13
movl $0x1, %edi
movq %r13, %rsi
callq 0xe83a
testl %eax, %eax
js 0x83337
movq %r13, %rax
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x832bb
decl (%rax)
jne 0x832bb
leaq 0x8de5e(%rip), %rsi     # 0x111111
movq %r13, %rdi
callq 0xd13d
cmpb $0x0, -0x31(%rbp)
je 0x832d9
movq -0x58(%rbp), %rax
decl (%rax)
jne 0x832d9
leaq 0x8de89(%rip), %rsi     # 0x111159
movq -0x50(%rbp), %rdi
callq 0xd13d
movq 0x1093280(%rip), %rsi   # 0x1116560
testq %rsi, %rsi
jne 0x83305
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1, 0x10(%rax)
movb $0x22, 0x18(%rax)
movq %rax, 0x109325b(%rip)   # 0x1116560
andq %rsi, %rbx
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x83318
incl (%rbx)
movq -0x30(%rbp), %rdi
callq 0xe069
movq -0x60(%rbp), %rcx
movq %rax, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
movzbl (%r12), %edi
callq 0xe3d6
movq %rax, %rdi
callq 0xe445
movq %rax, %rbx
cmpl $0xc, %ebx
jle 0x833a6
cmpl $0xd, %ebx
je 0x833ed
cmpl $0x5c, %ebx
je 0x8341b
cmpl $0x22, %ebx
jne 0x83548
movq 0x10931f2(%rip), %rsi   # 0x1116568
testq %rsi, %rsi
jne 0x83477
movl $0x2, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x2, 0x10(%rax)
movw $0x225c, 0x18(%rax)     # imm = 0x225C
movq %rax, 0x10931c7(%rip)   # 0x1116568
jmp 0x83477
cmpl $0x9, %ebx
je 0x8344b
cmpl $0xa, %ebx
jne 0x83548
movq 0x10931b9(%rip), %rsi   # 0x1116578
testq %rsi, %rsi
jne 0x83477
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1, 0x10(%rax)
movb $0xa, 0x18(%rax)
movq %rax, 0x1093190(%rip)   # 0x1116578
jmp 0x83477
movq 0x109318c(%rip), %rsi   # 0x1116580
testq %rsi, %rsi
jne 0x83477
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1, 0x10(%rax)
movb $0xd, 0x18(%rax)
movq %rax, 0x1093167(%rip)   # 0x1116580
jmp 0x83477
movq 0x109314e(%rip), %rsi   # 0x1116570
testq %rsi, %rsi
jne 0x83477
movl $0x2, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x2, 0x10(%rax)
movw $0x5c5c, 0x18(%rax)     # imm = 0x5C5C
movq %rax, 0x1093127(%rip)   # 0x1116570
jmp 0x83477
movq 0x1093136(%rip), %rsi   # 0x1116588
testq %rsi, %rsi
jne 0x83477
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1, 0x10(%rax)
movb $0x9, 0x18(%rax)
movq %rax, 0x1093111(%rip)   # 0x1116588
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x83497
incl (%rax)
movq -0x30(%rbp), %rdi
callq 0xe069
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movl $0x3, %esi
movq %r13, %rdi
callq 0xe9fc
movq %rax, %rbx
movq %rax, %r14
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r14
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x83509
incl (%r14)
movl $0x1, %edi
movq %rbx, %rsi
callq 0xe83a
movl (%r14), %ecx
testl %eax, %eax
jle 0x83523
movl $0x1, %r13d
decl %ecx
movl %ecx, (%r14)
jne 0x8352b
movq %rbx, %rdi
leaq 0x8df27(%rip), %rsi     # 0x111429
callq 0xd13d
jmp 0x8352b
movl $0x1, %edi
movq %rbx, %rsi
callq 0xe83a
testl %eax, %eax
movl $0x1, %eax
cmovgq %rax, %rbx
jmp 0x83528
incl %ecx
movl %ecx, (%r14)
movq %rbx, %r13
incq %r12
movl $0x1, %edi
movq %r13, %rsi
callq 0xe83a
testl %eax, %eax
js 0x8333a
jmp 0x8328a
movl %ebx, %eax
leaq 0x1(,%rax,2), %r14
movq %r14, %rdi
callq 0xe445
testb $-0x20, %al
je 0x835f0
movq %r14, %rdi
callq 0xe445
movzbl %al, %eax
cmpq $0x7f, %rax
setae %cl
notb %r15b
orb %cl, %r15b
testb $0x1, %r15b
jne 0x83683
movq %r14, %rdi
callq 0xe445
andl $0xf0, %eax
cmpl $0x30, %eax
jb 0x835a8
movq %r14, %rdi
callq 0xe445
andl $0xfe, %eax
cmpl $0x3a, %eax
jb 0x835f0
movq %r14, %rdi
callq 0xe445
movzbl %al, %eax
cmpl $0x41, %eax
jb 0x835c8
movq %r14, %rdi
callq 0xe445
movzbl %al, %eax
cmpl $0x47, %eax
jb 0x835f0
movq %r14, %rdi
callq 0xe445
movzbl %al, %eax
cmpl $0x61, %eax
jb 0x8368c
movq %r14, %rdi
callq 0xe445
movzbl %al, %eax
cmpl $0x66, %eax
ja 0x8368c
movq 0x1092f99(%rip), %rsi   # 0x1116590
testq %rsi, %rsi
jne 0x8361e
movl $0x2, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x2, 0x10(%rax)
movw $0x785c, 0x18(%rax)     # imm = 0x785C
movq %rax, 0x1092f72(%rip)   # 0x1116590
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x8363e
incl (%rax)
movq -0x30(%rbp), %rdi
callq 0xe069
movq %rax, %r14
movl %ebx, %edi
leaq -0x44(%rbp), %rsi
callq 0x836a4
movl %eax, %edi
movq %r14, %rsi
leaq -0x40(%rbp), %rdx
callq 0x12a93
movl -0x44(%rbp), %edi
movq -0x40(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x12a93
movq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
movb $0x1, %r15b
jmp 0x834a7
cmpl $0x7e, %eax
ja 0x835f0
movl %ebx, %edi
movq -0x30(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x12a93
movq -0x40(%rbp), %rax
jmp 0x834a0