	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pickss
_pickss:                                ## @pickss
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movslq	(%rsi), %r15
	movslq	4(%rsi), %rsi
	cmpl	%esi, %r15d
	jge	LBB0_8
## %bb.1:
	leal	1(%r15), %eax
	movl	%eax, (%r14)
	movq	16(%r14), %r13
	imulq	$56, %r15, %rbx
	leaq	(%rbx,%r13), %r12
	movq	%r15, %rdi
	callq	_FDEBUG
	movslq	8(%r14), %rax
	imulq	%r15, %rax
	shlq	$2, %rax
	addq	48(%r14), %rax
	movq	%rax, 48(%r13,%rbx)
	movl	$0, (%r13,%rbx)
	movq	$0, 40(%r13,%rbx)
	movq	_WHITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13,%rbx)
	movl	12(%r14), %eax
	movl	%eax, %ecx
	imull	%r15d, %ecx
	movslq	%ecx, %rcx
	shlq	$3, %rcx
	movq	40(%r14), %rdx
	addq	%rcx, %rdx
	movq	%rdx, 24(%r13,%rbx)
	addq	32(%r14), %rcx
	movq	%rcx, 16(%r13,%rbx)
	testl	%eax, %eax
	jle	LBB0_23
## %bb.2:
	leaq	(%rbx,%r13), %rcx
	addq	$16, %rcx
	movq	$0, (%rdx)
	movq	(%rcx), %rdx
	movq	$0, (%rdx)
	cmpl	$1, %eax
	je	LBB0_23
## %bb.3:
	leaq	(%rbx,%r13), %rdx
	addq	$24, %rdx
	movl	%eax, %edi
	decq	%rax
	movl	$1, %esi
	cmpl	$2, %edi
	je	LBB0_6
## %bb.4:
	movq	%rax, %rdi
	andq	$-2, %rdi
	negq	%rdi
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rbx
	movq	$0, (%rbx,%rsi,8)
	movq	(%rcx), %rbx
	movq	$0, (%rbx,%rsi,8)
	movq	(%rdx), %rbx
	movq	$0, 8(%rbx,%rsi,8)
	movq	(%rcx), %rbx
	movq	$0, 8(%rbx,%rsi,8)
	leaq	(%rdi,%rsi), %rbx
	addq	$2, %rbx
	addq	$2, %rsi
	cmpq	$1, %rbx
	jne	LBB0_5
LBB0_6:
	testb	$1, %al
	je	LBB0_23
## %bb.7:
	movq	(%rdx), %rax
	movq	$0, (%rax,%rsi,8)
	movq	(%rcx), %rax
	movq	$0, (%rax,%rsi,8)
	jmp	LBB0_23
LBB0_8:
	movq	%rdx, %rax
	subq	%rcx, %rax
	sarq	$2, %rax
	leal	(%rsi,%rsi), %edi
	movslq	%edi, %rdi
	imulq	$1431655766, %rdi, %rdi         ## imm = 0x55555556
	movq	%rdi, %rbx
	shrq	$63, %rbx
	shrq	$32, %rdi
	addl	%ebx, %edi
	movslq	%edi, %rdi
	leaq	(,%rdi,4), %rbx
	subq	%rbx, %rdx
	cmpq	%rdi, %rax
	cmovleq	%rcx, %rdx
	movq	16(%r14), %rbx
	movq	24(%r14), %rax
	imulq	$56, %rsi, %rcx
	addq	%rbx, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_15
## %bb.9:
	movq	_LOCKED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	%rax, %rsi
	subq	%rbx, %rsi
	movq	%rax, %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%r8d, (%r12)
	je	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$56, %r12
	addq	$56, %rsi
	cmpq	%rcx, %r12
	jae	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rdx, %rdi
	jae	LBB0_14
	jmp	LBB0_12
LBB0_15:
	cmpq	%rax, %rbx
	jae	LBB0_22
## %bb.16:
	movq	_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ecx, %ecx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	testl	%esi, (%rbx)
	je	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$56, %rbx
	addq	$56, %rcx
	cmpq	%rax, %rbx
	jae	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rdx, %rdi
	jae	LBB0_21
	jmp	LBB0_19
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	callq	_FDEBUG
	movq	_REG_ASSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_13:
	leaq	56(%r12), %rax
	movq	%rax, 24(%r14)
	shrq	$3, %rsi
	imull	$-1227133513, %esi, %eax        ## imm = 0xB6DB6DB7
	movslq	%eax, %rdi
	callq	_FDEBUG
	jmp	LBB0_23
