// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_match_Pattern_dom
static struct mirth_type_StackType mw_mirth_match_Pattern_dom (struct mirth_match_Pattern* in_Pattern_1) {
	incref(MK_mirth_match_Pattern(in_Pattern_1));
	struct mirth_type_StackType v3 = in_Pattern_1->mmid;
	incref(MK_mirth_type_StackType(v3));
	decref(MK_mirth_match_Pattern(in_Pattern_1));
	struct std_list_List_1 v4 = in_Pattern_1->msaved;
	incref(MK_std_list_List_1(v4));
	decref(MK_mirth_match_Pattern(in_Pattern_1));
	bool v5 = true;
	struct mirth_type_StackType v6 = v3;
	struct std_list_List_1 v7 = v4;
	bool v8 = v5;
	bool v9 = v5;
	while (v9) {
		struct mirth_type_StackType v10 = v6;
		struct std_list_List_1 v11 = v7;
		bool v12 = v8;
		struct mirth_type_StackType branch_StackType_13;
		struct std_list_List_1 branch_List_14;
		bool branch_Bool_15;
		switch ((v11).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v16;
				VAL v17 = mtp_std_list_List_1_Cons(v11, &v16);
				struct mirth_type_StackType v18 = mtw_mirth_type_StackType_Cons(v10, V_mirth_type_Type(v17));
				bool v19 = true;
				branch_Bool_15 = v19;
				branch_List_14 = v16;
				branch_StackType_13 = v18;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v20 = { .tag=std_list_List_1_Nil };
				bool v21 = false;
				branch_Bool_15 = v21;
				branch_List_14 = v20;
				branch_StackType_13 = v10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v9 = branch_Bool_15;
		v8 = branch_Bool_15;
		v7 = branch_List_14;
		v6 = branch_StackType_13;
	}
	decref(MK_std_list_List_1(v7));
	return v6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rdi, %r9
andq %r12, %r9
setne %al
testb $0x3, %dil
sete %r8b
andb %al, %r8b
cmpb $0x1, %r8b
jne 0x4ec07
incl (%r9)
movl 0x58(%rdi), %r14d
movq 0x60(%rdi), %rbx
movq %rbx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x4ec24
incl (%rax)
leaq 0xc7926(%rip), %rsi     # 0x116551
testb %r8b, %r8b
je 0x4ec55
decl (%r9)
jne 0x4ec55
movq %rdi, %r15
movq %r9, -0x30(%rbp)
movl %r8d, %r13d
callq 0xd4e3
leaq 0xc7906(%rip), %rsi     # 0x116551
movl %r13d, %r8d
movq -0x30(%rbp), %r9
movq %r15, %rdi
movl 0x48(%rdi), %r15d
movq 0x50(%rdi), %r13
movq %r13, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x4ec73
incl (%rax)
testb %r8b, %r8b
je 0x4ec82
decl (%r9)
jne 0x4ec82
callq 0xd4e3
testl %r15d, %r15d
je 0x4ecca
cmpl $0x1, %r15d
jne 0x4ed15
movq %r13, %rdi
leaq -0x40(%rbp), %rsi
callq 0xd450
movq %rax, %rdx
shrq $0x30, %rdx
andq %r12, %rax
movl %r14d, %edi
movq %rbx, %rsi
movq %rax, %rcx
callq 0x20b1a
movq %rdx, %rbx
movl -0x40(%rbp), %r15d
movq -0x38(%rbp), %r13
movl $0x5, %r14d
movb $0x1, %al
jmp 0x4eccf
xorl %eax, %eax
xorl %r13d, %r13d
testb %al, %al
jne 0x4ec82
andq %r13, %r12
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x4ed00
decl (%r12)
jne 0x4ed00
shlq $0x30, %r15
orq %r13, %r15
movq %r15, %rdi
leaq 0xc657e(%rip), %rsi     # 0x115279
callq 0xd4e3
movl %r14d, %eax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x95a1f(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x95a24(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5