// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99DataUnitRepr_unpackzeunitzx
static void mw_mirth_c99_C99DataUnitRepr_unpackzeunitzx (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);
	bool v9 = true;
	struct mirth_c99_zaC99Branch* r10 = in_zaC99Branch_2;
	struct mirth_mirth_zaMirth* r11 = v7;
	struct std_list_List_1 v12 = v8;
	bool v13 = v9;
	bool v14 = v9;
	while (v14) {
		struct mirth_c99_zaC99Branch* r15 = r10;
		struct mirth_mirth_zaMirth* r16 = r11;
		struct std_list_List_1 v17 = v12;
		bool v18 = v13;
		struct mirth_c99_zaC99Branch* branch_zaC99Branch_19;
		struct mirth_mirth_zaMirth* branch_zaMirth_20;
		struct std_list_List_1 branch_List_21;
		bool branch_Bool_22;
		switch ((v17).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v23;
				VAL v24 = mtp_std_list_List_1_Cons(v17, &v23);
				STR* v25;
				STRLIT(v25, "0", 1);
				struct mirth_mirth_zaMirth* v26;
				struct mirth_c99_zaC99Branch* v27;
				mw_mirth_c99_pushzestackzepartzenamezx(r16, r15, v25, V_mirth_type_StackTypePart(v24), &v26, &v27);
				bool v28 = true;
				branch_Bool_22 = v28;
				branch_List_21 = v23;
				branch_zaMirth_20 = v26;
				branch_zaC99Branch_19 = v27;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v29 = { .tag=std_list_List_1_Nil };
				bool v30 = false;
				branch_Bool_22 = v30;
				branch_List_21 = v29;
				branch_zaMirth_20 = r16;
				branch_zaC99Branch_19 = r15;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v14 = branch_Bool_22;
		v13 = branch_Bool_22;
		v12 = branch_List_21;
		r11 = branch_zaMirth_20;
		r10 = branch_zaC99Branch_19;
	}
	decref(MK_std_list_List_1(v12));
	*out_zaC99Branch_5 = r10;
	*out_zaMirth_4 = r11;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %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 0xb8e13
decl (%rax)
jne 0xb8e13
leaq 0x5dfb6(%rip), %rsi     # 0x116dc1
movq %rdx, %rdi
callq 0xd4e3
leaq -0x60(%rbp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x79fa6
movq %rdx, %rdi
movq (%r12), %r12
leaq -0x48(%rbp), %rbx
testl %eax, %eax
je 0xb8ec8
cmpl $0x1, %eax
jne 0xb8f1e
leaq -0x58(%rbp), %rsi
callq 0xd450
movq %rax, %r14
cmpq $0x0, 0x1063113(%rip)   # 0x111bf68
jne 0xb8e74
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x30, 0x18(%rax)
movq %rax, 0x10630f4(%rip)   # 0x111bf68
movq 0x10630ed(%rip), %rdx   # 0x111bf68
movq %rdx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb8e92
incl (%rax)
movq %r14, %rcx
shrq $0x30, %rcx
andq %r13, %r14
leaq -0x40(%rbp), %rax
movq %rax, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %r8
movq %rbx, %r9
callq 0xb8f4e
movl -0x58(%rbp), %eax
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %r12
movq -0x40(%rbp), %r15
movb $0x1, %cl
jmp 0xb8ecc
xorl %ecx, %ecx
xorl %edi, %edi
testb %cl, %cl
jne 0xb8e30
andq %rdi, %r13
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xb8f01
decl (%r13)
jne 0xb8f01
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x5c380(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
movq -0x30(%rbp), %rax
movq %r15, (%rax)
movq -0x38(%rbp), %rax
movq %r12, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x2b816(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x2b81b(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5