// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_Data_unitzy
static struct std_maybe_Maybe_1 mw_mirth_data_Data_unitzy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Data_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	void* v5 = field_mut(&mfld_mirth_data_Data_unitzy, in_Data_2);
	bool v6 = mut_is_set(v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_maybe_Maybe_1 branch_Maybe_8;
	if (v6) {
		VAL v9 = mut_get(v5);
		branch_Maybe_8 = V_std_maybe_Maybe_1(v9);
		branch_zaMirth_7 = in_zaMirth_1;
	} else {
		struct mirth_mirth_zaMirth* v10;
		struct std_list_List_1 v11 = mw_mirth_data_Data_tags(in_zaMirth_1, in_Data_2, &v10);
		struct std_maybe_Maybe_1 v12 = mw_std_list_List_1_singlezy(v11);
		struct mirth_mirth_zaMirth* branch_zaMirth_13;
		struct std_maybe_Maybe_1 branch_Maybe_14;
		switch ((v12).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v15 = mtp_std_maybe_Maybe_1_Some(v12);
				incref(v15);
				struct mirth_mirth_zaMirth* v16;
				INT v17 = mw_mirth_data_Tag_numzetotalzeinputs(v10, V_mirth_data_Tag(v15), &v16);
				INT v18 = WRAP_I63(0LL);
				INT v19 = v18;
				INT v20 = v17;
				bool v21 = int_eq(v20, v19);
				struct mirth_mirth_zaMirth* branch_zaMirth_22;
				struct std_maybe_Maybe_1 branch_Maybe_23;
				if (v21) {
					struct std_maybe_Maybe_1 v24 = mtw_std_maybe_Maybe_1_Some(v15);
					branch_Maybe_23 = v24;
					branch_zaMirth_22 = v16;
				} else {
					decref(v15);
					struct std_maybe_Maybe_1 v25 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_23 = v25;
					branch_zaMirth_22 = v16;
				}
				branch_Maybe_14 = branch_Maybe_23;
				branch_zaMirth_13 = branch_zaMirth_22;
			} break;
			case std_maybe_Maybe_1_None: {
				struct std_maybe_Maybe_1 v26 = { .tag=std_maybe_Maybe_1_None };
				branch_Maybe_14 = v26;
				branch_zaMirth_13 = v10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		incref(MK_std_maybe_Maybe_1(branch_Maybe_14));
		mut_set(MK_std_maybe_Maybe_1(branch_Maybe_14), v5);
		branch_Maybe_8 = branch_Maybe_14;
		branch_zaMirth_7 = branch_zaMirth_13;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Maybe_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x20(%rbp), %rsi
leaq 0x11f0e8e(%rip), %rdi   # 0x13963e0
callq 0x40d30
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x45e40
andb $0x1, %al
movb %al, -0x31(%rbp)
testb $0x1, -0x31(%rbp)
je 0x1a55b1
movq -0x30(%rbp), %rdi
callq 0x40f30
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x135d0
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1a598f
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x10e0f0
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x1f250
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movl -0x88(%rbp), %eax
movl %eax, -0x17c(%rbp)
testl %eax, %eax
je 0x1a5809
jmp 0x1a55f5
movl -0x17c(%rbp), %eax
subl $0x1, %eax
jne 0x1a5845
jmp 0x1a5606
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x174a0
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1a5674
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x1a5674
movq -0xb0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1a5674
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1a5676
movq -0x68(%rbp), %rdi
movq -0xb0(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0x1a5460
movq %rax, -0xc0(%rbp)
movq 0x1c93b5(%rip), %rax    # 0x36ea50
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
callq 0x194b0
andb $0x1, %al
movb %al, -0xd9(%rbp)
testb $0x1, -0xd9(%rbp)
je 0x1a5731
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0xca10
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x1a57dd
jmp 0x1a5733
movq -0xa8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1a579e
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x1a579e
movq -0xb0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1a579e
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1a579c
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x127c0
jmp 0x1a579e
jmp 0x1a57a0
leaq -0x118(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x118(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x1a585e
leaq -0x128(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x128(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x1a585e
leaq 0x1ae635(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
jmp 0x1a5860
movl -0xa0(%rbp), %edi
movq -0x98(%rbp), %rsi
callq 0x133a0
movq %rax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movq -0x130(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1a5935
movl -0xa0(%rbp), %edi
movq -0x98(%rbp), %rsi
callq 0x133a0
movq %rax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
cmpq $0x0, %rax
je 0x1a5935
movl -0xa0(%rbp), %edi
movq -0x98(%rbp), %rsi
callq 0x133a0
movq %rax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1a5935
movl -0xa0(%rbp), %edi
movq -0x98(%rbp), %rsi
callq 0x133a0
movq %rax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x168(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1a5937
movl -0xa0(%rbp), %edi
movq -0x98(%rbp), %rsi
callq 0x133a0
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0x30(%rbp), %rdx
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rsi
callq 0x431a0
movq -0xa0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopw (%rax,%rax)