// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_def_Def_aszenamespacezy
static struct std_maybe_Maybe_1 mw_mirth_def_Def_aszenamespacezy (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);
			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;
			struct std_maybe_Maybe_1 branch_Maybe_12;
			switch ((v10).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v13 = mtp_std_maybe_Maybe_1_Some(v10);
					struct mirth_mirth_zaMirth* v14;
					struct std_maybe_Maybe_1 v15 = mw_mirth_def_Def_aszenamespacezy(v9, V_mirth_def_Def(v13), &v14);
					branch_Maybe_12 = v15;
					branch_zaMirth_11 = v14;
				} break;
				case std_maybe_Maybe_1_None: {
					struct std_maybe_Maybe_1 v16 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_12 = v16;
					branch_zaMirth_11 = v9;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Maybe_6 = branch_Maybe_12;
			branch_zaMirth_5 = branch_zaMirth_11;
		} break;
		case mirth_def_Def_Package: {
			uint64_t v17 = mtp_mirth_def_Def_Package(in_Def_2);
			struct mirth_name_Namespace v18 = mtw_mirth_name_Namespace_Package(v17);
			struct std_maybe_Maybe_1 v19 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_Namespace(v18));
			branch_Maybe_6 = v19;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Module: {
			uint64_t v20 = mtp_mirth_def_Def_Module(in_Def_2);
			struct mirth_name_Namespace v21 = mtw_mirth_name_Namespace_Module(v20);
			struct std_maybe_Maybe_1 v22 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_Namespace(v21));
			branch_Maybe_6 = v22;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Data: {
			uint64_t v23 = mtp_mirth_def_Def_Data(in_Def_2);
			struct mirth_tycon_Tycon v24 = mtw_mirth_tycon_Tycon_Data(v23);
			struct mirth_name_Namespace v25 = mtw_mirth_name_Namespace_Tycon(v24);
			struct std_maybe_Maybe_1 v26 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_Namespace(v25));
			branch_Maybe_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);
			struct mirth_tycon_Tycon v28 = mtw_mirth_tycon_Tycon_Table(v27);
			struct mirth_name_Namespace v29 = mtw_mirth_name_Namespace_Tycon(v28);
			struct std_maybe_Maybe_1 v30 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_Namespace(v29));
			branch_Maybe_6 = v30;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_def_Def_Type: {
			uint64_t v31 = mtp_mirth_def_Def_Type(in_Def_2);
			struct mirth_mirth_zaMirth* v32;
			struct mirth_type_Type v33 = mw_mirth_typedef_TypeDef_target(in_zaMirth_1, v31, &v32);
			struct mirth_mirth_zaMirth* v34;
			struct std_maybe_Maybe_1 v35 = mw_mirth_type_Type_tyconzy(v32, v33, &v34);
			struct std_maybe_Maybe_1 branch_Maybe_36;
			switch ((v35).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v37 = mtp_std_maybe_Maybe_1_Some(v35);
					struct mirth_name_Namespace v38 = mtw_mirth_name_Namespace_Tycon(V_mirth_tycon_Tycon(v37));
					struct std_maybe_Maybe_1 v39 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_Namespace(v38));
					branch_Maybe_36 = v39;
				} break;
				case std_maybe_Maybe_1_None: {
					struct std_maybe_Maybe_1 v40 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_36 = v40;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Maybe_6 = branch_Maybe_36;
			branch_zaMirth_5 = v34;
		} break;
		case mirth_def_Def_Word: {
			uint64_t v41 = mtp_mirth_def_Def_Word(in_Def_2);
			struct mirth_name_Namespace v42 = mtw_mirth_name_Namespace_Word(v41);
			struct std_maybe_Maybe_1 v43 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_Namespace(v42));
			branch_Maybe_6 = v43;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		default: {
			decref(MK_mirth_def_Def(in_Def_2));
			struct std_maybe_Maybe_1 v44 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v44;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Maybe_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x320, %rsp            # imm = 0x320
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x308(%rbp)
subq $0x8, %rax
ja 0x8608e
movq -0x308(%rbp), %rax
leaq 0x2cbe34(%rip), %rcx    # 0x3518a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x45300
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rsi
leaq 0x130fac8(%rip), %rdi   # 0x1395558
callq 0x40d30
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x472c0
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x30c(%rbp)
testl %eax, %eax
je 0x85b64
jmp 0x85ac4
movl -0x30c(%rbp), %eax
subl $0x1, %eax
jne 0x85b97
jmp 0x85ad5
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x174a0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x318(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x452c0
movq -0x318(%rbp), %rdi
movl %eax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movl -0xb0(%rbp), %esi
movq -0xa8(%rbp), %rdx
leaq -0x90(%rbp), %rcx
callq 0x85a30
movl %eax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x85bb0
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xc0(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x85bb0
leaq 0x2ce2e3(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x78(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x861b8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x453c0
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x471e0
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x59830
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0xca10
movl %eax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x861b8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x45490
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rdi
callq 0x57800
movl %eax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movl -0x110(%rbp), %edi
movq -0x108(%rbp), %rsi
callq 0x59830
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x130(%rbp), %rdi
movq -0x128(%rbp), %rsi
callq 0xca10
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x861b8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x456e0
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
callq 0x57a00
movl %eax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movl -0x148(%rbp), %edi
movq -0x140(%rbp), %rsi
callq 0x57a90
movl %eax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x59830
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rsi
callq 0xca10
movl %eax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x861b8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x457a0
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rdi
callq 0x861e0
movl %eax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movl -0x190(%rbp), %edi
movq -0x188(%rbp), %rsi
callq 0x57a90
movl %eax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movl -0x1a0(%rbp), %edi
movq -0x198(%rbp), %rsi
callq 0x59830
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0xca10
movl %eax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x861b8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x45860
movq %rax, -0x1c8(%rbp)
movq -0x28(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
callq 0x86270
movl %eax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1d0(%rbp), %rdi
movl -0x1e0(%rbp), %esi
movq -0x1d8(%rbp), %rdx
leaq -0x1e8(%rbp), %rcx
callq 0x862e0
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movl -0x1f8(%rbp), %eax
movl %eax, -0x31c(%rbp)
testl %eax, %eax
je 0x85f8f
jmp 0x85ec1
movl -0x31c(%rbp), %eax
subl $0x1, %eax
jne 0x85fc0
jmp 0x85ed2
movl -0x1f8(%rbp), %edi
movq -0x1f0(%rbp), %rsi
callq 0x174a0
movq %rax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movq -0x218(%rbp), %rdi
movq -0x210(%rbp), %rsi
callq 0x59cb0
movl %eax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movl -0x238(%rbp), %edi
movq -0x230(%rbp), %rsi
callq 0x57a90
movl %eax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movl -0x228(%rbp), %edi
movq -0x220(%rbp), %rsi
callq 0x59830
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movq -0x258(%rbp), %rdi
movq -0x250(%rbp), %rsi
callq 0xca10
movl %eax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x200(%rbp)
jmp 0x85fd9
leaq -0x268(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x268(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x260(%rbp), %rax
movq %rax, -0x200(%rbp)
jmp 0x85fd9
leaq 0x2cdeba(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x208(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x861b8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x459e0
movq %rax, -0x270(%rbp)
movq -0x270(%rbp), %rdi
callq 0x86f80
movl %eax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x59830
movq %rax, -0x2a0(%rbp)
movq %rdx, -0x298(%rbp)
movq -0x2a0(%rbp), %rdi
movq -0x298(%rbp), %rsi
callq 0xca10
movl %eax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x861b8
jmp 0x86090
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x2b0(%rbp)
movq %rdx, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x86185
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x2c0(%rbp)
movq %rdx, -0x2b8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2c0(%rbp), %rax
cmpq $0x0, %rax
je 0x86185
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x2d0(%rbp)
movq %rdx, -0x2c8(%rbp)
movq -0x2d0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x86185
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x2e0(%rbp)
movq %rdx, -0x2d8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2e0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x86183
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x43ec0
movq %rax, -0x2f0(%rbp)
movq %rdx, -0x2e8(%rbp)
movq -0x2f0(%rbp), %rdi
movq -0x2e8(%rbp), %rsi
callq 0x127c0
jmp 0x86185
jmp 0x86187
leaq -0x300(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x300(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2f8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x320, %rsp            # imm = 0x320
popq %rbp
retq
nopw %cs:(%rax,%rax)