	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_spare_group
_allocate_spare_group:                  ## @allocate_spare_group
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_NO_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%rbx), %rax
	movl	$1, %r14d
	cmpq	16(%rbx), %rax
	jge	LBB0_9
## %bb.2:
	movq	24(%rbx), %r12
	addq	%rax, %r12
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_is_group_initialized
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_initialize_group
LBB0_4:
	movq	32(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.5:
	shlq	$4, %r12
	addq	%r12, %r15
	jmp	LBB0_7
LBB0_6:
	movq	32(%rbx), %rcx
	shlq	$4, %rax
	leaq	(%rcx,%rax), %r15
	movq	(%rcx,%rax), %rax
	movq	%rax, (%rbx)
LBB0_7:
	xorl	%r14d, %r14d
	cmpl	$0, 8(%r15)
	sete	%r14b
	jmp	LBB0_10
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r14d, %edi
	callq	_assert
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_INDEX,8,3                   ## @NO_INDEX
	.no_dead_strip	_allocate_spare_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_spare_group
_allocate_spare_group:                  ; @allocate_spare_group
	.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	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NO_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.2:
	ldr	x9, [x20, #24]
	add	x19, x9, x8
	add	x8, x8, #1
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_is_group_initialized
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_8
LBB0_4:
	add	x19, x8, x19, lsl #4
	b	LBB0_6
LBB0_5:
	ldr	x9, [x20, #32]
	add	x19, x9, x8, lsl #4
	ldr	x8, [x19]
	str	x8, [x20]
LBB0_6:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_initialize_group
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_4
LBB0_8:
	mov	x19, #0
	mov	w0, #1
LBB0_9:
	bl	_assert
	mov	x0, x19
	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	_NO_INDEX,8,3                   ; @NO_INDEX
	.no_dead_strip	_allocate_spare_group
.subsections_via_symbols
