	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BloomPageAddItem               ## -- Begin function BloomPageAddItem
	.p2align	4, 0x90
_BloomPageAddItem:                      ## @BloomPageAddItem
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_PageIsNew
	xorl	%r12d, %r12d
	movl	$0, %edi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_BloomPageIsDeleted
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_2:
	callq	_Assert
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BloomPageGetFreeSpace
	cmpl	(%r14), %eax
	jl	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_BloomPageGetOpaque
	movq	%rax, %r12
	movq	(%rax), %rdx
	incq	%rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BloomPageGetTuple
	movl	(%r14), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movq	(%r12), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, (%r12)
	addq	$2, %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BloomPageGetTuple
	subq	%rbx, %rax
	movq	%rax, (%rbx)
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setle	%dil
	callq	_Assert
	movl	$1, %r12d
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BloomPageAddItem               ; -- Begin function BloomPageAddItem
	.p2align	2
_BloomPageAddItem:                      ; @BloomPageAddItem
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_PageIsNew
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_BloomPageIsDeleted
	cmp	w0, #0
	cset	w0, eq
LBB0_3:
	bl	_Assert
	mov	x0, x20
	mov	x1, x19
	bl	_BloomPageGetFreeSpace
	ldr	w8, [x20]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_BloomPageGetOpaque
	mov	x22, x0
	ldr	x8, [x0]
	add	x2, x8, #1
	mov	x0, x20
	mov	x1, x19
	bl	_BloomPageGetTuple
	ldr	w2, [x20]
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x22]
	add	x9, x8, #1
	str	x9, [x22]
	add	x2, x8, #2
	mov	x0, x20
	mov	x1, x19
	bl	_BloomPageGetTuple
	ldr	x8, [x19, #8]
	sub	x9, x0, x19
	cmp	x9, x8
	str	x9, [x19]
	cset	w0, le
	bl	_Assert
	mov	w0, #1
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
