// File: /workspace/github_c_makefile_star2_O2/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, %r12
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq 0x8(%rdx), %r13
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xa5646
decl (%rax)
jne 0xa5646
leaq 0x64783(%rip), %rsi     # 0x109dc1
movq %rdx, %rdi
callq 0xce94
leaq -0x70(%rbp), %rbx
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x7187e
movl %eax, %edi
movq %rdx, %rsi
callq 0xcd32
movq (%rbx), %r12
leaq -0x68(%rbp), %rbx
leaq -0x40(%rbp), %r13
movb $0x1, %cl
movq %rdx, %rdi
testb $0x1, %cl
je 0xa56d7
xorl %ecx, %ecx
movl $0x0, %edx
testl %eax, %eax
je 0xa566f
cmpl $0x1, %eax
jne 0xa5720
movq %rbx, %rsi
callq 0xce01
movq %rax, %rdx
shrq $0x30, %rdx
andq %r14, %rax
leaq -0x58(%rbp), %rcx
movq %rcx, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rcx
leaq -0x48(%rbp), %r8
movq %r13, %r9
callq 0xa58dd
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0xa5ab9
movl -0x68(%rbp), %eax
movq -0x60(%rbp), %rdx
movq -0x48(%rbp), %r12
movq -0x40(%rbp), %r15
jmp 0xa566d
andq %rdi, %r14
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xa5703
decl (%r14)
jne 0xa5703
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x62b7e(%rip), %rsi     # 0x108279
movq %rax, %rdi
callq 0xce94
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
leaq 0x2f0e6(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6