// File: /workspace/github_c_makefile_star2_O3/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 $0xa8, %rsp
movq %r9, -0x50(%rbp)
movq %r8, -0x58(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
xorl %edi, %edi
xorl %esi, %esi
callq 0xd01b
movq %rdx, %rdi
leaq -0x70(%rbp), %rbx
cmpl $0x1, %eax
jne 0xd63c2
movq %rbx, %rsi
callq 0xd0aa
movq %rax, %r13
movq %rax, %r12
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r12
setne %al
testb $0x3, %r13b
sete %r14b
andb %al, %r14b
cmpb $0x1, %r14b
jne 0xd6190
incl (%r12)
movq %r15, %rdi
movq -0x30(%rbp), %rsi
movq %r13, %rdx
leaq -0x40(%rbp), %rcx
leaq -0x38(%rbp), %r8
callq 0xb5425
cmpl $0x1, %eax
je 0xd61b0
decl (%r12)
jne 0xd63aa
movq %r13, %rdi
leaq 0x3cf0b(%rip), %rsi     # 0x113091
callq 0xd13d
jmp 0xd63aa
movq %r15, %rdi
movq -0x30(%rbp), %rsi
movq %r13, %rdx
leaq -0x40(%rbp), %rcx
leaq -0x38(%rbp), %r8
callq 0xb5425
cmpl $0x1, %eax
jne 0xd63aa
movq %rdx, %rdi
callq 0xd745
movq %rax, %r15
movq %rdx, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movl 0x18(%rsi), %ecx
movq %rax, -0x30(%rbp)
cmpb $0x0, 0x28(%rax)
movl $0x0, %eax
movl %ecx, -0x44(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq -0x40(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
leaq -0xb8(%rbp), %rcx
callq 0x93675
movq 0x28(%r13), %rbx
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xd6219
incl (%rax)
testb %r14b, %r14b
je 0xd6233
decl (%r12)
jne 0xd6233
movq %r13, %rdi
leaq 0x3ce63(%rip), %rsi     # 0x113091
callq 0xd13d
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq %rbx, %rdx
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x9221b
movq 0x10430ea(%rip), %rdx   # 0x1119348
testq %rdx, %rdx
jne 0xd6289
movl $0x3, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x3, 0x10(%rax)
movw $0x3d20, 0x18(%rax)     # imm = 0x3D20
movb $0x20, 0x1a(%rax)
movq %rax, 0x10430bf(%rip)   # 0x1119348
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xd62aa
incl (%rax)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x9221b
movq -0xa0(%rbp), %rbx
movq -0x98(%rbp), %r13
movq %r15, %rdi
movq -0x60(%rbp), %rsi
callq 0x9189
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
leaq -0x90(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0x9221b
movq 0x1043048(%rip), %rdx   # 0x1119350
testq %rdx, %rdx
jne 0xd632d
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x1043023(%rip)   # 0x1119350
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xd634e
incl (%rax)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0x80(%rbp), %rcx
leaq -0x78(%rbp), %r8
callq 0x9221b
movq -0x80(%rbp), %r15
movq -0x78(%rbp), %rbx
cmpb $0x1, 0x18(%rbx)
jne 0xd6397
movq 0x28(%rbx), %rsi
movl $0xa, %edi
leaq -0xc8(%rbp), %rdx
callq 0x92a13
movq -0xc8(%rbp), %rax
movq %rax, 0x28(%rbx)
movl -0x44(%rbp), %eax
movb %al, 0x18(%rbx)
movq -0x30(%rbp), %rax
movq %rbx, (%rax)
leaq -0x70(%rbp), %rbx
jmp 0xd63b6
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x40(%rbp), %r15
movl -0x70(%rbp), %eax
movq -0x68(%rbp), %rdi
jmp 0xd611a
testl %eax, %eax
jne 0xd63ea
movq -0x50(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rax
movq %r15, (%rax)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xa2ca(%rip), %xmm0     # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xa2cf(%rip), %xmm0     # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302