// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movq %rdi, %r14
xorl %edi, %edi
xorl %esi, %esi
callq 0xd37c
movq %rdx, %rdi
testl %eax, %eax
je 0xb7f4c
cmpl $0x1, %eax
jne 0xb7ff8
leaq -0xc8(%rbp), %rsi
callq 0xd450
movq %rax, %r13
movq %rdx, %r15
movq %rax, %r12
testb $0x1, %r15b
je 0xb7cd7
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xb7cd7
incl (%rax)
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
leaq -0x38(%rbp), %rcx
leaq -0x30(%rbp), %r8
callq 0xb83dc
cmpl $0x1, %eax
jne 0xb7f52
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r14
movq %rdx, -0x50(%rbp)
movq 0x28(%r12), %r15
movq %r15, %rax
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0xb7d2a
incl (%rax)
andq %rsi, %r13
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xb7d50
decl (%r13)
jne 0xb7d50
movq %r12, %rdi
leaq 0x5f346(%rip), %rsi     # 0x117091
callq 0xd4e3
movq -0x30(%rbp), %rbx
movq (%rbx), %rsi
movl 0x18(%rsi), %r13d
cmpb $0x0, 0x28(%rbx)
movl $0x0, %eax
cmovnel %r13d, %eax
movb %al, 0x18(%rsi)
movq -0x38(%rbp), %rdi
leaq -0xb0(%rbp), %rdx
leaq -0xa8(%rbp), %rcx
callq 0x95d84
cmpq $0x0, 0x10640ae(%rip)   # 0x111be38
jne 0xb7da9
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x2a, 0x18(%rax)
movq %rax, 0x106408f(%rip)   # 0x111be38
movq 0x1064088(%rip), %rdx   # 0x111be38
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb7dd1
incl (%rax)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x94972
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq %r15, %rdx
leaq -0x90(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0x94972
cmpq $0x0, 0x1064022(%rip)   # 0x111be40
jne 0xb7e43
movl $0x3, %edi
callq 0xf9f7
movq $0x3, 0x10(%rax)
movw $0x3d20, 0x18(%rax)     # imm = 0x3D20
movb $0x20, 0x1a(%rax)
movq %rax, 0x1063ffd(%rip)   # 0x111be40
movq 0x1063ff6(%rip), %rdx   # 0x111be40
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb7e6b
incl (%rax)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0x80(%rbp), %rcx
leaq -0x78(%rbp), %r8
callq 0x94972
movq -0x80(%rbp), %r15
movq -0x78(%rbp), %r12
movq %r14, %rdi
movq -0x50(%rbp), %rsi
callq 0x942c
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
leaq -0x70(%rbp), %rcx
leaq -0x68(%rbp), %r8
callq 0x94972
cmpq $0x0, 0x1063f90(%rip)   # 0x111be48
jne 0xb7ed7
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x1063f71(%rip)   # 0x111be48
movq 0x1063f6a(%rip), %rdx   # 0x111be48
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb7eff
incl (%rax)
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x60(%rbp), %rcx
leaq -0x58(%rbp), %r8
callq 0x94972
movq -0x60(%rbp), %r14
movq -0x58(%rbp), %r15
cmpb $0x1, 0x18(%r15)
jne 0xb7f43
movq 0x28(%r15), %rsi
movl $0xa, %edi
leaq -0xb8(%rbp), %rdx
callq 0x95160
movq -0xb8(%rbp), %rax
movq %rax, 0x28(%r15)
movb %r13b, 0x18(%r15)
movq %r15, (%rbx)
jmp 0xb7f8c
xorl %ecx, %ecx
xorl %edi, %edi
jmp 0xb7f9b
testb $0x1, %r15b
je 0xb7f84
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xb7f84
decl (%r13)
jne 0xb7f84
movq %r12, %rdi
movq %r15, %rsi
callq 0xd4e3
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
movl -0xc8(%rbp), %eax
movq -0xc0(%rbp), %rdi
movb $0x1, %cl
testb %cl, %cl
jne 0xb7c8b
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rsi
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xb7fd8
decl (%rsi)
jne 0xb7fd8
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x5d2a9(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
movq -0x40(%rbp), %rax
movq %rbx, (%rax)
movq -0x48(%rbp), %rax
movq %r14, (%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 0x2c73c(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x2c741(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5