// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_tycon_Tycon_zd
static bool mw_mirth_tycon_Tycon_zd (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_tycon_Tycon in_Tycon_2, struct mirth_tycon_Tycon in_Tycon_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	bool branch_Bool_7;
	switch ((in_Tycon_3).tag) {
		case mirth_tycon_Tycon_Data: {
			uint64_t v8 = mtp_mirth_tycon_Tycon_Data(in_Tycon_3);
			struct mirth_mirth_zaMirth* branch_zaMirth_9;
			bool branch_Bool_10;
			switch ((in_Tycon_2).tag) {
				case mirth_tycon_Tycon_Data: {
					uint64_t v11 = mtp_mirth_tycon_Tycon_Data(in_Tycon_2);
					uint64_t v12 = v8;
					uint64_t v13 = v11;
					bool v14 = (v12 == v13);
					branch_Bool_10 = v14;
					branch_zaMirth_9 = in_zaMirth_1;
				} break;
				default: {
					decref(MK_mirth_tycon_Tycon(in_Tycon_2));
					bool v15 = false;
					branch_Bool_10 = v15;
					branch_zaMirth_9 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_10;
			branch_zaMirth_6 = branch_zaMirth_9;
		} break;
		case mirth_tycon_Tycon_Table: {
			uint64_t v16 = mtp_mirth_tycon_Tycon_Table(in_Tycon_3);
			struct mirth_mirth_zaMirth* branch_zaMirth_17;
			bool branch_Bool_18;
			switch ((in_Tycon_2).tag) {
				case mirth_tycon_Tycon_Table: {
					uint64_t v19 = mtp_mirth_tycon_Tycon_Table(in_Tycon_2);
					uint64_t v20 = v16;
					uint64_t v21 = v19;
					bool v22 = (v20 == v21);
					branch_Bool_18 = v22;
					branch_zaMirth_17 = in_zaMirth_1;
				} break;
				default: {
					decref(MK_mirth_tycon_Tycon(in_Tycon_2));
					bool v23 = false;
					branch_Bool_18 = v23;
					branch_zaMirth_17 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_18;
			branch_zaMirth_6 = branch_zaMirth_17;
		} break;
		case mirth_tycon_Tycon_Prim: {
			enum mirth_type_PrimType v24 = mtp_mirth_tycon_Tycon_Prim(in_Tycon_3);
			struct mirth_mirth_zaMirth* branch_zaMirth_25;
			bool branch_Bool_26;
			switch ((in_Tycon_2).tag) {
				case mirth_tycon_Tycon_Prim: {
					enum mirth_type_PrimType v27 = mtp_mirth_tycon_Tycon_Prim(in_Tycon_2);
					bool v28 = mw_mirth_type_PrimType_zd(v27, v24);
					branch_Bool_26 = v28;
					branch_zaMirth_25 = in_zaMirth_1;
				} break;
				default: {
					decref(MK_mirth_tycon_Tycon(in_Tycon_2));
					bool v29 = false;
					branch_Bool_26 = v29;
					branch_zaMirth_25 = in_zaMirth_1;
				} break;
			}
			branch_Bool_7 = branch_Bool_26;
			branch_zaMirth_6 = branch_zaMirth_25;
		} 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
pushq %rax
movq %r9, %rbx
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %r14
cmpl $0x2, %ecx
je 0x19f99
cmpl $0x1, %ecx
je 0x19f6c
testl %ecx, %ecx
jne 0x1a026
movq 0x8(%r8), %r13
decl (%r8)
jne 0x19f65
movq %r8, %rdi
callq 0x5030
testl %r12d, %r12d
jne 0x19fdd
jmp 0x19f83
movq 0x8(%r8), %r13
decl (%r8)
jne 0x19f7d
movq %r8, %rdi
callq 0x5030
cmpl $0x1, %r12d
jne 0x19fdd
movq 0x8(%r15), %r12
decl (%r15)
jne 0x19f94
movq %r15, %rdi
callq 0x5030
cmpq %r12, %r13
jmp 0x19fd8
movl 0x4(%r8), %r13d
decl (%r8)
jne 0x19faa
movq %r8, %rdi
callq 0x5030
cmpl $0x2, %r12d
jne 0x19fdd
movl 0x4(%r15), %r12d
decl (%r15)
jne 0x19fc1
movq %r15, %rdi
callq 0x5030
leaq 0x1(,%r12,2), %rdi
leaq 0x1(,%r13,2), %rsi
callq 0xec04
testl %eax, %eax
sete %al
jmp 0x1a014
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x1a012
decl (%rax)
jne 0x1a012
shlq $0x30, %r12
orq %r15, %r12
leaq 0xfb977(%rip), %rsi     # 0x115981
movq %r12, %rdi
callq 0xd4e3
xorl %eax, %eax
movq %r14, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xca70e(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xca713(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5