// File: /workspace/github_c_makefile_star2_O2/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, %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 0xab9cb
decl (%rax)
jne 0xab9cb
leaq 0x5e3fe(%rip), %rsi     # 0x109dc1
movq %rdx, %rdi
callq 0xce94
leaq -0x60(%rbp), %rbx
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x7187e
movq (%rbx), %r12
leaq -0x58(%rbp), %rsi
leaq -0x48(%rbp), %rbx
movb $0x1, %cl
movq %rdx, %rdi
testb $0x1, %cl
je 0xaba89
xorl %ecx, %ecx
movl $0x0, %edx
testl %eax, %eax
je 0xab9ea
cmpl $0x1, %eax
jne 0xabad2
callq 0xce01
movq %rax, %r13
movq 0x1063557(%rip), %rdx   # 0x110ef70
testq %rdx, %rdx
jne 0xaba37
leaq 0x42b50(%rip), %rdi     # 0xee575
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1063539(%rip)   # 0x110ef70
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xaba4e
incl (%rax)
movq %r13, %rcx
shrq $0x30, %rcx
andq %r14, %r13
leaq -0x40(%rbp), %rax
movq %rax, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %r8
movq %rbx, %r9
callq 0xabae9
movl -0x58(%rbp), %eax
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %r12
movq -0x40(%rbp), %r15
leaq -0x58(%rbp), %rsi
jmp 0xab9e8
andq %rdi, %r14
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xabab5
decl (%r14)
jne 0xabab5
shlq $0x30, %rax
orq %rdi, %rax
leaq 0x5c7cc(%rip), %rsi     # 0x108279
movq %rax, %rdi
callq 0xce94
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
leaq 0x28d34(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6