// File: /workspace/github_c_makefile_star2_O2/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, %r13   # imm = 0xFFFFFFFFFFFC
movl 0x58(%rsi), %ebx
movq 0x60(%rsi), %r12
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x4c177
incl (%rax)
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x4c1a1
decl (%rax)
jne 0x4c1a1
leaq 0xbd4db(%rip), %rax     # 0x109671
movq %rsi, %rdi
movq %rax, %rsi
callq 0xce94
movq $0x0, -0x30(%rbp)
movb $0x1, %al
xorl %r15d, %r15d
testb $0x1, %al
je 0x4c2e1
movl %ebx, %edi
movq %r12, %rsi
leaq -0x40(%rbp), %rdx
callq 0x1075d
testl %eax, %eax
je 0x4c299
cmpl $0x1, %eax
jne 0x4c36a
movq %rdx, %rdi
callq 0xd491
movq %rax, %r12
movq %rdx, %rbx
testb $0x1, %bl
je 0x4c1fe
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x4c1fe
incl (%rax)
movq %r14, %rdi
movq %r12, %rsi
leaq -0x48(%rbp), %rdx
callq 0x4c9d5
testb %al, %al
je 0x4c2a7
movq %r12, %rdi
movq %rbx, %rsi
callq 0x8d0c
movq %rdx, %r12
movq -0x48(%rbp), %r14
movq -0x38(%rbp), %rax
movq %rax, %rcx
andq %r13, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x4c259
movl -0x40(%rbp), %edi
decl (%rcx)
jne 0x4c259
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xbc025(%rip), %rsi     # 0x108279
callq 0xce94
movq %r15, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x4c288
decl (%rax)
jne 0x4c288
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r15, %rdi
leaq 0xbc03e(%rip), %rsi     # 0x1082c1
callq 0xce94
xorl %ebx, %ebx
pushq $0x1
popq %rax
movq %rax, -0x30(%rbp)
movq %r12, %r15
xorl %r12d, %r12d
jmp 0x4c2da
movl -0x40(%rbp), %ebx
movq -0x38(%rbp), %r12
xorl %eax, %eax
jmp 0x4c1ae
testb $0x1, %bl
je 0x4c2cf
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x4c2cf
decl (%rax)
jne 0x4c2cf
movq %r12, %rdi
movq %rbx, %rsi
callq 0xce94
movq -0x48(%rbp), %r14
movl -0x40(%rbp), %ebx
movq -0x38(%rbp), %r12
movb $0x1, %al
jmp 0x4c1ae
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x4c30f
decl (%rax)
jne 0x4c30f
shlq $0x30, %rbx
orq %r12, %rbx
movq %rbx, %rdi
leaq 0xbbf6f(%rip), %rsi     # 0x108279
callq 0xce94
movl -0x30(%rbp), %ebx
andq %r15, %r13
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x4c33f
decl (%r13)
jne 0x4c33f
movq %rbx, %rdi
shlq $0x30, %rdi
orq %r15, %rdi
leaq 0xbbf87(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %rbx, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
xorb $0x1, %al
movq -0x50(%rbp), %rcx
movq %r14, (%rcx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8849c(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6