// File: /workspace/github_c_makefile_star2_O1/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, %r12
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
xorl %edi, %edi
xorl %esi, %esi
callq 0xd37c
movq %rdx, %rdi
testl %eax, %eax
je 0xda98a
cmpl $0x1, %eax
jne 0xdaa1d
leaq -0xd0(%rbp), %rsi
callq 0xd450
movq %rax, %rbx
movq %rax, %r13
andq %r14, %r13
setne %al
testb $0x3, %bl
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0xda788
incl (%r13)
movq %r12, %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rdx
leaq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0xb83dc
cmpl $0x1, %eax
jne 0xda990
movq %rdx, %rdi
callq 0xdaeb
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movl 0x18(%rsi), %ecx
movq %rax, -0x30(%rbp)
cmpb $0x0, 0x28(%rax)
movl $0x0, %eax
movl %ecx, -0x34(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq -0x48(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0x95d84
movq %r14, %rcx
movq 0x28(%rbx), %r14
movq %r14, %rax
movq %rcx, %r12
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0xda80f
incl (%rax)
testb %r15b, %r15b
je 0xda829
decl (%r13)
jne 0xda829
movq %rbx, %rdi
leaq 0x3c86d(%rip), %rsi     # 0x117091
callq 0xd4e3
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq %r14, %rdx
leaq -0xa8(%rbp), %rcx
leaq -0xa0(%rbp), %r8
callq 0x94972
cmpq $0x0, 0x1042af3(%rip)   # 0x111d348
jne 0xda87a
movl $0x3, %edi
callq 0xf9f7
movq $0x3, 0x10(%rax)
movw $0x3d20, 0x18(%rax)     # imm = 0x3D20
movb $0x20, 0x1a(%rax)
movq %rax, 0x1042ace(%rip)   # 0x111d348
movq 0x1042ac7(%rip), %rdx   # 0x111d348
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xda898
incl (%rax)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
leaq -0x98(%rbp), %rcx
leaq -0x90(%rbp), %r8
callq 0x94972
movq -0x98(%rbp), %rbx
movq -0x90(%rbp), %r14
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x942c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
leaq -0x88(%rbp), %rcx
leaq -0x80(%rbp), %r8
callq 0x94972
cmpq $0x0, 0x1042a5b(%rip)   # 0x111d350
jne 0xda914
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x1042a3c(%rip)   # 0x111d350
movq 0x1042a35(%rip), %rdx   # 0x111d350
movq %rdx, %rax
movq %r12, %r14
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xda935
incl (%rax)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x94972
movq -0x78(%rbp), %r12
movq -0x70(%rbp), %rbx
cmpb $0x1, 0x18(%rbx)
jne 0xda97b
movq 0x28(%rbx), %rsi
movl $0xa, %edi
leaq -0xc0(%rbp), %rdx
callq 0x95160
movq -0xc0(%rbp), %rax
movq %rax, 0x28(%rbx)
movl -0x34(%rbp), %eax
movb %al, 0x18(%rbx)
movq -0x30(%rbp), %rax
movq %rbx, (%rax)
jmp 0xda9b6
xorl %ecx, %ecx
xorl %edi, %edi
jmp 0xda9c5
testb %r15b, %r15b
je 0xda9aa
decl (%r13)
jne 0xda9aa
movq %rbx, %rdi
leaq 0x3c6ec(%rip), %rsi     # 0x117091
callq 0xd4e3
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x48(%rbp), %r12
movl -0xd0(%rbp), %eax
movq -0xc8(%rbp), %rdi
movb $0x1, %cl
testb %cl, %cl
jne 0xda74b
andq %rdi, %r14
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xda9f9
decl (%r14)
jne 0xda9f9
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x3a888(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
movq -0x50(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rax
movq %r12, (%rax)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x9d17(%rip), %xmm0     # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x9d1c(%rip), %xmm0     # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5