// File: /workspace/github_c_makefile_star2_O2/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 $0x68, %rsp
movq %rcx, %r15
movq %rdx, -0x70(%rbp)
movq %rsi, %r14
movl %edi, %ebx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
xorl %edi, %edi
xorl %esi, %esi
callq 0xcd32
movl %eax, %r12d
movq %r15, %rax
andq %r13, %rax
movq %rax, -0x78(%rbp)
setne %al
movq %r15, -0x68(%rbp)
testb $0x3, %r15b
sete %r15b
andb %al, %r15b
leaq -0x88(%rbp), %r13
movb $0x1, %al
movq %r14, %rdi
testb $0x1, %al
je 0x84c0c
xorl %eax, %eax
movl $0x0, %r14d
testl %ebx, %ebx
je 0x84904
movq %rdx, -0x58(%rbp)
movl %r12d, -0x30(%rbp)
cmpl $0x1, %ebx
jne 0x84c90
movq %r13, %rsi
callq 0xce01
movq %rax, %r12
movq %rdx, %rbx
testb $0x1, %bl
je 0x84961
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %sil
orb %cl, %sil
jne 0x84961
incl (%rax)
movb %r15b, -0x29(%rbp)
testb %r15b, %r15b
movq -0x78(%rbp), %rax
je 0x84970
incl (%rax)
movq %r12, %rcx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
movq %rcx, -0x40(%rbp)
sete %al
testb $0x3, %r12b
setne %r13b
orb %al, %r13b
movq $0x0, -0x38(%rbp)
movb $0x1, %r15b
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
xorl %r14d, %r14d
movq %rbx, -0x60(%rbp)
testb $0x1, %r15b
je 0x84ae8
leaq -0x50(%rbp), %rdx
callq 0x1075d
testl %eax, %eax
je 0x84a9d
cmpl $0x1, %eax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
jne 0x84c90
movq %rdx, %rdi
callq 0xd491
testb $0x1, %dl
je 0x849fe
movq %rax, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x849fe
incl (%rcx)
testb $0x1, %bl
sete %cl
orb %r13b, %cl
testb $0x1, %cl
jne 0x84a12
movq -0x40(%rbp), %rcx
incl (%rcx)
cmpq %r12, %rax
jne 0x84aa9
movq %r12, %rdi
movq %rdx, %rsi
callq 0x8d0c
movq %rdx, %rbx
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r15, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x84a5b
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x84a5b
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x83823(%rip), %rsi     # 0x108279
callq 0xce94
movq %r14, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r14b
setne %dl
movb $0x1, %r15b
orb %cl, %dl
jne 0x84a8d
decl (%rax)
jne 0x84a8d
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %r14, %rdi
leaq 0x83839(%rip), %rsi     # 0x1082c1
callq 0xce94
xorl %edi, %edi
pushq $0x1
popq %rax
movq %rax, -0x38(%rbp)
movq %rbx, %r14
xorl %esi, %esi
jmp 0x84adc
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
xorl %r15d, %r15d
jmp 0x84adc
testb $0x1, %dl
je 0x84ad2
movq %rax, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x84ad2
decl (%rcx)
jne 0x84ad2
movq %rax, %rdi
movq %rdx, %rsi
callq 0xce94
movl -0x50(%rbp), %edi
movb $0x1, %r15b
movq -0x48(%rbp), %rsi
leaq 0x83fbd(%rip), %rbx     # 0x108aa0
jmp 0x849ac
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
movb -0x29(%rbp), %r15b
jne 0x84b21
decl (%rax)
jne 0x84b21
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x8375d(%rip), %rsi     # 0x108279
callq 0xce94
testb $0x1, %bl
leaq -0x88(%rbp), %r13
je 0x84b53
cmpq $0x0, -0x40(%rbp)
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x84b53
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x84b53
movq %r12, %rdi
movq %rbx, %rsi
callq 0xce94
movl -0x38(%rbp), %ebx
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x84b8e
decl (%rax)
jne 0x84b8e
movq %rbx, %rdi
shlq $0x30, %rdi
orq %r14, %rdi
leaq 0x83738(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %rbx, %rdi
callq 0xd86d
movq %rax, %rdi
pushq $0x1
popq %rsi
callq 0xd759
testb %al, %al
je 0x84bc6
movq %r12, %rdi
movq -0x60(%rbp), %rsi
movl -0x30(%rbp), %edx
movq -0x58(%rbp), %rcx
leaq -0x50(%rbp), %r8
callq 0x8e35
movl -0x50(%rbp), %r12d
movq -0x48(%rbp), %rdx
jmp 0x84bfd
movq -0x60(%rbp), %rsi
testb $0x1, %sil
movq -0x58(%rbp), %rdx
je 0x84bf9
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x84bf9
decl (%rdi)
jne 0x84bf9
movq %r12, %rdi
callq 0xce94
movq -0x58(%rbp), %rdx
movl -0x30(%rbp), %r12d
movl -0x88(%rbp), %ebx
movq -0x80(%rbp), %r14
jmp 0x84902
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rsi
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x84c47
decl (%rsi)
jne 0x84c47
shlq $0x30, %rbx
orq %rdi, %rbx
movq %rbx, %rdi
leaq 0x8363d(%rip), %rsi     # 0x108279
movq %rdx, %rbx
callq 0xce94
movq %rbx, %rdx
movl %r12d, %edi
movq %rdx, %rsi
callq 0xcd32
movl %eax, %ebx
movq %rdx, %r14
testb %r15b, %r15b
je 0x84c7c
movq -0x78(%rbp), %rax
decl (%rax)
jne 0x84c7c
movq -0x70(%rbp), %rdi
shlq $0x30, %rdi
orq -0x68(%rbp), %rdi
leaq 0x83602(%rip), %rsi     # 0x108279
callq 0xce94
movl %ebx, %eax
movq %r14, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4fb76(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6