// File: /workspace/github_c_makefile_star2_O3/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 $0xf8, %rsp
movq %rcx, -0xb0(%rbp)
movq %rdx, -0xb8(%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 0x4e075
movl (%r14), %eax
movq 0x18(%r13), %rcx
movq %rcx, -0x68(%rbp)
testl %eax, %eax
jne 0x4e066
movq %r13, %rdi
leaq 0xc44f7(%rip), %rsi     # 0x112551
callq 0xd13d
movb -0x30(%rbp), %sil
movl (%r14), %eax
leaq 0x18(%r13), %rcx
movq %rcx, -0x38(%rbp)
incl %eax
movl %eax, (%r14)
jmp 0x4e085
leaq 0x18(%r13), %rax
movq %rax, -0x38(%rbp)
movq 0x18(%r13), %rax
movq %rax, -0x68(%rbp)
movl 0x38(%r13), %eax
movl %eax, -0x4c(%rbp)
movq 0x40(%r13), %rdx
movq %rdx, %rax
andq %r12, %rax
sete %cl
movq %rdx, -0xa8(%rbp)
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0x4e0ac
incl (%rax)
testb %sil, %sil
je 0x4e0d8
movl (%r14), %eax
movl %eax, %ecx
decl %ecx
movl %ecx, (%r14)
jne 0x4e0d5
movq %r13, %rdi
leaq 0xc448a(%rip), %rsi     # 0x112551
callq 0xd13d
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, -0x70(%rbp)
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0x4e103
incl (%rax)
testb %sil, %sil
movq %r14, -0x40(%rbp)
je 0x4e13f
movl (%r14), %eax
movl %eax, %ecx
decl %ecx
movl %ecx, (%r14)
jne 0x4e130
movq %r13, %rdi
leaq 0xc442f(%rip), %rsi     # 0x112551
callq 0xd13d
movb -0x30(%rbp), %sil
movl (%r14), %eax
incl %eax
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movl %eax, (%r14)
jmp 0x4e149
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%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 0x4e167
incl (%rax)
testb %sil, %sil
je 0x4e183
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x4e183
movq %r13, %rdi
leaq 0xc43d3(%rip), %rsi     # 0x112551
callq 0xd13d
leaq -0x78(%rbp), %rcx
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x3bdab
cmpl $0x1, %eax
je 0x4e1d4
testl %eax, %eax
jne 0x4e6c7
cmpb $0x0, -0x30(%rbp)
movq -0x40(%rbp), %rax
je 0x4e29b
movq -0x38(%rbp), %rcx
movq (%rcx), %rbx
cmpl $0x0, (%rax)
jne 0x4e2a2
movq %r13, %rdi
leaq 0xc4387(%rip), %rsi     # 0x112551
callq 0xd13d
jmp 0x4e2a2
movq %rdx, %rdi
callq 0xd745
movq %rax, %rbx
movq %rdx, %r14
movq %rax, %rdi
movq %rdx, %rsi
callq 0x90ba
movq %rbx, %r15
andq %r12, %r15
movq 0x8(%r15), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x90ba
movq 0x18(%r15), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x90ba
movq %rbx, %rdi
callq 0x910b
movq %r12, %rax
shrq $0x30, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %r12
movl %eax, -0x60(%rbp)
movq %r12, -0x58(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq -0x78(%rbp), %rax
movq %rax, -0x38(%rbp)
movaps -0xa0(%rbp), %xmm0
movaps %xmm0, -0xe0(%rbp)
movl $0x0, -0xc8(%rbp)
movq $0x0, -0xc0(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x88(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x84(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %r15, %r14
andq $-0x4, %r14
andq %r12, %r15
je 0x4e370
incl (%r15)
jmp 0x4e370
movq -0x38(%rbp), %rax
movq (%rax), %rbx
movq 0x10c779f(%rip), %r14   # 0x1115a48
testq %r14, %r14
jne 0x4e2e6
movl $0x22, %edi
callq 0xf5e4
movq %rax, %r14
movq $0x22, 0x10(%rax)
movups 0x97643(%rip), %xmm0    # 0xe590d
movups %xmm0, 0x18(%rax)
movups 0x97648(%rip), %xmm0    # 0xe591d
movups %xmm0, 0x28(%rax)
movw $0x6b63, 0x38(%rax)     # imm = 0x6B63
movq %rax, 0x10c7762(%rip)   # 0x1115a48
movq %r14, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x4e2fc
incl (%rax)
movq -0x78(%rbp), %rdi
leaq -0xc8(%rbp), %r15
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1b59d
movq (%r15), %rdi
leaq -0x88(%rbp), %rbx
movq %rax, %rsi
movq %r14, %rdx
movl $0x2, %ecx
movq %rbx, %r8
callq 0x1bc32
movq (%rbx), %rax
movq %rax, -0x38(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movaps -0xa0(%rbp), %xmm0
movaps %xmm0, -0xe0(%rbp)
movl $0x0, (%r15)
movq $0x0, 0x8(%r15)
movl -0x44(%rbp), %eax
movl %eax, (%rbx)
movl -0x48(%rbp), %eax
movl %eax, 0x4(%rbx)
movq -0x70(%rbp), %rax
movq %rax, 0x8(%rbx)
xorl %r14d, %r14d
movb -0x30(%rbp), %dil
testb %dil, %dil
je 0x4e380
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 0x4e39e
incl (%rax)
leaq 0xc3744(%rip), %rsi     # 0x111ae9
testb %dil, %dil
je 0x4e3c8
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x4e3c8
movq %r13, %rdi
leaq 0xc4195(%rip), %rsi     # 0x112551
callq 0xd13d
leaq 0xc3721(%rip), %rsi     # 0x111ae9
movq %r14, %rdi
movl %ebx, %edx
movq %r15, %rcx
callq 0xd1ec
movq %rdx, %r15
cmpl $0x2, (%r13)
jb 0x4e4bc
movl $0x1, %edi
movl $0x88, %esi
callq 0x50c0
testq %rax, %rax
je 0x4e6f7
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 0x4e427
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 0x4e444
incl (%rax)
movq 0x40(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x4e45d
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 0x4e481
incl (%rax)
movq 0x70(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x4e49a
incl (%rax)
movq 0x80(%rbx), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x4e4b6
incl (%rax)
decl (%r13)
jmp 0x4e502
movq 0x50(%r13), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x4e4ef
decl (%rax)
jne 0x4e4ef
leaq 0xc2d9b(%rip), %rsi     # 0x111279
movl 0x48(%r13), %edi
shlq $0x30, %rdi
orq 0x50(%r13), %rdi
callq 0xd13d
movl $0x1, 0x48(%r13)
movq %r15, 0x50(%r13)
movq %r13, %rbx
movb -0x30(%rbp), %dil
leaq 0xc35e0(%rip), %rsi     # 0x111ae9
testb %dil, %dil
je 0x4e52c
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x4e52c
movq %r13, %rdi
leaq 0xc4031(%rip), %rsi     # 0x112551
callq 0xd13d
leaq 0xc35bd(%rip), %rsi     # 0x111ae9
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd1ec
movq %rdx, %r15
movq -0x58(%rbp), %rdx
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x4e556
incl (%rax)
movl -0x60(%rbp), %esi
movq %rbx, %r12
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r12
setne %al
testb $0x3, %bl
sete %cl
testb %cl, %al
je 0x4e59c
incl (%r12)
movq %rbx, %rdi
callq 0x4ed15
movq %rax, %r14
decl (%r12)
jne 0x4e5a7
movq %rbx, %rdi
leaq 0xc3fbc(%rip), %rsi     # 0x112551
callq 0xd13d
jmp 0x4e5a7
movq %rbx, %rdi
callq 0x4ed15
movq %rax, %r14
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movaps -0xe0(%rbp), %xmm0
movups %xmm0, 0x30(%rsp)
movups -0xc8(%rbp), %xmm0
movups %xmm0, 0x20(%rsp)
movups -0x88(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movaps -0x60(%rbp), %xmm0
movups %xmm0, (%rsp)
movq -0x68(%rbp), %rdi
movl -0x4c(%rbp), %esi
movq -0xa8(%rbp), %rdx
movl $0x1, %ecx
movq %r15, %r8
callq 0x4ee90
movq %rax, %rdi
movq %r14, %r13
andq %rbx, %r13
setne %al
testb $0x3, %r14b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0x4e61a
addl $0x2, (%r13)
movl 0x78(%r14), %ebx
movq 0x80(%r14), %r12
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r12, %rdx
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x4e642
incl (%rdx)
testb %r15b, %r15b
je 0x4e664
decl (%r13)
jne 0x4e664
movq %rdi, -0x30(%rbp)
movq %r14, %rdi
leaq 0xc3ef6(%rip), %rsi     # 0x112551
callq 0xd13d
movq -0x30(%rbp), %rdi
leaq 0xc3f2e(%rip), %rsi     # 0x112599
movl %ebx, %edx
movq %r12, %rcx
callq 0xd1ec
movq %r14, %rdi
movq %rdx, %rsi
callq 0x4ef3b
movq %rax, %rbx
testb %r15b, %r15b
je 0x4e69d
decl (%r13)
jne 0x4e69d
movq %r14, %rdi
leaq 0xc3eb9(%rip), %rsi     # 0x112551
callq 0xd13d
movq -0xb0(%rbp), %rax
movq %rbx, (%rax)
movq -0xb8(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x91fed(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x91ff2(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
leaq 0x97232(%rip), %rsi     # 0xe5930
movl $0x33, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130