// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_def_Def_qnamezesoft
static struct std_maybe_Maybe_1 mw_mirth_def_Def_qnamezesoft (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_def_Def in_Def_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	struct std_maybe_Maybe_1 branch_Maybe_6;
	switch ((in_Def_2).tag) {
		case mirth_def_Def_Alias: {
			uint64_t v7 = mtp_mirth_def_Def_Alias(in_Def_2);
			struct mirth_mirth_zaMirth* v8;
			struct std_maybe_Maybe_1 v9 = mw_mirth_alias_Alias_qnamezesoft(in_zaMirth_1, v7, &v8);
			branch_Maybe_6 = v9;
			branch_zaMirth_5 = v8;
		} break;
		case mirth_def_Def_Package: {
			uint64_t v10 = mtp_mirth_def_Def_Package(in_Def_2);
			struct mirth_mirth_zaMirth* v11;
			struct mirth_name_QName* v12 = mw_mirth_package_Package_qname(in_zaMirth_1, v10, &v11);
			struct std_maybe_Maybe_1 v13 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v12));
			branch_Maybe_6 = v13;
			branch_zaMirth_5 = v11;
		} break;
		case mirth_def_Def_Module: {
			uint64_t v14 = mtp_mirth_def_Def_Module(in_Def_2);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_name_QName* v16 = mw_mirth_module_Module_qname(in_zaMirth_1, v14, &v15);
			struct std_maybe_Maybe_1 v17 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v16));
			branch_Maybe_6 = v17;
			branch_zaMirth_5 = v15;
		} break;
		case mirth_def_Def_Buffer: {
			uint64_t v18 = mtp_mirth_def_Def_Buffer(in_Def_2);
			struct mirth_mirth_zaMirth* v19;
			struct std_maybe_Maybe_1 v20 = mw_mirth_buffer_Buffer_qnamezesoft(in_zaMirth_1, v18, &v19);
			branch_Maybe_6 = v20;
			branch_zaMirth_5 = v19;
		} break;
		case mirth_def_Def_Prim: {
			enum mirth_prim_Prim v21 = mtp_mirth_def_Def_Prim(in_Def_2);
			struct mirth_mirth_zaMirth* v22;
			struct mirth_name_QName* v23 = mw_mirth_prim_Prim_qname(in_zaMirth_1, v21, &v22);
			struct std_maybe_Maybe_1 v24 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v23));
			branch_Maybe_6 = v24;
			branch_zaMirth_5 = v22;
		} break;
		case mirth_def_Def_Data: {
			uint64_t v25 = mtp_mirth_def_Def_Data(in_Def_2);
			struct mirth_mirth_zaMirth* v26;
			struct std_maybe_Maybe_1 v27 = mw_mirth_data_Data_qnamezesoft(in_zaMirth_1, v25, &v26);
			branch_Maybe_6 = v27;
			branch_zaMirth_5 = v26;
		} break;
		case mirth_def_Def_Table: {
			uint64_t v28 = mtp_mirth_def_Def_Table(in_Def_2);
			struct mirth_mirth_zaMirth* v29;
			struct std_maybe_Maybe_1 v30 = mw_mirth_table_Table_qnamezesoft(in_zaMirth_1, v28, &v29);
			branch_Maybe_6 = v30;
			branch_zaMirth_5 = v29;
		} break;
		case mirth_def_Def_Type: {
			uint64_t v31 = mtp_mirth_def_Def_Type(in_Def_2);
			struct mirth_mirth_zaMirth* v32;
			struct std_maybe_Maybe_1 v33 = mw_mirth_typedef_TypeDef_qnamezesoft(in_zaMirth_1, v31, &v32);
			branch_Maybe_6 = v33;
			branch_zaMirth_5 = v32;
		} break;
		case mirth_def_Def_External: {
			uint64_t v34 = mtp_mirth_def_Def_External(in_Def_2);
			struct mirth_mirth_zaMirth* v35;
			struct std_maybe_Maybe_1 v36 = mw_mirth_external_External_qnamezesoft(in_zaMirth_1, v34, &v35);
			branch_Maybe_6 = v36;
			branch_zaMirth_5 = v35;
		} break;
		case mirth_def_Def_Word: {
			uint64_t v37 = mtp_mirth_def_Def_Word(in_Def_2);
			struct mirth_mirth_zaMirth* v38;
			struct std_maybe_Maybe_1 v39 = mw_mirth_word_Word_qnamezesoft(in_zaMirth_1, v37, &v38);
			branch_Maybe_6 = v39;
			branch_zaMirth_5 = v38;
		} break;
		case mirth_def_Def_Field: {
			uint64_t v40 = mtp_mirth_def_Def_Field(in_Def_2);
			struct mirth_mirth_zaMirth* v41;
			struct std_maybe_Maybe_1 v42 = mw_mirth_table_Field_qnamezesoft(in_zaMirth_1, v40, &v41);
			branch_Maybe_6 = v42;
			branch_zaMirth_5 = v41;
		} break;
		case mirth_def_Def_Tag: {
			uint64_t v43 = mtp_mirth_def_Def_Tag(in_Def_2);
			struct mirth_mirth_zaMirth* v44;
			struct mirth_name_QName* v45 = mw_mirth_data_Tag_qname(in_zaMirth_1, v43, &v44);
			struct std_maybe_Maybe_1 v46 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v45));
			branch_Maybe_6 = v46;
			branch_zaMirth_5 = v44;
		} break;
		case mirth_def_Def_Macro: {
			uint64_t v47 = mtp_mirth_def_Def_Macro(in_Def_2);
			struct mirth_mirth_zaMirth* v48;
			struct std_maybe_Maybe_1 v49 = mw_mirth_macro_Macro_qnamezesoft(in_zaMirth_1, v47, &v48);
			branch_Maybe_6 = v49;
			branch_zaMirth_5 = v48;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Maybe_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
cmpl $0xc, %esi
ja 0x149e5
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0xc9867(%rip), %rcx     # 0xde060
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x14812
movq %rdx, %rdi
callq 0x5030
leaq 0x10ffcf7(%rip), %rdi   # 0x1114510
jmp 0x149bb
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x1482e
movq %rdx, %rdi
callq 0x5030
leaq 0x110039b(%rip), %rdi   # 0x1114bd0
jmp 0x149bb
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x1484a
movq %rdx, %rdi
callq 0x5030
leaq 0x110033f(%rip), %rdi   # 0x1114b90
jmp 0x149bb
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x14866
movq %rdx, %rdi
callq 0x5030
leaq 0x1100393(%rip), %rdi   # 0x1114c00
jmp 0x149bb
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x14882
movq %rdx, %rdi
callq 0x5030
leaq 0x10ffcb7(%rip), %rdi   # 0x1114540
movq %r15, %rsi
callq 0x13c85
leaq -0x28(%rbp), %r15
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1555d
movq (%r15), %r14
jmp 0x149d5
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x148bb
movq %rdx, %rdi
callq 0x5030
leaq -0x28(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x14dca
jmp 0x14971
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x148e2
movq %rdx, %rdi
callq 0x5030
leaq 0x1100297(%rip), %rdi   # 0x1114b80
jmp 0x149bb
movl 0x4(%rdx), %r15d
decl (%rdx)
jne 0x148fe
movq %rdx, %rdi
callq 0x5030
leaq -0x28(%rbp), %r12
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
callq 0x14e6f
jmp 0x14971
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x14922
movq %rdx, %rdi
callq 0x5030
leaq -0x28(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x14e04
jmp 0x14971
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x14946
movq %rdx, %rdi
callq 0x5030
leaq 0x1100253(%rip), %rdi   # 0x1114ba0
jmp 0x149bb
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x1495f
movq %rdx, %rdi
callq 0x5030
leaq -0x28(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x14eea
leaq 0xfcdc9(%rip), %rsi     # 0x111741
movq %rax, %rdi
callq 0x9353
movq (%r12), %r14
movl $0x1, %eax
jmp 0x149d5
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x1499b
movq %rdx, %rdi
callq 0x5030
leaq 0x110020e(%rip), %rdi   # 0x1114bb0
jmp 0x149bb
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x149b4
movq %rdx, %rdi
callq 0x5030
leaq 0x1100205(%rip), %rdi   # 0x1114bc0
movq %r15, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x14f5f
movl %eax, %edi
movq %rdx, %rsi
callq 0x14f96
movq %r14, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xcbccf(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xcbcd4(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302