	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datapagemap_add                ## -- Begin function datapagemap_add
	.p2align	4, 0x90
_datapagemap_add:                       ## @datapagemap_add
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	leal	7(%r12), %ebx
	testl	%esi, %esi
	cmovnsl	%esi, %ebx
	movq	%rdi, %r14
	sarl	$3, %ebx
	movslq	(%rdi), %r13
	cmpl	%ebx, %r13d
	jg	LBB0_2
## %bb.1:
	leal	11(%rbx), %r15d
	movq	8(%r14), %rdi
	movl	%r15d, %esi
	callq	_pg_realloc
	movq	%rax, 8(%r14)
	leaq	(%rax,%r13,4), %rdi
	movl	%r15d, %edx
	subl	%r13d, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%r15d, (%r14)
LBB0_2:
	andb	$7, %r12b
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movq	8(%r14), %rcx
	movslq	%ebx, %rdx
	orl	%eax, (%rcx,%rdx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_datapagemap_add                ; -- Begin function datapagemap_add
	.p2align	2
_datapagemap_add:                       ; @datapagemap_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	add	w8, w1, #7
	cmp	w1, #0
	csel	w8, w8, w1, lt
	asr	w22, w8, #3
	ldrsw	x23, [x0]
	cmp	w23, w22
	b.gt	LBB0_2
; %bb.1:
	add	w21, w22, #11
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_pg_realloc
	str	x0, [x19, #8]
	add	x0, x0, x23, lsl #2
	sub	w2, w21, w23
	mov	w1, #0
	bl	_memset
	str	w21, [x19]
LBB0_2:
	and	w8, w20, #0x7
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x19, #8]
	sbfiz	x10, x22, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
