// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_Namespace_zd
static bool mw_mirth_name_Namespace_zd (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_name_Namespace in_Namespace_2, struct mirth_name_Namespace in_Namespace_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	bool branch_Bool_7;
	switch ((in_Namespace_3).tag) {
		case mirth_name_Namespace_Root: {
			struct mirth_mirth_zaMirth* branch_zaMirth_8;
			bool branch_Bool_9;
			switch ((in_Namespace_2).tag) {
				case mirth_name_Namespace_Root: {
					bool v10 = true;
					branch_Bool_9 = v10;
					branch_zaMirth_8 = in_zaMirth_1;
				} break;
				default: {
					decref(MK_mirth_name_Namespace(in_Namespace_2));
					bool v11 = false;
					branch_Bool_9 = v11;
					branch_zaMirth_8 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_9;
			branch_zaMirth_6 = branch_zaMirth_8;
		} break;
		case mirth_name_Namespace_Package: {
			uint64_t v12 = mtp_mirth_name_Namespace_Package(in_Namespace_3);
			struct mirth_mirth_zaMirth* branch_zaMirth_13;
			bool branch_Bool_14;
			switch ((in_Namespace_2).tag) {
				case mirth_name_Namespace_Package: {
					uint64_t v15 = mtp_mirth_name_Namespace_Package(in_Namespace_2);
					uint64_t v16 = v12;
					uint64_t v17 = v15;
					bool v18 = (v16 == v17);
					branch_Bool_14 = v18;
					branch_zaMirth_13 = in_zaMirth_1;
				} break;
				default: {
					decref(MK_mirth_name_Namespace(in_Namespace_2));
					bool v19 = false;
					branch_Bool_14 = v19;
					branch_zaMirth_13 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_14;
			branch_zaMirth_6 = branch_zaMirth_13;
		} break;
		case mirth_name_Namespace_Module: {
			uint64_t v20 = mtp_mirth_name_Namespace_Module(in_Namespace_3);
			struct mirth_mirth_zaMirth* branch_zaMirth_21;
			bool branch_Bool_22;
			switch ((in_Namespace_2).tag) {
				case mirth_name_Namespace_Module: {
					uint64_t v23 = mtp_mirth_name_Namespace_Module(in_Namespace_2);
					uint64_t v24 = v20;
					uint64_t v25 = v23;
					bool v26 = (v24 == v25);
					branch_Bool_22 = v26;
					branch_zaMirth_21 = in_zaMirth_1;
				} break;
				default: {
					decref(MK_mirth_name_Namespace(in_Namespace_2));
					bool v27 = false;
					branch_Bool_22 = v27;
					branch_zaMirth_21 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_22;
			branch_zaMirth_6 = branch_zaMirth_21;
		} break;
		case mirth_name_Namespace_Tycon: {
			struct mirth_tycon_Tycon v28 = mtp_mirth_name_Namespace_Tycon(in_Namespace_3);
			struct mirth_mirth_zaMirth* branch_zaMirth_29;
			bool branch_Bool_30;
			switch ((in_Namespace_2).tag) {
				case mirth_name_Namespace_Tycon: {
					struct mirth_tycon_Tycon v31 = mtp_mirth_name_Namespace_Tycon(in_Namespace_2);
					struct mirth_mirth_zaMirth* v32;
					bool v33 = mw_mirth_tycon_Tycon_zd(in_zaMirth_1, v31, v28, &v32);
					branch_Bool_30 = v33;
					branch_zaMirth_29 = v32;
				} break;
				default: {
					decref(MK_mirth_name_Namespace(in_Namespace_2));
					decref(MK_mirth_tycon_Tycon(v28));
					bool v34 = false;
					branch_Bool_30 = v34;
					branch_zaMirth_29 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_30;
			branch_zaMirth_6 = branch_zaMirth_29;
		} break;
		case mirth_name_Namespace_Word: {
			uint64_t v35 = mtp_mirth_name_Namespace_Word(in_Namespace_3);
			struct mirth_mirth_zaMirth* branch_zaMirth_36;
			bool branch_Bool_37;
			switch ((in_Namespace_2).tag) {
				case mirth_name_Namespace_Word: {
					uint64_t v38 = mtp_mirth_name_Namespace_Word(in_Namespace_2);
					uint64_t v39 = v35;
					uint64_t v40 = v38;
					bool v41 = (v39 == v40);
					branch_Bool_37 = v41;
					branch_zaMirth_36 = in_zaMirth_1;
				} break;
				default: {
					decref(MK_mirth_name_Namespace(in_Namespace_2));
					bool v42 = false;
					branch_Bool_37 = v42;
					branch_zaMirth_36 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_37;
			branch_zaMirth_6 = branch_zaMirth_36;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_4 = branch_zaMirth_6;
	return branch_Bool_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x4, %ecx
ja 0x179bd
movq %r9, %rbx
movq %rdx, %r12
movl %esi, %r15d
movq %rdi, %r14
movl %ecx, %eax
leaq 0xbab60(%rip), %rcx     # 0xd23ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testl %r15d, %r15d
jne 0x178ff
movb $0x1, %al
jmp 0x17936
movq %r8, %rdi
callq 0x17c77
cmpl $0x4, %r15d
jne 0x178ff
movq %rax, %r13
movq %r12, %rdi
callq 0x17c77
jmp 0x178f7
movq %r8, %rdi
callq 0x17b2e
cmpl $0x2, %r15d
jne 0x178ff
movq %rax, %r13
movq %r12, %rdi
callq 0x17b2e
jmp 0x178f7
movq %r8, %rdi
callq 0x17b4b
movl %eax, %edi
movq %rdx, %r13
cmpl $0x3, %r15d
jne 0x17948
movq %rdi, %r15
movq %r12, %rdi
callq 0x17b4b
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movl %r15d, %ecx
movq %r13, %r8
movq %r12, %r9
callq 0x17b8b
movq (%r12), %r14
jmp 0x17936
movq %r8, %rdi
callq 0x17b11
cmpl $0x1, %r15d
jne 0x178ff
movq %rax, %r13
movq %r12, %rdi
callq 0x17b11
cmpq %rax, %r13
sete %al
jmp 0x17936
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r12, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x17934
decl (%rax)
jne 0x17934
shlq $0x30, %r15
orq %r12, %r15
leaq 0xf100d(%rip), %rsi     # 0x108939
movq %r15, %rdi
callq 0xce94
xorl %eax, %eax
movq %r14, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, -0x30(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x1798a
decl (%rax)
jne 0x1798a
shlq $0x30, %r15
orq %r12, %r15
leaq 0xf0fbd(%rip), %rsi     # 0x108939
movq %rdi, %r12
movq %r15, %rdi
callq 0xce94
movq %r12, %rdi
andq %r13, %rbx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x179b2
decl (%rbx)
jne 0x179b2
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xf0fd4(%rip), %rsi     # 0x108981
callq 0xce94
xorl %eax, %eax
movq -0x30(%rbp), %rbx
jmp 0x17936
leaq 0xbce49(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6