// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_elabzepatternzx
static void mw_mirth_elab_elabzepatternzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_match_Pattern* in_zaPattern_2, struct std_list_List_1 in_List_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_match_Pattern* *out_zaPattern_5) {
	struct std_list_List_1 v6 = mw_std_list_List_1_reverse(in_List_3);
	bool v7 = true;
	struct mirth_mirth_zaMirth* r8 = in_zaMirth_1;
	struct mirth_match_Pattern* r9 = in_zaPattern_2;
	struct std_list_List_1 v10 = v6;
	bool v11 = v7;
	bool v12 = v7;
	while (v12) {
		struct mirth_mirth_zaMirth* r13 = r8;
		struct mirth_match_Pattern* r14 = r9;
		struct std_list_List_1 v15 = v10;
		bool v16 = v11;
		struct mirth_mirth_zaMirth* branch_zaMirth_17;
		struct mirth_match_Pattern* branch_zaPattern_18;
		struct std_list_List_1 branch_List_19;
		bool branch_Bool_20;
		switch ((v15).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v21;
				VAL v22 = mtp_std_list_List_1_Cons(v15, &v21);
				struct mirth_mirth_zaMirth* v23;
				struct mirth_match_Pattern* v24;
				mw_mirth_elab_elabzepatternzeatomzx(r13, r14, V_mirth_token_Token(v22), &v23, &v24);
				bool v25 = true;
				branch_Bool_20 = v25;
				branch_List_19 = v21;
				branch_zaPattern_18 = v24;
				branch_zaMirth_17 = v23;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v26 = { .tag=std_list_List_1_Nil };
				bool v27 = false;
				branch_Bool_20 = v27;
				branch_List_19 = v26;
				branch_zaPattern_18 = r14;
				branch_zaMirth_17 = r13;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v12 = branch_Bool_20;
		v11 = branch_Bool_20;
		v10 = branch_List_19;
		r9 = branch_zaPattern_18;
		r8 = branch_zaMirth_17;
	}
	decref(MK_std_list_List_1(v10));
	*out_zaPattern_5 = r9;
	*out_zaMirth_4 = r8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x122b0
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movb $0x1, -0x41(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x69(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x6a(%rbp)
testb $0x1, -0x6a(%rbp)
je 0xf7bd4
movq -0x50(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movups -0x68(%rbp), %xmm0
movaps %xmm0, -0x90(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x164(%rbp)
testl %eax, %eax
je 0xf7b18
jmp 0xf7a6f
movl -0x164(%rbp), %eax
subl $0x1, %eax
jne 0xf7b74
jmp 0xf7a80
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x125e0
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0xe0(%rbp), %rdx
leaq -0xe8(%rbp), %rcx
leaq -0xf0(%rbp), %r8
callq 0xf8ee0
movb $0x1, -0xf1(%rbp)
movb -0xf1(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xf7b8d
leaq -0x108(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x109(%rbp)
movb -0x109(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xf7b8d
leaq 0x25c306(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0x6a(%rbp)
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0x69(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf7a29
jmp 0xf7bd6
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x118(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf7ccb
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x130(%rbp), %rax
cmpq $0x0, %rax
je 0xf7ccb
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x140(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf7ccb
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x150(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xf7cc9
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
callq 0x127c0
jmp 0xf7ccb
jmp 0xf7ccd
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x50(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nopl (%rax)