// File: /workspace/github_c_makefile_star2_O2/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 0x109fbab(%rip), %rdi   # 0x110d290
callq 0x12f88
movq %rax, %r12
movq %rax, %rdi
callq 0x142de
testb %al, %al
je 0x6d713
movq %r12, %rdi
callq 0x1307d
movq %rax, %rdi
movq %rdx, %rsi
callq 0x1e591
movl %eax, %ebx
jmp 0x6d960
leaq -0x50(%rbp), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6ecc8
testb %al, %al
je 0x6d731
movq -0x50(%rbp), %r15
xorl %ebx, %ebx
jmp 0x6d94e
movq %r12, -0x58(%rbp)
movq %r14, -0x60(%rbp)
movq -0x50(%rbp), %rdi
leaq -0x68(%rbp), %r14
movq %rbx, %rsi
movq %r14, %rdx
callq 0x4ce67
movl %eax, %edi
movq %rdx, %rsi
movq (%r14), %r15
movq $0x0, -0x30(%rbp)
movb $0x1, %al
leaq -0x40(%rbp), %r13
xorl %r12d, %r12d
testb $0x1, %al
je 0x6d8c3
movq %r13, %rdx
callq 0x1075d
testl %eax, %eax
je 0x6d819
cmpl $0x1, %eax
jne 0x6d974
movq %rdx, %rdi
callq 0xd491
movq %rax, %r14
movq %rdx, %rbx
testb $0x1, %bl
je 0x6d7b9
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x6d7b9
incl (%rax)
movq %r15, %rdi
movq %r14, %rsi
leaq -0x48(%rbp), %rdx
callq 0x6ee9c
movq %rax, %rdi
pushq $0x1
popq %rsi
callq 0xd759
testb %al, %al
je 0x6d827
testb $0x1, %bl
je 0x6d809
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x6d809
decl (%rax)
jne 0x6d809
movq %r14, %rdi
movq %rbx, %rsi
callq 0xce94
movq -0x48(%rbp), %r15
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
jmp 0x6d8bc
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
xorl %eax, %eax
jmp 0x6d765
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8d0c
movq %rdx, %rbx
movq -0x48(%rbp), %r15
movq -0x38(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
andq %r8, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x6d87f
movl -0x40(%rbp), %edi
decl (%rcx)
jne 0x6d87f
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x9aa09(%rip), %rsi     # 0x108279
callq 0xce94
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
movq %r12, %rax
andq %r8, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x6d8ae
decl (%rax)
jne 0x6d8ae
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x9aa18(%rip), %rsi     # 0x1082c1
callq 0xce94
xorl %edi, %edi
pushq $0x1
popq %rax
movq %rax, -0x30(%rbp)
movq %rbx, %r12
xorl %esi, %esi
movb $0x1, %al
jmp 0x6d765
movq %rsi, %rax
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
andq %r8, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
movq -0x60(%rbp), %r14
jne 0x6d906
decl (%rax)
jne 0x6d906
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x9a982(%rip), %rsi     # 0x108279
callq 0xce94
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
movl -0x30(%rbp), %ebx
andq %r12, %r8
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x6d935
decl (%r8)
jne 0x6d935
movq %rbx, %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x9a991(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %rbx, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
movl %eax, %ebx
movq -0x58(%rbp), %r12
movzbl %bl, %edi
leaq 0x9b3d0(%rip), %rsi     # 0x108d28
movq %r12, %rdx
callq 0x1393b
movq %r15, (%r14)
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x66e92(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6