// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, %rbx
movq %r8, %r12
movq %rsi, %r15
movq %rdi, %r14
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movl %edx, %edi
movq %rcx, %rsi
callq 0xcd32
leaq -0x78(%rbp), %rsi
movb $0x1, %cl
movq %rdx, %rdi
testb $0x1, %cl
je 0xca9dd
xorl %ecx, %ecx
movl $0x0, %edx
testl %eax, %eax
je 0xca750
movq %rbx, -0x40(%rbp)
cmpl $0x1, %eax
jne 0xcaa23
callq 0xce01
movq %rax, %rbx
movq %rax, %rcx
andq %r13, %rcx
setne %al
testb $0x3, %bl
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0xca797
incl (%rcx)
movq %rcx, -0x38(%rbp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
leaq -0x50(%rbp), %rcx
leaq -0x48(%rbp), %r8
callq 0xaafd5
cmpl $0x1, %eax
jne 0xca99f
movq %r12, -0x68(%rbp)
movq %rdx, %rdi
callq 0xd491
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rsi
movl 0x18(%rsi), %ecx
movq %rax, %r15
cmpb $0x0, 0x28(%rax)
movl $0x0, %eax
movl %ecx, -0x2c(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq -0x50(%rbp), %rdi
leaq -0xd8(%rbp), %rdx
leaq -0xd0(%rbp), %rcx
callq 0x8bc28
movq 0x28(%rbx), %r12
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xca828
incl (%rax)
testb %r13b, %r13b
movq -0x38(%rbp), %rax
je 0xca844
decl (%rax)
jne 0xca844
movq %rbx, %rdi
leaq 0x3f852(%rip), %rsi     # 0x10a091
callq 0xce94
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq %r12, %rdx
leaq -0xc8(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x8a8a9
movq 0x1045ae1(%rip), %rdx   # 0x1110350
testq %rdx, %rdx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
jne 0xca897
leaq 0x11e57(%rip), %rdi     # 0xdc6dc
pushq $0x3
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1045ab9(%rip)   # 0x1110350
movq %rdx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xca8ae
incl (%rax)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
leaq -0xb8(%rbp), %rcx
leaq -0xb0(%rbp), %r8
callq 0x8a8a9
movq -0xb8(%rbp), %rbx
movq -0xb0(%rbp), %r14
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x8b55
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
leaq -0xa8(%rbp), %rcx
leaq -0xa0(%rbp), %r8
callq 0x8a8a9
movq 0x1045a4b(%rip), %rdx   # 0x1110358
testq %rdx, %rdx
jne 0xca92b
leaq 0x237f4(%rip), %rdi     # 0xee10d
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1045a2d(%rip)   # 0x1110358
movq %rdx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
movq -0x68(%rbp), %r12
movq -0x40(%rbp), %rbx
jne 0xca94a
incl (%rax)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
leaq -0x98(%rbp), %rcx
leaq -0x90(%rbp), %r8
callq 0x8a8a9
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x88(%rbp), %rdx
leaq -0x80(%rbp), %rcx
callq 0x8a92c
movq -0x80(%rbp), %rax
movl -0x2c(%rbp), %ecx
movb %cl, 0x18(%rax)
movq %rax, (%r15)
movq -0x88(%rbp), %r14
jmp 0xca9d1
testb %r13b, %r13b
je 0xca9bb
movq -0x38(%rbp), %rax
decl (%rax)
jne 0xca9bb
movq %rbx, %rdi
leaq 0x3f6db(%rip), %rsi     # 0x10a091
callq 0xce94
movq -0x48(%rbp), %r15
movq -0x50(%rbp), %r14
movq -0x40(%rbp), %rbx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movl -0x78(%rbp), %eax
movq -0x70(%rbp), %rdx
jmp 0xca74a
andq %rdi, %r13
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xcaa0a
decl (%r13)
jne 0xcaa0a
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x3d877(%rip), %rsi     # 0x108279
movq %rax, %rdi
callq 0xce94
movq %r15, (%rbx)
movq %r14, (%r12)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9de3(%rip), %rdi      # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6