	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uma_zone_set_max               ## -- Begin function uma_zone_set_max
	.p2align	4, 0x90
_uma_zone_set_max:                      ## @uma_zone_set_max
	.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, %r12d
	movq	_bucket_zones@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %ebx
	movq	_mp_ncpus@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rcx, %r15
	testl	%ebx, %ebx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	imull	%r13d, %eax
	addl	%eax, %eax
	cmpl	%r12d, %eax
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %ebx
	addq	$4, %r15
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	xorl	%r14d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %r15
	setne	%r14b
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ZONE_LOCK
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	shlq	$2, %r14
	negq	%r14
	movl	(%r15,%r14), %eax
	movl	%eax, 4(%rdi)
	movl	%eax, (%rdi)
	cmpl	%eax, 8(%rdi)
	jle	LBB0_7
## %bb.6:
	movl	%eax, 8(%rdi)
LBB0_7:
	imull	%r13d, %ebx
	addl	%ebx, %ebx
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	cmovel	%ebx, %r12d
	movl	%r12d, 12(%rdi)
	callq	_ZONE_UNLOCK
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bucket_zones,8,3               ## @bucket_zones
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uma_zone_set_max               ; -- Begin function uma_zone_set_max
	.p2align	2
_uma_zone_set_max:                      ; @uma_zone_set_max
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _bucket_zones@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bucket_zones@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w23, [x21]
Lloh3:
	adrp	x8, _mp_ncpus@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mp_ncpus@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x24, x21
	cbz	w23, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mul	w8, w23, w22
	cmp	w20, w8, lsl #1
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w23, [x24, #4]!
	cbnz	w23, LBB0_1
LBB0_3:
	mov	x8, #-4
	cmp	x24, x21
	csel	x25, x8, xzr, ne
	mov	x0, x19
	bl	_ZONE_LOCK
	ldr	w8, [x24, x25]
	stp	w8, w8, [x19]
	ldr	w9, [x19, #8]
	cmp	w9, w8
	b.le	LBB0_5
; %bb.4:
	str	w8, [x19, #8]
LBB0_5:
	mul	w8, w23, w22
	lsl	w8, w8, #1
	cmp	x24, x21
	csel	w20, w8, w20, eq
	str	w20, [x19, #12]
	mov	x0, x19
	bl	_ZONE_UNLOCK
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bucket_zones,8,3               ; @bucket_zones
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
.subsections_via_symbols
