	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _shift_data_right_pages
__shift_data_right_pages:               ## @_shift_data_right_pages
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpq	%rdx, %rsi
	setbe	%dil
	callq	_BUG_ON
	addq	%r13, %r15
	addq	%r13, %rbx
	movq	_PAGE_CACHE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r15, %rax
	shrq	%cl, %rax
	leaq	(%r12,%rax,8), %r14
	movq	%rbx, %rax
	shrq	%cl, %rax
	leaq	(%r12,%rax,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PAGE_CACHE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	notq	%r12
	andq	%r12, %r15
	andq	%rbx, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testq	%r15, %r15
	sete	%al
	movq	_PAGE_CACHE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmoveq	%rcx, %r15
	shlq	$3, %rax
	subq	%rax, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testq	%r12, %r12
	sete	%al
	cmoveq	%rcx, %r12
	shlq	$3, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	subq	%rax, %r14
	cmpq	%r15, %r13
	movq	%r15, %rbx
	cmovbq	%r13, %rbx
	cmpq	%r12, %rbx
	cmovaeq	%r12, %rbx
	subq	%rbx, %r15
	subq	%rbx, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_KM_USER0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmap_atomic
	movq	%rax, %r13
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_KM_USER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmap_atomic
	leaq	(%r15,%r13), %rdi
	leaq	(%rax,%r12), %rsi
	movq	%rax, %r13
	movq	%rbx, %rdx
	callq	_memmove
	movq	(%r14), %rdi
	callq	_flush_dcache_page
	movq	_KM_USER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	callq	_kunmap_atomic
	movq	_KM_USER0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kunmap_atomic
	subq	%rbx, %r13
	jne	LBB0_1
## %bb.2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_CACHE_SHIFT,8,3           ## @PAGE_CACHE_SHIFT
	.comm	_PAGE_CACHE_MASK,8,3            ## @PAGE_CACHE_MASK
	.comm	_PAGE_CACHE_SIZE,8,3            ## @PAGE_CACHE_SIZE
	.comm	_KM_USER0,4,2                   ## @KM_USER0
	.comm	_KM_USER1,4,2                   ## @KM_USER1
	.no_dead_strip	__shift_data_right_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _shift_data_right_pages
__shift_data_right_pages:               ; @_shift_data_right_pages
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x1, x2
	cset	w0, ls
	bl	_BUG_ON
Lloh0:
	adrp	x8, _PAGE_CACHE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_CACHE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PAGE_CACHE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_CACHE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x10, x19, x21
	bic	x26, x10, x9
	lsr	x10, x10, x8
	add	x23, x22, x10, lsl #3
	add	x10, x19, x20
	bic	x24, x10, x9
	lsr	x8, x10, x8
	add	x25, x22, x8, lsl #3
Lloh6:
	adrp	x27, _KM_USER0@GOTPAGE
Lloh7:
	ldr	x27, [x27, _KM_USER0@GOTPAGEOFF]
Lloh8:
	adrp	x28, _KM_USER1@GOTPAGE
Lloh9:
	ldr	x28, [x28, _KM_USER1@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
Lloh10:
	adrp	x8, _PAGE_CACHE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_CACHE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x26, #0
	mov	x10, #-8
	csel	x9, x10, xzr, eq
	add	x23, x23, x9
	csel	x9, x8, x26, eq
	cmp	x24, #0
	csel	x10, x10, xzr, eq
	add	x25, x25, x10
	csel	x8, x8, x24, eq
	cmp	x19, x9
	csel	x10, x19, x9, lo
	cmp	x10, x8
	csel	x20, x10, x8, lo
	sub	x26, x9, x20
	sub	x24, x8, x20
	ldr	x0, [x23]
	ldr	w1, [x27]
	bl	_kmap_atomic
	mov	x21, x0
	ldr	x0, [x25]
	ldr	w1, [x28]
	bl	_kmap_atomic
	mov	x22, x0
	add	x0, x21, x26
	add	x1, x22, x24
	mov	x2, x20
	bl	_memmove
	ldr	x0, [x23]
	bl	_flush_dcache_page
	ldr	w1, [x28]
	mov	x0, x22
	bl	_kunmap_atomic
	ldr	w1, [x27]
	mov	x0, x21
	bl	_kunmap_atomic
	subs	x19, x19, x20
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_CACHE_SHIFT,8,3           ; @PAGE_CACHE_SHIFT
	.comm	_PAGE_CACHE_MASK,8,3            ; @PAGE_CACHE_MASK
	.comm	_PAGE_CACHE_SIZE,8,3            ; @PAGE_CACHE_SIZE
	.comm	_KM_USER0,4,2                   ; @KM_USER0
	.comm	_KM_USER1,4,2                   ; @KM_USER1
	.no_dead_strip	__shift_data_right_pages
.subsections_via_symbols
