// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_match_Match_haszedefaultzecasezy
static bool mw_mirth_match_Match_haszedefaultzecasezy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_match_Match* in_Match_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct std_list_List_1 v5 = in_Match_2->mcases;
	incref(MK_std_list_List_1(v5));
	decref(MK_mirth_match_Match(in_Match_2));
	struct std_maybe_Maybe_1 v6 = { .tag=std_maybe_Maybe_1_None };
	bool v7 = true;
	struct mirth_mirth_zaMirth* r8 = in_zaMirth_1;
	struct std_maybe_Maybe_1 v9 = v6;
	struct std_list_List_1 v10 = v5;
	bool v11 = v7;
	bool v12 = v7;
	while (v12) {
		struct mirth_mirth_zaMirth* r13 = r8;
		struct std_maybe_Maybe_1 v14 = v9;
		struct std_list_List_1 v15 = v10;
		bool v16 = v11;
		struct std_list_List_1 v17;
		struct std_maybe_Maybe_1 v18 = mw_std_list_List_1_uncons(v15, &v17);
		struct mirth_mirth_zaMirth* branch_zaMirth_19;
		struct std_maybe_Maybe_1 branch_Maybe_20;
		struct std_list_List_1 branch_List_21;
		bool branch_Bool_22;
		switch ((v18).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v23 = mtp_std_maybe_Maybe_1_Some(v18);
				incref(v23);
				struct mirth_mirth_zaMirth* v24;
				bool v25 = mw_mirth_match_Case_iszedefaultzecasezy(r13, V_mirth_match_Case(v23), &v24);
				struct mirth_mirth_zaMirth* branch_zaMirth_26;
				struct std_maybe_Maybe_1 branch_Maybe_27;
				if (v25) {
					struct std_maybe_Maybe_1 v28 = mtw_std_maybe_Maybe_1_Some(v23);
					branch_Maybe_27 = v28;
					branch_zaMirth_26 = v24;
				} else {
					decref(v23);
					struct std_maybe_Maybe_1 v29 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_27 = v29;
					branch_zaMirth_26 = v24;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_30;
				struct std_maybe_Maybe_1 branch_Maybe_31;
				struct std_list_List_1 branch_List_32;
				switch ((branch_Maybe_27).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_32 = v17;
						branch_Maybe_31 = v14;
						branch_zaMirth_30 = branch_zaMirth_26;
					} break;
					default: {
						decref(MK_std_list_List_1(v17));
						decref(MK_std_maybe_Maybe_1(v14));
						struct std_list_List_1 v33 = { .tag=std_list_List_1_Nil };
						branch_List_32 = v33;
						branch_Maybe_31 = branch_Maybe_27;
						branch_zaMirth_30 = branch_zaMirth_26;
					} break;
				}
				bool v34 = true;
				branch_Bool_22 = v34;
				branch_List_21 = branch_List_32;
				branch_Maybe_20 = branch_Maybe_31;
				branch_zaMirth_19 = branch_zaMirth_30;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v35 = false;
				branch_Bool_22 = v35;
				branch_List_21 = v17;
				branch_Maybe_20 = v14;
				branch_zaMirth_19 = r13;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v12 = branch_Bool_22;
		v11 = branch_Bool_22;
		v10 = branch_List_21;
		v9 = branch_Maybe_20;
		r8 = branch_zaMirth_19;
	}
	decref(MK_std_list_List_1(v10));
	int64_t v36 = (v9).tag;
	decref(MK_std_maybe_Maybe_1(v9));
	INT v37 = WRAP_I63(0LL);
	INT v38 = v37;
	INT v39 = i64_to_int(v36);
	bool v40 = int_eq(v39, v38);
	bool v41 = !v40;
	*out_zaMirth_3 = r8;
	return v41;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, -0x50(%rbp)
movq %rdi, %r14
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movl 0x58(%rsi), %r12d
movq 0x60(%rsi), %r15
movq %r15, %rax
andq %rcx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x508b6
incl (%rax)
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x508ea
decl (%rax)
jne 0x508ea
leaq 0xc1d92(%rip), %rax     # 0x112671
movq %rsi, %rdi
movq %rax, %rsi
callq 0xd13d
xorl %r13d, %r13d
movq $0x0, -0x30(%rbp)
movl %r12d, %edi
movq %r15, %rsi
leaq -0x48(%rbp), %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x50a28
movq %rdx, %rdi
callq 0xd745
movq %rax, %r12
movq %rdx, %r15
testb $0x1, %r15b
je 0x5096c
movq %r12, %rbx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rbx
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x5096c
incl (%rbx)
movq %r14, %rdi
movq %r12, %rsi
leaq -0x38(%rbp), %rdx
callq 0x510a9
testb %al, %al
jne 0x50983
decl (%rbx)
jne 0x50a17
movq %r12, %rdi
movq %r15, %rsi
callq 0xd13d
jmp 0x50a17
movq %r14, %rdi
movq %r12, %rsi
leaq -0x38(%rbp), %rdx
callq 0x510a9
testb %al, %al
je 0x50a17
movq %r12, %rdi
movq %r15, %rsi
callq 0x9353
movq %rdx, %r15
movq -0x38(%rbp), %r14
movq -0x40(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x509d1
movl -0x48(%rbp), %edi
decl (%rcx)
jne 0x509d1
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xc08ad(%rip), %rsi     # 0x111279
callq 0xd13d
movq %r13, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x50a00
decl (%rax)
jne 0x50a00
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xc08c6(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %r12d, %r12d
movl $0x1, %eax
movq %rax, -0x30(%rbp)
movq %r15, %r13
xorl %r15d, %r15d
jmp 0x508f5
movq -0x38(%rbp), %r14
movl -0x48(%rbp), %r12d
movq -0x40(%rbp), %r15
jmp 0x508f5
testl %eax, %eax
jne 0x50ac8
movq -0x40(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x50a6c
movl -0x48(%rbp), %edi
decl (%rcx)
jne 0x50a6c
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xc0812(%rip), %rsi     # 0x111279
callq 0xd13d
movl -0x30(%rbp), %r15d
andq %r13, %rbx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x50a9b
decl (%rbx)
jne 0x50a9b
movq %r15, %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xc082b(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%r15,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
setne %al
movq -0x50(%rbp), %rcx
movq %r14, (%rcx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x8fbec(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x8fbf1(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302