// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_arrow_Block_cname
static STR* mw_mirth_arrow_Block_cname (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Block_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	void* v5 = field_mut(&mfld_mirth_arrow_Block_cname, in_Block_2);
	bool v6 = mut_is_set(v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	STR* branch_Str_8;
	if (v6) {
		VAL v9 = mut_get(v5);
		branch_Str_8 = value_str(v9);
		branch_zaMirth_7 = in_zaMirth_1;
	} else {
		struct mirth_mirth_zaMirth* v10;
		struct mirth_arrow_Home v11 = mw_mirth_arrow_Block_home(in_zaMirth_1, in_Block_2, &v10);
		uint64_t branch_Block_12;
		struct mirth_mirth_zaMirth* branch_zaMirth_13;
		STR* branch_Str_14;
		switch ((v11).tag) {
			case mirth_arrow_Home_Word: {
				uint64_t v15 = mtp_mirth_arrow_Home_Word(v11);
				struct mirth_mirth_zaMirth* v16;
				struct mirth_name_QName* v17 = mw_mirth_word_Word_qnamezehard(v10, v15, &v16);
				struct mirth_mirth_zaMirth* v18;
				STR* v19 = mw_mirth_name_QName_mangled(v16, v17, &v18);
				STR* v20;
				STRLIT(v20, "", 0);
				STR* v21;
				STRLIT(v21, "mb_", 3);
				STR* v22;
				mw_std_str_zaStr_pushzestrzx(v21, v20, &v22);
				STR* v23;
				mw_std_str_zaStr_pushzestrzx(v19, v22, &v23);
				STR* v24;
				STRLIT(v24, "_", 1);
				STR* v25;
				mw_std_str_zaStr_pushzestrzx(v24, v23, &v25);
				struct mirth_mirth_zaMirth* v26;
				INT v27 = mw_mirth_arrow_Block_homezeindex(v18, in_Block_2, &v26);
				STR* v28 = int_to_str(v27);
				STR* v29;
				mw_std_str_zaStr_pushzestrzx(v28, v25, &v29);
				branch_Str_14 = v29;
				branch_zaMirth_13 = v26;
				branch_Block_12 = in_Block_2;
			} break;
			case mirth_arrow_Home_Main: {
				uint64_t v30 = mtp_mirth_arrow_Home_Main(v11);
				STR* v31;
				STRLIT(v31, "", 0);
				STR* v32;
				STRLIT(v32, "mb_", 3);
				STR* v33;
				mw_std_str_zaStr_pushzestrzx(v32, v31, &v33);
				struct mirth_mirth_zaMirth* v34;
				INT v35 = mw_mirth_arrow_Block_homezeindex(v10, in_Block_2, &v34);
				STR* v36 = int_to_str(v35);
				STR* v37;
				mw_std_str_zaStr_pushzestrzx(v36, v33, &v37);
				branch_Str_14 = v37;
				branch_zaMirth_13 = v34;
				branch_Block_12 = in_Block_2;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		incref(MKSTR(branch_Str_14));
		mut_set(MKSTR(branch_Str_14), v5);
		branch_Str_8 = branch_Str_14;
		branch_zaMirth_7 = branch_zaMirth_13;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Str_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq 0x105f266(%rip), %rdi   # 0x110f180
callq 0x12f88
movq %rax, %r14
movq %rax, %rdi
callq 0x142de
testb %al, %al
je 0xaff49
movq %r14, %rdi
callq 0x1307d
movq %rax, %rdi
movq %rdx, %rsi
callq 0x8b55
movq %rax, %r15
jmp 0xb0161
movq %rbx, -0x38(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq -0x30(%rbp), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x5075b
testl %eax, %eax
je 0xb0083
cmpl $0x1, %eax
jne 0xb0176
movq %rdx, %rdi
callq 0xb018d
movq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %r12
movq %rax, %rsi
movq %r12, %rdx
callq 0x17f62
movq (%r12), %rdi
leaq -0x40(%rbp), %rdx
movq %rax, %rsi
callq 0x8c364
movq %rax, %r12
movq 0x105f1e4(%rip), %r13   # 0x110f190
testq %r13, %r13
jne 0xaffc9
leaq 0x2c73d(%rip), %rdi     # 0xdc6f5
xorl %esi, %esi
callq 0x8a21
movq %rax, %r13
movq %rax, 0x105f1c7(%rip)   # 0x110f190
movq %r13, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xaffdf
incl (%rax)
movq 0x105f1b2(%rip), %rsi   # 0x110f198
testq %rsi, %rsi
jne 0xb0004
leaq 0x3e2bf(%rip), %rdi     # 0xee2b1
pushq $0x3
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x105f194(%rip)   # 0x110f198
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xb001a
incl (%rax)
movq %r13, %rdi
callq 0xd8b0
movq %rax, %rdi
movq %r12, %rsi
callq 0xd8b0
movq %rax, %r12
movq 0x105f169(%rip), %rsi   # 0x110f1a0
testq %rsi, %rsi
jne 0xb0055
leaq 0x28f8d(%rip), %rdi     # 0xd8fd0
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x105f14b(%rip)   # 0x110f1a0
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xb006b
incl (%rax)
movq %r12, %rdi
callq 0xd8b0
movq %rax, %r12
movq -0x40(%rbp), %rdi
leaq -0x50(%rbp), %r13
jmp 0xb0113
movq %rdx, %rdi
callq 0xb0387
movq 0x105f116(%rip), %r12   # 0x110f1a8
testq %r12, %r12
jne 0xb00af
leaq 0x2c657(%rip), %rdi     # 0xdc6f5
xorl %esi, %esi
callq 0x8a21
movq %rax, %r12
movq %rax, 0x105f0f9(%rip)   # 0x110f1a8
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xb00c5
incl (%rax)
movq 0x105f0e4(%rip), %rsi   # 0x110f1b0
testq %rsi, %rsi
jne 0xb00ea
leaq 0x3e1d9(%rip), %rdi     # 0xee2b1
pushq $0x3
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x105f0c6(%rip)   # 0x110f1b0
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xb0100
incl (%rax)
movq %r12, %rdi
callq 0xd8b0
movq %rax, %r12
movq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %r13
movq %r15, %rsi
movq %r13, %rdx
callq 0xb01aa
movq %rax, %rdi
callq 0xf51c
movq %r12, %rdi
movq %rax, %rsi
callq 0xd8b0
movq %rax, %r15
movq (%r13), %r12
leaq 0x5801a(%rip), %rsi     # 0x108159
andq %rax, %rbx
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0xb0152
incl (%rbx)
movq %r15, %rdi
movq %r14, %rdx
callq 0x1393b
movq -0x38(%rbp), %rbx
movq %r12, (%rbx)
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24690(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6