// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_difference_sp1
static struct std_list_List_1 mw_std_list_List_1_difference_sp1 (struct std_list_List_1 in_List_1, struct std_list_List_1 in_List_2) {
	struct std_list_List_1 v4 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v5;
	mw_std_list_List_1_buildzx(v4, &v5);
	bool v6 = true;
	struct std_list_List_1 v7 = in_List_2;
	struct std_list_List_1 r8 = v5;
	struct std_list_List_1 v9 = in_List_1;
	bool v10 = v6;
	bool v11 = v6;
	while (v11) {
		struct std_list_List_1 v12 = v7;
		struct std_list_List_1 r13 = r8;
		struct std_list_List_1 v14 = v9;
		bool v15 = v10;
		struct std_list_List_1 branch_List_16;
		struct std_list_List_1 branch_zaLister_17;
		struct std_list_List_1 branch_List_18;
		bool branch_Bool_19;
		switch ((v14).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v20;
				VAL v21 = mtp_std_list_List_1_Cons(v14, &v20);
				incref(v21);
				incref(MK_std_list_List_1(v12));
				struct std_maybe_Maybe_1 v22 = { .tag=std_maybe_Maybe_1_None };
				bool v23 = true;
				VAL v24 = v21;
				struct std_maybe_Maybe_1 v25 = v22;
				struct std_list_List_1 v26 = v12;
				bool v27 = v23;
				bool v28 = v23;
				while (v28) {
					VAL v29 = v24;
					struct std_maybe_Maybe_1 v30 = v25;
					struct std_list_List_1 v31 = v26;
					bool v32 = v27;
					struct std_list_List_1 v33;
					struct std_maybe_Maybe_1 v34 = mw_std_list_List_1_uncons(v31, &v33);
					uint64_t branch_Var_35;
					struct std_maybe_Maybe_1 branch_Maybe_36;
					struct std_list_List_1 branch_List_37;
					bool branch_Bool_38;
					switch ((v34).tag) {
						case std_maybe_Maybe_1_Some: {
							VAL v39 = mtp_std_maybe_Maybe_1_Some(v34);
							incref(v39);
							incref(v29);
							uint64_t v40 = V_mirth_var_Var(v39);
							uint64_t v41 = V_mirth_var_Var(v29);
							bool v42 = (v40 == v41);
							uint64_t branch_Var_43;
							struct std_maybe_Maybe_1 branch_Maybe_44;
							if (v42) {
								struct std_maybe_Maybe_1 v45 = mtw_std_maybe_Maybe_1_Some(v39);
								branch_Maybe_44 = v45;
								branch_Var_43 = V_mirth_var_Var(v29);
							} else {
								decref(v39);
								struct std_maybe_Maybe_1 v46 = { .tag=std_maybe_Maybe_1_None };
								branch_Maybe_44 = v46;
								branch_Var_43 = V_mirth_var_Var(v29);
							}
							uint64_t branch_Var_47;
							struct std_maybe_Maybe_1 branch_Maybe_48;
							struct std_list_List_1 branch_List_49;
							switch ((branch_Maybe_44).tag) {
								case std_maybe_Maybe_1_None: {
									branch_List_49 = v33;
									branch_Maybe_48 = v30;
									branch_Var_47 = branch_Var_43;
								} break;
								default: {
									decref(MK_std_list_List_1(v33));
									decref(MK_std_maybe_Maybe_1(v30));
									struct std_list_List_1 v50 = { .tag=std_list_List_1_Nil };
									branch_List_49 = v50;
									branch_Maybe_48 = branch_Maybe_44;
									branch_Var_47 = branch_Var_43;
								} break;
							}
							bool v51 = true;
							branch_Bool_38 = v51;
							branch_List_37 = branch_List_49;
							branch_Maybe_36 = branch_Maybe_48;
							branch_Var_35 = branch_Var_47;
						} break;
						case std_maybe_Maybe_1_None: {
							bool v52 = false;
							branch_Bool_38 = v52;
							branch_List_37 = v33;
							branch_Maybe_36 = v30;
							branch_Var_35 = V_mirth_var_Var(v29);
						} break;
						default: {
							do_panic(str_make("unexpected fallthrough in match\n", 32));
						}
					}
					v28 = branch_Bool_38;
					v27 = branch_Bool_38;
					v26 = branch_List_37;
					v25 = branch_Maybe_36;
					v24 = MK_mirth_var_Var(branch_Var_35);
				}
				decref(MK_std_list_List_1(v26));
				decref(v24);
				int64_t v53 = (v25).tag;
				decref(MK_std_maybe_Maybe_1(v25));
				INT v54 = WRAP_I63(0LL);
				INT v55 = v54;
				INT v56 = i64_to_int(v53);
				bool v57 = int_eq(v56, v55);
				bool v58 = !v57;
				bool v59 = !v58;
				struct std_list_List_1 branch_List_60;
				struct std_list_List_1 branch_zaLister_61;
				if (v59) {
					struct std_list_List_1 v62;
					mw_std_list_zaLister_1_pushzx(v21, r13, &v62);
					branch_zaLister_61 = v62;
					branch_List_60 = v12;
				} else {
					decref(v21);
					branch_zaLister_61 = r13;
					branch_List_60 = v12;
				}
				bool v63 = true;
				branch_Bool_19 = v63;
				branch_List_18 = v20;
				branch_zaLister_17 = branch_zaLister_61;
				branch_List_16 = branch_List_60;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v64 = { .tag=std_list_List_1_Nil };
				bool v65 = false;
				branch_Bool_19 = v65;
				branch_List_18 = v64;
				branch_zaLister_17 = r13;
				branch_List_16 = v12;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v11 = branch_Bool_19;
		v10 = branch_Bool_19;
		v9 = branch_List_18;
		r8 = branch_zaLister_17;
		v7 = branch_List_16;
	}
	decref(MK_std_list_List_1(v9));
	struct std_list_List_1 v66 = mw_std_list_zaLister_1_donezx(r8);
	decref(MK_std_list_List_1(v7));
	return v66;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %rbx
movq %rdx, -0x60(%rbp)
movq %rsi, %r15
movl %edi, %r14d
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd01b
movl %eax, -0x30(%rbp)
movq %rdx, -0x48(%rbp)
movq %rbx, %rax
andq %r12, %rax
movq %rax, -0x50(%rbp)
setne %al
movq %rbx, -0x58(%rbp)
testb $0x3, %bl
sete %cl
andb %al, %cl
movb %cl, -0x29(%rbp)
cmpl $0x1, %r14d
jne 0x8c10a
movq %r15, %rdi
leaq -0x80(%rbp), %rsi
callq 0xd0aa
movq %rax, %r14
testb $0x1, %dl
sete %r12b
je 0x8bead
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %sil
orb %cl, %sil
jne 0x8bead
incl (%rax)
movq %rdx, -0x68(%rbp)
cmpb $0x0, -0x29(%rbp)
je 0x8bebd
movq -0x50(%rbp), %rax
incl (%rax)
movq %r14, %rcx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
movq %rcx, -0x70(%rbp)
sete %al
testb $0x3, %r14b
setne %bl
orb %al, %bl
xorl %r13d, %r13d
xorl %r15d, %r15d
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x8c016
movq %rdx, %rdi
callq 0xd745
testb $0x1, %dl
je 0x8bf2b
movq %rax, %rcx
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x8bf2b
incl (%rcx)
orb %bl, %r12b
testb $0x1, %r12b
jne 0x8bf3a
movq -0x70(%rbp), %rcx
incl (%rcx)
cmpq %r14, %rax
jne 0x8bfd4
movq %r14, %rdi
movq %rdx, %rsi
callq 0x9353
movq %rdx, %r12
movq -0x38(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x8bf8d
movl -0x40(%rbp), %edi
decl (%rcx)
jne 0x8bf8d
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x852f1(%rip), %rsi     # 0x111279
callq 0xd13d
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x8bfc5
decl (%rax)
jne 0x8bfc5
shlq $0x30, %r15
orq %r13, %r15
movq %r15, %rdi
leaq 0x85301(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %edi, %edi
movl $0x1, %r15d
movq %r12, %r13
xorl %esi, %esi
jmp 0x8c00e
testb $0x1, %dl
je 0x8c007
movq %rax, %rcx
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x8c007
decl (%rcx)
jne 0x8c007
movq %rax, %rdi
movq %rdx, %rsi
callq 0xd13d
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
movb $0x1, %r12b
jmp 0x8beeb
testl %eax, %eax
jne 0x8c15e
movq -0x38(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x8c05a
movl -0x40(%rbp), %edi
decl (%rcx)
jne 0x8c05a
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x85224(%rip), %rsi     # 0x111279
callq 0xd13d
movl %r15d, %ebx
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x8c095
decl (%rax)
jne 0x8c095
movq %rbx, %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0x85231(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
je 0x8c0d8
movq -0x68(%rbp), %rsi
testb $0x1, %sil
je 0x8c0fd
movq -0x70(%rbp), %rdx
testq %rdx, %rdx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x8c0fd
decl (%rdx)
jne 0x8c0fd
movq %r14, %rdi
callq 0xd13d
jmp 0x8c0fd
movq %r14, %rdi
movq -0x68(%rbp), %rsi
movl -0x30(%rbp), %edx
movq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0x949e
movl -0x40(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x80(%rbp), %r14d
movq -0x78(%rbp), %r15
jmp 0x8be69
testl %r14d, %r14d
jne 0x8c15e
xorl %edi, %edi
xorl %esi, %esi
movl -0x30(%rbp), %edx
movq -0x48(%rbp), %rcx
callq 0xd01b
movl %eax, %ebx
movq %rdx, %r14
cmpb $0x0, -0x29(%rbp)
je 0x8c14a
movq -0x50(%rbp), %rax
decl (%rax)
jne 0x8c14a
movq -0x60(%rbp), %rdi
shlq $0x30, %rdi
orq -0x58(%rbp), %rdi
leaq 0x85134(%rip), %rsi     # 0x111279
callq 0xd13d
movl %ebx, %eax
movq %r14, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x54556(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x5455b(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302