// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99DataUnitRepr_packzeunitzx
static void mw_mirth_c99_C99DataUnitRepr_packzeunitzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_C99DataUnitRepr* in_C99DataUnitRepr_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	uint64_t v6 = in_C99DataUnitRepr_3->mtag;
	decref(MK_mirth_c99_C99DataUnitRepr(in_C99DataUnitRepr_3));
	struct mirth_mirth_zaMirth* v7;
	struct std_list_List_1 v8 = mw_mirth_data_Tag_inputs(in_zaMirth_1, v6, &v7);
	struct std_list_List_1 v9 = mw_std_list_List_1_reverse(v8);
	bool v10 = true;
	struct mirth_c99_zaC99Branch* r11 = in_zaC99Branch_2;
	struct mirth_mirth_zaMirth* r12 = v7;
	struct std_list_List_1 v13 = v9;
	bool v14 = v10;
	bool v15 = v10;
	while (v15) {
		struct mirth_c99_zaC99Branch* r16 = r11;
		struct mirth_mirth_zaMirth* r17 = r12;
		struct std_list_List_1 v18 = v13;
		bool v19 = v14;
		struct mirth_c99_zaC99Branch* branch_zaC99Branch_20;
		struct mirth_mirth_zaMirth* branch_zaMirth_21;
		struct std_list_List_1 branch_List_22;
		bool branch_Bool_23;
		switch ((v18).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v24;
				VAL v25 = mtp_std_list_List_1_Cons(v18, &v24);
				struct mirth_mirth_zaMirth* v26;
				struct mirth_c99_zaC99Branch* v27;
				struct std_either_zaEither_2 v28;
				mw_mirth_c99_popzestackzepartzx(r17, r16, V_mirth_type_StackTypePart(v25), &v26, &v27, &v28);
				mw_mirth_c99_zaC99ValuezfResource_rdrop(v28);
				bool v29 = true;
				branch_Bool_23 = v29;
				branch_List_22 = v24;
				branch_zaMirth_21 = v26;
				branch_zaC99Branch_20 = v27;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v30 = { .tag=std_list_List_1_Nil };
				bool v31 = false;
				branch_Bool_23 = v31;
				branch_List_22 = v30;
				branch_zaMirth_21 = r17;
				branch_zaC99Branch_20 = r16;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v15 = branch_Bool_23;
		v14 = branch_Bool_23;
		v13 = branch_List_22;
		r12 = branch_zaMirth_21;
		r11 = branch_zaC99Branch_20;
	}
	decref(MK_std_list_List_1(v13));
	*out_zaC99Branch_5 = r11;
	*out_zaMirth_4 = r12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %rsi, %r15
movq %rdi, %rbx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq 0x8(%rdx), %r14
movq %rdx, %rax
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xaf1bf
decl (%rax)
jne 0xaf1bf
leaq 0x63c0a(%rip), %rsi     # 0x112dc1
movq %rdx, %rdi
callq 0xd13d
leaq -0x70(%rbp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x780ec
movq %rdx, %rcx
xorl %edi, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0xd01b
movq %rdx, %rdi
movq (%r12), %r14
leaq -0x58(%rbp), %r12
leaq -0x48(%rbp), %r13
leaq -0x40(%rbp), %rbx
cmpl $0x1, %eax
jne 0xaf249
leaq -0x68(%rbp), %rsi
callq 0xd0aa
movq %rax, %rdx
shrq $0x30, %rdx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
movq %r12, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rcx
movq %r13, %r8
movq %rbx, %r9
callq 0xaf41f
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0xaf61c
movl -0x68(%rbp), %eax
movq -0x60(%rbp), %rdi
movq -0x48(%rbp), %r14
movq -0x40(%rbp), %r15
jmp 0xaf1f2
testl %eax, %eax
jne 0xaf26a
movq -0x30(%rbp), %rax
movq %r15, (%rax)
movq -0x38(%rbp), %rax
movq %r14, (%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x3144a(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x3144f(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302