// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_Data_semizetransparentzy
static struct std_maybe_Maybe_1 mw_mirth_data_Data_semizetransparentzy (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_semizetransparentzy, 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_maybe_Maybe_1 v11 = mw_mirth_data_Data_singlezetagzy(in_zaMirth_1, in_Data_2, &v10);
		struct mirth_mirth_zaMirth* branch_zaMirth_12;
		struct std_maybe_Maybe_1 branch_Maybe_13;
		switch ((v11).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v14 = mtp_std_maybe_Maybe_1_Some(v11);
				incref(v14);
				struct mirth_mirth_zaMirth* v15;
				struct std_list_List_1 v16 = mw_mirth_data_Tag_inputs(v10, V_mirth_data_Tag(v14), &v15);
				struct std_maybe_Maybe_1 v17 = mw_std_list_List_1_singlezy(v16);
				uint64_t branch_Tag_18;
				struct mirth_mirth_zaMirth* branch_zaMirth_19;
				struct std_maybe_Maybe_1 branch_Maybe_20;
				switch ((v17).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v21 = mtp_std_maybe_Maybe_1_Some(v17);
						incref(v21);
						struct std_either_Either_2 v22 = mw_mirth_type_StackTypePart_typezfresource(V_mirth_type_StackTypePart(v21));
						struct mirth_mirth_zaMirth* branch_zaMirth_23;
						struct std_maybe_Maybe_1 branch_Maybe_24;
						switch ((v22).tag) {
							case std_either_Either_2_Left: {
								VAL v25 = mtp_std_either_Either_2_Left(v22);
								struct mirth_mirth_zaMirth* v26;
								struct std_maybe_Maybe_1 v27 = mw_mirth_type_Type_tyconzy(v15, V_mirth_type_Type(v25), &v26);
								branch_Maybe_24 = v27;
								branch_zaMirth_23 = v26;
							} break;
							case std_either_Either_2_Right: {
								VAL v28 = mtp_std_either_Either_2_Right(v22);
								struct mirth_mirth_zaMirth* v29;
								struct std_maybe_Maybe_1 v30 = mw_mirth_type_Resource_tyconzy(v15, V_mirth_type_Type(v28), &v29);
								branch_Maybe_24 = v30;
								branch_zaMirth_23 = v29;
							} break;
							default: {
								do_panic(str_make("unexpected fallthrough in match\n", 32));
							}
						}
						struct mirth_type_StackTypePart branch_StackTypePart_31;
						uint64_t branch_Tag_32;
						struct std_maybe_Maybe_1 branch_Maybe_33;
						switch ((branch_Maybe_24).tag) {
							case std_maybe_Maybe_1_Some: {
								VAL v34 = mtp_std_maybe_Maybe_1_Some(branch_Maybe_24);
								incref(v21);
								incref(v14);
								struct mirth_data_SemiTransparentData* v35 = mtw_mirth_data_SemiTransparentData_SemiTransparentData(V_mirth_data_Tag(v14), V_mirth_type_StackTypePart(v21), V_mirth_tycon_Tycon(v34));
								struct std_maybe_Maybe_1 v36 = mtw_std_maybe_Maybe_1_Some(MK_mirth_data_SemiTransparentData(v35));
								branch_Maybe_33 = v36;
								branch_Tag_32 = V_mirth_data_Tag(v14);
								branch_StackTypePart_31 = V_mirth_type_StackTypePart(v21);
							} break;
							case std_maybe_Maybe_1_None: {
								struct std_maybe_Maybe_1 v37 = { .tag=std_maybe_Maybe_1_None };
								branch_Maybe_33 = v37;
								branch_Tag_32 = V_mirth_data_Tag(v14);
								branch_StackTypePart_31 = V_mirth_type_StackTypePart(v21);
							} break;
							default: {
								do_panic(str_make("unexpected fallthrough in match\n", 32));
							}
						}
						decref(MK_mirth_type_StackTypePart(branch_StackTypePart_31));
						branch_Maybe_20 = branch_Maybe_33;
						branch_zaMirth_19 = branch_zaMirth_23;
						branch_Tag_18 = branch_Tag_32;
					} break;
					case std_maybe_Maybe_1_None: {
						struct std_maybe_Maybe_1 v38 = { .tag=std_maybe_Maybe_1_None };
						branch_Maybe_20 = v38;
						branch_zaMirth_19 = v15;
						branch_Tag_18 = V_mirth_data_Tag(v14);
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				branch_Maybe_13 = branch_Maybe_20;
				branch_zaMirth_12 = branch_zaMirth_19;
			} break;
			case std_maybe_Maybe_1_None: {
				struct std_maybe_Maybe_1 v39 = { .tag=std_maybe_Maybe_1_None };
				branch_Maybe_13 = v39;
				branch_zaMirth_12 = v10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		incref(MK_std_maybe_Maybe_1(branch_Maybe_13));
		mut_set(MK_std_maybe_Maybe_1(branch_Maybe_13), v5);
		branch_Maybe_8 = branch_Maybe_13;
		branch_zaMirth_7 = branch_zaMirth_12;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Maybe_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq 0x109e4d7(%rip), %rdi   # 0x1116338
callq 0x13c85
movq %rax, %r13
movq %rax, %rdi
callq 0x1505d
testb %al, %al
je 0x77e8f
movq %r13, %rdi
callq 0x13d82
movq %rax, %r13
andq %rax, %r14
shrq $0x30, %r13
movq %r14, %r12
jmp 0x780a4
movq %r13, -0x70(%rbp)
movq %rbx, -0x38(%rbp)
leaq -0x50(%rbp), %rbx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x51551
movl %eax, %edi
movq %rdx, %rsi
callq 0xf35d
movl %eax, %r13d
movq (%rbx), %r15
testl %eax, %eax
je 0x77f7e
cmpl $0x1, %r13d
jne 0x780bc
movq %rdx, %rdi
callq 0xd745
movq %rax, %r12
movq %rdx, %r13
testb $0x1, %r13b
movq -0x38(%rbp), %rbx
je 0x77ef9
movq %r12, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x77ef9
incl (%rax)
leaq -0x40(%rbp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x780ec
movl %eax, %edi
movq %rdx, %rsi
callq 0xf35d
testl %eax, %eax
je 0x77f8a
cmpl $0x1, %eax
jne 0x780bc
movq %rdx, %rdi
callq 0xd745
movq %rax, %rbx
movq %rax, %rsi
andq %r14, %rsi
movq %rdx, -0x58(%rbp)
testb $0x1, %dl
je 0x77f4b
testq %rsi, %rsi
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x77f4b
incl (%rsi)
movq %rbx, %rdi
shrq $0x30, %rdi
movq %rdi, -0x60(%rbp)
movq %rsi, -0x30(%rbp)
callq 0x78234
cmpl $0x1, %eax
movq %rbx, -0x48(%rbp)
movq %r13, -0x68(%rbp)
je 0x77f99
testl %eax, %eax
jne 0x780bc
movq %rdx, %rdi
callq 0x20a5a
jmp 0x77fa1
xorl %r12d, %r12d
movq -0x38(%rbp), %rbx
jmp 0x78076
xorl %r13d, %r13d
movq -0x40(%rbp), %r15
xorl %r12d, %r12d
jmp 0x78076
movq %rdx, %rdi
callq 0x20aa1
movq -0x40(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
leaq -0x50(%rbp), %rbx
movq %rax, %rdx
movq %rbx, %rcx
callq 0x2cfb8
movl %eax, %r13d
movq (%rbx), %r15
testl %eax, %eax
movq -0x38(%rbp), %rbx
je 0x78052
cmpl $0x1, %r13d
jne 0x780bc
movq %rdx, %rdi
callq 0xd745
testb $0x1, -0x58(%rbp)
movq -0x30(%rbp), %rdx
je 0x78003
testq %rdx, %rdx
sete %cl
testb $0x3, -0x48(%rbp)
setne %dl
orb %cl, %dl
movq -0x30(%rbp), %rdx
jne 0x78003
incl (%rdx)
testb $0x1, -0x68(%rbp)
je 0x78025
movq %r12, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %r12b
setne %sil
orb %dl, %sil
movq -0x30(%rbp), %rdx
jne 0x78025
incl (%rcx)
movq %rax, %rcx
shrq $0x30, %rcx
andq %r14, %rax
movq %r12, %rdi
movq -0x60(%rbp), %rsi
movq %rax, %r8
callq 0x782f0
leaq 0x9aaf4(%rip), %rsi     # 0x112b39
movq %rax, %rdi
callq 0x9353
movq %rdx, %r12
jmp 0x78055
xorl %r12d, %r12d
movq -0x30(%rbp), %rax
testq %rax, %rax
je 0x78076
decl (%rax)
jne 0x78076
movq -0x48(%rbp), %rdi
andq $-0x4, %rdi
leaq 0x99c70(%rip), %rsi     # 0x111ce1
callq 0xd13d
movq %r13, %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x9923a(%rip), %rsi     # 0x1112c1
andq %r12, %r14
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x7809b
incl (%r14)
movq -0x70(%rbp), %rdx
callq 0x14766
movq %r15, (%rbx)
movl %r13d, %eax
movq %r12, %rdx
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 0x685f8(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x685fd(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302