// File: /workspace/github_c_makefile_star2_O3/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 0x19ce7
cmpl $0x1, %ecx
je 0x19cba
testl %ecx, %ecx
jne 0x19d74
movq 0x8(%r8), %r13
decl (%r8)
jne 0x19cb3
movq %r8, %rdi
callq 0x5030
testl %r12d, %r12d
jne 0x19d2b
jmp 0x19cd1
movq 0x8(%r8), %r13
decl (%r8)
jne 0x19ccb
movq %r8, %rdi
callq 0x5030
cmpl $0x1, %r12d
jne 0x19d2b
movq 0x8(%r15), %r12
decl (%r15)
jne 0x19ce2
movq %r15, %rdi
callq 0x5030
cmpq %r12, %r13
jmp 0x19d26
movl 0x4(%r8), %r13d
decl (%r8)
jne 0x19cf8
movq %r8, %rdi
callq 0x5030
cmpl $0x2, %r12d
jne 0x19d2b
movl 0x4(%r15), %r12d
decl (%r15)
jne 0x19d0f
movq %r15, %rdi
callq 0x5030
leaq 0x1(,%r12,2), %rdi
leaq 0x1(,%r13,2), %rsi
callq 0xe83a
testl %eax, %eax
sete %al
jmp 0x19d62
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x19d60
decl (%rax)
jne 0x19d60
shlq $0x30, %r12
orq %r15, %r12
leaq 0xf7c29(%rip), %rsi     # 0x111981
movq %r12, %rdi
callq 0xd13d
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 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xc6940(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xc6945(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302