// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_Namespace_modulezy
static struct std_maybe_Maybe_1 mw_mirth_name_Namespace_modulezy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_name_Namespace in_Namespace_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_Namespace_2).tag) {
		case mirth_name_Namespace_Root: {
			struct std_maybe_Maybe_1 v7 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v7;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_name_Namespace_Package: {
			uint64_t v8 = mtp_mirth_name_Namespace_Package(in_Namespace_2);
			struct std_maybe_Maybe_1 v9 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v9;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_name_Namespace_Module: {
			uint64_t v10 = mtp_mirth_name_Namespace_Module(in_Namespace_2);
			struct std_maybe_Maybe_1 v11 = mtw_std_maybe_Maybe_1_Some(MK_mirth_module_Module(v10));
			branch_Maybe_6 = v11;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_name_Namespace_Tycon: {
			struct mirth_tycon_Tycon v12 = mtp_mirth_name_Namespace_Tycon(in_Namespace_2);
			struct mirth_mirth_zaMirth* v13;
			struct mirth_name_QName* v14 = mw_mirth_tycon_Tycon_qnamezehard(in_zaMirth_1, v12, &v13);
			struct mirth_name_Namespace v15 = v14->mnamespace;
			incref(MK_mirth_name_Namespace(v15));
			decref(MK_mirth_name_QName(v14));
			struct mirth_mirth_zaMirth* v16;
			struct std_maybe_Maybe_1 v17 = mw_mirth_name_Namespace_modulezy(v13, v15, &v16);
			branch_Maybe_6 = v17;
			branch_zaMirth_5 = v16;
		} break;
		case mirth_name_Namespace_Word: {
			uint64_t v18 = mtp_mirth_name_Namespace_Word(in_Namespace_2);
			struct std_maybe_Maybe_1 v19 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v19;
			branch_zaMirth_5 = in_zaMirth_1;
		} 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 $0x4, %esi
ja 0x8bbd9
movq %rcx, %rbx
movl %esi, %eax
movq %rdi, %r14
movl %esi, %ecx
leaq 0x57aa5(%rip), %rsi     # 0xe35ac
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
decl (%rdx)
jne 0x8bb1c
movq %rdx, %rdi
callq 0x5030
xorl %eax, %eax
xorl %edx, %edx
jmp 0x8bbc9
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0x19ee8
leaq -0x28(%rbp), %rcx
movq %r14, %rdi
movl %eax, %esi
callq 0x1a2ad
movq %rax, %rdi
movl 0x8(%rax), %r14d
movq 0x10(%rax), %r15
movq %r15, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %r15b
setne %sil
orb %dl, %sil
jne 0x8bb68
incl (%rcx)
andq %r12, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x8bb89
decl (%rax)
jne 0x8bb89
leaq 0x89bbd(%rip), %rsi     # 0x115741
callq 0xd4e3
movq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %r12
movl %r14d, %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0x8bade
movq (%r12), %r14
jmp 0x8bbc9
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x8bbb5
movq %rdx, %rdi
callq 0x5030
leaq 0x8a43c(%rip), %rsi     # 0x115ff8
movq %r15, %rdi
callq 0x95f6
movl $0x1, %eax
movq %r14, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x58b5b(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x58b60(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5