// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_Namespace_qname
static struct std_maybe_Maybe_1 mw_mirth_name_Namespace_qname (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 mirth_mirth_zaMirth* v9;
			struct mirth_name_QName* v10 = mw_mirth_package_Package_qname(in_zaMirth_1, v8, &v9);
			struct std_maybe_Maybe_1 v11 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v10));
			branch_Maybe_6 = v11;
			branch_zaMirth_5 = v9;
		} break;
		case mirth_name_Namespace_Module: {
			uint64_t v12 = mtp_mirth_name_Namespace_Module(in_Namespace_2);
			struct mirth_mirth_zaMirth* v13;
			struct mirth_name_QName* v14 = mw_mirth_module_Module_qname(in_zaMirth_1, v12, &v13);
			struct std_maybe_Maybe_1 v15 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v14));
			branch_Maybe_6 = v15;
			branch_zaMirth_5 = v13;
		} break;
		case mirth_name_Namespace_Tycon: {
			struct mirth_tycon_Tycon v16 = mtp_mirth_name_Namespace_Tycon(in_Namespace_2);
			struct mirth_mirth_zaMirth* v17;
			struct mirth_name_QName* v18 = mw_mirth_tycon_Tycon_qnamezehard(in_zaMirth_1, v16, &v17);
			struct std_maybe_Maybe_1 v19 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v18));
			branch_Maybe_6 = v19;
			branch_zaMirth_5 = v17;
		} break;
		case mirth_name_Namespace_Word: {
			uint64_t v20 = mtp_mirth_name_Namespace_Word(in_Namespace_2);
			struct mirth_mirth_zaMirth* v21;
			struct mirth_name_QName* v22 = mw_mirth_word_Word_qnamezehard(in_zaMirth_1, v20, &v21);
			struct std_maybe_Maybe_1 v23 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(v22));
			branch_Maybe_6 = v23;
			branch_zaMirth_5 = v21;
		} 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
subq $0x140, %rsp            # imm = 0x140
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x138(%rbp)
subq $0x4, %rax
ja 0x8c43d
movq -0x138(%rbp), %rax
leaq 0x2c5794(%rip), %rcx    # 0x351960
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x48(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x8c456
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x59cf0
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x45410
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x30559a(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0xca10
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x8c456
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x59d40
movq %rax, -0x88(%rbp)
movq -0x28(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x454e0
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x30551b(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0xca10
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x8c456
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x59d90
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0x28(%rbp), %rdi
movl -0xc8(%rbp), %esi
movq -0xc0(%rbp), %rdx
leaq -0xd0(%rbp), %rcx
callq 0x5b0b0
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x305478(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -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 -0xd0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x8c456
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x5a3f0
movq %rax, -0x100(%rbp)
movq -0x28(%rbp), %rdi
movq -0x100(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x5b1d0
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0x3053e1(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -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 -0x108(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x8c456
leaq 0x2c7a3d(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)