// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaAB_abzeldipzx_1_sp1
static void mw_mirth_elab_zaAB_abzeldipzx_1_sp1 (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, uint64_t in_Token_3, struct std_list_List_1 in_List_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct mirth_arrow_Arrow* *out_zaAB_6) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_arrow_Arrow* branch_zaAB_8;
	switch ((in_List_4).tag) {
		case std_list_List_1_Nil: {
			struct mirth_arrow_Arrow* v9;
			mw_mirth_elab_zaAB_abzetokenzx(in_zaAB_2, in_Token_3, &v9);
			struct mirth_mirth_zaMirth* v10;
			struct mirth_arrow_Arrow* v11;
			mw_mirth_elab_zaAB_elabzeatomszx(in_zaMirth_1, v9, &v10, &v11);
			branch_zaAB_8 = v11;
			branch_zaMirth_7 = v10;
		} break;
		case std_list_List_1_Cons: {
			struct std_list_List_1 v12;
			VAL v13 = mtp_std_list_List_1_Cons(in_List_4, &v12);
			incref(v13);
			struct mirth_mirth_zaMirth* v14;
			bool v15 = mw_mirth_label_Label_iszeresourcezelabelzy(in_zaMirth_1, V_mirth_label_Label(v13), &v14);
			struct mirth_mirth_zaMirth* branch_zaMirth_16;
			struct mirth_arrow_Arrow* branch_zaAB_17;
			if (v15) {
				incref(v13);
				struct mirth_mirth_zaMirth* v18;
				struct mirth_arrow_Arrow* v19;
				mw_mirth_elab_zaAB_abzelabelzepopzerzx(v14, in_zaAB_2, V_mirth_label_Label(v13), &v18, &v19);
				struct mirth_arrow_Arrow* v20;
				struct mirth_type_StackType v21 = mw_mirth_elab_zaAB_abzetypezo(v19, &v20);
				struct mirth_mirth_zaMirth* v22;
				struct std_maybe_Maybe_1 v23 = mw_mirth_type_StackType_forcezewithzyzx(v18, v21, &v22);
				struct mirth_type_StackType v24 = mw_std_maybe_Maybe_1_ifzy_2_sp51(v23);
				struct mirth_mirth_zaMirth* v25;
				struct mirth_type_StackType v26 = mw_mirth_type_StackType_Freshzx(v22, &v25);
				struct mirth_type_ArrowType* v27 = mw_mirth_type_Tzezg(v24, v26);
				struct mirth_mirth_zaMirth* v28;
				struct mirth_arrow_Arrow* v29;
				uint64_t v30 = mw_mirth_elab_zaAB_abzeargzeblockzx_1_sp6(in_Token_3, v12, v25, v27, v20, &v28, &v29);
				struct std_list_List_1 v31 = { .tag=std_list_List_1_Nil };
				struct std_list_List_1 v32 = mw_std_list_List_1_cons(MK_mirth_arrow_Block(v30), v31);
				enum mirth_prim_Prim v33 = mirth_prim_Prim_RDip;
				struct mirth_mirth_zaMirth* v34;
				struct mirth_arrow_Arrow* v35;
				mw_mirth_elab_zaAB_abzeprimzx(v28, v29, v32, v33, &v34, &v35);
				struct mirth_mirth_zaMirth* v36;
				struct mirth_arrow_Arrow* v37;
				mw_mirth_elab_zaAB_abzelabelzepushzerzx(v34, v35, V_mirth_label_Label(v13), &v36, &v37);
				branch_zaAB_17 = v37;
				branch_zaMirth_16 = v36;
			} else {
				incref(v13);
				struct mirth_mirth_zaMirth* v38;
				struct mirth_arrow_Arrow* v39;
				mw_mirth_elab_zaAB_abzelabelzepopzx(v14, in_zaAB_2, V_mirth_label_Label(v13), &v38, &v39);
				struct mirth_arrow_Arrow* v40;
				struct mirth_type_StackType v41 = mw_mirth_elab_zaAB_abzetypezo(v39, &v40);
				struct mirth_mirth_zaMirth* v42;
				struct std_maybe_Maybe_1 v43 = mw_mirth_type_StackType_forcezeconszyzx(v38, v41, &v42);
				struct mirth_type_StackType v44 = mw_std_maybe_Maybe_1_ifzy_2_sp51(v43);
				struct mirth_mirth_zaMirth* v45;
				struct mirth_type_StackType v46 = mw_mirth_type_StackType_Freshzx(v42, &v45);
				struct mirth_type_ArrowType* v47 = mw_mirth_type_Tzezg(v44, v46);
				struct mirth_mirth_zaMirth* v48;
				struct mirth_arrow_Arrow* v49;
				uint64_t v50 = mw_mirth_elab_zaAB_abzeargzeblockzx_1_sp6(in_Token_3, v12, v45, v47, v40, &v48, &v49);
				struct std_list_List_1 v51 = { .tag=std_list_List_1_Nil };
				struct std_list_List_1 v52 = mw_std_list_List_1_cons(MK_mirth_arrow_Block(v50), v51);
				enum mirth_prim_Prim v53 = mirth_prim_Prim_Dip;
				struct mirth_mirth_zaMirth* v54;
				struct mirth_arrow_Arrow* v55;
				mw_mirth_elab_zaAB_abzeprimzx(v48, v49, v52, v53, &v54, &v55);
				struct mirth_mirth_zaMirth* v56;
				struct mirth_arrow_Arrow* v57;
				mw_mirth_elab_zaAB_abzelabelzepushzx(v54, v55, V_mirth_label_Label(v13), &v56, &v57);
				branch_zaAB_17 = v57;
				branch_zaMirth_16 = v56;
			}
			branch_zaAB_8 = branch_zaAB_17;
			branch_zaMirth_7 = branch_zaMirth_16;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaAB_6 = branch_zaAB_8;
	*out_zaMirth_5 = branch_zaMirth_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
cmpl $0x1, %ecx
je 0x7a67c
testl %ecx, %ecx
jne 0x7a96f
leaq -0x68(%rbp), %r14
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x515c0
movq (%r14), %rsi
leaq -0x40(%rbp), %r14
leaq -0x38(%rbp), %r15
movq %r13, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x4ae04
movq (%r15), %rax
movq (%r14), %rcx
jmp 0x7a956
movq %rbx, -0x48(%rbp)
leaq -0x68(%rbp), %rsi
movq %r8, %rdi
callq 0xd0aa
movq %rax, %r14
testb $0x1, %dl
je 0x7a6c7
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r14, %rbx
andq %rax, %rbx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x7a6c7
incl (%rbx)
leaq -0x30(%rbp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x40106
incl (%rbx)
jmp 0x7a6d6
leaq -0x30(%rbp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x40106
testb %al, %al
je 0x7a810
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %r13
leaq -0x88(%rbp), %rbx
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
movq %rbx, %r8
callq 0x518e9
movq (%rbx), %rdi
leaq -0x50(%rbp), %rsi
callq 0x43394
movq (%r13), %rdi
leaq -0x80(%rbp), %rbx
movl %eax, %esi
movq %rbx, %rcx
callq 0x3c33f
movl %eax, %edi
movq %rdx, %rsi
callq 0x5584c
movl %eax, %r13d
movq %rdx, %r12
movq (%rbx), %rdi
leaq -0x78(%rbp), %rbx
movq %rbx, %rsi
callq 0x3d862
movl %r13d, %edi
movq %r12, %rsi
movl $0x4, %edx
movq %rax, %rcx
callq 0x20b5f
movq (%rbx), %rcx
leaq -0x50(%rbp), %rdx
movq (%rdx), %r9
movl -0x68(%rbp), %esi
movq -0x60(%rbp), %rdx
movq %r14, -0x70(%rbp)
leaq -0x90(%rbp), %r14
leaq -0x98(%rbp), %r12
movq %r15, %rdi
movq %rax, %r8
pushq %r14
pushq %r12
callq 0x7ac71
addq $0x10, %rsp
leaq 0x97f2d(%rip), %rsi     # 0x1126b8
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd1ec
movq %rdx, %rbx
movq (%r12), %r15
movq (%r14), %r12
movl $0x6, %edi
callq 0x54fbd
leaq -0x38(%rbp), %r13
leaq -0x40(%rbp), %r14
movq %r15, %rdi
movq %r12, %rsi
movl $0x1, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movq %rax, %r9
pushq %r13
pushq %r14
callq 0x43977
addq $0x10, %rsp
movq (%r13), %rbx
movq (%r14), %r15
movq -0x70(%rbp), %rdi
callq 0x54f17
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xe, %r8d
movq %rax, %r9
pushq %r13
pushq %r14
callq 0x43977
addq $0x10, %rsp
movq (%r13), %rax
movq (%r14), %rcx
jmp 0x7a952
movq -0x30(%rbp), %rbx
movq %r14, %rdi
callq 0x54f6a
leaq -0x38(%rbp), %r13
leaq -0x40(%rbp), %r10
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xd, %r8d
movq %rax, %r9
pushq %r13
pushq %r10
movq %r10, %rbx
callq 0x43977
addq $0x10, %rsp
movq (%r13), %rdi
movq (%rbx), %rbx
leaq -0x58(%rbp), %rsi
callq 0x43394
leaq -0x88(%rbp), %r13
movq %rbx, %rdi
movl %eax, %esi
movq %r13, %rcx
callq 0x3bdab
movl %eax, %edi
movq %rdx, %rsi
callq 0x5584c
movl %eax, %ebx
movq %rdx, %r12
movq (%r13), %rdi
leaq -0x50(%rbp), %r13
movq %r13, %rsi
callq 0x3d862
movl %ebx, %edi
movq %r12, %rsi
movl $0x4, %edx
movq %rax, %rcx
callq 0x20b5f
movq (%r13), %rcx
leaq -0x58(%rbp), %rdx
movq (%rdx), %r9
movl -0x68(%rbp), %esi
movq -0x60(%rbp), %rdx
movq %r14, %r13
leaq -0x78(%rbp), %r14
leaq -0x80(%rbp), %r12
movq %r15, %rdi
movq %rax, %r8
pushq %r14
pushq %r12
callq 0x7ac71
addq $0x10, %rsp
leaq 0x97de5(%rip), %rsi     # 0x1126b8
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd1ec
movq %rdx, %rbx
movq (%r12), %r15
movq (%r14), %r12
movl $0x5, %edi
callq 0x54fbd
movq %r15, %rdi
movq %r12, %rsi
movl $0x1, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movq %rax, %r9
leaq -0x38(%rbp), %r14
pushq %r14
leaq -0x40(%rbp), %r12
pushq %r12
callq 0x43977
addq $0x10, %rsp
movq (%r14), %rbx
movq (%r12), %r15
movq %r13, %rdi
callq 0x54ec4
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xc, %r8d
movq %rax, %r9
pushq %r14
pushq %r12
callq 0x43977
addq $0x10, %rsp
movq (%r14), %rax
movq (%r12), %rcx
movq -0x48(%rbp), %rbx
movq 0x10(%rbp), %rdx
movq %rax, (%rdx)
movq %rcx, (%rbx)
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 0x65d45(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x65d4a(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302