// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_zd_sp1
static bool mw_std_list_List_1_zd_sp1 (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_List_2, struct std_list_List_1 in_List_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	bool v6 = true;
	struct std_list_List_1 v7;
	struct std_maybe_Maybe_1 v8 = mw_std_list_List_1_uncons(in_List_2, &v7);
	struct std_list_List_1 v9;
	struct std_maybe_Maybe_1 v10 = mw_std_list_List_1_uncons(in_List_3, &v9);
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	bool branch_Bool_12;
	switch ((v10).tag) {
		case std_maybe_Maybe_1_None: {
			int64_t v13 = (v8).tag;
			decref(MK_std_maybe_Maybe_1(v8));
			INT v14 = WRAP_I63(0LL);
			INT v15 = v14;
			INT v16 = i64_to_int(v13);
			bool v17 = int_eq(v16, v15);
			branch_Bool_12 = v17;
			branch_zaMirth_11 = in_zaMirth_1;
		} break;
		case std_maybe_Maybe_1_Some: {
			VAL v18 = mtp_std_maybe_Maybe_1_Some(v10);
			struct mirth_mirth_zaMirth* branch_zaMirth_19;
			bool branch_Bool_20;
			switch ((v8).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v21 = mtp_std_maybe_Maybe_1_Some(v8);
					struct mirth_mirth_zaMirth* v22;
					bool v23 = mw_mirth_arrow_Arg_similar(in_zaMirth_1, V_mirth_arrow_Block(v21), V_mirth_arrow_Block(v18), &v22);
					branch_Bool_20 = v23;
					branch_zaMirth_19 = v22;
				} break;
				case std_maybe_Maybe_1_None: {
					decref(v18);
					bool v24 = false;
					branch_Bool_20 = v24;
					branch_zaMirth_19 = in_zaMirth_1;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Bool_12 = branch_Bool_20;
			branch_zaMirth_11 = branch_zaMirth_19;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	bool v25 = (branch_Bool_12 && v6);
	incref(MK_std_list_List_1(v7));
	bool v26 = mw_std_list_List_1_emptyzy(v7);
	incref(MK_std_list_List_1(v9));
	bool v27 = mw_std_list_List_1_emptyzy(v9);
	bool v28 = (v26 && v27);
	bool v29 = !v28;
	bool v30 = (v29 && v25);
	struct mirth_mirth_zaMirth* r31 = branch_zaMirth_11;
	struct std_list_List_1 v32 = v7;
	struct std_list_List_1 v33 = v9;
	bool v34 = v25;
	bool v35 = v30;
	while (v35) {
		struct mirth_mirth_zaMirth* r36 = r31;
		struct std_list_List_1 v37 = v32;
		struct std_list_List_1 v38 = v33;
		bool v39 = v34;
		struct std_list_List_1 v40;
		struct std_maybe_Maybe_1 v41 = mw_std_list_List_1_uncons(v37, &v40);
		struct std_list_List_1 v42;
		struct std_maybe_Maybe_1 v43 = mw_std_list_List_1_uncons(v38, &v42);
		struct mirth_mirth_zaMirth* branch_zaMirth_44;
		bool branch_Bool_45;
		switch ((v43).tag) {
			case std_maybe_Maybe_1_None: {
				int64_t v46 = (v41).tag;
				decref(MK_std_maybe_Maybe_1(v41));
				INT v47 = WRAP_I63(0LL);
				INT v48 = v47;
				INT v49 = i64_to_int(v46);
				bool v50 = int_eq(v49, v48);
				branch_Bool_45 = v50;
				branch_zaMirth_44 = r36;
			} break;
			case std_maybe_Maybe_1_Some: {
				VAL v51 = mtp_std_maybe_Maybe_1_Some(v43);
				struct mirth_mirth_zaMirth* branch_zaMirth_52;
				bool branch_Bool_53;
				switch ((v41).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v54 = mtp_std_maybe_Maybe_1_Some(v41);
						struct mirth_mirth_zaMirth* v55;
						bool v56 = mw_mirth_arrow_Arg_similar(r36, V_mirth_arrow_Block(v54), V_mirth_arrow_Block(v51), &v55);
						branch_Bool_53 = v56;
						branch_zaMirth_52 = v55;
					} break;
					case std_maybe_Maybe_1_None: {
						decref(v51);
						bool v57 = false;
						branch_Bool_53 = v57;
						branch_zaMirth_52 = r36;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				branch_Bool_45 = branch_Bool_53;
				branch_zaMirth_44 = branch_zaMirth_52;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		bool v58 = (branch_Bool_45 && v39);
		incref(MK_std_list_List_1(v40));
		bool v59 = mw_std_list_List_1_emptyzy(v40);
		incref(MK_std_list_List_1(v42));
		bool v60 = mw_std_list_List_1_emptyzy(v42);
		bool v61 = (v59 && v60);
		bool v62 = !v61;
		bool v63 = (v62 && v58);
		v35 = v63;
		v34 = v58;
		v33 = v42;
		v32 = v40;
		r31 = branch_zaMirth_44;
	}
	decref(MK_std_list_List_1(v33));
	decref(MK_std_list_List_1(v32));
	*out_zaMirth_4 = r31;
	return v34;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, %r13
movq %r8, %r14
movl %ecx, %r12d
movq %rdi, -0x38(%rbp)
leaq -0x90(%rbp), %rax
movl %esi, %edi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x115ef
movl %eax, %r15d
movq %rdx, %rbx
leaq -0x80(%rbp), %rdx
movl %r12d, %edi
movq %r14, %rsi
callq 0x115ef
cmpl $0x1, %eax
je 0x90086
testl %eax, %eax
jne 0x9037b
movl %r15d, %r14d
movq %rbx, %rax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x90067
decl (%rax)
jne 0x90067
movq %r14, %rdi
shlq $0x30, %rdi
orq %rbx, %rdi
leaq 0x8525f(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%r14,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
sete %al
movl %eax, -0x2c(%rbp)
jmp 0x90118
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r14
testl %r15d, %r15d
je 0x900ca
cmpl $0x1, %r15d
jne 0x9037b
movq %rbx, %rdi
callq 0xdaeb
leaq -0x58(%rbp), %rbx
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x903ab
movl %eax, -0x2c(%rbp)
movq (%rbx), %rax
movq %rax, -0x38(%rbp)
jmp 0x900d6
testb $0x1, %dl
jne 0x900e2
movl $0x0, -0x2c(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
jmp 0x90118
movq %r14, %rax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %r14b
setne %sil
orb %cl, %sil
jne 0x90111
decl (%rax)
jne 0x90111
movq %r14, %rdi
movq %rdx, %rsi
callq 0xd4e3
movl $0x0, -0x2c(%rbp)
movq %r13, -0x48(%rbp)
movl -0x90(%rbp), %r13d
movq -0x88(%rbp), %rsi
movq %rsi, %rax
andq %r15, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x90140
incl (%rax)
movl %r13d, %edi
movq %rsi, -0x40(%rbp)
callq 0xf834
movl %eax, %r12d
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rbx
movq %rbx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x9016b
incl (%rax)
movq %rdi, %r14
movq %rbx, %rsi
callq 0xf834
andb %al, %r12b
xorb $0x1, %r12b
andb -0x2c(%rbp), %r12b
cmpb $0x1, %r12b
jne 0x90303
movl %r13d, %edi
movq -0x40(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x115ef
movl %eax, %r12d
movq %rdx, %r13
movl %r14d, %edi
movq %rbx, %rsi
leaq -0x70(%rbp), %rdx
callq 0x115ef
cmpl $0x1, %eax
je 0x9020a
testl %eax, %eax
jne 0x9037b
movl %r12d, %ebx
movq %r13, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x901ee
decl (%rax)
jne 0x901ee
movq %rbx, %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0x850d8(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
sete %al
movl %eax, -0x30(%rbp)
jmp 0x9027c
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %rbx
testl %r12d, %r12d
je 0x9024c
cmpl $0x1, %r12d
jne 0x9037b
movq %r13, %rdi
callq 0xdaeb
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
leaq -0x60(%rbp), %rcx
callq 0x903ab
movl %eax, -0x30(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x9027c
testb $0x1, %dl
je 0x90275
movq %rbx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %bl
setne %sil
orb %cl, %sil
jne 0x90275
decl (%rax)
jne 0x90275
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xd4e3
movl $0x0, -0x30(%rbp)
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
movq %rsi, %rax
andq %r15, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x90299
incl (%rax)
movq %rdi, %r12
movq %rsi, -0x40(%rbp)
callq 0xf834
movl %eax, %r15d
movl -0x70(%rbp), %r14d
movq -0x68(%rbp), %rbx
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x902cf
incl (%rax)
movl -0x2c(%rbp), %r13d
andb -0x30(%rbp), %r13b
movl %r14d, %edi
movq %rbx, %rsi
callq 0xf834
andb %al, %r15b
xorb $0x1, %r15b
movl %r13d, -0x2c(%rbp)
testb %r13b, %r15b
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %r12, %r13
jne 0x9018b
leaq 0x84f6f(%rip), %r12     # 0x115279
movq %rbx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x90333
decl (%rax)
jne 0x90333
shlq $0x30, %r14
orq %rbx, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0xd4e3
movq -0x40(%rbp), %rdx
andq %rdx, %r15
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x9035e
decl (%r15)
jne 0x9035e
shlq $0x30, %r13
orq %rdx, %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0xd4e3
movq -0x48(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movl -0x2c(%rbp), %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x543b9(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x543be(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5