	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reserve
_reserve:                               ## @reserve
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	8(%rdi), %rsi
	movl	$-1, %r14d
	cmpq	%rsi, (%rdi)
	jae	LBB0_6
## %bb.1:
	movq	_BITMAP_MAX@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_6
## %bb.2:
	movq	_BITMAP_BITS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	incl	%eax
	movslq	%eax, %r15
	cmpq	%r15, %rsi
	jae	LBB0_5
## %bb.3:
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_BITMAP_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdx
	callq	_recallocarray
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, 16(%rbx)
	movq	%r15, 8(%rbx)
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_MAX,4,2                 ## @BITMAP_MAX
	.comm	_BITMAP_BITS,4,2                ## @BITMAP_BITS
	.comm	_BITMAP_BYTES,4,2               ## @BITMAP_BYTES
	.no_dead_strip	_reserve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reserve
_reserve:                               ; @reserve
	.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	x8, x1
	ldp	x9, x1, [x0]
Lloh0:
	adrp	x10, _BITMAP_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BITMAP_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	x9, x1
	ccmp	w10, w8, #8, lo
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x9, _BITMAP_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BITMAP_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	add	w8, w8, #1
	sxtw	x20, w8
	cmp	x1, x20
	b.hs	LBB0_5
; %bb.3:
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh6:
	adrp	x8, _BITMAP_BYTES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BITMAP_BYTES@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x2, x20
	bl	_recallocarray
	cbz	x0, LBB0_1
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	stp	x20, x8, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_MAX,4,2                 ; @BITMAP_MAX
	.comm	_BITMAP_BITS,4,2                ; @BITMAP_BITS
	.comm	_BITMAP_BYTES,4,2               ; @BITMAP_BYTES
	.no_dead_strip	_reserve
.subsections_via_symbols
