// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_Data_iszeenumzy
static bool mw_mirth_data_Data_iszeenumzy (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_iszeenumzy, in_Data_2);
	bool v6 = mut_is_set(v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	bool branch_Bool_8;
	if (v6) {
		VAL v9 = mut_get(v5);
		branch_Bool_8 = value_bool(v9);
		branch_zaMirth_7 = in_zaMirth_1;
	} else {
		struct mirth_mirth_zaMirth* v10;
		bool v11 = mw_mirth_data_Data_iszeunitzy(in_zaMirth_1, in_Data_2, &v10);
		bool v12 = !v11;
		struct mirth_mirth_zaMirth* branch_zaMirth_13;
		bool branch_Bool_14;
		if (v12) {
			struct mirth_mirth_zaMirth* v15;
			struct std_list_List_1 v16 = mw_mirth_data_Data_tags(v10, in_Data_2, &v15);
			struct std_maybe_Maybe_1 v17 = { .tag=std_maybe_Maybe_1_None };
			bool v18 = true;
			struct mirth_mirth_zaMirth* r19 = v15;
			struct std_maybe_Maybe_1 v20 = v17;
			struct std_list_List_1 v21 = v16;
			bool v22 = v18;
			bool v23 = v18;
			while (v23) {
				struct mirth_mirth_zaMirth* r24 = r19;
				struct std_maybe_Maybe_1 v25 = v20;
				struct std_list_List_1 v26 = v21;
				bool v27 = v22;
				struct std_list_List_1 v28;
				struct std_maybe_Maybe_1 v29 = mw_std_list_List_1_uncons(v26, &v28);
				struct mirth_mirth_zaMirth* branch_zaMirth_30;
				struct std_maybe_Maybe_1 branch_Maybe_31;
				struct std_list_List_1 branch_List_32;
				bool branch_Bool_33;
				switch ((v29).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v34 = mtp_std_maybe_Maybe_1_Some(v29);
						incref(v34);
						struct mirth_mirth_zaMirth* v35;
						INT v36 = mw_mirth_data_Tag_numzetotalzeinputs(r24, V_mirth_data_Tag(v34), &v35);
						INT v37 = WRAP_I63(0LL);
						INT v38 = v37;
						INT v39 = v36;
						bool v40 = int_eq(v39, v38);
						bool v41 = !v40;
						struct mirth_mirth_zaMirth* branch_zaMirth_42;
						struct std_maybe_Maybe_1 branch_Maybe_43;
						if (v41) {
							struct std_maybe_Maybe_1 v44 = mtw_std_maybe_Maybe_1_Some(v34);
							branch_Maybe_43 = v44;
							branch_zaMirth_42 = v35;
						} else {
							decref(v34);
							struct std_maybe_Maybe_1 v45 = { .tag=std_maybe_Maybe_1_None };
							branch_Maybe_43 = v45;
							branch_zaMirth_42 = v35;
						}
						struct mirth_mirth_zaMirth* branch_zaMirth_46;
						struct std_maybe_Maybe_1 branch_Maybe_47;
						struct std_list_List_1 branch_List_48;
						switch ((branch_Maybe_43).tag) {
							case std_maybe_Maybe_1_None: {
								branch_List_48 = v28;
								branch_Maybe_47 = v25;
								branch_zaMirth_46 = branch_zaMirth_42;
							} break;
							default: {
								decref(MK_std_list_List_1(v28));
								decref(MK_std_maybe_Maybe_1(v25));
								struct std_list_List_1 v49 = { .tag=std_list_List_1_Nil };
								branch_List_48 = v49;
								branch_Maybe_47 = branch_Maybe_43;
								branch_zaMirth_46 = branch_zaMirth_42;
							} break;
						}
						bool v50 = true;
						branch_Bool_33 = v50;
						branch_List_32 = branch_List_48;
						branch_Maybe_31 = branch_Maybe_47;
						branch_zaMirth_30 = branch_zaMirth_46;
					} break;
					case std_maybe_Maybe_1_None: {
						bool v51 = false;
						branch_Bool_33 = v51;
						branch_List_32 = v28;
						branch_Maybe_31 = v25;
						branch_zaMirth_30 = r24;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				v23 = branch_Bool_33;
				v22 = branch_Bool_33;
				v21 = branch_List_32;
				v20 = branch_Maybe_31;
				r19 = branch_zaMirth_30;
			}
			decref(MK_std_list_List_1(v21));
			int64_t v52 = (v20).tag;
			decref(MK_std_maybe_Maybe_1(v20));
			INT v53 = WRAP_I63(0LL);
			INT v54 = v53;
			INT v55 = i64_to_int(v52);
			bool v56 = int_eq(v55, v54);
			branch_Bool_14 = v56;
			branch_zaMirth_13 = r19;
		} else {
			bool v57 = false;
			branch_Bool_14 = v57;
			branch_zaMirth_13 = v10;
		}
		mut_set(MKBOOL(branch_Bool_14), v5);
		branch_Bool_8 = branch_Bool_14;
		branch_zaMirth_7 = branch_zaMirth_13;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Bool_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x10a243b(%rip), %rdi   # 0x1116290
callq 0x13c85
movq %rax, %r12
movq %rax, %rdi
callq 0x1505d
testb %al, %al
je 0x73e83
movq %r12, %rdi
callq 0x13d82
movq %rax, %rdi
movq %rdx, %rsi
callq 0x20851
movl %eax, %ebx
jmp 0x74093
leaq -0x50(%rbp), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x75465
testb %al, %al
je 0x73ea1
movq -0x50(%rbp), %r15
xorl %ebx, %ebx
jmp 0x74081
movq %r12, -0x58(%rbp)
movq %r14, -0x60(%rbp)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq -0x50(%rbp), %rdi
leaq -0x68(%rbp), %r14
movq %rbx, %rsi
movq %r14, %rdx
callq 0x51551
movl %eax, %edi
movq %rdx, %rsi
movq (%r14), %r15
xorl %r12d, %r12d
movq $0x0, -0x30(%rbp)
leaq -0x40(%rbp), %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x73ff8
movq %rdx, %rdi
callq 0xd745
movq %rax, %rbx
movq %rdx, %r14
testb $0x1, %r14b
je 0x73f14
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x73f14
incl (%rax)
movq %r15, %rdi
movq %rbx, %rsi
leaq -0x48(%rbp), %rdx
callq 0x75654
movl $0x1, %esi
movq %rax, %rdi
callq 0xe83a
testl %eax, %eax
je 0x73fc0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9353
movq %rdx, %r14
movq -0x48(%rbp), %r15
movq -0x38(%rbp), %rax
movq %rax, %rcx
andq %r13, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x73f7c
movl -0x40(%rbp), %edi
decl (%rcx)
jne 0x73f7c
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x9d302(%rip), %rsi     # 0x111279
callq 0xd13d
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x73fab
decl (%rax)
jne 0x73fab
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x9d31b(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x30(%rbp)
movq %r14, %r12
xorl %esi, %esi
jmp 0x73ed9
testb $0x1, %r14b
je 0x73fe8
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x73fe8
decl (%rax)
jne 0x73fe8
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd13d
movq -0x48(%rbp), %r15
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
jmp 0x73ed9
testl %eax, %eax
jne 0x740a7
movq -0x38(%rbp), %rax
movq %rax, %rcx
andq %r13, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x74032
movl -0x40(%rbp), %edi
decl (%rcx)
jne 0x74032
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x9d24c(%rip), %rsi     # 0x111279
callq 0xd13d
movl -0x30(%rbp), %ebx
andq %r12, %r13
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x74062
decl (%r13)
jne 0x74062
movq %rbx, %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x9d264(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
sete %bl
movq -0x60(%rbp), %r14
movq -0x58(%rbp), %r12
movzbl %bl, %edi
leaq 0x9dc9d(%rip), %rsi     # 0x111d28
movq %r12, %rdx
callq 0x14766
movq %r15, (%r14)
movl %ebx, %eax
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 0x6c60d(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x6c612(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302