	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rowSetEntryAlloc
_rowSetEntryAlloc:                      ## @rowSetEntryAlloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rax
	jmp	LBB0_5
LBB0_2:
	movl	24(%rbx), %edi
	movl	$16, %esi
	callq	_sqlite3DbMallocRawNN
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	16(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, 16(%rbx)
	movq	_ROWSET_ENTRY_PER_CHUNK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_5:
	movslq	(%rax), %rax
	decq	%rcx
	movq	%rcx, (%rbx)
	leal	1(%rax), %ecx
	movl	%ecx, 8(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ROWSET_ENTRY_PER_CHUNK,8,3     ## @ROWSET_ENTRY_PER_CHUNK
	.no_dead_strip	_rowSetEntryAlloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rowSetEntryAlloc
_rowSetEntryAlloc:                      ; @rowSetEntryAlloc
	.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, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #8
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19, #24]
	mov	w1, #16
	bl	_sqlite3DbMallocRawNN
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	str	x8, [x0, #8]
	str	x0, [x19, #16]
Lloh0:
	adrp	x8, _ROWSET_ENTRY_PER_CHUNK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROWSET_ENTRY_PER_CHUNK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
LBB0_4:
	ldrsw	x0, [x0]
	sub	x8, x8, #1
	str	x8, [x19]
	add	w8, w0, #1
	str	w8, [x19, #8]
LBB0_5:
	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	_ROWSET_ENTRY_PER_CHUNK,8,3     ; @ROWSET_ENTRY_PER_CHUNK
	.no_dead_strip	_rowSetEntryAlloc
.subsections_via_symbols
