	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_pg_buf
_fill_pg_buf:                           ## @fill_pg_buf
	.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
	testq	%rdx, %rdx
	jle	LBB0_1
## %bb.2:
	movq	%rcx, %r8
	movq	%rdx, %r13
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	notq	%rbx
	andq	%rsi, %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %rsi
	leaq	(%rdi,%rsi,4), %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%r15d, %r15d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	subq	%rbx, %r14
	cmpq	%r13, %r14
	cmovaeq	%r13, %r14
	movq	%r12, %rdi
	callq	_page_to_pfn
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%r15d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, 16(%r8,%rcx,8)
	movq	%rbx, 8(%r8,%rcx,8)
	movq	%r14, (%r8,%rcx,8)
	addq	%r14, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	sete	%cl
	cmpq	%r14, %r13
	setne	%dl
	andb	%cl, %dl
	movl	$0, %ecx
	cmovneq	%rcx, %rbx
	movzbl	%dl, %ecx
	addl	%ecx, %r15d
	leaq	(%r12,%rcx,4), %r12
	subq	%r14, %r13
	movq	%rax, %r14
	jg	LBB0_3
## %bb.4:
	incl	%r15d
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r15d
LBB0_5:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_fill_pg_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_pg_buf
_fill_pg_buf:                           ; @fill_pg_buf
	.cfi_startproc
; %bb.0:
	cmp	x2, #1
	b.lt	LBB0_4
; %bb.1:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	w22, #0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x23, x1, x8
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	asr	x8, x1, x8
	add	x21, x0, x8, lsl #2
Lloh6:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w25, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x8, x23
	cmp	x8, x20
	csel	x26, x8, x20, lo
	mov	x0, x21
	bl	_page_to_pfn
	umaddl	x9, w22, w25, x19
	stp	x26, x23, [x9]
	sub	x20, x20, x26
	ldr	x8, [x24]
	add	x10, x26, x23
	cmp	x10, x8
	cset	w11, eq
	cmp	x20, #0
	cset	w12, ne
	ands	w11, w11, w12
	csel	x23, xzr, x10, ne
	str	w0, [x9, #16]
	add	x21, x21, w11, uxtw #2
	add	w22, w22, w11
	cmp	x20, #0
	b.gt	LBB0_2
; %bb.3:
	add	w0, w22, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	mov	w0, #1
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_fill_pg_buf
.subsections_via_symbols
