// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_match_Pattern_iszedefaultzy
static bool mw_mirth_match_Pattern_iszedefaultzy (struct mirth_match_Pattern* in_Pattern_1) {
	struct std_list_List_1 v3 = in_Pattern_1->matoms;
	incref(MK_std_list_List_1(v3));
	decref(MK_mirth_match_Pattern(in_Pattern_1));
	struct std_maybe_Maybe_1 v4 = { .tag=std_maybe_Maybe_1_None };
	bool v5 = true;
	struct std_maybe_Maybe_1 v6 = v4;
	struct std_list_List_1 v7 = v3;
	bool v8 = v5;
	bool v9 = v5;
	while (v9) {
		struct std_maybe_Maybe_1 v10 = v6;
		struct std_list_List_1 v11 = v7;
		bool v12 = v8;
		struct std_list_List_1 v13;
		struct std_maybe_Maybe_1 v14 = mw_std_list_List_1_uncons(v11, &v13);
		struct std_maybe_Maybe_1 branch_Maybe_15;
		struct std_list_List_1 branch_List_16;
		bool branch_Bool_17;
		switch ((v14).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v18 = mtp_std_maybe_Maybe_1_Some(v14);
				incref(v18);
				struct mirth_match_PatternOp v19 = V_mirth_match_PatternAtom(v18)->mop;
				incref(MK_mirth_match_PatternOp(v19));
				decref(MK_mirth_match_PatternAtom(V_mirth_match_PatternAtom(v18)));
				bool v20 = mw_mirth_match_PatternOp_zfUnderscore(v19);
				bool v21 = !v20;
				struct std_maybe_Maybe_1 branch_Maybe_22;
				if (v21) {
					struct std_maybe_Maybe_1 v23 = mtw_std_maybe_Maybe_1_Some(v18);
					branch_Maybe_22 = v23;
				} else {
					decref(v18);
					struct std_maybe_Maybe_1 v24 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_22 = v24;
				}
				struct std_maybe_Maybe_1 branch_Maybe_25;
				struct std_list_List_1 branch_List_26;
				switch ((branch_Maybe_22).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_26 = v13;
						branch_Maybe_25 = v10;
					} break;
					default: {
						decref(MK_std_list_List_1(v13));
						decref(MK_std_maybe_Maybe_1(v10));
						struct std_list_List_1 v27 = { .tag=std_list_List_1_Nil };
						branch_List_26 = v27;
						branch_Maybe_25 = branch_Maybe_22;
					} break;
				}
				bool v28 = true;
				branch_Bool_17 = v28;
				branch_List_16 = branch_List_26;
				branch_Maybe_15 = branch_Maybe_25;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v29 = false;
				branch_Bool_17 = v29;
				branch_List_16 = v13;
				branch_Maybe_15 = v10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v9 = branch_Bool_17;
		v8 = branch_Bool_17;
		v7 = branch_List_16;
		v6 = branch_Maybe_15;
	}
	decref(MK_std_list_List_1(v7));
	int64_t v30 = (v6).tag;
	decref(MK_std_maybe_Maybe_1(v6));
	INT v31 = WRAP_I63(0LL);
	INT v32 = v31;
	INT v33 = i64_to_int(v30);
	bool v34 = int_eq(v33, v32);
	return v34;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movl 0x78(%rdi), %r14d
movq 0x80(%rdi), %r12
movq %r12, %rax
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x4ca84
incl (%rax)
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x4cab2
decl (%rax)
jne 0x4cab2
leaq 0xbcaa4(%rip), %rsi     # 0x109551
callq 0xce94
movq $0x0, -0x30(%rbp)
movb $0x1, %bl
leaq -0x48(%rbp), %r15
movq $0x0, -0x38(%rbp)
testb $0x1, %bl
je 0x4cc87
movl %r14d, %edi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1075d
testl %eax, %eax
je 0x4cc49
cmpl $0x1, %eax
jne 0x4cd1c
movq %rdx, %rdi
callq 0xd491
movq %rax, %r12
movq %rax, %r13
testb $0x1, %dl
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
je 0x4cb25
movq %r12, %rax
andq %rsi, %rax
sete %cl
testb $0x3, %r13b
setne %dil
orb %cl, %dil
jne 0x4cb25
incl (%rax)
movl 0x60(%r13), %edi
movq 0x68(%r13), %rcx
movq %rcx, %r15
andq %rsi, %r15
setne %al
testb $0x3, %cl
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x4cb46
incl (%r15)
andq %rsi, %r12
sete %al
testb $0x3, %r13b
setne %r14b
orb %al, %r14b
jne 0x4cb86
decl (%r12)
jne 0x4cb86
movq %rdi, -0x58(%rbp)
movq %r13, %rdi
leaq 0xbca2c(%rip), %rsi     # 0x109599
movq %rdx, -0x60(%rbp)
movq %rcx, -0x50(%rbp)
callq 0xce94
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rdx
testl %edi, %edi
je 0x4cc58
testb %bl, %bl
je 0x4cbb0
decl (%r15)
jne 0x4cbb0
shlq $0x30, %rdi
orq %rcx, %rdi
leaq 0xbca3c(%rip), %rsi     # 0x1095e1
movq %rdx, %rbx
callq 0xce94
movq %rbx, %rdx
movq %r13, %rdi
movq %rdx, %rsi
callq 0x8d0c
movq %rdx, %r12
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
movq -0x38(%rbp), %r14
leaq -0x48(%rbp), %r15
jne 0x4cc02
movl -0x48(%rbp), %edi
decl (%rcx)
jne 0x4cc02
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xbb67c(%rip), %rsi     # 0x108279
callq 0xce94
movq %r14, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
movb $0x1, %bl
orb %cl, %dl
jne 0x4cc33
decl (%rax)
jne 0x4cc33
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r14, %rdi
leaq 0xbb693(%rip), %rsi     # 0x1082c1
callq 0xce94
xorl %r14d, %r14d
pushq $0x1
popq %rax
movq %rax, -0x30(%rbp)
movq %r12, -0x38(%rbp)
xorl %r12d, %r12d
jmp 0x4cac8
movl -0x48(%rbp), %r14d
movq -0x40(%rbp), %r12
xorl %ebx, %ebx
jmp 0x4cac8
testb $0x1, %dl
sete %al
orb %r14b, %al
jne 0x4cc74
decl (%r12)
jne 0x4cc74
movq %r13, %rdi
movq %rdx, %rsi
callq 0xce94
movl -0x48(%rbp), %r14d
movb $0x1, %bl
movq -0x40(%rbp), %r12
leaq -0x48(%rbp), %r15
jmp 0x4cac8
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x4ccbf
decl (%rax)
jne 0x4ccbf
shlq $0x30, %r14
orq %r12, %r14
movq %r14, %rdi
leaq 0xbb5bf(%rip), %rsi     # 0x108279
callq 0xce94
movl -0x30(%rbp), %ebx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
movq -0x38(%rbp), %rsi
andq %rsi, %rdx
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x4ccfb
decl (%rdx)
jne 0x4ccfb
movq %rbx, %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xbb5cb(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %rbx, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd759
leaq 0x87aea(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6