// File: /workspace/github_c_makefile_star2_O3/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 0x19acd
movq %r9, %r13
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %r14
movl %ecx, %eax
leaq 0xc4a58(%rip), %rcx     # 0xde3ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testl %r12d, %r12d
jne 0x199b3
movb $0x1, %al
jmp 0x19aba
movq 0x8(%r8), %rbx
decl (%r8)
jne 0x1997a
movq %r8, %rdi
callq 0x5030
cmpl $0x4, %r12d
jne 0x199b3
movq 0x8(%r15), %r12
decl (%r15)
jne 0x19991
movq %r15, %rdi
callq 0x5030
cmpq %r12, %rbx
sete %al
jmp 0x19aba
movq 0x8(%r8), %rbx
decl (%r8)
jne 0x199ad
movq %r8, %rdi
callq 0x5030
cmpl $0x2, %r12d
je 0x19980
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x199e8
decl (%rax)
jne 0x199e8
shlq $0x30, %r12
orq %r15, %r12
leaq 0xf7f59(%rip), %rsi     # 0x111939
movq %r12, %rdi
callq 0xd13d
xorl %eax, %eax
jmp 0x19aba
movq %r13, -0x30(%rbp)
movq %r8, %rdi
callq 0x19c36
movl %eax, %ebx
movq %rdx, %r13
cmpl $0x3, %r12d
jne 0x19a4c
movq %r15, %rdi
callq 0x19c36
leaq -0x40(%rbp), %r15
movq %r14, %rdi
movl %eax, %esi
movl %ebx, %ecx
movq %r13, %r8
movq %r15, %r9
callq 0x19c76
movq (%r15), %r14
jmp 0x19ab6
movq 0x8(%r8), %rbx
decl (%r8)
jne 0x19a3d
movq %r8, %rdi
callq 0x5030
cmpl $0x1, %r12d
je 0x19980
jmp 0x199b3
movq %rbx, -0x38(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %r15, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x19a88
decl (%rax)
jne 0x19a88
shlq $0x30, %r12
orq %r15, %r12
leaq 0xf7eb9(%rip), %rsi     # 0x111939
movq %r12, %rdi
callq 0xd13d
andq %r13, %rbx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x19ab4
decl (%rbx)
jne 0x19ab4
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xf7ed2(%rip), %rsi     # 0x111981
callq 0xd13d
xorl %eax, %eax
movq -0x30(%rbp), %r13
movq %r14, (%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xc6be7(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xc6bec(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302