	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AllocUnitsRare
_AllocUnitsRare:                        ## @AllocUnitsRare
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_2:
	movq	_PPMD_NUM_INDEXES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	8(%r15), %rcx
	movl	%ebx, %edx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_3
## %bb.8:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_RemoveNode
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_SplitBlock
	jmp	LBB0_9
LBB0_1:
	movq	%r15, %rdi
	callq	_GlueFreeBlocks
	movq	8(%r15), %rax
	movl	%r14d, %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RemoveNode                     ## TAILCALL
LBB0_4:
	movl	%r14d, %edi
	callq	_I2U
	movl	%eax, %edi
	callq	_U2B
	decq	(%r15)
	movq	16(%r15), %r12
	movq	%r12, %rcx
	subq	24(%r15), %rcx
	cmpq	%rax, %rcx
	jle	LBB0_5
## %bb.6:
	subq	%rax, %r12
	movq	%r12, 16(%r15)
	jmp	LBB0_9
LBB0_5:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPMD_NUM_INDEXES,4,2           ## @PPMD_NUM_INDEXES
	.no_dead_strip	_AllocUnitsRare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AllocUnitsRare
_AllocUnitsRare:                        ; @AllocUnitsRare
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
LBB0_1:
Lloh0:
	adrp	x8, _PPMD_NUM_INDEXES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPMD_NUM_INDEXES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	x21, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, w21, uxtw #3]
	cbz	x9, LBB0_2
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_RemoveNode
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_SplitBlock
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_GlueFreeBlocks
	ldr	x8, [x19, #8]
	ldr	x8, [x8, w20, uxtw #3]
	cbz	x8, LBB0_1
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	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
	b	_RemoveNode
LBB0_7:
	mov	x0, x20
	bl	_I2U
	bl	_U2B
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	ldp	x8, x9, [x19, #16]
	sub	x9, x8, x9
	cmp	x9, x0
	b.le	LBB0_9
; %bb.8:
	sub	x22, x8, x0
	str	x22, [x19, #16]
	b	LBB0_10
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PPMD_NUM_INDEXES,4,2           ; @PPMD_NUM_INDEXES
	.no_dead_strip	_AllocUnitsRare
.subsections_via_symbols
