// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %rdx, -0x50(%rbp)
movq %rdi, %r14
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
movl 0x58(%rsi), %ebx
movq 0x60(%rsi), %r13
movq %r13, %rax
andq %rdi, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x51fd0
incl (%rax)
movq %rsi, %rax
andq %rdi, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x51ffa
decl (%rax)
jne 0x51ffa
leaq 0xc4682(%rip), %rax     # 0x116671
movq %rsi, %rdi
movq %rax, %rsi
callq 0xd4e3
movq $0x0, -0x30(%rbp)
leaq -0x48(%rbp), %r12
movq $0x0, -0x38(%rbp)
movl %ebx, %edi
movq %r13, %rsi
movq %r12, %rdx
callq 0x115ef
testl %eax, %eax
je 0x52081
cmpl $0x1, %eax
jne 0x52207
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r13
movq %rdx, %rbx
testb $0x1, %bl
je 0x5205b
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x5205b
incl (%rax)
movq %r14, %rdi
movq %r13, %rsi
leaq -0x58(%rbp), %rdx
callq 0x52864
movl %eax, %r15d
testb %al, %al
je 0x5208f
movq %r13, %rdi
movq %rbx, %rsi
callq 0x95f6
movq %rdx, %r13
jmp 0x520c4
movl -0x48(%rbp), %ebx
movq -0x40(%rbp), %r13
xorl %eax, %eax
jmp 0x52167
testb $0x1, %bl
je 0x520c1
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x520c1
decl (%rax)
jne 0x520c1
movq %r13, %rdi
movq %rbx, %rsi
callq 0xd4e3
xorl %r13d, %r13d
movq -0x58(%rbp), %r14
movl -0x48(%rbp), %ebx
testb %r15b, %r15b
je 0x52161
movq -0x40(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x52110
decl (%rcx)
jne 0x52110
shlq $0x30, %rbx
orq %rax, %rbx
movq %rbx, %rdi
leaq 0xc316e(%rip), %rsi     # 0x115279
callq 0xd4e3
movq -0x30(%rbp), %rsi
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x5214d
decl (%rax)
jne 0x5214d
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xc3179(%rip), %rsi     # 0x1152c1
callq 0xd4e3
xorl %ebx, %ebx
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq %r13, -0x30(%rbp)
xorl %r13d, %r13d
jmp 0x52165
movq -0x40(%rbp), %r13
movb $0x1, %al
testb %al, %al
jne 0x5200e
movq %r13, %rax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x521a7
decl (%rax)
jne 0x521a7
shlq $0x30, %rbx
orq %r13, %rbx
movq %rbx, %rdi
leaq 0xc30d7(%rip), %rsi     # 0x115279
callq 0xd4e3
movl -0x38(%rbp), %ebx
movq -0x30(%rbp), %rcx
andq %rcx, %r15
sete %al
testb $0x3, %cl
setne %cl
orb %al, %cl
jne 0x521da
decl (%r15)
jne 0x521da
movq %rbx, %rdi
shlq $0x30, %rdi
orq -0x30(%rbp), %rdi
leaq 0xc30ec(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
setne %al
movq -0x50(%rbp), %rcx
movq %r14, (%rcx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x9252d(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x92532(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5