	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bucket_alloc
_bucket_alloc:                          ## @bucket_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_bucketdisable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_UMA_ZFLAG_BUCKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r15, %rax
	je	LBB0_7
## %bb.4:
	testq	%rsi, %rax
	jne	LBB0_1
## %bb.6:
	orq	%rsi, %rax
	movq	%rax, %r15
LBB0_7:
	movq	_UMA_ZFLAG_CACHEONLY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movq	(%rax), %rax
	andq	%r15, %rax
	je	LBB0_9
## %bb.8:
	movq	_M_NOVM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	orl	%edx, %r14d
	movl	8(%rbx), %edi
	callq	_bucket_zone_lookup
	movq	%rax, %r12
	movq	8(%rax), %rdi
	cmpq	%rbx, %rdi
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	cmpq	$0, 16(%r12)
	setne	%al
	shlq	$4, %rax
	movq	8(%r12,%rax), %rdi
	addq	%rax, %r12
LBB0_11:
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_uma_zalloc_arg
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	$0, 8(%rax)
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_bucketdisable,8,3              ## @bucketdisable
	.comm	_UMA_ZFLAG_BUCKET,8,3           ## @UMA_ZFLAG_BUCKET
	.comm	_UMA_ZFLAG_CACHEONLY,8,3        ## @UMA_ZFLAG_CACHEONLY
	.comm	_M_NOVM,4,2                     ## @M_NOVM
	.no_dead_strip	_bucket_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bucket_alloc
_bucket_alloc:                          ; @bucket_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _bucketdisable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bucketdisable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	x0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x0
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _UMA_ZFLAG_BUCKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UMA_ZFLAG_BUCKET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x19
	b.eq	LBB0_6
; %bb.4:
	tst	x8, x1
	b.ne	LBB0_1
; %bb.5:
	orr	x19, x8, x1
LBB0_6:
Lloh6:
	adrp	x8, _UMA_ZFLAG_CACHEONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UMA_ZFLAG_CACHEONLY@GOTPAGEOFF]
Lloh8:
	adrp	x9, _M_NOVM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_NOVM@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	ldr	w9, [x9]
	tst	x8, x19
	csel	w8, wzr, w9, eq
	orr	w22, w8, w2
	ldr	w0, [x20, #8]
	bl	_bucket_zone_lookup
	mov	x21, x0
	ldr	x0, [x0, #8]
	cmp	x0, x20
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w8, ne
	add	x21, x21, w8, uxtw #4
	ldr	x0, [x21, #8]
LBB0_8:
	mov	x1, x19
	mov	x2, x22
	bl	_uma_zalloc_arg
	cbz	x0, LBB0_2
; %bb.9:
	str	xzr, [x0, #8]
	ldr	x8, [x21]
	str	w8, [x0]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_bucketdisable,8,3              ; @bucketdisable
	.comm	_UMA_ZFLAG_BUCKET,8,3           ; @UMA_ZFLAG_BUCKET
	.comm	_UMA_ZFLAG_CACHEONLY,8,3        ; @UMA_ZFLAG_CACHEONLY
	.comm	_M_NOVM,4,2                     ; @M_NOVM
	.no_dead_strip	_bucket_alloc
.subsections_via_symbols
