// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_def_Def_defineszeazetypezy
static bool mw_mirth_def_Def_defineszeazetypezy (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;
	bool branch_Bool_6;
	switch ((in_Def_2).tag) {
		case mirth_def_Def_Alias: {
			uint64_t v7 = mtp_mirth_def_Def_Alias(in_Def_2);
			void* v8 = field_mut(&mfld_mirth_alias_Alias_zttarget, v7);
			struct mirth_mirth_zaMirth* v9;
			struct std_maybe_Maybe_1 v10 = mw_mirth_mirth_Prop_1_tryzeforcezx(in_zaMirth_1, v8, &v9);
			struct mirth_mirth_zaMirth* branch_zaMirth_11;
			bool branch_Bool_12;
			switch ((v10).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v13 = mtp_std_maybe_Maybe_1_Some(v10);
					struct mirth_mirth_zaMirth* v14;
					bool v15 = mw_mirth_def_Def_defineszeazetypezy(v9, V_mirth_def_Def(v13), &v14);
					branch_Bool_12 = v15;
					branch_zaMirth_11 = v14;
				} break;
				case std_maybe_Maybe_1_None: {
					bool v16 = false;
					branch_Bool_12 = v16;
					branch_zaMirth_11 = v9;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Bool_6 = branch_Bool_12;
			branch_zaMirth_5 = branch_zaMirth_11;
		} break;
		case mirth_def_Def_Package: {
			uint64_t v17 = mtp_mirth_def_Def_Package(in_Def_2);
			bool v18 = false;
			branch_Bool_6 = v18;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Module: {
			uint64_t v19 = mtp_mirth_def_Def_Module(in_Def_2);
			bool v20 = false;
			branch_Bool_6 = v20;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Buffer: {
			uint64_t v21 = mtp_mirth_def_Def_Buffer(in_Def_2);
			bool v22 = false;
			branch_Bool_6 = v22;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Prim: {
			enum mirth_prim_Prim v23 = mtp_mirth_def_Def_Prim(in_Def_2);
			bool v24 = false;
			branch_Bool_6 = v24;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Data: {
			uint64_t v25 = mtp_mirth_def_Def_Data(in_Def_2);
			bool v26 = true;
			branch_Bool_6 = v26;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Table: {
			uint64_t v27 = mtp_mirth_def_Def_Table(in_Def_2);
			bool v28 = true;
			branch_Bool_6 = v28;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Type: {
			uint64_t v29 = mtp_mirth_def_Def_Type(in_Def_2);
			bool v30 = true;
			branch_Bool_6 = v30;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_External: {
			uint64_t v31 = mtp_mirth_def_Def_External(in_Def_2);
			bool v32 = false;
			branch_Bool_6 = v32;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Word: {
			uint64_t v33 = mtp_mirth_def_Def_Word(in_Def_2);
			bool v34 = false;
			branch_Bool_6 = v34;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Field: {
			uint64_t v35 = mtp_mirth_def_Def_Field(in_Def_2);
			bool v36 = false;
			branch_Bool_6 = v36;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Tag: {
			uint64_t v37 = mtp_mirth_def_Def_Tag(in_Def_2);
			bool v38 = false;
			branch_Bool_6 = v38;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Macro: {
			uint64_t v39 = mtp_mirth_def_Def_Macro(in_Def_2);
			struct mirth_mirth_zaMirth* v40;
			struct mirth_macro_MacroAction v41 = mw_mirth_macro_Macro_action(in_zaMirth_1, v39, &v40);
			bool v42 = mw_mirth_macro_MacroAction_defineszeazetypezy(v41);
			branch_Bool_6 = v42;
			branch_zaMirth_5 = v40;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Bool_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
cmpl $0xc, %esi
ja 0x41115
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0x9dc81(%rip), %rcx     # 0xdec04
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x40f98
movq %rdx, %rdi
callq 0x5030
xorl %r15d, %r15d
movq %r14, (%rbx)
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
decl (%rdx)
movb $0x1, %r15b
jne 0x40f9b
movq %rdx, %rdi
callq 0x5030
jmp 0x40f9b
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x40fcf
movq %rdx, %rdi
callq 0x5030
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
leaq 0x10d43d8(%rip), %rdi   # 0x11153b8
movq %r15, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rdi
andq %r12, %rdi
movabsq $-0x1000000000000, %rcx # imm = 0xFFFF000000000000
andq %rax, %rcx
leaq 0x4(%r12), %rdx
cmpq %rdx, %rcx
jne 0x410a2
callq 0x414b7
movq %rax, %rdi
movq %rdx, %rsi
callq 0x9353
movl $0x1, %r15d
jmp 0x410c3
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x4103c
movq %rdx, %rdi
callq 0x5030
leaq 0x10d43d5(%rip), %rdi   # 0x1115418
movq %r15, %rsi
callq 0x13c85
leaq -0x28(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1555d
testl %eax, %eax
je 0x4110c
cmpl $0x1, %eax
jne 0x41115
movq %rdx, %rdi
callq 0xd745
movq -0x28(%rbp), %rdi
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rdx
movq %rax, %rsi
shrq $0x30, %rsi
leaq -0x30(%rbp), %r14
movq %r14, %rcx
callq 0x40f5c
movl %eax, %r15d
movq (%r14), %r14
jmp 0x40f9b
testq %rdi, %rdi
je 0x410be
decl (%rdi)
jne 0x410be
andq $-0x4, %rax
leaq 0xd0d4b(%rip), %rsi     # 0x111e01
movq %rax, %rdi
callq 0xd13d
xorl %r15d, %r15d
xorl %edx, %edx
andq %rdx, %r12
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x410ef
decl (%r12)
jne 0x410ef
movq %r15, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xd01d7(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%r15,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
setne %r15b
jmp 0x40f9b
movq -0x28(%rbp), %r14
jmp 0x40f98
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x9f59f(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x9f5a4(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302