// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_match_Match_freezevars
static struct std_list_List_1 mw_mirth_match_Match_freezevars (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_match_Match* in_Match_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct std_list_List_1 v5 = in_Match_2->mcases;
	incref(MK_std_list_List_1(v5));
	decref(MK_mirth_match_Match(in_Match_2));
	struct std_list_List_1 v6 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v7;
	mw_std_list_List_1_buildzx(v6, &v7);
	bool v8 = true;
	struct mirth_mirth_zaMirth* r9 = in_zaMirth_1;
	struct std_list_List_1 r10 = v7;
	struct std_list_List_1 v11 = v5;
	bool v12 = v8;
	bool v13 = v8;
	while (v13) {
		struct mirth_mirth_zaMirth* r14 = r9;
		struct std_list_List_1 r15 = r10;
		struct std_list_List_1 v16 = v11;
		bool v17 = v12;
		struct mirth_mirth_zaMirth* branch_zaMirth_18;
		struct std_list_List_1 branch_zaLister_19;
		struct std_list_List_1 branch_List_20;
		bool branch_Bool_21;
		switch ((v16).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v22;
				VAL v23 = mtp_std_list_List_1_Cons(v16, &v22);
				struct mirth_mirth_zaMirth* v24;
				struct std_list_List_1 v25 = mw_mirth_match_Case_freezevars(r14, V_mirth_match_Case(v23), &v24);
				struct std_list_List_1 v26;
				mw_std_list_zaLister_1_pushzx(MK_std_list_List_1(v25), r15, &v26);
				bool v27 = true;
				branch_Bool_21 = v27;
				branch_List_20 = v22;
				branch_zaLister_19 = v26;
				branch_zaMirth_18 = v24;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v28 = { .tag=std_list_List_1_Nil };
				bool v29 = false;
				branch_Bool_21 = v29;
				branch_List_20 = v28;
				branch_zaLister_19 = r15;
				branch_zaMirth_18 = r14;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v13 = branch_Bool_21;
		v12 = branch_Bool_21;
		v11 = branch_List_20;
		r10 = branch_zaLister_19;
		r9 = branch_zaMirth_18;
	}
	decref(MK_std_list_List_1(v11));
	struct std_list_List_1 v30 = mw_std_list_zaLister_1_donezx(r10);
	struct std_list_List_1 v31 = mw_std_list_List_1_unions_sp1(v30);
	*out_zaMirth_3 = r9;
	return v31;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x58(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x60(%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x40(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1fd520
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
cmpq $0x0, %rax
je 0x1fd520
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x68(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1fd520
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1fd522
jmp 0x1fd524
movq -0x20(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x195212(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1fd622
movq -0x20(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x1951e6(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
cmpq $0x0, %rax
je 0x1fd622
movq -0x20(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x1951ae(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1fd622
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x195180(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1fd620
movq -0x20(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x195146(%rip), %rax    # 0x392748
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x127c0
jmp 0x1fd622
jmp 0x1fd624
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0xc9d0
movb $0x1, -0xe9(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x110(%rbp)
movb -0xe9(%rbp), %al
andb $0x1, %al
movb %al, -0x119(%rbp)
movb -0xe9(%rbp), %al
andb $0x1, %al
movb %al, -0x11a(%rbp)
testb $0x1, -0x11a(%rbp)
je 0x1fd901
movq -0xf8(%rbp), %rax
movq %rax, -0x128(%rbp)
movups -0x108(%rbp), %xmm0
movaps %xmm0, -0x140(%rbp)
movups -0x118(%rbp), %xmm0
movaps %xmm0, -0x150(%rbp)
movb -0x119(%rbp), %al
andb $0x1, %al
movb %al, -0x151(%rbp)
movl -0x150(%rbp), %eax
movl %eax, -0x264(%rbp)
testl %eax, %eax
je 0x1fd811
jmp 0x1fd70b
movl -0x264(%rbp), %eax
subl $0x1, %eax
jne 0x1fd881
jmp 0x1fd71c
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
leaq -0x198(%rbp), %rdx
callq 0x125e0
movq %rax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movq -0x128(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
leaq -0x1b0(%rbp), %rdx
callq 0x1fdf60
movl %eax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movl -0x1c0(%rbp), %edi
movq -0x1b8(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
movl -0x140(%rbp), %edx
movq -0x138(%rbp), %rcx
leaq -0x1d0(%rbp), %r8
callq 0xcc30
movb $0x1, -0x1e1(%rbp)
movb -0x1e1(%rbp), %al
andb $0x1, %al
movb %al, -0x181(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x160(%rbp)
jmp 0x1fd89a
leaq -0x1f8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x1f9(%rbp)
movb -0x1f9(%rbp), %al
andb $0x1, %al
movb %al, -0x181(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x160(%rbp)
jmp 0x1fd89a
leaq 0x1565f9(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x181(%rbp), %al
andb $0x1, %al
movb %al, -0x11a(%rbp)
movb -0x181(%rbp), %al
andb $0x1, %al
movb %al, -0x119(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0xf8(%rbp)
jmp 0x1fd6b0
jmp 0x1fd903
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x12780
movq %rax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movq -0x208(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1fda16
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x12780
movq %rax, -0x220(%rbp)
movq %rdx, -0x218(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x220(%rbp), %rax
cmpq $0x0, %rax
je 0x1fda16
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x12780
movq %rax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x230(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1fda16
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x12780
movq %rax, -0x240(%rbp)
movq %rdx, -0x238(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x240(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1fda14
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x12780
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x250(%rbp), %rdi
movq -0x248(%rbp), %rsi
callq 0x127c0
jmp 0x1fda16
jmp 0x1fda18
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
callq 0xcea0
movl %eax, -0x260(%rbp)
movq %rdx, -0x258(%rbp)
movl -0x260(%rbp), %edi
movq -0x258(%rbp), %rsi
callq 0x1fc420
movl %eax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq -0xf8(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
nop