LBB0_20:
	leaq	56(%rbx), %rax
	movq	%rax, 24(%r14)
	shrq	$3, %rcx
	imull	$-1227133513, %ecx, %eax        ## imm = 0xB6DB6DB7
	movslq	%eax, %rdi
	callq	_FDEBUG
	movq	%rbx, %r12
LBB0_23:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WHITE,4,2                      ## @WHITE
	.comm	_LOCKED,4,2                     ## @LOCKED
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"cannot find victim to replace!\n"

	.comm	_REG_ASSERT,4,2                 ## @REG_ASSERT
	.no_dead_strip	_pickss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pickss
_pickss:                                ; @pickss
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldpsw	x21, x11, [x1]
	cmp	w21, w11
	b.ge	LBB0_5
; %bb.1:
	add	w8, w21, #1
	str	w8, [x19]
	ldr	x8, [x19, #16]
	mov	w9, #56
	madd	x20, x21, x9, x8
	mov	x0, x21
	bl	_FDEBUG
	ldr	x9, [x19, #48]
	ldp	w10, w8, [x19, #8]
	mul	w10, w10, w21
	add	x10, x9, w10, sxtw #2
Lloh0:
	adrp	x9, _WHITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WHITE@GOTPAGEOFF]
	str	wzr, [x20]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x20, #32]
	mul	w9, w8, w21
	sbfiz	x12, x9, #3, #32
	ldp	x13, x9, [x19, #32]
	add	x11, x9, x12
	mov	x9, x20
	str	x11, [x9, #24]!
	stp	xzr, x10, [x20, #40]
	add	x12, x13, x12
	mov	x10, x20
	str	x12, [x10, #16]!
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.2:
	str	xzr, [x11]
	ldr	x11, [x10]
	str	xzr, [x11]
	cmp	w8, #1
	b.eq	LBB0_19
; %bb.3:
	mov	w11, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	lsl	x13, x11, #3
	str	xzr, [x12, x13]
	ldr	x12, [x10]
	str	xzr, [x12, x13]
	add	x11, x11, #1
	cmp	x8, x11
	b.ne	LBB0_4
	b	LBB0_19
LBB0_5:
	sub	x8, x2, x3
	lsl	w9, w11, #1
	mov	w10, #21846
	movk	w10, #21845, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	sxtw	x10, w9
	sub	x9, x2, w9, sxtw #2
	cmp	x10, x8, asr #2
	csel	x8, x9, x3, lt
	ldp	x9, x10, [x19, #16]
	mov	w12, #56
	madd	x11, x11, x12, x9
	cmp	x10, x11
	b.hs	LBB0_11
; %bb.6:
Lloh3:
	adrp	x12, _LOCKED@GOTPAGE
Lloh4:
	ldr	x12, [x12, _LOCKED@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x12]
	sub	x12, x10, x9
	mov	x20, x10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #56
	add	x12, x12, #56
	cmp	x20, x11
	b.hs	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x20, #8]
	cmp	x14, #0
	ccmp	x14, x8, #0, ne
	b.hs	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w14, [x20]
	tst	w13, w14
	b.ne	LBB0_7
; %bb.10:
	add	x8, x20, #56
	str	x8, [x19, #24]
	lsr	x8, x12, #3
	b	LBB0_17
LBB0_11:
	cmp	x9, x10
	b.hs	LBB0_18
; %bb.12:
	mov	x11, #0
Lloh6:
	adrp	x12, _LOCKED@GOTPAGE
Lloh7:
	ldr	x12, [x12, _LOCKED@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x11, x11, #56
	add	x13, x9, x11
	cmp	x13, x10
	b.hs	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x9, x11
	ldr	x13, [x13, #8]
	cmp	x13, #0
	ccmp	x13, x8, #0, ne
	b.hs	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w13, [x9, x11]
	tst	w12, w13
	b.ne	LBB0_13
; %bb.16:
	add	x20, x9, x11
	add	x8, x20, #56
	str	x8, [x19, #24]
	lsr	x8, x11, #3
LBB0_17:
	mov	w9, #28087
	movk	w9, #46811, lsl #16
	mul	w8, w8, w9
	sxtw	x0, w8
	bl	_FDEBUG
	b	LBB0_19
LBB0_18:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FDEBUG
Lloh11:
	adrp	x8, _REG_ASSERT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_ASSERT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_ERR
	mov	x20, #0
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WHITE,4,2                      ; @WHITE
	.comm	_LOCKED,4,2                     ; @LOCKED
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"cannot find victim to replace!\n"

	.comm	_REG_ASSERT,4,2                 ; @REG_ASSERT
	.no_dead_strip	_pickss
.subsections_via_symbols
