// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %r12
movabsq $0xfffffffffffc, %r9    # imm = 0xFFFFFFFFFFFC
movq %rdi, %r14
andq %r9, %r14
setne %al
testb $0x3, %r12b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x48ee5
incl (%r14)
movl 0x58(%r12), %eax
movq 0x60(%r12), %rdx
movq %rdx, %r8
andq %r9, %r8
sete %cl
testb $0x3, %dl
setne %dil
orb %cl, %dil
jne 0x48f07
incl (%r8)
leaq 0xc0643(%rip), %rsi     # 0x109551
testb %bl, %bl
je 0x48f43
decl (%r14)
jne 0x48f43
movq %r12, %rdi
leaq 0xc0630(%rip), %rsi     # 0x109551
movq %rdx, %r15
movl %eax, %r13d
callq 0xce94
movl %r13d, %eax
movq %r15, %rdx
movabsq $0xfffffffffffc, %r9    # imm = 0xFFFFFFFFFFFC
leaq 0xc060e(%rip), %rsi     # 0x109551
movl 0x48(%r12), %r15d
movq 0x50(%r12), %r13
movq %r13, %r8
andq %r9, %r8
sete %cl
testb $0x3, %r13b
setne %dil
orb %cl, %dil
jne 0x48f66
incl (%r8)
testb %bl, %bl
je 0x48f8d
decl (%r14)
jne 0x48f8d
movq %r12, %rdi
movq %rdx, %rbx
movl %eax, %r14d
callq 0xce94
movl %r14d, %eax
movq %rbx, %rdx
movabsq $0xfffffffffffc, %r9    # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
pushq $0x5
popq %r14
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movb $0x1, %cl
movq %r13, %rdi
testb $0x1, %cl
je 0x48ff9
xorl %ecx, %ecx
movl $0x0, %r13d
testl %r15d, %r15d
je 0x48fa1
cmpl $0x1, %r15d
jne 0x49042
movl %eax, %r12d
movq %rdx, %r13
movq %rsi, %r15
callq 0xce01
movq %rax, %rdx
shrq $0x30, %rdx
andq %rbx, %rax
movl %r12d, %edi
movq %r13, %rsi
movq %rax, %rcx
callq 0x1e310
movq %r15, %rsi
movq %rbx, %r9
movl -0x38(%rbp), %r15d
movq -0x30(%rbp), %r13
movl %r14d, %eax
jmp 0x48f9f
andq %rdi, %r9
sete %r8b
testb $0x3, %dil
setne %cl
orb %r8b, %cl
jne 0x49033
decl (%r9)
jne 0x49033
shlq $0x30, %r15
orq %rdi, %r15
movq %r15, %rdi
leaq 0xbf257(%rip), %rsi     # 0x108279
movq %rdx, %rbx
movl %eax, %r14d
callq 0xce94
movl %r14d, %eax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8b7c4(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6