// File: /workspace/github_c_makefile_star2_O1/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 0x19d86
movq %r9, %r13
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %r14
movl %ecx, %eax
leaq 0xc879c(%rip), %rcx     # 0xe23a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testl %r12d, %r12d
sete %al
jne 0x19c6c
jmp 0x19d73
movq 0x8(%r8), %rbx
decl (%r8)
jne 0x19c33
movq %r8, %rdi
callq 0x5030
cmpl $0x4, %r12d
jne 0x19c6c
movq 0x8(%r15), %r12
decl (%r15)
jne 0x19c4a
movq %r15, %rdi
callq 0x5030
cmpq %r12, %rbx
sete %al
jmp 0x19d73
movq 0x8(%r8), %rbx
decl (%r8)
jne 0x19c66
movq %r8, %rdi
callq 0x5030
cmpl $0x2, %r12d
je 0x19c39
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x19ca1
decl (%rax)
jne 0x19ca1
shlq $0x30, %r12
orq %r15, %r12
leaq 0xfbca0(%rip), %rsi     # 0x115939
movq %r12, %rdi
callq 0xd4e3
xorl %eax, %eax
jmp 0x19d73
movq %r13, -0x30(%rbp)
movq %r8, %rdi
callq 0x19ee8
movl %eax, %ebx
movq %rdx, %r13
cmpl $0x3, %r12d
jne 0x19d05
movq %r15, %rdi
callq 0x19ee8
leaq -0x40(%rbp), %r15
movq %r14, %rdi
movl %eax, %esi
movl %ebx, %ecx
movq %r13, %r8
movq %r15, %r9
callq 0x19f28
movq (%r15), %r14
jmp 0x19d6f
movq 0x8(%r8), %rbx
decl (%r8)
jne 0x19cf6
movq %r8, %rdi
callq 0x5030
cmpl $0x1, %r12d
je 0x19c39
jmp 0x19c6c
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 0x19d41
decl (%rax)
jne 0x19d41
shlq $0x30, %r12
orq %r15, %r12
leaq 0xfbc00(%rip), %rsi     # 0x115939
movq %r12, %rdi
callq 0xd4e3
andq %r13, %rbx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x19d6d
decl (%rbx)
jne 0x19d6d
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xfbc19(%rip), %rsi     # 0x115981
callq 0xd4e3
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 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xca9ae(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xca9b3(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5