	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bset_alloc_tree
_bset_alloc_tree:                       ## @bset_alloc_tree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, %rax
	cmpq	%rsi, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movl	-8(%rbx), %edi
	movl	$16, %esi
	callq	_roundup
	movl	%eax, %eax
	movdqu	-24(%rbx), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, (%rbx)
	movq	(%r14), %rax
LBB0_2:
	movq	_MAX_BSETS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, 16(%rbx)
	addq	$24, %rbx
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BSETS,4,2                  ## @MAX_BSETS
	.no_dead_strip	_bset_alloc_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bset_alloc_tree
_bset_alloc_tree:                       ; @bset_alloc_tree
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x0]
	mov	x9, x1
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldur	w0, [x19, #-8]
	mov	w1, #16
	bl	_roundup
	mov	w8, w0
	ldur	q0, [x19, #-24]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	str	q0, [x19]
	ldr	x9, [x20]
LBB0_2:
Lloh0:
	adrp	x8, _MAX_BSETS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_BSETS@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x8]
	mov	w8, #24
	madd	x8, x10, x8, x9
	cmp	x8, x19
	b.ls	LBB0_9
; %bb.3:
	mov	w11, #24
	madd	x9, x10, x11, x9
	add	x10, x19, #24
	cmp	x9, x10
	csel	x9, x9, x10, hi
	sub	x9, x9, #24
	cmp	x9, x19
	cinc	x10, x19, ne
	sub	x10, x9, x10
	cmp	x9, x19
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x9, x10, x9
	lsr	x9, x9, #4
	cinc	x9, x9, ne
	cmp	x9, #3
	b.hs	LBB0_5
; %bb.4:
	mov	x9, x19
	b	LBB0_8
LBB0_5:
	add	x10, x9, #1
	and	x11, x10, #0x3ffffffffffffffc
	mov	w9, #24
	madd	x9, x11, x9, x19
	add	x12, x19, #64
	mov	x13, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x12, #-48]
	stur	wzr, [x12, #-24]
	str	wzr, [x12]
	str	wzr, [x12, #24]
	add	x12, x12, #96
	subs	x13, x13, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x9, #16]
	add	x10, x9, #24
	mov	x9, x10
	cmp	x10, x8
	b.lo	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BSETS,4,2                  ; @MAX_BSETS
	.no_dead_strip	_bset_alloc_tree
.subsections_via_symbols
