// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_reversezefor_1_sp10
static void mw_std_list_List_1_reversezefor_1_sp10 (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);
				incref(v22);
				struct mirth_mirth_zaMirth* v23;
				struct mirth_c99_zaC99Branch* v24;
				struct std_maybe_Maybe_1 v25 = mw_mirth_c99_C99APIArg_popzeconsumezephysicalzx(r13, r14, V_mirth_c99_C99APIArg(v22), &v23, &v24);
				struct mirth_mirth_zaMirth* branch_zaMirth_26;
				struct mirth_c99_zaC99Branch* branch_zaC99Branch_27;
				switch ((v25).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v28 = mtp_std_maybe_Maybe_1_Some(v25);
						STR* v29 = V_mirth_c99_C99APIArg(v22)->margzename;
						incref(MKSTR(v29));
						decref(MK_mirth_c99_C99APIArg(V_mirth_c99_C99APIArg(v22)));
						bool v30 = v24->mreachable;
						struct mirth_c99_zaC99* r31 = v24->mzac99;
						bool v32 = r31->mputzeenabled;
						bool v33 = (v30 && v32);
						r31->mputzeenabled = v33;
						struct mirth_mirth_zaMirth* v34;
						struct mirth_c99_zaC99* v35;
						mw_mirth_c99_zaC99_indent(v23, r31, &v34, &v35);
						STR* v36;
						STRLIT(v36, "*", 1);
						struct mirth_mirth_zaMirth* v37;
						struct mirth_c99_zaC99* v38;
						mw_mirth_c99_zaC99_put(v34, v35, v36, &v37, &v38);
						struct mirth_mirth_zaMirth* v39;
						struct mirth_c99_zaC99* v40;
						mw_mirth_c99_zaC99_put(v37, v38, v29, &v39, &v40);
						STR* v41;
						STRLIT(v41, " = ", 3);
						struct mirth_mirth_zaMirth* v42;
						struct mirth_c99_zaC99* v43;
						mw_mirth_c99_zaC99_put(v39, v40, v41, &v42, &v43);
						struct mirth_mirth_zaMirth* v44;
						struct mirth_c99_zaC99* v45;
						mw_mirth_c99_zaC99_put(v42, v43, value_str(v28), &v44, &v45);
						STR* v46;
						STRLIT(v46, ";", 1);
						struct mirth_mirth_zaMirth* v47;
						struct mirth_c99_zaC99* v48;
						mw_mirth_c99_zaC99_put(v44, v45, v46, &v47, &v48);
						struct mirth_mirth_zaMirth* v49;
						struct mirth_c99_zaC99* v50;
						mw_mirth_c99_zaC99_line(v47, v48, &v49, &v50);
						v50->mputzeenabled = v32;
						v24->mzac99 = v50;
						branch_zaC99Branch_27 = v24;
						branch_zaMirth_26 = v49;
					} break;
					case std_maybe_Maybe_1_None: {
						decref(v22);
						branch_zaC99Branch_27 = v24;
						branch_zaMirth_26 = v23;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				bool v51 = true;
				branch_Bool_20 = v51;
				branch_List_19 = v21;
				branch_zaC99Branch_18 = branch_zaC99Branch_27;
				branch_zaMirth_17 = branch_zaMirth_26;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v52 = { .tag=std_list_List_1_Nil };
				bool v53 = false;
				branch_Bool_20 = v53;
				branch_List_19 = v52;
				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, -0x40(%rbp)
movq %r8, -0x48(%rbp)
movq %rsi, %r14
movq %rdi, %r15
xorl %edi, %edi
xorl %esi, %esi
callq 0xd01b
movq %rdx, %rdi
cmpl $0x1, %eax
jne 0xb5029
leaq -0xd0(%rbp), %rsi
callq 0xd0aa
movq %rax, %rbx
movq %rdx, %r12
movq %rax, %rdx
testb $0x1, %r12b
je 0xb4d91
movq %rbx, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xb4d91
incl (%r13)
movq %r15, %rdi
movq %r14, %rsi
movq %rdx, %r14
leaq -0x38(%rbp), %rcx
leaq -0x30(%rbp), %r8
callq 0xb5425
cmpl $0x1, %eax
je 0xb4db0
decl (%r13)
jne 0xb500f
movq %r14, %rdi
movq %r12, %rsi
callq 0xd13d
jmp 0xb500f
movq %r15, %rdi
movq %r14, %rsi
movq %rdx, %r14
leaq -0x38(%rbp), %rcx
leaq -0x30(%rbp), %r8
callq 0xb5425
cmpl $0x1, %eax
jne 0xb500f
movq %rdx, %rdi
callq 0xd745
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq 0x28(%r14), %r12
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xb4de4
incl (%rax)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rbx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0xb4e12
decl (%rbx)
jne 0xb4e12
movq %r14, %rdi
leaq 0x5e284(%rip), %rsi     # 0x113091
callq 0xd13d
movq -0x30(%rbp), %r14
movq (%r14), %rsi
movl 0x18(%rsi), %r13d
cmpb $0x0, 0x28(%r14)
movl $0x0, %eax
cmovnel %r13d, %eax
movb %al, 0x18(%rsi)
movq -0x38(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0x93675
movq 0x1062fec(%rip), %rdx   # 0x1117e38
testq %rdx, %rdx
jne 0xb4e71
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x2a, 0x18(%rax)
movq %rax, 0x1062fc7(%rip)   # 0x1117e38
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb4e92
incl (%rax)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
leaq -0xa8(%rbp), %rcx
leaq -0xa0(%rbp), %r8
callq 0x9221b
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
movq %r12, %rdx
leaq -0x98(%rbp), %rcx
leaq -0x90(%rbp), %r8
callq 0x9221b
movq 0x1062f62(%rip), %rdx   # 0x1117e40
testq %rdx, %rdx
jne 0xb4f09
movl $0x3, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x3, 0x10(%rax)
movw $0x3d20, 0x18(%rax)     # imm = 0x3D20
movb $0x20, 0x1a(%rax)
movq %rax, 0x1062f37(%rip)   # 0x1117e40
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb4f2a
incl (%rax)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x88(%rbp), %rcx
leaq -0x80(%rbp), %r8
callq 0x9221b
movq -0x88(%rbp), %rbx
movq -0x80(%rbp), %r15
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x9189
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
leaq -0x78(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x9221b
movq 0x1062ecb(%rip), %rdx   # 0x1117e48
testq %rdx, %rdx
jne 0xb4fa2
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x1062ea6(%rip)   # 0x1117e48
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb4fc3
incl (%rax)
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x68(%rbp), %rcx
leaq -0x60(%rbp), %r8
callq 0x9221b
movq -0x68(%rbp), %r15
movq -0x60(%rbp), %rbx
cmpb $0x1, 0x18(%rbx)
jne 0xb5006
movq 0x28(%rbx), %rsi
movl $0xa, %edi
leaq -0xc0(%rbp), %rdx
callq 0x92a13
movq -0xc0(%rbp), %rax
movq %rax, 0x28(%rbx)
movb %r13b, 0x18(%rbx)
movq %rbx, (%r14)
jmp 0xb5017
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %r15
movl -0xd0(%rbp), %eax
movq -0xc8(%rbp), %rdi
jmp 0xb4d17
testl %eax, %eax
jne 0xb504d
movq -0x40(%rbp), %rax
movq %r14, (%rax)
movq -0x48(%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 0x2b667(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x2b66c(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302