	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bucket_cache_reclaim
_bucket_cache_reclaim:                  ## @bucket_cache_reclaim
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_vm_ndomains@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.1:
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_vm_ndomains@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	16(%r12), %r14
	movq	%rcx, %rbx
	shlq	$5, %rbx
	leaq	(%r14,%rbx), %r15
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%r14,%rbx), %edi
	movq	(%r15), %rsi
	subq	8(%r14,%rbx), %rsi
	callq	_lmax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, (%r15)
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %r13
	addq	$24, %r13
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_uma_bucketlist@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TAILQ_LAST
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %rbx
	movq	(%rax), %r14
	movq	_ub_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	subq	%r14, (%r15)
	movq	-8(%r13), %rdi
	movq	%r14, %rsi
	callq	_lmin
	subq	%rax, -8(%r13)
	movq	-16(%r13), %rdi
	movq	%r14, %rsi
	callq	_lmin
	subq	%rax, -16(%r13)
	movq	%r12, %rdi
	callq	_ZONE_UNLOCK
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bucket_drain
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_bucket_free
	movq	%r12, %rdi
	callq	_ZONE_LOCK
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r15)
	jg	LBB0_7
	jmp	LBB0_9
LBB0_10:
	movq	(%r12), %rax
	cmpq	8(%r12), %rax
	jle	LBB0_12
## %bb.11:
	decq	%rax
	movq	%rax, (%r12)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_ndomains,4,2                ## @vm_ndomains
	.comm	_uma_bucketlist,4,2             ## @uma_bucketlist
	.comm	_ub_link,4,2                    ## @ub_link
	.no_dead_strip	_bucket_cache_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bucket_cache_reclaim
_bucket_cache_reclaim:                  ; @bucket_cache_reclaim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, _vm_ndomains@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vm_ndomains@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x26, #0
Lloh3:
	adrp	x27, _uma_bucketlist@GOTPAGE
Lloh4:
	ldr	x27, [x27, _uma_bucketlist@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
Lloh5:
	adrp	x8, _vm_ndomains@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vm_ndomains@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	cmp	x26, x8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x20, [x19, #16]
	add	x25, x20, x26, lsl #5
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25, #28]
	ldp	x8, x9, [x25]
	sub	x1, x8, x9
	bl	_lmax
	mov	x21, x0
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	cmp	x8, x21
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x25, #24
	add	x8, x20, x26, lsl #5
	add	x20, x8, #16
	add	x28, x8, #8
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x27]
	mov	x0, x22
	bl	_TAILQ_LAST
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x23, x0
	ldr	x24, [x0]
Lloh8:
	adrp	x8, _ub_link@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ub_link@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_TAILQ_REMOVE
	ldr	x8, [x25]
	sub	x8, x8, x24
	str	x8, [x25]
	ldr	x0, [x20]
	mov	x1, x24
	bl	_lmin
	ldr	x8, [x20]
	sub	x8, x8, x0
	str	x8, [x20]
	ldr	x0, [x28]
	mov	x1, x24
	bl	_lmin
	ldr	x8, [x28]
	sub	x8, x8, x0
	str	x8, [x28]
	mov	x0, x19
	bl	_ZONE_UNLOCK
	mov	x0, x19
	mov	x1, x23
	bl	_bucket_drain
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	bl	_bucket_free
	mov	x0, x19
	bl	_ZONE_LOCK
	ldr	x8, [x25]
	cmp	x8, x21
	b.gt	LBB0_8
	b	LBB0_2
LBB0_10:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.le	LBB0_12
; %bb.11:
	sub	x8, x8, #1
	str	x8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_ndomains,4,2                ; @vm_ndomains
	.comm	_uma_bucketlist,4,2             ; @uma_bucketlist
	.comm	_ub_link,4,2                    ; @ub_link
	.no_dead_strip	_bucket_cache_reclaim
.subsections_via_symbols
