	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function invalidate_buckets_random
_invalidate_buckets_random:             ## @invalidate_buckets_random
	.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	%rdi, %r12
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_fifo_full
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_random_bytes
	movslq	8(%r12), %rsi
	movslq	12(%r12), %rcx
	subq	%rcx, %rsi
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, %rbx
	movq	%rbx, -48(%rbp)
	shlq	$2, %rbx
	addq	16(%r12), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bch_can_invalidate_bucket
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bch_invalidate_one_bucket
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	8(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %r13
	jae	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_fifo_full
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_10
LBB0_9:
	movl	$1, (%r12)
	movl	4(%r12), %edi
	callq	_wake_up_gc
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_invalidate_buckets_random
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function invalidate_buckets_random
_invalidate_buckets_random:             ; @invalidate_buckets_random
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_fifo_full
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #8
	bl	_get_random_bytes
	ldpsw	x8, x9, [x19, #8]
	sub	x8, x8, x9
	ldr	x10, [sp, #8]
	udiv	x11, x10, x8
	msub	x8, x11, x8, x10
	add	x8, x8, x9
	str	x8, [sp, #8]
	ldr	x9, [x19, #16]
	add	x21, x9, x8, lsl #2
	mov	x0, x19
	mov	x1, x21
	bl	_bch_can_invalidate_bucket
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_bch_invalidate_one_bucket
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x22, w8, sxtw
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_fifo_full
	cbz	w0, LBB0_2
	b	LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	bl	_wake_up_gc
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_invalidate_buckets_random
.subsections_via_symbols
