// File: /workspace/github_c_makefile_star2_O3/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, %r14
movl %edi, %r12d
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd01b
movl %eax, %ebx
movq %rdx, %r15
cmpl $0x1, %r12d
jne 0x7a5cb
movq %r14, %rdi
leaq -0x78(%rbp), %rsi
callq 0xd0aa
movq %rax, %rdi
testb $0x1, %dl
sete %r14b
je 0x7a326
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %sil
orb %cl, %sil
jne 0x7a326
incl (%rax)
movq %r15, %rcx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
movq %rcx, -0x38(%rbp)
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x7a34e
movq -0x38(%rbp), %rax
incl (%rax)
movq %rdx, -0x60(%rbp)
movq %rdi, %rcx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
movq %rcx, -0x68(%rbp)
sete %al
movq %rdi, -0x58(%rbp)
testb $0x3, %dil
setne %cl
orb %al, %cl
movb %cl, -0x29(%rbp)
xorl %r12d, %r12d
movq %r15, %r13
movq $0x0, -0x40(%rbp)
movl %ebx, %edi
movq %r15, %rsi
leaq -0x50(%rbp), %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x7a4cd
movq %rdx, %rdi
callq 0xd745
testb $0x1, %dl
je 0x7a3cc
movq %rax, %rcx
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x7a3cc
incl (%rcx)
orb -0x29(%rbp), %r14b
testb $0x1, %r14b
jne 0x7a3dc
movq -0x68(%rbp), %rcx
incl (%rcx)
movq -0x58(%rbp), %rdi
cmpq %rdi, %rax
jne 0x7a47c
movq %rdx, %rsi
callq 0x9353
movq %rdx, %r15
movq -0x48(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7a430
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x7a430
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x96e4e(%rip), %rsi     # 0x111279
callq 0xd13d
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x7a469
decl (%rax)
jne 0x7a469
movq -0x40(%rbp), %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x96e5d(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x40(%rbp)
movq %r15, %r12
xorl %r15d, %r15d
jmp 0x7a4b6
testb $0x1, %dl
je 0x7a4af
movq %rax, %rcx
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x7a4af
decl (%rcx)
jne 0x7a4af
movq %rax, %rdi
movq %rdx, %rsi
callq 0xd13d
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %r15
shlq $0x30, %rbx
orq %r13, %rbx
shrq $0x30, %rbx
movb $0x1, %r14b
movq -0x38(%rbp), %r13
jmp 0x7a389
testl %eax, %eax
jne 0x7a5ec
movq -0x48(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7a511
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x7a511
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x96d6d(%rip), %rsi     # 0x111279
callq 0xd13d
movl -0x40(%rbp), %r14d
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x7a54d
decl (%rax)
jne 0x7a54d
movq %r14, %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x96d79(%rip), %rsi     # 0x1112c1
callq 0xd13d
shlq $0x30, %rbx
orq %r13, %rbx
shrq $0x30, %rbx
leaq 0x1(,%r14,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
je 0x7a5a0
movq -0x60(%rbp), %rsi
testb $0x1, %sil
movq -0x58(%rbp), %rdi
je 0x7a59a
movq -0x68(%rbp), %rdx
testq %rdx, %rdx
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x7a59a
decl (%rdx)
jne 0x7a59a
callq 0xd13d
movq -0x38(%rbp), %r15
jmp 0x7a5be
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movl %ebx, %edx
movq -0x38(%rbp), %rcx
leaq -0x50(%rbp), %r8
callq 0x949e
movl -0x50(%rbp), %ebx
movq -0x48(%rbp), %r15
movl -0x78(%rbp), %r12d
movq -0x70(%rbp), %r14
jmp 0x7a2e2
testl %r12d, %r12d
jne 0x7a5ec
xorl %edi, %edi
xorl %esi, %esi
movl %ebx, %edx
movq %r15, %rcx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd01b
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x660c8(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x660cd(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302