// File: /workspace/github_c_makefile_star2_O1/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 0x63811
testl %eax, %eax
je 0xbd18a
cmpl $0x1, %eax
jne 0xbd26e
movq %rdx, %rdi
callq 0xdaeb
leaq 0x105c6e1(%rip), %rdi   # 0x1119840
movq %rax, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x95264
movq (%r13), %r12
jmp 0xbd24e
movq %rbx, -0x30(%rbp)
cmpq $0x0, 0x105ef82(%rip)   # 0x111c118
jne 0xbd1ae
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x105ef6a(%rip)   # 0x111c118
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq 0x105ef59(%rip), %r13   # 0x111c118
movq %r13, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xbd1d5
incl (%rax)
cmpq $0x0, 0x105ef43(%rip)   # 0x111c120
jne 0xbd1fc
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x58, 0x18(%rax)
movq %rax, 0x105ef24(%rip)   # 0x111c120
movq 0x105ef1d(%rip), %rsi   # 0x111c120
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xbd219
incl (%rax)
movq %r13, %rdi
callq 0xe43c
movq %rax, %r13
andq %r15, %rbx
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0xbd237
incl (%rbx)
movq %r15, %rdi
callq 0x102c9
movq %r13, %rdi
movq %rax, %rsi
callq 0xe43c
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 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x274c6(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x274cb(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5