	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdr_set_page_base
_xdr_set_page_base:                     ## @xdr_set_page_base
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	movl	(%rax), %ecx
	subl	%esi, %ecx
	jbe	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpl	%edx, %ecx
	cmovbl	%ecx, %r14d
	addl	16(%rax), %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%rbx, %rdx
	shrq	%cl, %rdx
	movq	8(%rax), %rax
	leaq	(%rax,%rdx,4), %rcx
	movq	%rcx, 24(%rdi)
	movl	(%rax,%rdx,4), %edi
	callq	_page_address
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ebx, %ecx
	leaq	(%rcx,%rax), %rdx
	movq	%rdx, 16(%r15)
	addl	%r14d, %ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	cmovael	%edx, %ecx
	addq	%rax, %rcx
	movq	%rcx, 8(%r15)
	movq	$0, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_xdr_set_page_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdr_set_page_base
_xdr_set_page_base:                     ; @xdr_set_page_base
	.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
	ldr	x8, [x0, #32]
	ldr	w9, [x8]
	subs	w9, w9, w1
	b.ls	LBB0_2
; %bb.1:
	mov	x19, x0
	cmp	w9, w2
	csel	w20, w9, w2, lo
	ldr	w9, [x8, #16]
	add	w21, w9, w1
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	x9, x21, x9
	ldr	x8, [x8, #8]
	lsl	x9, x9, #2
	add	x10, x8, x9
	str	x10, [x0, #24]
	ldr	w0, [x8, x9]
	bl	_page_address
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w9, w21, w9
	add	x10, x8, x9
	str	x10, [x19, #16]
Lloh6:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	w9, w9, w20
	cmp	w9, w10
	csel	w9, w9, w10, lo
	add	x8, x8, x9
	stp	xzr, x8, [x19]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_xdr_set_page_base
.subsections_via_symbols
