// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_reversezefor_1_sp6
static void mw_std_list_List_1_reversezefor_1_sp6 (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct std_list_List_1 in_List_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_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_c99_zaC99Branch* r9 = in_zaC99Branch_2;
	struct std_list_List_1 v10 = v6;
	bool v11 = v7;
	bool v12 = v7;
	while (v12) {
		struct mirth_mirth_zaMirth* r13 = r8;
		struct mirth_c99_zaC99Branch* r14 = r9;
		struct std_list_List_1 v15 = v10;
		bool v16 = v11;
		struct mirth_mirth_zaMirth* branch_zaMirth_17;
		struct mirth_c99_zaC99Branch* branch_zaC99Branch_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_c99_zaC99Branch* v24;
				mw_mirth_c99_C99APIArg_popzetozereservedzx(r13, r14, V_mirth_c99_C99APIArg(v22), &v23, &v24);
				bool v25 = true;
				branch_Bool_20 = v25;
				branch_List_19 = v21;
				branch_zaC99Branch_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_zaC99Branch_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_zaC99Branch_18;
		r8 = branch_zaMirth_17;
	}
	decref(MK_std_list_List_1(v10));
	*out_zaC99Branch_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 0x32c2e4
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 0x32c228
jmp 0x32c17f
movl -0x164(%rbp), %eax
subl $0x1, %eax
jne 0x32c284
jmp 0x32c190
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 0x3328c0
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 0x32c29d
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 0x32c29d
leaq 0x27bf6(%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 0x32c139
jmp 0x32c2e6
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 0x32c3db
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 0x32c3db
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 0x32c3db
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 0x32c3d9
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 0x32c3db
jmp 0x32c3dd
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)