// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r9, -0x68(%rbp)
movq %r8, -0x70(%rbp)
movq %rcx, %r14
movl %edx, %ebx
movq %rsi, -0x40(%rbp)
movq %rdi, -0x30(%rbp)
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
movl %edx, %r12d
movq %rcx, %rax
andq %rsi, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x56873
incl (%rax)
shlq $0x30, %r12
movq %r14, %r13
movq %rsi, -0x48(%rbp)
andq %rsi, %r13
setne %al
testb $0x3, %r14b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0x56899
incl (%r13)
orq %r14, %r12
movl %ebx, %edi
movq %r14, %rsi
callq 0xf834
testb %al, %al
movl %ebx, -0x34(%rbp)
je 0x568e0
testb %r15b, %r15b
je 0x56974
decl (%r13)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq -0x40(%rbp), %rbx
jne 0x568d9
movq %r12, %rdi
leaq 0xbe9a5(%rip), %rsi     # 0x115279
callq 0xd4e3
xorl %eax, %eax
jmp 0x56984
leaq -0xb0(%rbp), %rsi
movq -0x40(%rbp), %rdi
callq 0x447fe
leaq -0x90(%rbp), %rcx
movq -0x30(%rbp), %rdi
movl %eax, %esi
callq 0x50dde
movq %rdx, %rcx
xorl %edi, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0xd37c
movl %eax, %r15d
movq %rdx, %r13
xorl %edi, %edi
xorl %esi, %esi
movl %ebx, %edx
movq %r14, %rcx
callq 0xd37c
movq %rdx, %r9
leaq -0x90(%rbp), %rcx
movq (%rcx), %rdi
leaq -0xb0(%rbp), %rcx
movq (%rcx), %rsi
leaq -0xc0(%rbp), %rbx
leaq -0x80(%rbp), %r10
movl %r15d, %edx
movq %r13, %rcx
movl %eax, %r8d
pushq %rbx
pushq %r10
movq %r10, %r15
callq 0x573fc
addq $0x10, %rsp
movq (%rbx), %rbx
movq (%r15), %rcx
movq %rcx, -0x30(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
jmp 0x56984
xorl %eax, %eax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq -0x40(%rbp), %rbx
testb %al, %al
je 0x56bca
leaq -0xb0(%rbp), %r12
movl -0x34(%rbp), %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2ef0b
movl %eax, %r14d
movl (%r12), %eax
cmpl $0x1, %eax
jne 0x56c4f
movq %rdx, %r13
movq -0xa8(%rbp), %rdi
callq 0xdaeb
movq %rax, %rdx
shrq $0x30, %rdx
andq %r15, %rax
leaq -0x58(%rbp), %r8
leaq -0x50(%rbp), %r9
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rcx
callq 0x56ceb
testb %al, %al
je 0x56bfb
movq %r13, -0x40(%rbp)
movq %r14, -0x30(%rbp)
movq -0x50(%rbp), %rdi
leaq -0x108(%rbp), %rbx
movq %rbx, %rsi
callq 0x447fe
movq -0x58(%rbp), %rdi
leaq -0x100(%rbp), %r13
movl %eax, %esi
movq %r13, %rcx
callq 0x3d686
movl %eax, %edi
movq %rdx, %rsi
callq 0x5708e
movq %r15, %r14
movl %eax, %r15d
movq %rdx, %r12
movq (%r13), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x3eba9
movl %r15d, %edi
movq %r12, %rsi
movl $0x4, %edx
movq %rax, %rcx
callq 0x210ca
movq %rax, -0x60(%rbp)
movq (%rbx), %rdi
leaq -0xf8(%rbp), %rbx
movq %rbx, %rsi
callq 0x44781
movl %eax, -0x34(%rbp)
movq %rdx, -0x48(%rbp)
movq (%rbx), %rdi
leaq -0xf0(%rbp), %rbx
movq %rbx, %rsi
callq 0x44725
movq %rax, %r15
movq (%rbx), %rdi
leaq -0x98(%rbp), %rsi
callq 0x44bd2
movl %eax, %ebx
movq %rdx, %r12
leaq -0x90(%rbp), %r13
leaq -0x80(%rbp), %rdx
movq -0x60(%rbp), %rdi
movq %r13, %rsi
callq 0x3b486
movq 0x8(%r13), %rax
andq %rax, %r14
sete %cl
testb $0x3, %al
setne %al
orb %cl, %al
jne 0x56ac2
incl (%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0xc0(%rbp)
subq $0x30, %rsp
movups %xmm0, 0x20(%rsp)
movups -0x90(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %ebx, %edi
movq %r12, %rsi
movq %r15, %rdx
movq %r15, %rcx
movl -0x34(%rbp), %r8d
movq -0x48(%rbp), %r9
callq 0x4434e
addq $0x30, %rsp
movq -0xa0(%rbp), %rdi
leaq -0xe8(%rbp), %rbx
leaq -0xe0(%rbp), %r14
movq %rax, %rsi
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0x56827
movq (%rbx), %rdi
movq (%r14), %rsi
movl -0x80(%rbp), %edx
movq -0x78(%rbp), %rcx
leaq -0xd8(%rbp), %rbx
leaq -0xd0(%rbp), %r14
movq %rbx, %r8
movq %r14, %r9
callq 0x44c4f
movq (%rbx), %rdi
movq (%r14), %rsi
leaq -0xc8(%rbp), %rbx
movq %rbx, %rdx
callq 0x57183
leaq 0xbfb4a(%rip), %rsi     # 0x1166b8
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd592
movq %rdx, %r14
movq (%rbx), %rbx
movq -0x98(%rbp), %r15
movl $0x6, %edi
callq 0x567d6
leaq -0x110(%rbp), %r12
leaq -0x118(%rbp), %r13
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rax, %r9
pushq %r12
pushq %r13
callq 0x44e2b
addq $0x10, %rsp
movq (%r12), %rbx
movq (%r13), %r14
jmp 0x56c2f
andq %r14, %r15
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x56bf5
decl (%r15)
movq -0x30(%rbp), %r14
jne 0x56c2f
movq %r12, %rdi
leaq 0xbe68b(%rip), %rsi     # 0x115279
callq 0xd4e3
jmp 0x56c2f
movq -0x30(%rbp), %r14
jmp 0x56c2f
andq %r13, %r15
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x56c27
decl (%r15)
jne 0x56c27
shlq $0x30, %r14
orq %r13, %r14
movq %r14, %rdi
leaq 0xbe657(%rip), %rsi     # 0x115279
callq 0xd4e3
movq -0x50(%rbp), %rbx
movq -0x58(%rbp), %r14
movq -0x68(%rbp), %rax
movq %rbx, (%rax)
movq -0x70(%rbp), %rax
movq %r14, (%rax)
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
jne 0x56cbb
cmpq $0x0, 0x10c2e5d(%rip)   # 0x1119ab8
jne 0x56c97
movl $0x2a, %edi
callq 0xf9f7
movq $0x2a, 0x10(%rax)
movups 0x9395c(%rip), %xmm0    # 0xea5d2
movups %xmm0, 0x18(%rax)
movups 0x93961(%rip), %xmm0    # 0xea5e2
movups %xmm0, 0x28(%rax)
movups 0x93960(%rip), %xmm0    # 0xea5ec
movups %xmm0, 0x32(%rax)
movq %rax, 0x10c2e21(%rip)   # 0x1119ab8
movq 0x10c2e1a(%rip), %rdi   # 0x1119ab8
andq %rdi, -0x48(%rbp)
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x56cb6
movq -0x48(%rbp), %rax
incl (%rax)
callq 0x95a5
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x8da79(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x8da7e(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5