// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaAB_abzeslidezeresourcezetyconszetozetopzx
static void mw_mirth_elab_zaAB_abzeslidezeresourcezetyconszetozetopzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, struct std_list_List_1 in_List_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_arrow_Arrow* *out_zaAB_5) {
	incref(MK_std_list_List_1(in_List_3));
	struct mirth_mirth_zaMirth* v6;
	struct mirth_arrow_Arrow* v7;
	bool v8 = mw_mirth_elab_zaAB_worthzeslidingzeforzy(in_zaMirth_1, in_zaAB_2, in_List_3, &v6, &v7);
	struct mirth_mirth_zaMirth* branch_zaMirth_9;
	struct mirth_arrow_Arrow* branch_zaAB_10;
	if (v8) {
		struct std_maybe_Maybe_1 v11;
		struct std_list_List_1 v12 = mw_std_list_List_1_unsnoc(in_List_3, &v11);
		VAL branch_zux1_13;
		switch ((v11).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v14 = mtp_std_maybe_Maybe_1_Some(v11);
				branch_zux1_13 = v14;
			} break;
			case std_maybe_Maybe_1_None: {
				STR* v15;
				STRLIT(v15, "logic error: expected resource for sliding", 42);
				do_panic(v15);
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		struct mirth_mirth_zaMirth* v17;
		struct mirth_arrow_Arrow* v18;
		bool v19 = mw_mirth_elab_zaAB_abzeslidezeresourcezetyconzetozetopzx(v6, v7, V_mirth_tycon_Tycon(branch_zux1_13), &v17, &v18);
		struct mirth_mirth_zaMirth* branch_zaMirth_20;
		struct mirth_arrow_Arrow* branch_zaAB_21;
		if (v19) {
			struct mirth_arrow_Arrow* v22;
			struct mirth_type_StackType v23 = mw_mirth_elab_zaAB_abzetypezo(v18, &v22);
			struct mirth_mirth_zaMirth* v24;
			struct std_maybe_Maybe_1 v25 = mw_mirth_type_StackType_forcezewithzyzx(v17, v23, &v24);
			struct mirth_type_StackType v26 = mw_std_maybe_Maybe_1_ifzy_2_sp51(v25);
			struct mirth_mirth_zaMirth* v27;
			struct mirth_type_StackType v28 = mw_mirth_type_StackType_Freshzx(v24, &v27);
			struct mirth_type_ArrowType* v29 = mw_mirth_type_Tzezg(v26, v28);
			struct mirth_arrow_Arrow* v30;
			struct std_list_List_1 v31 = mw_mirth_elab_zaAB_abzectxzo(v22, &v30);
			struct mirth_arrow_Arrow* v32;
			uint64_t v33 = mw_mirth_elab_zaAB_abzetokenzo(v30, &v32);
			struct mirth_arrow_Arrow* v34;
			struct mirth_arrow_Home v35 = mw_mirth_elab_zaAB_abzehomezo(v32, &v34);
			struct mirth_type_StackType v36;
			struct mirth_type_StackType v37;
			mtp_mirth_type_ArrowType_ArrowType(v29, &v36, &v37);
			incref(MK_mirth_type_StackType(v36));
			struct std_list_List_1 v38 = { .tag=std_list_List_1_Nil };
			struct mirth_arrow_Arrow* v39 = mtw_mirth_arrow_Arrow_Arrow(v35, v33, v33, v31, v36, v36, v38);
			struct mirth_mirth_zaMirth* v40;
			struct mirth_arrow_Arrow* v41;
			mw_mirth_elab_zaAB_abzeslidezeresourcezetyconszetozetopzx(v27, v39, v12, &v40, &v41);
			struct mirth_mirth_zaMirth* v42;
			struct mirth_arrow_Arrow* v43;
			mw_mirth_elab_zaAB_abzeunifyzetypezx(v40, v41, v37, &v42, &v43);
			struct mirth_mirth_zaMirth* v44;
			uint64_t v45 = mw_mirth_arrow_Block_Newzx(v42, v43, &v44);
			struct std_list_List_1 v46 = { .tag=std_list_List_1_Nil };
			struct std_list_List_1 v47 = mw_std_list_List_1_cons(MK_mirth_arrow_Block(v45), v46);
			enum mirth_prim_Prim v48 = mirth_prim_Prim_RDip;
			struct mirth_mirth_zaMirth* v49;
			struct mirth_arrow_Arrow* v50;
			mw_mirth_elab_zaAB_abzeprimzx(v44, v34, v47, v48, &v49, &v50);
			branch_zaAB_21 = v50;
			branch_zaMirth_20 = v49;
		} else {
			decref(MK_std_list_List_1(v12));
			branch_zaAB_21 = v18;
			branch_zaMirth_20 = v17;
		}
		branch_zaAB_10 = branch_zaAB_21;
		branch_zaMirth_9 = branch_zaMirth_20;
	} else {
		decref(MK_std_list_List_1(in_List_3));
		branch_zaAB_10 = v7;
		branch_zaMirth_9 = v6;
	}
	*out_zaAB_5 = branch_zaAB_10;
	*out_zaMirth_4 = branch_zaMirth_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3d0, %rsp            # imm = 0x3D0
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x38(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x11ee77
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x50(%rbp), %rax
cmpq $0x0, %rax
je 0x11ee77
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x60(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x11ee77
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x11ee79
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rcx
leaq -0x78(%rbp), %r8
leaq -0x80(%rbp), %r9
callq 0x11f730
andb $0x1, %al
movb %al, -0x81(%rbp)
testb $0x1, -0x81(%rbp)
je 0x11f5ef
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x8aca0
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, -0x38c(%rbp)
testl %eax, %eax
je 0x11ef2e
jmp 0x11eedc
movl -0x38c(%rbp), %eax
subl $0x1, %eax
jne 0x11f047
jmp 0x11eeed
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x174a0
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x11f060
jmp 0x11ef30
cmpq $0x0, 0x1276cc0(%rip)   # 0x1395bf8
jne 0x11ef52
leaq 0x23afda(%rip), %rdi    # 0x359f1b
movl $0x2a, %esi
callq 0xb6c0
movq %rax, 0x1276ca6(%rip)   # 0x1395bf8
jmp 0x11ef54
movq 0x1276c9d(%rip), %rax   # 0x1395bf8
movq %rax, -0xf0(%rbp)
leaq 0x2721ef(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x11f029
movq 0x1276c68(%rip), %rax   # 0x1395bf8
movq %rax, -0x100(%rbp)
leaq 0x2721ba(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
cmpq $0x0, %rax
je 0x11f029
movq 0x1276c31(%rip), %rax   # 0x1395bf8
movq %rax, -0x110(%rbp)
leaq 0x272183(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x110(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x11f029
movq 0x1276c00(%rip), %rax   # 0x1395bf8
movq %rax, -0x120(%rbp)
leaq 0x272152(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x11f02b
movq 0x1276bc6(%rip), %rax   # 0x1395bf8
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rdi
callq 0xc620
jmp 0x11f060
leaq 0x234e33(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x78(%rbp), %rax
movq %rax, -0x3a0(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x398(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x59cb0
movq -0x3a0(%rbp), %rdi
movq -0x398(%rbp), %rsi
movl %eax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movl -0x148(%rbp), %edx
movq -0x140(%rbp), %rcx
leaq -0x128(%rbp), %r8
leaq -0x130(%rbp), %r9
callq 0x11fa50
andb $0x1, %al
movb %al, -0x131(%rbp)
testb $0x1, -0x131(%rbp)
je 0x11f49b
movq -0x130(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0xe0ff0
movl %eax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movq -0x128(%rbp), %rdi
movl -0x170(%rbp), %esi
movq -0x168(%rbp), %rdx
leaq -0x178(%rbp), %rcx
callq 0xc8ac0
movl %eax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movl -0x188(%rbp), %edi
movq -0x180(%rbp), %rsi
callq 0x120340
movl %eax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movq -0x178(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0xcd420
movl %eax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movl -0x198(%rbp), %edi
movq -0x190(%rbp), %rsi
movl -0x1b0(%rbp), %edx
movq -0x1a8(%rbp), %rcx
callq 0x735b0
movq %rax, -0x1b8(%rbp)
movq -0x160(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0xe0d50
movl %eax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movq -0x1c0(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0xe0b80
movq %rax, -0x1e0(%rbp)
movq -0x1d8(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0xe1930
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq -0x1b8(%rbp), %rdi
leaq -0x208(%rbp), %rsi
leaq -0x218(%rbp), %rdx
callq 0xc1010
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6f140
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x220(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x11f2d4
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6f140
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x238(%rbp), %rax
cmpq $0x0, %rax
je 0x11f2d4
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6f140
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x248(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x11f2d4
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6f140
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x258(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x11f2d6
leaq -0x268(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x1e0(%rbp), %rdx
movq -0x1e0(%rbp), %rcx
movl -0x1f8(%rbp), %edi
movq -0x1f0(%rbp), %rsi
movl -0x1d0(%rbp), %r8d
movq -0x1c8(%rbp), %r9
leaq -0x208(%rbp), %r10
leaq -0x268(%rbp), %rax
movq (%r10), %r11
movq %r11, (%rsp)
movq 0x8(%r10), %r11
movq %r11, 0x8(%rsp)
movq (%r10), %r11
movq %r11, 0x10(%rsp)
movq 0x8(%r10), %r10
movq %r10, 0x18(%rsp)
movq (%rax), %r10
movq %r10, 0x20(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
callq 0xdffa0
movq %rax, -0x270(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x270(%rbp), %rsi
movl -0xb8(%rbp), %edx
movq -0xb0(%rbp), %rcx
leaq -0x278(%rbp), %r8
leaq -0x280(%rbp), %r9
callq 0x11edc0
movq -0x278(%rbp), %rdi
movq -0x280(%rbp), %rsi
movl -0x218(%rbp), %edx
movq -0x210(%rbp), %rcx
leaq -0x288(%rbp), %r8
leaq -0x290(%rbp), %r9
callq 0xe1bd0
movq -0x288(%rbp), %rdi
movq -0x290(%rbp), %rsi
leaq -0x298(%rbp), %rdx
callq 0x1204c0
movq %rax, -0x2a0(%rbp)
leaq -0x2b0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x2a0(%rbp), %rax
movq %rax, -0x2d0(%rbp)
leaq 0x27338d(%rip), %rax    # 0x392790
movq %rax, -0x2c8(%rbp)
movq -0x2d0(%rbp), %rdi
movq -0x2c8(%rbp), %rsi
movl -0x2b0(%rbp), %edx
movq -0x2a8(%rbp), %rcx
callq 0x12740
movl %eax, -0x2c0(%rbp)
movq %rdx, -0x2b8(%rbp)
movl $0x6, -0x2d4(%rbp)
movq -0x298(%rbp), %rdi
movq -0x1e8(%rbp), %rsi
movl -0x2d4(%rbp), %r8d
movl -0x2c0(%rbp), %edx
movq -0x2b8(%rbp), %rcx
leaq -0x2e0(%rbp), %r9
leaq -0x2e8(%rbp), %rax
movq %rax, (%rsp)
callq 0x10f930
movq -0x2e8(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x2e0(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0x11f5ce
jmp 0x11f49d
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x2f8(%rbp)
movq %rdx, -0x2f0(%rbp)
movq -0x2f0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x11f5b0
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x308(%rbp)
movq %rdx, -0x300(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x308(%rbp), %rax
cmpq $0x0, %rax
je 0x11f5b0
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x318(%rbp)
movq %rdx, -0x310(%rbp)
movq -0x318(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x11f5b0
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x328(%rbp)
movq %rdx, -0x320(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x328(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x11f5ae
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x338(%rbp)
movq %rdx, -0x330(%rbp)
movq -0x338(%rbp), %rdi
movq -0x330(%rbp), %rsi
callq 0x127c0
jmp 0x11f5b0
jmp 0x11f5b2
movq -0x130(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x11f6fe
jmp 0x11f5f1
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x348(%rbp)
movq %rdx, -0x340(%rbp)
movq -0x340(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x11f6e6
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x358(%rbp)
movq %rdx, -0x350(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x358(%rbp), %rax
cmpq $0x0, %rax
je 0x11f6e6
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x368(%rbp)
movq %rdx, -0x360(%rbp)
movq -0x368(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x11f6e6
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x378(%rbp)
movq %rdx, -0x370(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x378(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x11f6e4
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x12780
movq %rax, -0x388(%rbp)
movq %rdx, -0x380(%rbp)
movq -0x388(%rbp), %rdi
movq -0x380(%rbp), %rsi
callq 0x127c0
jmp 0x11f6e6
jmp 0x11f6e8
movq -0x80(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x90(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbp
retq
nopw %cs:(%rax,%rax)