// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_tycon_Tycon_name
static uint64_t mw_mirth_tycon_Tycon_name (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_tycon_Tycon in_Tycon_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	uint64_t branch_Name_6;
	switch ((in_Tycon_2).tag) {
		case mirth_tycon_Tycon_Data: {
			uint64_t v7 = mtp_mirth_tycon_Tycon_Data(in_Tycon_2);
			struct mirth_mirth_zaMirth* v8;
			uint64_t v9 = mw_mirth_data_Data_name(in_zaMirth_1, v7, &v8);
			branch_Name_6 = v9;
			branch_zaMirth_5 = v8;
		} break;
		case mirth_tycon_Tycon_Table: {
			uint64_t v10 = mtp_mirth_tycon_Tycon_Table(in_Tycon_2);
			struct mirth_mirth_zaMirth* v11;
			uint64_t v12 = mw_mirth_table_Table_name(in_zaMirth_1, v10, &v11);
			branch_Name_6 = v12;
			branch_zaMirth_5 = v11;
		} break;
		case mirth_tycon_Tycon_Prim: {
			enum mirth_type_PrimType v13 = mtp_mirth_tycon_Tycon_Prim(in_Tycon_2);
			struct mirth_mirth_zaMirth* v14;
			struct mirth_name_QName* v15 = mw_mirth_type_PrimType_tyconzeqname(in_zaMirth_1, v13, &v14);
			uint64_t v16 = v15->mname;
			decref(MK_mirth_name_QName(v15));
			branch_Name_6 = v16;
			branch_zaMirth_5 = v14;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Name_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xd4(%rbp)
testl %eax, %eax
je 0x90056
jmp 0x90039
movl -0xd4(%rbp), %eax
subl $0x1, %eax
je 0x90090
jmp 0x90046
movl -0xd4(%rbp), %eax
subl $0x2, %eax
je 0x900ca
jmp 0x90211
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a440
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x64460
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x9022a
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a490
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x644b0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x9022a
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a4e0
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rdi
movl -0x64(%rbp), %esi
leaq -0x70(%rbp), %rdx
callq 0x5b350
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x3016c5(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x901fd
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq 0x301693(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x98(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa0(%rbp), %rax
cmpq $0x0, %rax
je 0x901fd
movq -0x78(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0x30165b(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xb0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x901fd
movq -0x78(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq 0x30162d(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x901fb
movq -0x78(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x3015f3(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x127c0
jmp 0x901fd
jmp 0x901ff
movq -0x80(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x9022a
leaq 0x2c3c69(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)