// File: /workspace/github_c_makefile_star2_O3/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, %r12   # imm = 0xFFFFFFFFFFFC
movq 0x8(%rdx), %r14
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb5e52
decl (%rax)
jne 0xb5e52
leaq 0x5cf77(%rip), %rsi     # 0x112dc1
movq %rdx, %rdi
callq 0xd13d
leaq -0x60(%rbp), %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x780ec
movq %rdx, %rdi
movq (%r13), %r13
leaq -0x48(%rbp), %rbx
cmpl $0x1, %eax
jne 0xb5efe
leaq -0x58(%rbp), %rsi
callq 0xd0aa
movq %rax, %r14
movq 0x10620dd(%rip), %rdx   # 0x1117f68
testq %rdx, %rdx
jne 0xb5eb0
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x30, 0x18(%rax)
movq %rax, 0x10620b8(%rip)   # 0x1117f68
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb5ec7
incl (%rax)
movq %r14, %rcx
shrq $0x30, %rcx
andq %r12, %r14
leaq -0x40(%rbp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %r8
movq %rbx, %r9
callq 0xb5f4f
movl -0x58(%rbp), %eax
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %r13
movq -0x40(%rbp), %r15
jmp 0xb5e6f
testl %eax, %eax
jne 0xb5f1f
movq -0x30(%rbp), %rax
movq %r15, (%rax)
movq -0x38(%rbp), %rax
movq %r13, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x2a795(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x2a79a(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302