// File: /workspace/github_c_makefile_star2_O2/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, %r12
movl %esi, %r15d
movq %rdi, %r14
cmpl $0x2, %ecx
je 0x17bf2
cmpl $0x1, %ecx
je 0x17bd1
testl %ecx, %ecx
jne 0x17c60
movq %r8, %rdi
callq 0x17c94
testl %r15d, %r15d
jne 0x17c17
movq %rax, %r13
movq %r12, %rdi
callq 0x17c94
jmp 0x17bea
movq %r8, %rdi
callq 0x17cb1
cmpl $0x1, %r15d
jne 0x17c17
movq %rax, %r13
movq %r12, %rdi
callq 0x17cb1
cmpq %rax, %r13
sete %al
jmp 0x17c4e
movq %r8, %rdi
callq 0x17cce
cmpl $0x2, %r15d
jne 0x17c17
movl %eax, %r13d
movq %r12, %rdi
callq 0x17cce
movl %eax, %edi
movl %r13d, %esi
callq 0x17ce9
jmp 0x17c4e
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r12, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x17c4c
decl (%rax)
jne 0x17c4c
shlq $0x30, %r15
orq %r12, %r15
leaq 0xf0d3d(%rip), %rsi     # 0x108981
movq %r15, %rdi
callq 0xce94
xorl %eax, %eax
movq %r14, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xbcba6(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6