// File: /workspace/github_c_makefile_star2_O3/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, %r15
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %rdi, %r8
andq %rax, %r8
setne %al
testb $0x3, %r15b
sete %dil
andb %al, %dil
cmpb $0x1, %dil
jne 0x4d571
incl (%r8)
movl 0x58(%r15), %r14d
movq 0x60(%r15), %rbx
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x4d598
incl (%rax)
leaq 0xc4fb2(%rip), %rsi     # 0x112551
testb %dil, %dil
je 0x4d5c4
decl (%r8)
jne 0x4d5c4
movl %edi, %r13d
movq %r15, %rdi
movq %r8, %r12
callq 0xd13d
leaq 0xc4f93(%rip), %rsi     # 0x112551
movl %r13d, %edi
movq %r12, %r8
movl 0x48(%r15), %r13d
movq 0x50(%r15), %r12
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x4d5ec
incl (%rax)
testb %dil, %dil
je 0x4d5fe
decl (%r8)
jne 0x4d5fe
movq %r15, %rdi
callq 0xd13d
leaq -0x38(%rbp), %r15
cmpl $0x1, %r13d
jne 0x4d648
movq %r12, %rdi
movq %r15, %rsi
callq 0xd0aa
movq %rax, %rdx
shrq $0x30, %rdx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
movl %r14d, %edi
movq %rbx, %rsi
movq %rax, %rcx
callq 0x205af
movq %rdx, %rbx
movl -0x38(%rbp), %r13d
movq -0x30(%rbp), %r12
movl $0x5, %r14d
jmp 0x4d602
testl %r13d, %r13d
jne 0x4d662
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 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x93052(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x93057(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302