	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zone_alloc_bucket
_zone_alloc_bucket:                     ## @zone_alloc_bucket
	.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	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_KTR_UMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_CTR1
	movq	_UMA_ANYDOMAIN@GOTPCREL(%rip), %r14
	cmpl	%r15d, (%r14)
	je	LBB0_3
## %bb.1:
	movl	%r15d, %edi
	callq	_VM_DOMAIN_EMPTY
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %r15d
LBB0_3:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_NOVM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%r13d, %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bucket_alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	20(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	8(%r14), %r12
	movl	16(%r14), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MIN
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.6:
	testq	%rax, %rax
	jle	LBB0_9
## %bb.7:
	movl	%r13d, %r15d
	movq	%rbx, %r13
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	movl	%r15d, %edx
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_9:
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_10:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpq	%rbx, %rax
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	32(%r12), %esi
	movl	%r15d, %edx
	callq	*8(%r12)
	incq	%rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	decq	%rbx
LBB0_14:
	movq	(%r14), %rax
LBB0_15:
	movl	%ebx, %ebx
	cmpq	%rbx, %rax
	jne	LBB0_17
## %bb.16:
	movq	%rax, %rbx
	jmp	LBB0_18
LBB0_17:
	movl	20(%r12), %edi
	leaq	(,%rbx,4), %rsi
	addq	8(%r14), %rsi
	subl	%ebx, %eax
	movl	%eax, %edx
	callq	*24(%r12)
	movq	%rbx, (%r14)
LBB0_18:
	testq	%rbx, %rbx
	movq	%r13, %rbx
	jne	LBB0_21
LBB0_19:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_bucket_free
	movl	16(%r12), %edi
	movl	$1, %esi
	callq	_counter_u64_add
LBB0_20:
	xorl	%r14d, %r14d
LBB0_21:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KTR_UMA,4,2                    ## @KTR_UMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zone_alloc:_bucket domain %d)"

	.comm	_UMA_ANYDOMAIN,4,2              ## @UMA_ANYDOMAIN
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_NOVM,4,2                     ## @M_NOVM
	.no_dead_strip	_zone_alloc_bucket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zone_alloc_bucket
_zone_alloc_bucket:                     ; @zone_alloc_bucket
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _KTR_UMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KTR_UMA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CTR1
Lloh5:
	adrp	x21, _UMA_ANYDOMAIN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _UMA_ANYDOMAIN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w23
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_VM_DOMAIN_EMPTY
	ldr	w8, [x21]
	cmp	x0, #0
	csel	w23, w23, w8, eq
LBB0_2:
Lloh7:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _M_NOVM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M_NOVM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w2, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_bucket_alloc
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.3:
	ldr	x27, [x19]
	ldr	w25, [x19, #20]
	ldr	x26, [x21, #8]
	ldr	w1, [x21, #16]
	mov	x0, x24
	bl	_MIN
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	mov	x3, x23
	mov	x4, x22
	blr	x27
	str	x0, [x21]
	cbz	x0, LBB0_17
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.5:
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x9, [x21, #8]
	ldr	w0, [x9]
	ldr	w1, [x19, #32]
	mov	x2, x22
	blr	x8
	cbz	x0, LBB0_9
; %bb.7:
	mov	x23, #0
	b	LBB0_13
LBB0_8:
	mov	w23, #0
	b	LBB0_14
LBB0_9:
	mov	w23, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	cmp	x0, x23
	b.le	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #8]
	ldr	w0, [x9, x23, lsl #2]
	ldr	w1, [x19, #32]
	mov	x2, x22
	blr	x8
	add	x23, x23, #1
	cbz	x0, LBB0_10
; %bb.12:
	sub	x23, x23, #1
LBB0_13:
	ldr	x0, [x21]
LBB0_14:
	mov	w22, w23
	cmp	x0, x22
	b.ne	LBB0_16
; %bb.15:
	mov	x22, x0
	cbnz	x22, LBB0_18
	b	LBB0_17
LBB0_16:
	ldr	x9, [x19, #24]
	ldr	w8, [x19, #20]
	ldr	x10, [x21, #8]
	add	x1, x10, x22, lsl #2
	sub	w2, w0, w22
	mov	x0, x8
	blr	x9
	str	x22, [x21]
	cbnz	x22, LBB0_18
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_bucket_free
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_counter_u64_add
	mov	x21, #0
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KTR_UMA,4,2                    ; @KTR_UMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zone_alloc:_bucket domain %d)"

	.comm	_UMA_ANYDOMAIN,4,2              ; @UMA_ANYDOMAIN
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_NOVM,4,2                     ; @M_NOVM
	.no_dead_strip	_zone_alloc_bucket
.subsections_via_symbols
