// File: /workspace/github_c_makefile_star2_O1/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, %r13   # imm = 0xFFFFFFFFFFFC
movq 0x8(%rdx), %r14
movq %rdx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb1fb6
decl (%rax)
jne 0xb1fb6
leaq 0x64e13(%rip), %rsi     # 0x116dc1
movq %rdx, %rdi
callq 0xd4e3
leaq -0x70(%rbp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x79fa6
movq %rdx, %rcx
xorl %edi, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0xd37c
movq %rdx, %rdi
movq (%r12), %r12
leaq -0x48(%rbp), %rbx
leaq -0x40(%rbp), %r14
testl %eax, %eax
je 0xb2040
cmpl $0x1, %eax
jne 0xb2092
leaq -0x68(%rbp), %rsi
callq 0xd450
movq %rax, %rdx
shrq $0x30, %rdx
andq %r13, %rax
leaq -0x58(%rbp), %rcx
movq %rcx, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0xb2249
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0xb2446
movl -0x68(%rbp), %eax
movq -0x60(%rbp), %rdi
movq -0x48(%rbp), %r12
movq -0x40(%rbp), %r15
movb $0x1, %cl
jmp 0xb2044
xorl %ecx, %ecx
xorl %edi, %edi
testb %cl, %cl
jne 0xb1fe5
andq %rdi, %r13
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xb2075
decl (%r13)
jne 0xb2075
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x6320c(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
movq -0x30(%rbp), %rax
movq %r15, (%rax)
movq -0x38(%rbp), %rax
movq %r12, (%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x326a2(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x326a7(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5