	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zone_reclaim
_zone_reclaim:                          ## @zone_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ZONE_LOCK
	movl	(%rbx), %eax
	movq	_UMA_ZFLAG_RECLAIMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.1:
	movq	_M_NOWAIT@GOTPCREL(%rip), %r14
	movq	_PVM@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%r14)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movl	$1, %r8d
	callq	_msleep
	movl	(%rbx), %eax
	movq	_UMA_ZFLAG_RECLAIMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_2
LBB0_4:
	orl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bucket_cache_reclaim
	movq	%rbx, %rdi
	callq	_ZONE_UNLOCK
	movq	_UMA_ZFLAG_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	callq	_keg_drain
LBB0_6:
	movq	%rbx, %rdi
	callq	_ZONE_LOCK
	movq	_UMA_ZFLAG_RECLAIMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_wakeup
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ZONE_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UMA_ZFLAG_RECLAIMING,4,2       ## @UMA_ZFLAG_RECLAIMING
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_PVM,4,2                        ## @PVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zonedrain"

	.comm	_UMA_ZFLAG_CACHE,4,2            ## @UMA_ZFLAG_CACHE
	.no_dead_strip	_zone_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zone_reclaim
_zone_reclaim:                          ; @zone_reclaim
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ZONE_LOCK
	ldr	w8, [x19]
Lloh0:
	adrp	x23, _UMA_ZFLAG_RECLAIMING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UMA_ZFLAG_RECLAIMING@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh2:
	adrp	x24, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _M_NOWAIT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PVM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PVM@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x19, #8]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, x22
	mov	w4, #1
	bl	_msleep
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_4:
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_bucket_cache_reclaim
	mov	x0, x19
	bl	_ZONE_UNLOCK
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _UMA_ZFLAG_CACHE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UMA_ZFLAG_CACHE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_keg_drain
LBB0_6:
	mov	x0, x19
	bl	_ZONE_LOCK
	ldr	w8, [x23]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_wakeup
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ZONE_UNLOCK
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_UMA_ZFLAG_RECLAIMING,4,2       ; @UMA_ZFLAG_RECLAIMING
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_PVM,4,2                        ; @PVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zonedrain"

	.comm	_UMA_ZFLAG_CACHE,4,2            ; @UMA_ZFLAG_CACHE
	.no_dead_strip	_zone_reclaim
.subsections_via_symbols
