// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaAB_abzerdipzenzx_1_sp1
static void mw_mirth_elab_zaAB_abzerdipzenzx_1_sp1 (struct mirth_arrow_Home in_Home_1, uint64_t in_Token_2, struct std_list_List_1 in_Ctx_3, struct mirth_arrow_Op in_Op_4, struct std_list_List_1 in_List_5, struct std_list_List_1 in_Subst_6, struct mirth_type_StackType in_StackType_7, struct std_list_List_1 in_List_8, struct mirth_type_StackType in_StackType_9, VAL in_zux1_10, VAL in_zux2_11, VAL in_zux3_12, VAL in_zux4_13, VAL in_zux5_14, VAL in_zux6_15, VAL in_zux7_16, VAL in_zux8_17, INT in_Nat_18, struct mirth_mirth_zaMirth* in_zaMirth_19, struct mirth_arrow_Arrow* in_zaAB_20, INT in_Nat_21, struct mirth_type_StackType *out_StackType_22, struct mirth_type_StackType *out_StackType_23, VAL *out_zux1_24, INT *out_Nat_25, VAL *out_zux2_26, VAL *out_zux3_27, VAL *out_zux4_28, VAL *out_zux5_29, VAL *out_zux6_30, VAL *out_zux7_31, VAL *out_zux8_32, struct mirth_mirth_zaMirth* *out_zaMirth_33, struct mirth_arrow_Arrow* *out_zaAB_34) {
	incref(MKNAT(in_Nat_21));
	INT v35 = WRAP_I63(0LL);
	INT v36 = in_Nat_21;
	INT v37 = v35;
	bool v38 = int_lt(v37, v36);
	struct mirth_type_StackType branch_StackType_39;
	struct mirth_type_StackType branch_StackType_40;
	VAL branch_zux1_41;
	INT branch_Nat_42;
	VAL branch_zux2_43;
	VAL branch_zux3_44;
	VAL branch_zux4_45;
	VAL branch_zux5_46;
	VAL branch_zux6_47;
	VAL branch_zux7_48;
	VAL branch_zux8_49;
	struct mirth_mirth_zaMirth* branch_zaMirth_50;
	struct mirth_arrow_Arrow* branch_zaAB_51;
	if (v38) {
		struct mirth_arrow_Arrow* v52;
		struct mirth_type_StackType v53 = mw_mirth_elab_zaAB_abzetypezo(in_zaAB_20, &v52);
		struct mirth_mirth_zaMirth* v54;
		struct std_maybe_Maybe_1 v55 = mw_mirth_type_StackType_forcezewithzyzx(in_zaMirth_19, v53, &v54);
		struct mirth_type_StackType v56 = mw_std_maybe_Maybe_1_ifzy_2_sp51(v55);
		struct mirth_mirth_zaMirth* v57;
		struct mirth_type_StackType v58 = mw_mirth_type_StackType_Freshzx(v54, &v57);
		struct mirth_type_ArrowType* v59 = mw_mirth_type_Tzezg(v56, v58);
		struct mirth_arrow_Arrow* v60;
		struct std_list_List_1 v61 = mw_mirth_elab_zaAB_abzectxzo(v52, &v60);
		struct mirth_arrow_Arrow* v62;
		uint64_t v63 = mw_mirth_elab_zaAB_abzetokenzo(v60, &v62);
		struct mirth_arrow_Arrow* v64;
		struct mirth_arrow_Home v65 = mw_mirth_elab_zaAB_abzehomezo(v62, &v64);
		struct mirth_type_StackType v66;
		struct mirth_type_StackType v67;
		mtp_mirth_type_ArrowType_ArrowType(v59, &v66, &v67);
		incref(MK_mirth_type_StackType(v66));
		struct std_list_List_1 v68 = { .tag=std_list_List_1_Nil };
		struct mirth_arrow_Arrow* v69 = mtw_mirth_arrow_Arrow_Arrow(v65, v63, v63, v61, v66, v66, v68);
		INT v70 = WRAP_I63(1LL);
		INT v71 = in_Nat_21;
		INT v72 = v70;
		INT v73 = int_sub(v71, v72);
		incref(MKINT(v73));
		INT v74 = WRAP_I63(0LL);
		INT v75 = v74;
		bool v76 = int_le(v75, v73);
		INT branch_Nat_77;
		if (v76) {
			INT v78 = v73;
			branch_Nat_77 = v78;
		} else {
			decref(MKINT(v73));
			INT v79 = WRAP_I63(0LL);
			branch_Nat_77 = v79;
		}
		struct mirth_type_StackType v80;
		struct mirth_type_StackType v81;
		VAL v82;
		INT v83;
		VAL v84;
		VAL v85;
		VAL v86;
		VAL v87;
		VAL v88;
		VAL v89;
		VAL v90;
		struct mirth_mirth_zaMirth* v91;
		struct mirth_arrow_Arrow* v92;
		mw_mirth_elab_zaAB_abzerdipzenzx_1_sp1(in_Home_1, in_Token_2, in_Ctx_3, in_Op_4, in_List_5, in_Subst_6, in_StackType_7, in_List_8, in_StackType_9, in_zux1_10, in_zux2_11, in_zux3_12, in_zux4_13, in_zux5_14, in_zux6_15, in_zux7_16, in_zux8_17, in_Nat_18, v57, v69, branch_Nat_77, &v80, &v81, &v82, &v83, &v84, &v85, &v86, &v87, &v88, &v89, &v90, &v91, &v92);
		struct mirth_mirth_zaMirth* v93;
		struct mirth_arrow_Arrow* v94;
		mw_mirth_elab_zaAB_abzeunifyzetypezx(v91, v92, v67, &v93, &v94);
		struct mirth_mirth_zaMirth* v95;
		uint64_t v96 = mw_mirth_arrow_Block_Newzx(v93, v94, &v95);
		struct std_list_List_1 v97 = { .tag=std_list_List_1_Nil };
		struct std_list_List_1 v98 = mw_std_list_List_1_cons(MK_mirth_arrow_Block(v96), v97);
		enum mirth_prim_Prim v99 = mirth_prim_Prim_RDip;
		struct mirth_mirth_zaMirth* v100;
		struct mirth_arrow_Arrow* v101;
		mw_mirth_elab_zaAB_abzeprimzx(v95, v64, v98, v99, &v100, &v101);
		branch_zaAB_51 = v101;
		branch_zaMirth_50 = v100;
		branch_zux8_49 = v90;
		branch_zux7_48 = v89;
		branch_zux6_47 = v88;
		branch_zux5_46 = v87;
		branch_zux4_45 = v86;
		branch_zux3_44 = v85;
		branch_zux2_43 = v84;
		branch_Nat_42 = v83;
		branch_zux1_41 = v82;
		branch_StackType_40 = v81;
		branch_StackType_39 = v80;
	} else {
		decref(MKNAT(in_Nat_21));
		incref(MKNAT(in_Nat_18));
		struct mirth_type_StackType v102;
		struct mirth_type_StackType v103;
		VAL v104;
		VAL v105;
		VAL v106;
		VAL v107;
		VAL v108;
		VAL v109;
		VAL v110;
		VAL v111;
		VAL v112;
		struct mirth_mirth_zaMirth* v113;
		struct mirth_arrow_Arrow* v114;
		mw_mirth_elab_zaAB_abzedipzenzx_1_sp1(in_Home_1, in_Token_2, in_Ctx_3, in_Op_4, in_List_5, in_Subst_6, in_StackType_7, in_List_8, in_StackType_9, in_zux1_10, MKNAT(in_Nat_18), in_zux2_11, in_zux3_12, in_zux4_13, in_zux5_14, in_zux6_15, in_zux7_16, in_zux8_17, in_zaMirth_19, in_zaAB_20, in_Nat_18, &v102, &v103, &v104, &v105, &v106, &v107, &v108, &v109, &v110, &v111, &v112, &v113, &v114);
		branch_zaAB_51 = v114;
		branch_zaMirth_50 = v113;
		branch_zux8_49 = v112;
		branch_zux7_48 = v111;
		branch_zux6_47 = v110;
		branch_zux5_46 = v109;
		branch_zux4_45 = v108;
		branch_zux3_44 = v107;
		branch_zux2_43 = v106;
		branch_Nat_42 = value_nat(v105);
		branch_zux1_41 = v104;
		branch_StackType_40 = v103;
		branch_StackType_39 = v102;
	}
	*out_zaAB_34 = branch_zaAB_51;
	*out_zaMirth_33 = branch_zaMirth_50;
	*out_zux8_32 = branch_zux8_49;
	*out_zux7_31 = branch_zux7_48;
	*out_zux6_30 = branch_zux6_47;
	*out_zux5_29 = branch_zux5_46;
	*out_zux4_28 = branch_zux4_45;
	*out_zux3_27 = branch_zux3_44;
	*out_zux2_26 = branch_zux2_43;
	*out_Nat_25 = branch_Nat_42;
	*out_zux1_24 = branch_zux1_41;
	*out_StackType_23 = branch_StackType_40;
	*out_StackType_22 = branch_StackType_39;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movq %r9, -0x40(%rbp)
movq %r8, -0x48(%rbp)
movl %ecx, -0x30(%rbp)
movq %rdx, -0x58(%rbp)
movq %rsi, -0x50(%rbp)
movl %edi, -0x2c(%rbp)
movq 0x100(%rbp), %rdx
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %r14
andq %rbx, %r14
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
movq 0xf8(%rbp), %r12
movq 0xf0(%rbp), %r15
leaq 0xba67e(%rip), %r13     # 0x111111
jne 0x56ac3
incl (%r14)
movl $0x1, %edi
movq %rdx, %rsi
callq 0xe83a
testl %eax, %eax
js 0x56ce0
decl (%r14)
jne 0x56ad8
movq 0x100(%rbp), %rdi
movq %r13, %rsi
callq 0xd13d
jmp 0x56ad8
movl $0x1, %edi
movq %rdx, %rsi
callq 0xe83a
testl %eax, %eax
js 0x56ce0
movq -0x40(%rbp), %rdx
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x56aee
incl (%rbx)
movq %rdx, -0xa0(%rbp)
movq %r13, -0x98(%rbp)
leaq 0xe0(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0xe0(%rsp)
leaq 0xd0(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0xd0(%rsp)
leaq 0xc0(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0xc0(%rsp)
leaq 0xb0(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0xb0(%rsp)
leaq 0xa0(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0xa0(%rsp)
leaq 0x90(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x90(%rsp)
leaq 0x80(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x80(%rsp)
movups -0xa0(%rbp), %xmm0
movups %xmm0, 0x70(%rsp)
leaq 0x70(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x60(%rsp)
leaq 0x60(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x50(%rsp)
leaq 0x50(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x40(%rsp)
leaq 0x40(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x30(%rsp)
leaq 0x30(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x20(%rsp)
leaq 0x20(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x10(%rsp)
leaq 0x10(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, (%rsp)
leaq -0xb0(%rbp), %rax
movq %rax, 0x150(%rsp)
leaq -0xc0(%rbp), %rax
movq %rax, 0x148(%rsp)
leaq -0xd0(%rbp), %rax
movq %rax, 0x140(%rsp)
leaq -0xe0(%rbp), %rax
movq %rax, 0x138(%rsp)
leaq -0xf0(%rbp), %rax
movq %rax, 0x130(%rsp)
leaq -0x100(%rbp), %rax
movq %rax, 0x128(%rsp)
leaq -0x110(%rbp), %rax
movq %rax, 0x120(%rsp)
leaq -0x120(%rbp), %rax
movq %rax, 0x110(%rsp)
leaq -0x130(%rbp), %rax
movq %rax, 0x108(%rsp)
leaq -0x140(%rbp), %rax
movq %rax, 0x100(%rsp)
leaq -0x160(%rbp), %rbx
movq %rbx, 0x160(%rsp)
movq %rdx, 0xf8(%rsp)
leaq -0x80(%rbp), %r13
movq %r13, 0x158(%rsp)
movq %r12, 0xf0(%rsp)
leaq -0x150(%rbp), %r12
movq %r12, 0x118(%rsp)
movq -0x48(%rbp), %r8
movq %r15, %r9
movl -0x2c(%rbp), %edi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movl -0x30(%rbp), %ecx
callq 0x5e707
movq (%rbx), %r14
movq (%r13), %r15
movq (%r12), %rbx
movq 0x8(%r12), %rsi
movq %rbx, %rdi
callq 0x324c1
jmp 0x570c5
leaq -0x1a8(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x43394
leaq -0x1a0(%rbp), %r14
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0x3c33f
movl %eax, %edi
movq %rdx, %rsi
callq 0x5584c
movl %eax, %r15d
movq %rdx, %r12
movq (%r14), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3d862
movl %r15d, %edi
movq %r12, %rsi
movl $0x4, %edx
movq %rax, %rcx
callq 0x20b5f
movq %rax, -0x60(%rbp)
movq (%r13), %rdi
leaq -0x198(%rbp), %r15
movq %r15, %rsi
callq 0x43317
movl %eax, -0x34(%rbp)
movq %rdx, -0x68(%rbp)
movq (%r15), %rdi
leaq -0x190(%rbp), %r15
movq %r15, %rsi
callq 0x432bd
movq %rax, %r13
movq (%r15), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4371e
movl %eax, %r15d
movq %rdx, %r12
leaq -0x150(%rbp), %r14
leaq -0x80(%rbp), %rdx
movq -0x60(%rbp), %rdi
movq %r14, %rsi
callq 0x3a145
movq 0x8(%r14), %rcx
movq %rcx, %rax
andq %rbx, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x56db0
incl (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x160(%rbp)
movups %xmm0, 0x20(%rsp)
movups -0x150(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r15d, %edi
movq %r12, %rsi
movq %r13, %rdx
movq %r13, %rcx
movl -0x34(%rbp), %r8d
movq -0x68(%rbp), %r9
callq 0x42f0b
movq %rax, %r15
movl $0x3, %esi
movq 0x100(%rbp), %rdi
callq 0xe9fc
movq %rax, %r14
andq %rax, %rbx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x56e3e
incl (%rbx)
movl $0x1, %r12d
movl $0x1, %edi
movq %r14, %rsi
callq 0xe83a
testl %eax, %eax
jle 0x56e56
decl (%rbx)
jne 0x56e59
leaq 0xba5f5(%rip), %rsi     # 0x111429
movq %r14, %rdi
callq 0xd13d
jmp 0x56e59
movl $0x1, %ebx
movl $0x1, %edi
movq %r14, %rsi
callq 0xe83a
testl %eax, %eax
cmovgq %rbx, %r14
movq %r14, %r12
movq -0x90(%rbp), %rax
leaq 0xe0(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0xd0(%rsp)
leaq 0xd0(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0xc0(%rsp)
leaq 0xc0(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0xb0(%rsp)
leaq 0xb0(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0xa0(%rsp)
leaq 0xa0(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x90(%rsp)
leaq 0x90(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x80(%rsp)
leaq 0x80(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x70(%rsp)
leaq 0x70(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x60(%rsp)
leaq 0x60(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x50(%rsp)
leaq 0x50(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x40(%rsp)
leaq 0x40(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x30(%rsp)
leaq 0x30(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x20(%rsp)
leaq 0x20(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x10(%rsp)
leaq 0x10(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
leaq -0xb0(%rbp), %rcx
movq %rcx, 0x148(%rsp)
leaq -0xc0(%rbp), %rcx
movq %rcx, 0x140(%rsp)
leaq -0xd0(%rbp), %rcx
movq %rcx, 0x138(%rsp)
leaq -0xe0(%rbp), %rcx
movq %rcx, 0x130(%rsp)
leaq -0xf0(%rbp), %rcx
movq %rcx, 0x128(%rsp)
leaq -0x100(%rbp), %rcx
movq %rcx, 0x120(%rsp)
leaq -0x110(%rbp), %rcx
movq %rcx, 0x118(%rsp)
leaq -0x120(%rbp), %rcx
movq %rcx, 0x108(%rsp)
leaq -0x130(%rbp), %rcx
movq %rcx, 0x100(%rsp)
leaq -0x140(%rbp), %rcx
movq %rcx, 0xf8(%rsp)
movq %r12, 0xf0(%rsp)
leaq -0x180(%rbp), %rbx
movq %rbx, 0x158(%rsp)
movq %r15, 0xe8(%rsp)
leaq -0x188(%rbp), %r14
movq %r14, 0x150(%rsp)
movq %rax, 0xe0(%rsp)
leaq -0x70(%rbp), %rax
movq %rax, 0x110(%rsp)
movq -0x48(%rbp), %r8
movq -0x40(%rbp), %r9
movl -0x2c(%rbp), %edi
movq -0x50(%rbp), %rsi
movq -0x58(%rbp), %rdx
movl -0x30(%rbp), %ecx
callq 0x56a32
movq (%r14), %rdi
movq (%rbx), %rsi
movl -0x80(%rbp), %edx
movq -0x78(%rbp), %rcx
leaq -0x178(%rbp), %rbx
leaq -0x170(%rbp), %r14
movq %rbx, %r8
movq %r14, %r9
callq 0x4379b
movq (%rbx), %rdi
movq (%r14), %rsi
leaq -0x168(%rbp), %rbx
movq %rbx, %rdx
callq 0x55941
leaq 0xbb655(%rip), %rsi     # 0x1126b8
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd1ec
movq %rdx, %r14
movq (%rbx), %rbx
movq -0x88(%rbp), %r15
movl $0x6, %edi
callq 0x54fbd
leaq -0x1b0(%rbp), %r13
movq %r13, 0x8(%rsp)
leaq -0x1b8(%rbp), %r12
movq %r12, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rax, %r9
callq 0x43977
movq (%r13), %r14
movq (%r12), %r15
leaq -0x70(%rbp), %rax
movq (%rax), %rbx
movq 0x168(%rbp), %rax
movq %r14, (%rax)
movq 0x160(%rbp), %rax
movq %r15, (%rax)
movups -0xb0(%rbp), %xmm0
movq 0x158(%rbp), %rax
movups %xmm0, (%rax)
movups -0xc0(%rbp), %xmm0
movq 0x150(%rbp), %rax
movups %xmm0, (%rax)
movups -0xd0(%rbp), %xmm0
movq 0x148(%rbp), %rax
movups %xmm0, (%rax)
movups -0xe0(%rbp), %xmm0
movq 0x140(%rbp), %rax
movups %xmm0, (%rax)
movups -0xf0(%rbp), %xmm0
movq 0x138(%rbp), %rax
movups %xmm0, (%rax)
movups -0x100(%rbp), %xmm0
movq 0x130(%rbp), %rax
movups %xmm0, (%rax)
movups -0x110(%rbp), %xmm0
movq 0x128(%rbp), %rax
movups %xmm0, (%rax)
movq 0x120(%rbp), %rax
movq %rbx, (%rax)
movups -0x120(%rbp), %xmm0
movq 0x118(%rbp), %rax
movups %xmm0, (%rax)
movups -0x130(%rbp), %xmm0
movq 0x110(%rbp), %rax
movups %xmm0, (%rax)
movups -0x140(%rbp), %xmm0
movq 0x108(%rbp), %rax
movups %xmm0, (%rax)
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq