// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_unique_sp1
static struct std_list_List_1 mw_std_list_List_1_unique_sp1 (struct std_list_List_1 in_List_1) {
	struct std_list_List_1 v3 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v4;
	mw_std_list_List_1_buildzx(v3, &v4);
	bool v5 = true;
	struct std_list_List_1 r6 = v4;
	struct std_list_List_1 v7 = in_List_1;
	bool v8 = v5;
	bool v9 = v5;
	while (v9) {
		struct std_list_List_1 r10 = r6;
		struct std_list_List_1 v11 = v7;
		bool v12 = v8;
		struct std_list_List_1 branch_zaLister_13;
		struct std_list_List_1 branch_List_14;
		bool branch_Bool_15;
		switch ((v11).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v16;
				VAL v17 = mtp_std_list_List_1_Cons(v11, &v16);
				incref(v17);
				incref(MK_std_list_List_1(r10));
				struct std_maybe_Maybe_1 v18 = { .tag=std_maybe_Maybe_1_None };
				bool v19 = true;
				struct std_list_List_1 r20 = r10;
				VAL v21 = v17;
				VAL v22 = v17;
				struct std_maybe_Maybe_1 v23 = v18;
				struct std_list_List_1 v24 = r10;
				bool v25 = v19;
				bool v26 = v19;
				while (v26) {
					struct std_list_List_1 r27 = r20;
					VAL v28 = v21;
					VAL v29 = v22;
					struct std_maybe_Maybe_1 v30 = v23;
					struct std_list_List_1 v31 = v24;
					bool v32 = v25;
					struct std_list_List_1 v33;
					struct std_maybe_Maybe_1 v34 = mw_std_list_List_1_uncons(v31, &v33);
					VAL branch_zux1_35;
					VAL branch_zux2_36;
					uint64_t branch_Label_37;
					struct std_maybe_Maybe_1 branch_Maybe_38;
					struct std_list_List_1 branch_List_39;
					bool branch_Bool_40;
					switch ((v34).tag) {
						case std_maybe_Maybe_1_Some: {
							VAL v41 = mtp_std_maybe_Maybe_1_Some(v34);
							incref(v41);
							incref(v29);
							uint64_t v42 = V_mirth_label_Label(v41);
							uint64_t v43 = V_mirth_label_Label(v29);
							bool v44 = (v42 == v43);
							VAL branch_zux1_45;
							VAL branch_zux2_46;
							uint64_t branch_Label_47;
							struct std_maybe_Maybe_1 branch_Maybe_48;
							if (v44) {
								struct std_maybe_Maybe_1 v49 = mtw_std_maybe_Maybe_1_Some(v41);
								branch_Maybe_48 = v49;
								branch_Label_47 = V_mirth_label_Label(v29);
								branch_zux2_46 = v28;
								branch_zux1_45 = MK_std_list_List_1(r27);
							} else {
								decref(v41);
								struct std_maybe_Maybe_1 v50 = { .tag=std_maybe_Maybe_1_None };
								branch_Maybe_48 = v50;
								branch_Label_47 = V_mirth_label_Label(v29);
								branch_zux2_46 = v28;
								branch_zux1_45 = MK_std_list_List_1(r27);
							}
							VAL branch_zux1_51;
							VAL branch_zux2_52;
							uint64_t branch_Label_53;
							struct std_maybe_Maybe_1 branch_Maybe_54;
							struct std_list_List_1 branch_List_55;
							switch ((branch_Maybe_48).tag) {
								case std_maybe_Maybe_1_None: {
									branch_List_55 = v33;
									branch_Maybe_54 = v30;
									branch_Label_53 = branch_Label_47;
									branch_zux2_52 = branch_zux2_46;
									branch_zux1_51 = branch_zux1_45;
								} break;
								default: {
									decref(MK_std_list_List_1(v33));
									decref(MK_std_maybe_Maybe_1(v30));
									struct std_list_List_1 v56 = { .tag=std_list_List_1_Nil };
									branch_List_55 = v56;
									branch_Maybe_54 = branch_Maybe_48;
									branch_Label_53 = branch_Label_47;
									branch_zux2_52 = branch_zux2_46;
									branch_zux1_51 = branch_zux1_45;
								} break;
							}
							bool v57 = true;
							branch_Bool_40 = v57;
							branch_List_39 = branch_List_55;
							branch_Maybe_38 = branch_Maybe_54;
							branch_Label_37 = branch_Label_53;
							branch_zux2_36 = branch_zux2_52;
							branch_zux1_35 = branch_zux1_51;
						} break;
						case std_maybe_Maybe_1_None: {
							bool v58 = false;
							branch_Bool_40 = v58;
							branch_List_39 = v33;
							branch_Maybe_38 = v30;
							branch_Label_37 = V_mirth_label_Label(v29);
							branch_zux2_36 = v28;
							branch_zux1_35 = MK_std_list_List_1(r27);
						} break;
						default: {
							do_panic(str_make("unexpected fallthrough in match\n", 32));
						}
					}
					v26 = branch_Bool_40;
					v25 = branch_Bool_40;
					v24 = branch_List_39;
					v23 = branch_Maybe_38;
					v22 = MK_mirth_label_Label(branch_Label_37);
					v21 = branch_zux2_36;
					r20 = V_std_list_List_1(branch_zux1_35);
				}
				decref(MK_std_list_List_1(v24));
				decref(v22);
				int64_t v59 = (v23).tag;
				decref(MK_std_maybe_Maybe_1(v23));
				INT v60 = WRAP_I63(0LL);
				INT v61 = v60;
				INT v62 = i64_to_int(v59);
				bool v63 = int_eq(v62, v61);
				bool v64 = !v63;
				struct std_list_List_1 branch_zaLister_65;
				if (v64) {
					decref(v21);
					branch_zaLister_65 = r20;
				} else {
					struct std_list_List_1 v66;
					mw_std_list_zaLister_1_pushzx(v21, r20, &v66);
					branch_zaLister_65 = v66;
				}
				bool v67 = true;
				branch_Bool_15 = v67;
				branch_List_14 = v16;
				branch_zaLister_13 = branch_zaLister_65;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v68 = { .tag=std_list_List_1_Nil };
				bool v69 = false;
				branch_Bool_15 = v69;
				branch_List_14 = v68;
				branch_zaLister_13 = r10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v9 = branch_Bool_15;
		v8 = branch_Bool_15;
		v7 = branch_List_14;
		r6 = branch_zaLister_13;
	}
	decref(MK_std_list_List_1(v7));
	struct std_list_List_1 v70 = mw_std_list_zaLister_1_donezx(r6);
	return v70;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r15
movl %edi, %r14d
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movl %eax, %ebx
movq %rdx, %r12
testl %r14d, %r14d
je 0x7c4b5
cmpl $0x1, %r14d
jne 0x7c53c
movq %r15, %rdi
leaq -0x80(%rbp), %rsi
callq 0xd450
movq %rax, -0x40(%rbp)
testb $0x1, %dl
je 0x7c21c
movq -0x40(%rbp), %rsi
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %sil
orb %cl, %sil
jne 0x7c21c
incl (%rax)
movq %r12, %rcx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
movq %rcx, -0x38(%rbp)
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x7c244
movq -0x38(%rbp), %rax
incl (%rax)
movq -0x40(%rbp), %rcx
movq %rcx, %rsi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rsi
movq %rsi, -0x70(%rbp)
sete %al
testb $0x3, %cl
setne %cl
orb %al, %cl
movb %cl, -0x29(%rbp)
movq %rdx, -0x68(%rbp)
testb $0x1, %dl
sete %r13b
movq $0x0, -0x50(%rbp)
movq %r12, %r15
movq $0x0, -0x48(%rbp)
movl %ebx, %edi
movq %r12, %rsi
leaq -0x60(%rbp), %rdx
callq 0x115ef
testl %eax, %eax
je 0x7c2fb
cmpl $0x1, %eax
jne 0x7c53c
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r12
testb $0x1, %dl
je 0x7c2d5
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %sil
orb %cl, %sil
jne 0x7c2d5
incl (%rax)
orb -0x29(%rbp), %r13b
testb $0x1, %r13b
jne 0x7c2e5
movq -0x70(%rbp), %rax
incl (%rax)
cmpq -0x40(%rbp), %r12
jne 0x7c30a
movq %r12, %rdi
movq %rdx, %rsi
callq 0x95f6
movq %rdx, %r13
jmp 0x7c341
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %r12
xorl %r14d, %r14d
jmp 0x7c3d8
testb $0x1, %dl
je 0x7c33e
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %sil
orb %cl, %sil
jne 0x7c33e
decl (%rax)
jne 0x7c33e
movq %r12, %rdi
movq %rdx, %rsi
callq 0xd4e3
xorl %r13d, %r13d
movl -0x60(%rbp), %edi
cmpq -0x40(%rbp), %r12
jne 0x7c3d1
movq -0x58(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7c387
decl (%rcx)
jne 0x7c387
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x98ef7(%rip), %rsi     # 0x115279
callq 0xd4e3
movq -0x50(%rbp), %rsi
movq %rsi, %rax
andq %r14, %rax
sete %cl
testb $0x3, %sil
setne %dl
movb $0x1, %r14b
orb %cl, %dl
jne 0x7c3bd
decl (%rax)
jne 0x7c3bd
movq -0x48(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x98f09(%rip), %rsi     # 0x1152c1
callq 0xd4e3
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x48(%rbp)
movq %r13, -0x50(%rbp)
xorl %r12d, %r12d
jmp 0x7c3d8
movb $0x1, %r14b
movq -0x58(%rbp), %r12
shlq $0x30, %rbx
orq %r15, %rbx
shrq $0x30, %rbx
movb $0x1, %r13b
movq -0x38(%rbp), %r15
testb %r14b, %r14b
jne 0x7c28a
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x7c428
decl (%rax)
jne 0x7c428
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x98e56(%rip), %rsi     # 0x115279
callq 0xd4e3
movl -0x48(%rbp), %r14d
movq -0x50(%rbp), %rsi
movq %rsi, %rax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
movq -0x68(%rbp), %r12
jne 0x7c46c
decl (%rax)
jne 0x7c46c
movq %r14, %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x98e5a(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%r14,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
je 0x7c4bc
testb $0x1, %r12b
je 0x7c4af
movq -0x40(%rbp), %rdx
movq %rdx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0x7c4af
decl (%rax)
jne 0x7c4af
movq -0x40(%rbp), %rdi
movq %r12, %rsi
callq 0xd4e3
movq -0x38(%rbp), %r12
jmp 0x7c4d9
xorl %eax, %eax
xorl %r15d, %r15d
jmp 0x7c4e3
movq -0x40(%rbp), %rdi
movq %r12, %rsi
movl %ebx, %edx
movq -0x38(%rbp), %rcx
leaq -0x60(%rbp), %r8
callq 0x9741
movl -0x60(%rbp), %ebx
movq -0x58(%rbp), %r12
movl -0x80(%rbp), %r14d
movq -0x78(%rbp), %r15
movb $0x1, %al
testb %al, %al
jne 0x7c1ce
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r15, %rdx
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x7c520
decl (%rdx)
jne 0x7c520
shlq $0x30, %r14
orq %r15, %r14
leaq 0x98d61(%rip), %rsi     # 0x115279
movq %r14, %rdi
callq 0xd4e3
xorl %edi, %edi
xorl %esi, %esi
movl %ebx, %edx
movq %r12, %rcx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd37c
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x681f8(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x681fd(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5