// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_CTypeStackPart_c99zeargzename
static STR* mw_mirth_type_CTypeStackPart_c99zeargzename (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, INT in_Nat_3, struct mirth_type_CTypeStackPart in_CTypeStackPart_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct mirth_c99_zaC99* *out_zaC99_6, INT *out_Nat_7) {
	struct std_maybe_Maybe_1 v9 = mw_mirth_type_CTypeStackPart_labelzy(in_CTypeStackPart_4);
	INT branch_Nat_10;
	VAL branch_zux1_11;
	struct mirth_mirth_zaMirth* branch_zaMirth_12;
	STR* branch_Str_13;
	switch ((v9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v14 = mtp_std_maybe_Maybe_1_Some(v9);
			struct mirth_mirth_zaMirth* v15;
			uint64_t v16 = mw_mirth_label_Label_name(in_zaMirth_1, V_mirth_label_Label(v14), &v15);
			struct mirth_mirth_zaMirth* v17;
			STR* v18 = mw_mirth_name_Name_mangled(v15, v16, &v17);
			branch_Str_13 = v18;
			branch_zaMirth_12 = v17;
			branch_zux1_11 = MK_mirth_c99_zaC99(in_zaC99_2);
			branch_Nat_10 = in_Nat_3;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v19;
			STRLIT(v19, "", 0);
			STR* v20;
			STRLIT(v20, "X", 1);
			STR* v21;
			mw_std_str_zaStr_pushzestrzx(v20, v19, &v21);
			incref(MKNAT(in_Nat_3));
			INT v22 = in_Nat_3;
			STR* v23 = int_to_str(v22);
			STR* v24;
			mw_std_str_zaStr_pushzestrzx(v23, v21, &v24);
			branch_Str_13 = v24;
			branch_zaMirth_12 = in_zaMirth_1;
			branch_zux1_11 = MK_mirth_c99_zaC99(in_zaC99_2);
			branch_Nat_10 = in_Nat_3;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Nat_7 = branch_Nat_10;
	*out_zaC99_6 = V_mirth_c99_zaC99(branch_zux1_11);
	*out_zaMirth_5 = branch_zaMirth_12;
	return branch_Str_13;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
movl %ecx, %edi
movq %r8, %rsi
callq 0x61ccc
testl %eax, %eax
je 0xb9e66
cmpl $0x1, %eax
jne 0xb9f46
movq %rdx, %rdi
callq 0xd745
leaq 0x105ba05(%rip), %rdi   # 0x1115840
movq %rax, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x92b17
movq (%r13), %r12
jmp 0xb9f26
movq %rbx, -0x30(%rbp)
movq 0x105e2a7(%rip), %r13   # 0x1118118
testq %r13, %r13
jne 0xb9e8f
xorl %edi, %edi
callq 0xf5e4
movq %rax, %r13
movq $0x0, 0x10(%rax)
movq %rax, 0x105e289(%rip)   # 0x1118118
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %r13, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xb9eaf
incl (%rax)
movq 0x105e26a(%rip), %rsi   # 0x1118120
testq %rsi, %rsi
jne 0xb9edb
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x1, 0x10(%rax)
movb $0x58, 0x18(%rax)
movq %rax, 0x105e245(%rip)   # 0x1118120
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xb9ef1
incl (%rax)
movq %r13, %rdi
callq 0xe069
movq %rax, %r13
andq %r15, %rbx
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0xb9f0f
incl (%rbx)
movq %r15, %rdi
callq 0xfea8
movq %r13, %rdi
movq %rax, %rsi
callq 0xe069
movq -0x30(%rbp), %rbx
movq 0x18(%rbp), %rcx
movq 0x10(%rbp), %rdx
movq %r15, (%rcx)
movq %r14, (%rdx)
movq %r12, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x2676e(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x26773(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302