// File: /workspace/github_c_makefile_star2_O1/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 0x424b9
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0xa08c9(%rip), %rcx     # 0xe2bf0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x4233c
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 0x4233f
movq %rdx, %rdi
callq 0x5030
jmp 0x4233f
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x42373
movq %rdx, %rdi
callq 0x5030
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
leaq 0x10d7034(%rip), %rdi   # 0x11193b8
movq %r15, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %rdi
andq %r12, %rdi
movabsq $-0x1000000000000, %rcx # imm = 0xFFFF000000000000
andq %rax, %rcx
leaq 0x4(%r12), %rdx
cmpq %rdx, %rcx
jne 0x42446
callq 0x428de
movq %rax, %rdi
movq %rdx, %rsi
callq 0x95f6
movl $0x1, %r15d
jmp 0x42467
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x423e0
movq %rdx, %rdi
callq 0x5030
leaq 0x10d7031(%rip), %rdi   # 0x1119418
movq %r15, %rsi
callq 0x13ff0
leaq -0x28(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x158b0
testl %eax, %eax
je 0x424b0
cmpl $0x1, %eax
jne 0x424b9
movq %rdx, %rdi
callq 0xdaeb
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 0x42300
movl %eax, %r15d
movq (%r14), %r14
jmp 0x4233f
testq %rdi, %rdi
je 0x42462
decl (%rdi)
jne 0x42462
andq $-0x4, %rax
leaq 0xd39a7(%rip), %rsi     # 0x115e01
movq %rax, %rdi
callq 0xd4e3
xorl %r15d, %r15d
xorl %edx, %edx
andq %rdx, %r12
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x42493
decl (%r12)
jne 0x42493
movq %r15, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xd2e33(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%r15,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
setne %r15b
jmp 0x4233f
movq -0x28(%rbp), %r14
jmp 0x4233c
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xa227b(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xa2280(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5