	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pat_pagerange_is_ram
_pat_pagerange_is_ram:                  ## @pat_pagerange_is_ram
	.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
	movq	%rdi, %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	shrq	%cl, %rbx
	movq	%rsi, %rdx
	shrq	%cl, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rbx
	jae	LBB0_8
## %bb.1:
	movq	%rsi, %r13
	xorl	%r12d, %r12d
	movq	_ISA_END_ADDRESS@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rax
	cmpq	%rax, %rbx
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_page_is_ram
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdi
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r12d
	movl	%r15d, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r12d, %eax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	(%rdi), %rcx
	movq	%r13, %rdx
	shrq	%cl, %rdx
	movl	%eax, %r15d
	cmpq	%rdx, %rbx
	jb	LBB0_3
	jmp	LBB0_8
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	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	_ISA_END_ADDRESS,8,3            ## @ISA_END_ADDRESS
	.no_dead_strip	_pat_pagerange_is_ram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pat_pagerange_is_ram
_pat_pagerange_is_ram:                  ; @pat_pagerange_is_ram
	.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
Lloh0:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x22]
	lsr	x21, x0, x8
	lsr	x9, x1, x8
	cmp	x21, x9
	b.hs	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	w23, #0
	mov	w20, #0
Lloh2:
	adrp	x24, _ISA_END_ADDRESS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ISA_END_ADDRESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	lsr	x8, x9, x8
	cmp	x21, x8
	b.lo	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_page_is_ram
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #1
	cmp	w20, w23
	b.ne	LBB0_6
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #1
	cmp	w20, w23
	b.eq	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	lsr	x9, x19, x8
	cmp	x21, x9
	b.lo	LBB0_2
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	mov	w20, #-1
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_ISA_END_ADDRESS,8,3            ; @ISA_END_ADDRESS
	.no_dead_strip	_pat_pagerange_is_ram
.subsections_via_symbols
