// File: /workspace/github_c_makefile_star2_O2/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, -0x58(%rbp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
cmpl $0x1, %ecx
je 0x73b31
testl %ecx, %ecx
jne 0x73de5
leaq -0x48(%rbp), %rbx
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4ced6
movq (%rbx), %rsi
leaq -0x38(%rbp), %rbx
leaq -0x50(%rbp), %r14
movq %r13, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x469df
movq (%r14), %rax
jmp 0x73dc5
leaq -0x48(%rbp), %rsi
movq %r8, %rdi
callq 0xce01
movq %rax, %r14
movq %rdx, %rbx
testb $0x1, %bl
je 0x73b68
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x73b68
incl (%rax)
leaq -0x38(%rbp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x3c827
testb %al, %al
je 0x73ca3
testb $0x1, %bl
je 0x73ba4
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x73ba4
incl (%rax)
movq -0x38(%rbp), %rdi
leaq -0x50(%rbp), %rbx
leaq -0xa0(%rbp), %r13
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r13, %r8
callq 0x4d41b
movq (%r13), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3f687
movq (%rbx), %rdi
leaq -0x98(%rbp), %rbx
movl %eax, %esi
movq %rbx, %rcx
callq 0x38e9f
movl %eax, %edi
movq %rdx, %rsi
callq 0x51072
movl %eax, %r13d
movq %rdx, %r12
movq (%rbx), %rdi
leaq -0x90(%rbp), %rbx
movq %rbx, %rsi
callq 0x3a29b
pushq $0x4
popq %rdx
movl %r13d, %edi
movq %r12, %rsi
movq %rax, %rcx
callq 0x1e896
movq (%rbx), %rcx
leaq -0x30(%rbp), %rdx
movq (%rdx), %r9
movl -0x48(%rbp), %esi
movq -0x40(%rbp), %rdx
leaq -0x80(%rbp), %rbx
leaq -0x88(%rbp), %r12
movq %r15, %rdi
movq %rax, %r8
pushq %rbx
pushq %r12
callq 0x740c2
addq $0x10, %rsp
leaq 0x95a6b(%rip), %rsi     # 0x1096b8
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xcf39
movq %rdx, %rcx
movq (%r12), %rdi
movq (%rbx), %rsi
subq $0x8, %rsp
leaq -0x70(%rbp), %r15
pushq $0x1
popq %rdx
pushq $0x6
popq %r8
leaq -0x78(%rbp), %rbx
movq %rbx, %r9
pushq %r15
callq 0x4d0c4
popq %rax
popq %rcx
movq (%rbx), %rdi
movq (%r15), %rsi
leaq -0x68(%rbp), %rbx
leaq -0x60(%rbp), %r15
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq 0x4d37e
jmp 0x73dc2
testb $0x1, %bl
je 0x73cc8
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x73cc8
incl (%rax)
movq -0x38(%rbp), %rdi
leaq -0x50(%rbp), %rbx
leaq -0xa0(%rbp), %r13
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r13, %r8
callq 0x4d027
movq (%r13), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3f687
movq (%rbx), %rdi
leaq -0x98(%rbp), %rbx
movl %eax, %esi
movq %rbx, %rcx
callq 0x3896d
movl %eax, %edi
movq %rdx, %rsi
callq 0x51072
movl %eax, %r13d
movq %rdx, %r12
movq (%rbx), %rdi
leaq -0x90(%rbp), %rbx
movq %rbx, %rsi
callq 0x3a29b
pushq $0x4
popq %rdx
movl %r13d, %edi
movq %r12, %rsi
movq %rax, %rcx
callq 0x1e896
movq (%rbx), %rcx
leaq -0x30(%rbp), %rdx
movq (%rdx), %r9
movl -0x48(%rbp), %esi
movq -0x40(%rbp), %rdx
leaq -0x80(%rbp), %rbx
leaq -0x88(%rbp), %r12
movq %r15, %rdi
movq %rax, %r8
pushq %rbx
pushq %r12
callq 0x740c2
addq $0x10, %rsp
leaq 0x95947(%rip), %rsi     # 0x1096b8
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xcf39
movq %rdx, %rcx
movq (%r12), %rdi
movq (%rbx), %rsi
subq $0x8, %rsp
leaq -0x70(%rbp), %r15
pushq $0x1
popq %rdx
pushq $0x5
popq %r8
leaq -0x78(%rbp), %rbx
movq %rbx, %r9
pushq %r15
callq 0x4d0c4
popq %rax
popq %rcx
movq (%rbx), %rdi
movq (%r15), %rsi
leaq -0x68(%rbp), %rbx
leaq -0x60(%rbp), %r15
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq 0x4d2e1
movq (%r15), %rax
movq (%rbx), %rcx
movq 0x10(%rbp), %rdx
movq %rax, (%rdx)
movq -0x58(%rbp), %rax
movq %rcx, (%rax)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x60a21(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6