	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zone_alloc_item_locked
_zone_alloc_item_locked:                ## @zone_alloc_item_locked
	.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	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_ZONE_LOCK_ASSERT
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	%rcx, %rax
	jge	LBB0_10
LBB0_2:
	incq	%rax
	movq	%rax, 8(%rbx)
LBB0_3:
	movq	%rbx, %rdi
	callq	_ZONE_UNLOCK
	movq	_UMA_ANYDOMAIN@GOTPCREL(%rip), %r14
	cmpl	%r12d, (%r14)
	je	LBB0_6
## %bb.4:
	movl	%r12d, %edi
	callq	_VM_DOMAIN_EMPTY
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %r12d
LBB0_6:
	movl	72(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	*24(%rbx)
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.7:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	-48(%rbp), %rdi
	movl	68(%rbx), %esi
	movl	%r15d, %edx
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_SKIP_FINI@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	%rbx, %rdi
	callq	_zone_log_warning
	movq	%rbx, %rdi
	callq	_zone_maxaction
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.11:
	movq	%rbx, %rdi
	callq	_ZONE_UNLOCK
	jmp	LBB0_19
LBB0_12:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.13:
	movq	-48(%rbp), %rdi
	movl	68(%rbx), %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	_SKIP_DTOR@GOTPCREL(%rip), %rax
LBB0_15:
	movq	-48(%rbp), %rsi
	movq	_SKIP_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_zone_free_item
LBB0_16:
	cmpq	$0, (%rbx)
	jle	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_ZONE_LOCK
	decq	8(%rbx)
	movq	%rbx, %rdi
	callq	_ZONE_UNLOCK
LBB0_18:
	movl	60(%rbx), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	_KTR_UMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	callq	_CTR2
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_23
## %bb.22:
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_uma_zero_item
LBB0_23:
	movl	64(%rbx), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	_KTR_UMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	movl	56(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %r8
	callq	_CTR3
	movq	-48(%rbp), %rax
	jmp	LBB0_20
LBB0_24:
	incl	80(%rbx)
	movq	16(%rbx), %rdx
	incq	%rdx
	movq	%rdx, 16(%rbx)
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	cmpq	%rcx, %rax
	jl	LBB0_28
## %bb.25:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_PVM@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	76(%rbx), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_mtx_sleep
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	cmpq	%rcx, %rax
	jge	LBB0_26
## %bb.27:
	movq	16(%rbx), %rdx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_28:
	leaq	-1(%rdx), %rsi
	movq	%rsi, 16(%rbx)
	cmpq	$2, %rdx
	jl	LBB0_2
## %bb.29:
	leaq	1(%rax), %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_2
## %bb.30:
	movq	%rbx, %rdi
	callq	_wakeup_one
	movq	8(%rbx), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_PVM,4,2                        ## @PVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zonelimit"

	.comm	_UMA_ANYDOMAIN,4,2              ## @UMA_ANYDOMAIN
	.comm	_SKIP_FINI,4,2                  ## @SKIP_FINI
	.comm	_SKIP_CNT,4,2                   ## @SKIP_CNT
	.comm	_SKIP_DTOR,4,2                  ## @SKIP_DTOR
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_KTR_UMA,4,2                    ## @KTR_UMA
L_.str.1:                               ## @.str.1
	.asciz	"zone_alloc_item item %p from %s(%p)"

L_.str.2:                               ## @.str.2
	.asciz	"zone_alloc_item failed from %s(%p)"

	.comm	_trash_dtor,8,3                 ## @trash_dtor
	.no_dead_strip	_zone_alloc_item_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zone_alloc_item_locked
_zone_alloc_item_locked:                ; @zone_alloc_item_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_ZONE_LOCK_ASSERT
	ldr	x9, [x19]
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_9
LBB0_2:
	add	x8, x8, #1
	str	x8, [x19, #8]
LBB0_3:
	mov	x0, x19
	bl	_ZONE_UNLOCK
Lloh0:
	adrp	x23, _UMA_ANYDOMAIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UMA_ANYDOMAIN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w22
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_VM_DOMAIN_EMPTY
	ldr	w8, [x23]
	cmp	x0, #0
	csel	w22, w22, w8, eq
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	w0, [x19, #72]
	add	x1, sp, #8
	mov	w2, #1
	mov	x3, x22
	mov	x4, x21
	blr	x8
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	x0, [sp, #8]
	ldr	w1, [x19, #68]
	mov	x2, x21
	blr	x8
	cbz	x0, LBB0_11
; %bb.8:
Lloh2:
	adrp	x8, _SKIP_FINI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SKIP_FINI@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	bl	_zone_log_warning
	mov	x0, x19
	bl	_zone_maxaction
Lloh4:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_23
; %bb.10:
	mov	x0, x19
	bl	_ZONE_UNLOCK
	b	LBB0_18
LBB0_11:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_20
; %bb.12:
	ldr	x0, [sp, #8]
	ldr	w1, [x19, #68]
	mov	x2, x20
	mov	x3, x21
	blr	x8
	cbz	x0, LBB0_20
; %bb.13:
Lloh7:
	adrp	x8, _SKIP_DTOR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SKIP_DTOR@GOTPAGEOFF]
LBB0_14:
	ldr	x1, [sp, #8]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SKIP_CNT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SKIP_CNT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x2, x20
	bl	_zone_free_item
LBB0_15:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_ZONE_LOCK
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_ZONE_UNLOCK
LBB0_17:
	ldr	w0, [x19, #60]
	mov	w1, #1
	bl	_counter_u64_add
Lloh12:
	adrp	x8, _KTR_UMA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KTR_UMA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x19, #56]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_CTR2
LBB0_18:
	mov	x0, #0
LBB0_19:
	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
	add	sp, sp, #80
	ret
LBB0_20:
Lloh17:
	adrp	x8, _M_ZERO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_ZERO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_22
; %bb.21:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_uma_zero_item
LBB0_22:
	ldr	w0, [x19, #64]
	mov	w1, #1
	bl	_counter_u64_add
Lloh20:
	adrp	x8, _KTR_UMA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KTR_UMA@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x2, [sp, #8]
	ldr	w3, [x19, #56]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x4, x19
	bl	_CTR3
	ldr	x0, [sp, #8]
	b	LBB0_19
LBB0_23:
	ldr	w8, [x19, #80]
	add	w8, w8, #1
	str	w8, [x19, #80]
	ldr	x8, [x19, #16]
	add	x10, x8, #1
	str	x10, [x19, #16]
	ldp	x9, x8, [x19]
	cmp	x8, x9
	b.lt	LBB0_27
; %bb.24:
Lloh25:
	adrp	x24, _PVM@GOTPAGE
Lloh26:
	ldr	x24, [x24, _PVM@GOTPAGEOFF]
Lloh27:
	adrp	x23, l_.str@PAGE
Lloh28:
	add	x23, x23, l_.str@PAGEOFF
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #76]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x3, x23
	mov	w4, #0
	bl	_mtx_sleep
	ldp	x9, x8, [x19]
	cmp	x8, x9
	b.ge	LBB0_25
; %bb.26:
	ldr	x10, [x19, #16]
LBB0_27:
	sub	x11, x10, #1
	str	x11, [x19, #16]
	add	x11, x8, #1
	cmp	x10, #2
	ccmp	x11, x9, #0, ge
	b.ge	LBB0_2
; %bb.28:
	mov	x0, x19
	bl	_wakeup_one
	ldr	x8, [x19, #8]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_PVM,4,2                        ; @PVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zonelimit"

	.comm	_UMA_ANYDOMAIN,4,2              ; @UMA_ANYDOMAIN
	.comm	_SKIP_FINI,4,2                  ; @SKIP_FINI
	.comm	_SKIP_CNT,4,2                   ; @SKIP_CNT
	.comm	_SKIP_DTOR,4,2                  ; @SKIP_DTOR
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_KTR_UMA,4,2                    ; @KTR_UMA
l_.str.1:                               ; @.str.1
	.asciz	"zone_alloc_item item %p from %s(%p)"

l_.str.2:                               ; @.str.2
	.asciz	"zone_alloc_item failed from %s(%p)"

	.comm	_trash_dtor,8,3                 ; @trash_dtor
	.no_dead_strip	_zone_alloc_item_locked
.subsections_via_symbols
