// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_member_sp6
static bool mw_std_list_List_1_member_sp6 (struct mirth_mirth_zaMirth* in_zaMirth_1, VAL in_zux1_2, struct mirth_name_Namespace in_Namespace_3, struct std_list_List_1 in_List_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, VAL *out_zux1_6) {
	struct std_maybe_Maybe_1 v8 = { .tag=std_maybe_Maybe_1_None };
	bool v9 = true;
	struct mirth_mirth_zaMirth* r10 = in_zaMirth_1;
	VAL r11 = in_zux1_2;
	struct mirth_name_Namespace v12 = in_Namespace_3;
	struct std_maybe_Maybe_1 v13 = v8;
	struct std_list_List_1 v14 = in_List_4;
	bool v15 = v9;
	bool v16 = v9;
	while (v16) {
		struct mirth_mirth_zaMirth* r17 = r10;
		VAL r18 = r11;
		struct mirth_name_Namespace v19 = v12;
		struct std_maybe_Maybe_1 v20 = v13;
		struct std_list_List_1 v21 = v14;
		bool v22 = v15;
		struct std_list_List_1 v23;
		struct std_maybe_Maybe_1 v24 = mw_std_list_List_1_uncons(v21, &v23);
		struct mirth_mirth_zaMirth* branch_zaMirth_25;
		VAL branch_zux1_26;
		struct mirth_name_Namespace branch_Namespace_27;
		struct std_maybe_Maybe_1 branch_Maybe_28;
		struct std_list_List_1 branch_List_29;
		bool branch_Bool_30;
		switch ((v24).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v31 = mtp_std_maybe_Maybe_1_Some(v24);
				incref(v31);
				incref(MK_mirth_name_Namespace(v19));
				struct mirth_mirth_zaMirth* v32;
				bool v33 = mw_mirth_name_Namespace_zd(r17, v19, V_mirth_name_Namespace(v31), &v32);
				struct mirth_mirth_zaMirth* branch_zaMirth_34;
				VAL branch_zux1_35;
				struct mirth_name_Namespace branch_Namespace_36;
				struct std_maybe_Maybe_1 branch_Maybe_37;
				if (v33) {
					struct std_maybe_Maybe_1 v38 = mtw_std_maybe_Maybe_1_Some(v31);
					branch_Maybe_37 = v38;
					branch_Namespace_36 = v19;
					branch_zux1_35 = r18;
					branch_zaMirth_34 = v32;
				} else {
					decref(v31);
					struct std_maybe_Maybe_1 v39 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_37 = v39;
					branch_Namespace_36 = v19;
					branch_zux1_35 = r18;
					branch_zaMirth_34 = v32;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_40;
				VAL branch_zux1_41;
				struct mirth_name_Namespace branch_Namespace_42;
				struct std_maybe_Maybe_1 branch_Maybe_43;
				struct std_list_List_1 branch_List_44;
				switch ((branch_Maybe_37).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_44 = v23;
						branch_Maybe_43 = v20;
						branch_Namespace_42 = branch_Namespace_36;
						branch_zux1_41 = branch_zux1_35;
						branch_zaMirth_40 = branch_zaMirth_34;
					} break;
					default: {
						decref(MK_std_list_List_1(v23));
						decref(MK_std_maybe_Maybe_1(v20));
						struct std_list_List_1 v45 = { .tag=std_list_List_1_Nil };
						branch_List_44 = v45;
						branch_Maybe_43 = branch_Maybe_37;
						branch_Namespace_42 = branch_Namespace_36;
						branch_zux1_41 = branch_zux1_35;
						branch_zaMirth_40 = branch_zaMirth_34;
					} break;
				}
				bool v46 = true;
				branch_Bool_30 = v46;
				branch_List_29 = branch_List_44;
				branch_Maybe_28 = branch_Maybe_43;
				branch_Namespace_27 = branch_Namespace_42;
				branch_zux1_26 = branch_zux1_41;
				branch_zaMirth_25 = branch_zaMirth_40;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v47 = false;
				branch_Bool_30 = v47;
				branch_List_29 = v23;
				branch_Maybe_28 = v20;
				branch_Namespace_27 = v19;
				branch_zux1_26 = r18;
				branch_zaMirth_25 = r17;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v16 = branch_Bool_30;
		v15 = branch_Bool_30;
		v14 = branch_List_29;
		v13 = branch_Maybe_28;
		v12 = branch_Namespace_27;
		r11 = branch_zux1_26;
		r10 = branch_zaMirth_25;
	}
	decref(MK_std_list_List_1(v14));
	decref(MK_mirth_name_Namespace(v12));
	int64_t v48 = (v13).tag;
	decref(MK_std_maybe_Maybe_1(v13));
	INT v49 = WRAP_I63(0LL);
	INT v50 = v49;
	INT v51 = i64_to_int(v48);
	bool v52 = int_eq(v51, v50);
	bool v53 = !v52;
	*out_zux1_6 = r11;
	*out_zaMirth_5 = r10;
	return v53;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, -0x80(%rbp)
movq %r8, -0x88(%rbp)
movq %rdx, -0x68(%rbp)
movq %rsi, -0x78(%rbp)
movq %rdi, %r15
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
movl 0x10(%rbp), %edi
movq 0x18(%rbp), %rsi
movq %rcx, %rax
andq %rdx, %rax
movq %rax, -0x58(%rbp)
setne %al
movq %rcx, -0x60(%rbp)
testb $0x3, %cl
sete %cl
andb %al, %cl
movb %cl, -0x29(%rbp)
movq $0x0, -0x38(%rbp)
movb $0x1, %al
leaq -0x50(%rbp), %rbx
movq $0x0, -0x40(%rbp)
testb $0x1, %al
je 0x2c0bf
movq %rbx, %rdx
callq 0x1075d
testl %eax, %eax
je 0x2c078
cmpl $0x1, %eax
jne 0x2c199
movq %r15, %r14
movq %rdx, %rdi
callq 0xd491
movq %rax, %r15
movq %rdx, %r12
movq %rax, %r13
testb $0x1, %r12b
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
je 0x2bfae
movq %r15, %rax
andq %rsi, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x2bfae
incl (%rax)
cmpb $0x0, -0x29(%rbp)
je 0x2bfba
movq -0x58(%rbp), %rax
incl (%rax)
movq %r15, %rcx
shrq $0x30, %rcx
andq %rsi, %r15
movq %r14, %rdi
movq %rsi, %r14
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r15, %r8
leaq -0x70(%rbp), %r9
callq 0x1781d
testb %al, %al
je 0x2c086
movq %r13, %rdi
movq %r12, %rsi
callq 0x8d0c
movq %rdx, %r12
movq -0x70(%rbp), %r15
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x2c02a
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x2c02a
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xdc254(%rip), %rsi     # 0x108279
callq 0xce94
movq -0x40(%rbp), %rsi
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x2c067
decl (%rax)
jne 0x2c067
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xdc25f(%rip), %rsi     # 0x1082c1
callq 0xce94
xorl %edi, %edi
pushq $0x1
popq %rax
movq %rax, -0x38(%rbp)
movq %r12, -0x40(%rbp)
xorl %esi, %esi
jmp 0x2c0b8
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
xorl %eax, %eax
jmp 0x2bf53
testb $0x1, %r12b
je 0x2c0ad
testq %r15, %r15
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x2c0ad
decl (%r15)
jne 0x2c0ad
movq %r13, %rdi
movq %r12, %rsi
callq 0xce94
movq -0x70(%rbp), %r15
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
movb $0x1, %al
jmp 0x2bf53
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x2c0f4
decl (%rax)
jne 0x2c0f4
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xdc18a(%rip), %rsi     # 0x108279
callq 0xce94
cmpb $0x0, -0x29(%rbp)
je 0x2c11a
movq -0x58(%rbp), %rax
decl (%rax)
jne 0x2c11a
movq -0x68(%rbp), %rdi
shlq $0x30, %rdi
orq -0x60(%rbp), %rdi
leaq 0xdc824(%rip), %rsi     # 0x108939
callq 0xce94
movl -0x38(%rbp), %ebx
movq -0x40(%rbp), %rdx
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rsi
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x2c155
decl (%rsi)
jne 0x2c155
movq %rbx, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xdc171(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %rbx, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
xorb $0x1, %al
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
movq %rcx, (%rdx)
leaq 0xdcdec(%rip), %rcx     # 0x108f68
movq %rcx, 0x8(%rdx)
movq -0x88(%rbp), %rcx
movq %r15, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa866d(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6