// File: /workspace/github_c_makefile_star2_O2/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 $0x58, %rsp
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r15
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq 0x109bda9(%rip), %rdi   # 0x110d338
callq 0x12f88
movq %rax, %r14
movq %rax, %rdi
callq 0x142de
testb %al, %al
movq %r13, -0x78(%rbp)
je 0x715c1
movq %r14, %rdi
callq 0x1307d
movq %rax, %r13
andq %rax, %rbx
shrq $0x30, %r13
movq %rbx, %r12
jmp 0x71803
leaq -0x58(%rbp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x66726
testl %eax, %eax
je 0x716b3
cmpl $0x1, %eax
jne 0x7181f
movq %rdx, %rdi
callq 0xd491
movq %rax, %r12
movq %rdx, %r15
testb $0x1, %r15b
je 0x7160b
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x7160b
incl (%rax)
movq -0x58(%rbp), %rdi
leaq -0x40(%rbp), %rdx
movq %r12, %rsi
callq 0x7187e
movl %eax, %edi
movq %rdx, %rsi
callq 0xea6b
testl %eax, %eax
je 0x716bc
movq %r15, -0x70(%rbp)
cmpl $0x1, %eax
jne 0x7181f
movq %rdx, %rdi
callq 0xd491
movq %rax, %r15
movq %rax, %rsi
andq %rbx, %rsi
movq %rdx, -0x68(%rbp)
testb $0x1, %dl
je 0x71667
testq %rsi, %rsi
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x71667
incl (%rsi)
movq %r15, %rdi
shrq $0x30, %rdi
movq %rdi, -0x60(%rbp)
movq %rsi, -0x38(%rbp)
callq 0x719c6
cmpl $0x1, %eax
movq %r15, -0x50(%rbp)
je 0x716cb
testl %eax, %eax
jne 0x7181f
movq %rdx, %rdi
callq 0x1e79d
movq -0x40(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %rbx, %rax
leaq -0x80(%rbp), %r15
movq %rax, %rdx
movq %r15, %rcx
callq 0x2a670
jmp 0x716f0
xorl %r13d, %r13d
movq -0x58(%rbp), %r15
jmp 0x716c3
xorl %r13d, %r13d
movq -0x40(%rbp), %r15
xorl %r12d, %r12d
jmp 0x717d7
movq %rdx, %rdi
callq 0x1e7e4
movq -0x40(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %rbx, %rax
leaq -0x80(%rbp), %r15
movq %rax, %rdx
movq %r15, %rcx
callq 0x666fd
movl %eax, %r13d
movq (%r15), %r15
testl %eax, %eax
movq %r14, -0x30(%rbp)
je 0x717ae
movq %r12, -0x48(%rbp)
cmpl $0x1, %r13d
jne 0x7181f
movq %rdx, %rdi
callq 0xd491
movq %rax, %r12
testb $0x1, -0x68(%rbp)
movq -0x38(%rbp), %rdx
je 0x71738
testq %rdx, %rdx
sete %al
testb $0x3, -0x50(%rbp)
setne %cl
orb %al, %cl
jne 0x71738
incl (%rdx)
testb $0x1, -0x70(%rbp)
je 0x71757
movq -0x48(%rbp), %rdx
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0x71757
incl (%rax)
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0x71836
movq %r12, %rcx
andq %rbx, %rcx
shrq $0x30, %r12
movl $0x1, (%rax)
movl %r12d, 0x20(%rax)
movq %rcx, 0x28(%rax)
movq -0x60(%rbp), %rcx
movl %ecx, 0x10(%rax)
movq -0x38(%rbp), %r14
movq %r14, 0x18(%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x98398(%rip), %rsi     # 0x109b39
movq %rax, %rdi
callq 0x8d0c
movq %rdx, %r12
jmp 0x717b5
xorl %r12d, %r12d
movq -0x38(%rbp), %r14
testq %r14, %r14
je 0x717d3
decl (%r14)
jne 0x717d3
movq -0x50(%rbp), %rdi
andq $-0x4, %rdi
leaq 0x97513(%rip), %rsi     # 0x108ce1
callq 0xce94
movq -0x30(%rbp), %r14
movq %r13, %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x96ad9(%rip), %rsi     # 0x1082c1
andq %r12, %rbx
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x717fb
incl (%rbx)
movq %r14, %rdx
callq 0x1393b
movq -0x78(%rbp), %rax
movq %r15, (%rax)
movl %r13d, %eax
movq %r12, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x62fe7(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6
leaq 0x6a73d(%rip), %rsi     # 0xdbf7a
pushq $0x2
popq %rdi
pushq $0x31
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130