// File: /workspace/github_c_makefile_star2_O0/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
subq $0x350, %rsp            # imm = 0x350
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movl %ecx, -0x20(%rbp)
movq %r8, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x348(%rbp)
subq $0x4, %rax
ja 0x597f7
movq -0x348(%rbp), %rax
leaq 0x2f8711(%rip), %rcx    # 0x3515d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x10(%rbp), %eax
testl %eax, %eax
jne 0x58eee
jmp 0x58ed5
movb $0x1, -0x4a(%rbp)
movb -0x4a(%rbp), %al
andb $0x1, %al
movb %al, -0x49(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x58fe6
jmp 0x58ef0
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x58(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x58fca
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x58fca
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x80(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x58fca
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x58fc8
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x127c0
jmp 0x58fca
jmp 0x58fcc
movb $0x0, -0xa1(%rbp)
movb -0xa1(%rbp), %al
andb $0x1, %al
movb %al, -0x49(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movb -0x49(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x59810
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x59cf0
movq %rax, -0xb0(%rbp)
movl -0x10(%rbp), %eax
subl $0x1, %eax
jne 0x5907e
jmp 0x59018
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59cf0
movq %rax, -0xc8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rax
cmpq -0xd8(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0xd9(%rbp)
movb -0xd9(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xb8(%rbp)
jmp 0x59197
jmp 0x59080
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x59175
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
cmpq $0x0, %rax
je 0x59175
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movq -0x110(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x59175
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x59173
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x130(%rbp), %rdi
movq -0x128(%rbp), %rsi
callq 0x127c0
jmp 0x59175
jmp 0x59177
movb $0x0, -0x131(%rbp)
movb -0x131(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xb8(%rbp)
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x59810
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x59d40
movq %rax, -0x140(%rbp)
movl -0x10(%rbp), %eax
subl $0x2, %eax
jne 0x59235
jmp 0x591cf
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59d40
movq %rax, -0x158(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rax
cmpq -0x168(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x169(%rbp)
movb -0x169(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x148(%rbp)
jmp 0x5934e
jmp 0x59237
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x178(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x5932c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
cmpq $0x0, %rax
je 0x5932c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x5932c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x5932a
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x127c0
jmp 0x5932c
jmp 0x5932e
movb $0x0, -0x1c1(%rbp)
movb -0x1c1(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x148(%rbp)
movb -0x149(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x59810
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x59d90
movl %eax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movl -0x10(%rbp), %eax
subl $0x3, %eax
jne 0x593f8
jmp 0x5938c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59d90
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq -0x28(%rbp), %rdi
movl -0x1f8(%rbp), %esi
movq -0x1f0(%rbp), %rdx
movl -0x1d8(%rbp), %ecx
movq -0x1d0(%rbp), %r8
leaq -0x200(%rbp), %r9
callq 0x59e90
andb $0x1, %al
movb %al, -0x201(%rbp)
movb -0x201(%rbp), %al
andb $0x1, %al
movb %al, -0x1e1(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x1e0(%rbp)
jmp 0x59628
jmp 0x593fa
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movq -0x210(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x594ef
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x228(%rbp), %rax
cmpq $0x0, %rax
je 0x594ef
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movq -0x238(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x594ef
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x248(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x594ed
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movq -0x258(%rbp), %rdi
movq -0x250(%rbp), %rsi
callq 0x127c0
jmp 0x594ef
jmp 0x594f1
jmp 0x594f3
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x59b10
movq %rax, -0x268(%rbp)
movq %rdx, -0x260(%rbp)
movq -0x260(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x59606
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x59b10
movq %rax, -0x278(%rbp)
movq %rdx, -0x270(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x278(%rbp), %rax
cmpq $0x0, %rax
je 0x59606
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x59b10
movq %rax, -0x288(%rbp)
movq %rdx, -0x280(%rbp)
movq -0x288(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x59606
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x59b10
movq %rax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x298(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x59604
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x59b10
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movq -0x2a8(%rbp), %rdi
movq -0x2a0(%rbp), %rsi
callq 0x127c0
jmp 0x59606
jmp 0x59608
movb $0x0, -0x2a9(%rbp)
movb -0x2a9(%rbp), %al
andb $0x1, %al
movb %al, -0x1e1(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movb -0x1e1(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x59810
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x5a3f0
movq %rax, -0x2b8(%rbp)
movl -0x10(%rbp), %eax
subl $0x4, %eax
jne 0x596c6
jmp 0x59660
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a3f0
movq %rax, -0x2d0(%rbp)
movq -0x2b8(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq -0x2d0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x2d8(%rbp), %rax
cmpq -0x2e0(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x2e1(%rbp)
movb -0x2e1(%rbp), %al
andb $0x1, %al
movb %al, -0x2c1(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x2c0(%rbp)
jmp 0x597df
jmp 0x596c8
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x2f8(%rbp)
movq %rdx, -0x2f0(%rbp)
movq -0x2f0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x597bd
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x308(%rbp)
movq %rdx, -0x300(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x308(%rbp), %rax
cmpq $0x0, %rax
je 0x597bd
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x318(%rbp)
movq %rdx, -0x310(%rbp)
movq -0x318(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x597bd
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x328(%rbp)
movq %rdx, -0x320(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x328(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x597bb
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59830
movq %rax, -0x338(%rbp)
movq %rdx, -0x330(%rbp)
movq -0x338(%rbp), %rdi
movq -0x330(%rbp), %rsi
callq 0x127c0
jmp 0x597bd
jmp 0x597bf
movb $0x0, -0x339(%rbp)
movb -0x339(%rbp), %al
andb $0x1, %al
movb %al, -0x2c1(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movb -0x2c1(%rbp), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x59810
leaq 0x2fa683(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movb -0x39(%rbp), %al
andb $0x1, %al
addq $0x350, %rsp            # imm = 0x350
popq %rbp
retq
nopl (%rax)