// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_match_zaPattern_underscorezx
static void mw_mirth_match_zaPattern_underscorezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_match_Pattern* in_zaPattern_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_match_Pattern* *out_zaPattern_4) {
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	uint64_t v5 = in_zaPattern_2->mtokenzestart;
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct std_list_List_1 v6 = in_zaPattern_2->minnerzectx;
	incref(MK_std_list_List_1(v6));
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct mirth_type_StackType v7 = in_zaPattern_2->mmid;
	incref(MK_mirth_type_StackType(v7));
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct std_list_List_1 v8 = mw_mirth_type_Subst_Nil();
	struct mirth_match_PatternOp v9 = { .tag=mirth_match_PatternOp_Underscore };
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct mirth_type_StackType v10 = in_zaPattern_2->mmid;
	incref(MK_mirth_type_StackType(v10));
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct mirth_mirth_zaMirth* v11;
	struct std_maybe_Maybe_1 v12 = mw_mirth_type_StackType_forcezeconszyzx(in_zaMirth_1, v10, &v11);
	uint64_t branch_Token_13;
	struct std_list_List_1 branch_Ctx_14;
	struct mirth_type_StackType branch_StackType_15;
	struct std_list_List_1 branch_Subst_16;
	struct mirth_match_PatternOp branch_PatternOp_17;
	struct mirth_match_Pattern* branch_zaPattern_18;
	struct mirth_mirth_zaMirth* branch_zaMirth_19;
	struct mirth_type_StackType branch_StackType_20;
	struct mirth_type_Type branch_Type_21;
	switch ((v12).tag) {
		case std_maybe_Maybe_1_None: {
			incref(MK_mirth_match_Pattern(in_zaPattern_2));
			uint64_t v22 = in_zaPattern_2->mtokenzestart;
			decref(MK_mirth_match_Pattern(in_zaPattern_2));
			STR* v23;
			STRLIT(v23, "pattern expects something on stack", 34);
			struct mirth_mirth_zaMirth* v24;
			mw_mirth_mirth_zaMirth_emitzeerrorzx(v11, v22, v23, &v24);
			struct mirth_type_StackType v25 = { .tag=mirth_type_StackType_Error };
			struct mirth_type_Type v26 = { .tag=mirth_type_Type_Error };
			branch_Type_21 = v26;
			branch_StackType_20 = v25;
			branch_zaMirth_19 = v24;
			branch_zaPattern_18 = in_zaPattern_2;
			branch_PatternOp_17 = v9;
			branch_Subst_16 = v8;
			branch_StackType_15 = v7;
			branch_Ctx_14 = v6;
			branch_Token_13 = v5;
		} break;
		case std_maybe_Maybe_1_Some: {
			VAL v27 = mtp_std_maybe_Maybe_1_Some(v12);
			VAL v28 = ((TUP*)PTRPTR(value_tup(v27)))->cells[0];
			VAL v29 = ((TUP*)PTRPTR(value_tup(v27)))->cells[1];
			tup_decref_outer(value_tup(v27));
			branch_Type_21 = V_mirth_type_Type(v29);
			branch_StackType_20 = V_mirth_type_StackType(v28);
			branch_zaMirth_19 = v11;
			branch_zaPattern_18 = in_zaPattern_2;
			branch_PatternOp_17 = v9;
			branch_Subst_16 = v8;
			branch_StackType_15 = v7;
			branch_Ctx_14 = v6;
			branch_Token_13 = v5;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	incref(MK_mirth_type_Type(branch_Type_21));
	incref(MK_mirth_match_Pattern(branch_zaPattern_18));
	incref(MK_mirth_match_Pattern(branch_zaPattern_18));
	struct std_list_List_1 v30 = branch_zaPattern_18->msaved;
	incref(MK_std_list_List_1(v30));
	decref(MK_mirth_match_Pattern(branch_zaPattern_18));
	struct std_list_List_1 v31 = mw_std_list_List_1_cons(MK_mirth_type_Type(branch_Type_21), v30);
	struct mirth_match_Pattern* v32 = mirth_match_Pattern_set_saved(branch_zaPattern_18, v31);
	decref(MK_mirth_match_Pattern(branch_zaPattern_18));
	struct std_list_List_1 v33 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v34 = mw_std_list_List_1_cons(MK_mirth_type_Type(branch_Type_21), v33);
	incref(MK_mirth_type_StackType(branch_StackType_20));
	incref(MK_mirth_match_Pattern(v32));
	struct mirth_match_Pattern* v35 = mirth_match_Pattern_set_mid(v32, branch_StackType_20);
	decref(MK_mirth_match_Pattern(v32));
	struct mirth_match_PatternAtom* v36 = mtw_mirth_match_PatternAtom_PatternAtom(branch_Token_13, branch_Ctx_14, v34, branch_StackType_20, branch_StackType_15, branch_Subst_16, branch_PatternOp_17);
	incref(MK_mirth_match_Pattern(v35));
	incref(MK_mirth_match_Pattern(v35));
	struct std_list_List_1 v37 = v35->matoms;
	incref(MK_std_list_List_1(v37));
	decref(MK_mirth_match_Pattern(v35));
	struct std_list_List_1 v38 = mw_std_list_List_1_cons(MK_mirth_match_PatternAtom(v36), v37);
	struct mirth_match_Pattern* v39 = mirth_match_Pattern_set_atoms(v35, v38);
	decref(MK_mirth_match_Pattern(v35));
	*out_zaPattern_4 = v39;
	*out_zaMirth_3 = branch_zaMirth_19;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rcx, -0xc0(%rbp)
movq %rdx, -0xc8(%rbp)
movq %rsi, %r13
movq %rdi, %rbx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rsi, %r14
andq %r12, %r14
setne %al
testb $0x3, %r13b
sete %sil
andb %al, %sil
cmpb $0x1, %sil
movb %sil, -0x30(%rbp)
jne 0x49a00
movl (%r14), %eax
movq 0x18(%r13), %rcx
movq %rcx, -0x78(%rbp)
testl %eax, %eax
jne 0x499f1
movq %r13, %rdi
leaq 0xbfb6c(%rip), %rsi     # 0x109551
callq 0xce94
movb -0x30(%rbp), %sil
movl (%r14), %eax
leaq 0x18(%r13), %rcx
movq %rcx, -0x38(%rbp)
incl %eax
movl %eax, (%r14)
jmp 0x49a10
leaq 0x18(%r13), %rax
movq %rax, -0x38(%rbp)
movq 0x18(%r13), %rax
movq %rax, -0x78(%rbp)
movl 0x38(%r13), %eax
movl %eax, -0x4c(%rbp)
movq 0x40(%r13), %rdx
movq %rdx, %rax
andq %r12, %rax
sete %cl
movq %rdx, -0xb8(%rbp)
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0x49a37
incl (%rax)
testb %sil, %sil
je 0x49a63
movl (%r14), %eax
movl %eax, %ecx
decl %ecx
movl %ecx, (%r14)
jne 0x49a60
movq %r13, %rdi
leaq 0xbfaff(%rip), %rsi     # 0x109551
callq 0xce94
movb -0x30(%rbp), %sil
movl (%r14), %eax
incl %eax
movl %eax, (%r14)
movl 0x58(%r13), %eax
movl %eax, -0x44(%rbp)
movl 0x5c(%r13), %eax
movl %eax, -0x48(%rbp)
movq 0x60(%r13), %rdx
movq %rdx, %rax
andq %r12, %rax
sete %cl
movq %rdx, -0x80(%rbp)
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0x49a8e
incl (%rax)
testb %sil, %sil
movq %r14, -0x40(%rbp)
je 0x49aca
movl (%r14), %eax
movl %eax, %ecx
decl %ecx
movl %ecx, (%r14)
jne 0x49abb
movq %r13, %rdi
leaq 0xbfaa4(%rip), %rsi     # 0x109551
callq 0xce94
movb -0x30(%rbp), %sil
movl (%r14), %eax
incl %eax
xorps %xmm0, %xmm0
movaps %xmm0, -0xb0(%rbp)
movl %eax, (%r14)
jmp 0x49ad4
xorps %xmm0, %xmm0
movaps %xmm0, -0xb0(%rbp)
movl 0x58(%r13), %r14d
movq 0x60(%r13), %r15
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x49af2
incl (%rax)
testb %sil, %sil
je 0x49b0e
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x49b0e
movq %r13, %rdi
leaq 0xbfa48(%rip), %rsi     # 0x109551
callq 0xce94
leaq -0x88(%rbp), %rcx
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x3896d
cmpl $0x1, %eax
je 0x49b62
testl %eax, %eax
jne 0x4a001
cmpb $0x0, -0x30(%rbp)
movq -0x40(%rbp), %rax
je 0x49c20
movq -0x38(%rbp), %rcx
movq (%rcx), %rbx
cmpl $0x0, (%rax)
jne 0x49c27
movq %r13, %rdi
leaq 0xbf9f9(%rip), %rsi     # 0x109551
callq 0xce94
jmp 0x49c27
movq %rdx, %rdi
callq 0xd491
movq %rax, %rbx
movq %rdx, %r14
movq %rax, %rdi
movq %rdx, %rsi
callq 0x8a95
movq %rbx, %r15
andq %r12, %r15
movq 0x8(%r15), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8a95
movq 0x18(%r15), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8a95
movq %rbx, %rdi
callq 0x8ae0
movq %r12, %rax
shrq $0x30, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %r12
movl %eax, -0x70(%rbp)
movq %r12, -0x68(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
andl $0x0, -0x98(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x38(%rbp)
andq $0x0, -0x90(%rbp)
movaps -0xb0(%rbp), %xmm0
movaps %xmm0, -0xe0(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %r15, %r14
andq $-0x4, %r14
andq %r12, %r15
je 0x49cbe
incl (%r15)
jmp 0x49cbe
movq -0x38(%rbp), %rax
movq (%rax), %rbx
movq 0x10c2e1a(%rip), %rdx   # 0x110ca48
testq %rdx, %rdx
jne 0x49c4c
leaq 0x8fe85(%rip), %rdi     # 0xd9abf
pushq $0x22
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10c2dfc(%rip)   # 0x110ca48
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x49c63
incl (%rax)
movq -0x88(%rbp), %rdi
leaq -0xe8(%rbp), %r14
movq %rbx, %rsi
movq %r14, %rcx
callq 0x2ceb4
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movaps -0xb0(%rbp), %xmm0
andl $0x0, -0x98(%rbp)
movaps %xmm0, -0xe0(%rbp)
andq $0x0, -0x90(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x58(%rbp)
xorl %r14d, %r14d
movb -0x30(%rbp), %dil
testb %dil, %dil
je 0x49cce
movq -0x40(%rbp), %rax
addl $0x2, (%rax)
movl 0x48(%r13), %ebx
movq 0x50(%r13), %r15
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x49cec
incl (%rax)
leaq 0xbedf6(%rip), %rsi     # 0x108ae9
testb %dil, %dil
je 0x49d16
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x49d16
movq %r13, %rdi
leaq 0xbf847(%rip), %rsi     # 0x109551
callq 0xce94
leaq 0xbedd3(%rip), %rsi     # 0x108ae9
movq %r14, %rdi
movl %ebx, %edx
movq %r15, %rcx
callq 0xcf39
movq %rdx, %r15
cmpl $0x2, (%r13)
jb 0x49e08
pushq $0x1
popq %rdi
movl $0x88, %esi
callq 0x50c0
testq %rax, %rax
je 0x4a018
movq %rax, %rbx
movl $0x88, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x50e0
movq 0x10(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x49d73
incl (%rax)
movq 0x30(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
movb -0x30(%rbp), %dil
jne 0x49d90
incl (%rax)
movq 0x40(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x49da9
incl (%rax)
movl $0x1, 0x48(%rbx)
movq %r15, 0x50(%rbx)
movq 0x60(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x49dcd
incl (%rax)
movq 0x70(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x49de6
incl (%rax)
movq 0x80(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x49e02
incl (%rax)
decl (%r13)
jmp 0x49e4e
movq 0x50(%r13), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x49e3b
decl (%rax)
jne 0x49e3b
leaq 0xbe44f(%rip), %rsi     # 0x108279
movl 0x48(%r13), %edi
shlq $0x30, %rdi
orq 0x50(%r13), %rdi
callq 0xce94
movl $0x1, 0x48(%r13)
movq %r15, 0x50(%r13)
movq %r13, %rbx
movb -0x30(%rbp), %dil
leaq 0xbec94(%rip), %rsi     # 0x108ae9
testb %dil, %dil
je 0x49e78
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x49e78
movq %r13, %rdi
leaq 0xbf6e5(%rip), %rsi     # 0x109551
callq 0xce94
leaq 0xbec71(%rip), %rsi     # 0x108ae9
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xcf39
movq %rdx, -0x30(%rbp)
movq -0x68(%rbp), %rdx
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x49ea3
incl (%rax)
movl -0x70(%rbp), %esi
movq %rbx, %r13
andq %r12, %r13
setne %al
testb $0x3, %bl
sete %r12b
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x49ec3
incl (%r13)
movq %rbx, %rdi
callq 0x4a619
movq %rax, %r15
movq %rax, %r14
testb %r12b, %r12b
je 0x49eeb
decl (%r13)
jne 0x49eeb
movq %rbx, %rdi
leaq 0xbf66b(%rip), %rsi     # 0x109551
callq 0xce94
movaps -0xe0(%rbp), %xmm0
movups %xmm0, 0x30(%rsp)
movups -0x98(%rbp), %xmm0
movups %xmm0, 0x20(%rsp)
movups -0x60(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movaps -0x70(%rbp), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rcx
movq -0x78(%rbp), %rdi
movl -0x4c(%rbp), %esi
movq -0xb8(%rbp), %rdx
movq -0x30(%rbp), %r8
callq 0x4a78c
movq %rax, %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r15
setne %al
testb $0x3, %r14b
sete %r12b
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x49f56
addl $0x2, (%r15)
movl 0x78(%r14), %ebx
movq 0x80(%r14), %r13
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r13, %rdx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x49f7e
incl (%rdx)
testb %r12b, %r12b
je 0x49f9f
decl (%r15)
jne 0x49f9f
movq %rdi, -0x30(%rbp)
movq %r14, %rdi
leaq 0xbf5bb(%rip), %rsi     # 0x109551
callq 0xce94
movq -0x30(%rbp), %rdi
leaq 0xbf5f3(%rip), %rsi     # 0x109599
movl %ebx, %edx
movq %r13, %rcx
callq 0xcf39
movq %r14, %rdi
movq %rdx, %rsi
callq 0x4a82d
movq %rax, %rbx
testb %r12b, %r12b
je 0x49fd7
decl (%r15)
jne 0x49fd7
movq %r14, %rdi
leaq 0xbf57f(%rip), %rsi     # 0x109551
callq 0xce94
movq -0xc0(%rbp), %rax
movq %rbx, (%rax)
movq -0xc8(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8a805(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6
leaq 0x8fac3(%rip), %rsi     # 0xd9ae2
pushq $0x2
popq %rdi
pushq $0x33
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130