// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_reversezefor_1_sp13
static struct std_list_List_1 mw_std_list_List_1_reversezefor_1_sp13 (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, struct std_list_List_1 in_Ctx_3, struct mirth_type_StackType in_StackType_4, struct std_list_List_1 in_List_5, struct mirth_mirth_zaMirth* *out_zaMirth_6, struct mirth_arrow_Arrow* *out_zaAB_7, struct mirth_type_StackType *out_StackType_9) {
	struct std_list_List_1 v10 = mw_std_list_List_1_reverse(in_List_5);
	bool v11 = true;
	struct mirth_mirth_zaMirth* r12 = in_zaMirth_1;
	struct mirth_arrow_Arrow* r13 = in_zaAB_2;
	struct std_list_List_1 v14 = in_Ctx_3;
	struct mirth_type_StackType v15 = in_StackType_4;
	struct std_list_List_1 v16 = v10;
	bool v17 = v11;
	bool v18 = v11;
	while (v18) {
		struct mirth_mirth_zaMirth* r19 = r12;
		struct mirth_arrow_Arrow* r20 = r13;
		struct std_list_List_1 v21 = v14;
		struct mirth_type_StackType v22 = v15;
		struct std_list_List_1 v23 = v16;
		bool v24 = v17;
		struct std_list_List_1 branch_Ctx_25;
		struct mirth_type_StackType branch_StackType_26;
		struct mirth_mirth_zaMirth* branch_zaMirth_27;
		struct mirth_arrow_Arrow* branch_zaAB_28;
		struct std_list_List_1 branch_List_29;
		bool branch_Bool_30;
		switch ((v23).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v31;
				VAL v32 = mtp_std_list_List_1_Cons(v23, &v31);
				incref(v32);
				struct std_list_List_1 v33 = mw_mirth_var_Ctx_new(v21, V_mirth_var_Var(v32));
				struct mirth_arrow_Arrow* v34;
				uint64_t v35 = mw_mirth_elab_zaAB_abzetokenzo(r20, &v34);
				struct mirth_mirth_zaMirth* v36;
				struct mirth_type_Type v37;
				uint64_t v38;
				struct mirth_type_StackType v39 = mw_mirth_elab_elabzeexpandzetensorzx(r19, v22, v35, &v36, &v37, &v38);
				struct mirth_mirth_zaMirth* v40;
				struct mirth_type_Type v41 = mw_mirth_var_Var_type(v36, V_mirth_var_Var(v32), &v40);
				struct mirth_mirth_zaMirth* v42;
				uint64_t v43;
				struct mirth_type_Type v44 = mw_mirth_elab_elabzetypezeunifyzx(v40, v37, v41, v38, &v42, &v43);
				decref(MK_mirth_type_Type(v44));
				bool v45 = true;
				branch_Bool_30 = v45;
				branch_List_29 = v31;
				branch_zaAB_28 = v34;
				branch_zaMirth_27 = v42;
				branch_StackType_26 = v39;
				branch_Ctx_25 = v33;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v46 = { .tag=std_list_List_1_Nil };
				bool v47 = false;
				branch_Bool_30 = v47;
				branch_List_29 = v46;
				branch_zaAB_28 = r20;
				branch_zaMirth_27 = r19;
				branch_StackType_26 = v22;
				branch_Ctx_25 = v21;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v18 = branch_Bool_30;
		v17 = branch_Bool_30;
		v16 = branch_List_29;
		v15 = branch_StackType_26;
		v14 = branch_Ctx_25;
		r13 = branch_zaAB_28;
		r12 = branch_zaMirth_27;
	}
	decref(MK_std_list_List_1(v16));
	*out_StackType_9 = v15;
	*out_zaAB_7 = r13;
	*out_zaMirth_6 = r12;
	return v14;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, -0x38(%rbp)
movl %r8d, -0x2c(%rbp)
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r13
movl 0x10(%rbp), %edx
movq 0x18(%rbp), %rcx
xorl %edi, %edi
xorl %esi, %esi
callq 0xd01b
movq %rdx, %rdi
cmpl $0x1, %eax
jne 0x436b6
leaq -0x98(%rbp), %rsi
callq 0xd0aa
movq %rax, %r14
testb $0x1, %dl
je 0x43486
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x43486
incl (%rax)
movl %r12d, %edi
movq %r15, %rsi
movq %r14, %rdx
leaq 0xce60a(%rip), %rcx     # 0x111aa0
callq 0x3df89
movl %eax, -0x44(%rbp)
movq %rdx, -0x58(%rbp)
movq %rbx, %rdi
leaq -0x70(%rbp), %rsi
callq 0x432bd
leaq -0x60(%rbp), %rcx
movq %rcx, (%rsp)
movq %r13, %rdi
movl -0x2c(%rbp), %esi
movq -0x38(%rbp), %rdx
movq %rax, %rcx
leaq -0x68(%rbp), %r8
leaq -0x88(%rbp), %r9
callq 0x4234c
movl %eax, -0x2c(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x68(%rbp), %rbx
leaq 0x10d1b0b(%rip), %rdi   # 0x1114ff0
movq %r14, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %r13
movq -0x60(%rbp), %r12
movl -0x88(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x48(%rbx), %r14
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
setne %dl
testb $0x3, %r14b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x43535
addl $0x2, (%rax)
movl 0x8(%r14), %edx
movl %edx, -0x40(%rbp)
movq 0x10(%r14), %r15
movq %r15, %rdx
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rdx
sete %sil
testb $0x3, %r15b
setne %dil
orb %sil, %dil
jne 0x43563
incl (%rdx)
testb %cl, %cl
je 0x4357a
decl (%rax)
jne 0x4357a
movq %r14, %rdi
leaq 0xce2ec(%rip), %rsi     # 0x111861
callq 0xd13d
movq %r12, %rdi
leaq 0xce834(%rip), %rsi     # 0x111db8
callq 0x9353
movq %r14, %rdi
movl $0x1, %esi
callq 0x3094a
movq %rax, %r14
movq 0x48(%rbx), %rdi
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x435cb
decl (%rax)
jne 0x435cb
leaq 0xce29b(%rip), %rsi     # 0x111861
callq 0xd13d
movq %r13, %rcx
shrq $0x30, %rcx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
andq %r12, %r13
movq %r14, 0x48(%rbx)
movq %rbx, %rdi
movl -0x3c(%rbp), %esi
movq -0x50(%rbp), %rdx
movq %r13, %r8
leaq -0x78(%rbp), %r9
callq 0x35be8
movl %eax, %ebx
movq %rdx, %r14
movq -0x78(%rbp), %r13
movq 0x48(%r13), %rdi
movq %rdi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
movl -0x44(%rbp), %r12d
jne 0x43620
incl (%rax)
movl -0x40(%rbp), %esi
movq %r15, %rdx
callq 0x3094a
movq %rax, %r15
movq 0x48(%r13), %rdi
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x43660
decl (%rax)
jne 0x43660
leaq 0xce206(%rip), %rsi     # 0x111861
callq 0xd13d
movq %r15, 0x48(%r13)
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x4369c
decl (%rax)
jne 0x4369c
shlq $0x30, %rbx
orq %r14, %rbx
movq %rbx, %rdi
leaq 0xce452(%rip), %rsi     # 0x111ae9
callq 0xd13d
movl -0x98(%rbp), %eax
movq -0x90(%rbp), %rdi
movq -0x70(%rbp), %rbx
movq -0x58(%rbp), %r15
jmp 0x43449
testl %eax, %eax
jne 0x436ee
movq 0x30(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq 0x28(%rbp), %rax
movq %rbx, (%rax)
movq 0x20(%rbp), %rax
movq %r13, (%rax)
movl %r12d, %eax
movq %r15, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x9cfc6(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x9cfcb(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302