// File: /workspace/github_c_makefile_star2_O2/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 %rbx
subq $0x18, %rsp
cmpl $0xc, %esi
ja 0x3d5d1
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0x95807(%rip), %rcx     # 0xd2c04
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdx, %rdi
callq 0x13ef6
leaq 0x10cf003(%rip), %rdi   # 0x110c418
movq %rax, %rsi
callq 0x12f88
leaq -0x20(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1483b
testl %eax, %eax
je 0x3d5bd
cmpl $0x1, %eax
jne 0x3d5d1
movq %rdx, %rdi
callq 0xd491
movq -0x20(%rbp), %rdi
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rdx
movq %rax, %rsi
shrq $0x30, %rsi
leaq -0x28(%rbp), %r14
movq %r14, %rcx
callq 0x3d3d8
movq (%r14), %r14
jmp 0x3d5c3
movq %rdx, %rdi
callq 0x14121
jmp 0x3d5c1
movq %rdx, %rdi
callq 0x140ad
jmp 0x3d517
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0x141c7
leaq -0x20(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x2e06f
cmpl $0x1, %eax
jne 0x3d542
pushq $0x1
popq %r14
movq %rdx, %rdi
callq 0x3d9d2
movq %rax, %rdi
movq %rdx, %rsi
callq 0x8d0c
jmp 0x3d577
movq %rdx, %rdi
callq 0x13fe7
jmp 0x3d5c1
movq %rdx, %rdi
callq 0x13f13
jmp 0x3d5c1
movq %rdx, %rdi
callq 0x14090
jmp 0x3d517
movq %rdx, %rdi
callq 0x14004
jmp 0x3d5c1
movq %rdx, %rdi
callq 0x13f68
jmp 0x3d5c1
movq %rdx, %rdi
callq 0x140ca
movb $0x1, %al
jmp 0x3d5c3
movq %rdx, %rdi
callq 0x1413e
jmp 0x3d5c1
movq %rdx, %rdi
callq 0x140e7
jmp 0x3d5c1
movq %rdx, %rdi
callq 0x14104
jmp 0x3d5c1
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x3d572
decl (%rcx)
jne 0x3d572
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xcb897(%rip), %rsi     # 0x108e01
movq %rax, %rdi
callq 0xce94
xorl %r14d, %r14d
xorl %edx, %edx
andq %rdx, %r15
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x3d5a2
decl (%r15)
jne 0x3d5a2
movq %r14, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xcad24(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r14, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
xorb $0x1, %al
movq -0x20(%rbp), %r14
jmp 0x3d5c3
movq -0x20(%rbp), %r14
xorl %eax, %eax
movq %r14, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x97235(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6