// File: /workspace/github_c_makefile_star2_O2/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, %r14
movq %r8, %rbx
movq %rsi, %r13
movq %rdi, %r15
movl %edx, %edi
movq %rcx, %rsi
callq 0xcd32
leaq -0xd0(%rbp), %rsi
movb $0x1, %cl
movq %rdx, %rdi
testb $0x1, %cl
je 0xaac23
xorl %ecx, %ecx
movl $0x0, %edx
testl %eax, %eax
je 0xaa91b
movq %r14, -0x30(%rbp)
movq %rbx, -0x38(%rbp)
cmpl $0x1, %eax
jne 0xaac70
callq 0xce01
movq %rax, %r14
movq %rdx, %rbx
movq %rax, %r12
testb $0x1, %bl
je 0xaa976
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xaa976
incl (%rax)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
leaq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0xaafd5
cmpl $0x1, %eax
jne 0xaabd1
movq %rdx, %rdi
callq 0xd491
movq %rax, -0x50(%rbp)
movq %rdx, %r15
movq 0x28(%r12), %rbx
movq %rbx, %rax
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xaa9c8
incl (%rax)
andq %rsi, %r14
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xaa9ed
decl (%r14)
jne 0xaa9ed
movq %r12, %rdi
leaq 0x5f6a9(%rip), %rsi     # 0x10a091
callq 0xce94
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movl 0x18(%rsi), %r13d
movq %rax, %r12
cmpb $0x0, 0x28(%rax)
movl $0x0, %eax
cmovnel %r13d, %eax
movb %al, 0x18(%rsi)
movq -0x48(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
leaq -0xb8(%rbp), %rcx
callq 0x8bc28
movq 0x1064417(%rip), %rdx   # 0x110ee40
testq %rdx, %rdx
jne 0xaaa47
leaq 0x43760(%rip), %rdi     # 0xee195
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10643f9(%rip)   # 0x110ee40
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xaaa68
incl (%rax)
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x8a8a9
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movq %rbx, %rdx
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x8a8a9
movq 0x1064394(%rip), %rdx   # 0x110ee48
testq %rdx, %rdx
jne 0xaaad2
leaq 0x31c1c(%rip), %rdi     # 0xdc6dc
pushq $0x3
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1064376(%rip)   # 0x110ee48
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xaaaf3
incl (%rax)
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0x90(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0x8a8a9
movq -0x90(%rbp), %rbx
movq -0x88(%rbp), %r14
movq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x8b55
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
leaq -0x80(%rbp), %rcx
leaq -0x78(%rbp), %r8
callq 0x8a8a9
movq 0x1064305(%rip), %rdx   # 0x110ee50
testq %rdx, %rdx
jne 0xaab69
leaq 0x435b6(%rip), %rdi     # 0xee10d
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10642e7(%rip)   # 0x110ee50
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r14
jne 0xaab92
incl (%rax)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
leaq -0x70(%rbp), %rcx
leaq -0x68(%rbp), %r8
callq 0x8a8a9
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x60(%rbp), %rdx
leaq -0x58(%rbp), %rcx
callq 0x8a92c
movq -0x58(%rbp), %rax
movb %r13b, 0x18(%rax)
movq %r12, %r13
movq %rax, (%r12)
movq -0x60(%rbp), %r15
jmp 0xaac11
testb $0x1, %bl
je 0xaac01
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r14
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xaac01
decl (%r14)
jne 0xaac01
movq %r12, %rdi
movq %rbx, %rsi
callq 0xce94
movq -0x40(%rbp), %r13
movq -0x48(%rbp), %r15
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r14
movl -0xd0(%rbp), %eax
movq -0xc8(%rbp), %rdx
jmp 0xaa912
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rsi
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xaac58
decl (%rsi)
jne 0xaac58
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x5d629(%rip), %rsi     # 0x108279
movq %rax, %rdi
callq 0xce94
movq %r13, (%r14)
movq %r15, (%rbx)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29b96(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6