	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _copy_to_pages
__copy_to_pages:                        ## @_copy_to_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	_PAGE_CACHE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rsi, %rax
	shrq	%cl, %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_PAGE_CACHE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	notq	%r13
	andq	%rsi, %r13
	leaq	(%rdi,%rax,8), %r12
	movq	_PAGE_CACHE_SIZE@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	callq	_flush_dcache_page
	addq	$8, %r12
	xorl	%r13d, %r13d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rbx, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	subq	%r13, %rbx
	cmpq	%r15, %rbx
	cmovaeq	%r15, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdi
	movq	_KM_USER0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	_kmap_atomic
	movq	%rax, %r12
	leaq	(%rax,%r13), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcpy
	movq	_KM_USER0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_kunmap_atomic
	subq	%rbx, %r15
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rbx, %r13
	cmpq	(%r14), %r13
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush_dcache_page              ## TAILCALL
	.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
	.no_dead_strip	__copy_to_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _copy_to_pages
__copy_to_pages:                        ; @_copy_to_pages
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x8, _PAGE_CACHE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_CACHE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x8, x1, x8
	add	x23, x0, x8, lsl #3
Lloh3:
	adrp	x8, _PAGE_CACHE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_CACHE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	bic	x26, x1, x8
Lloh6:
	adrp	x24, _PAGE_CACHE_SIZE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PAGE_CACHE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x25, _KM_USER0@GOTPAGE
Lloh9:
	ldr	x25, [x25, _KM_USER0@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	sub	x8, x8, x26
	cmp	x8, x19
	csel	x21, x8, x19, lo
	ldr	x0, [x23]
	ldr	w1, [x25]
	bl	_kmap_atomic
	mov	x22, x0
	add	x0, x0, x26
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	w1, [x25]
	mov	x0, x22
	bl	_kunmap_atomic
	subs	x19, x19, x21
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	add	x26, x21, x26
	cmp	x26, x8
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x23], #8
	bl	_flush_dcache_page
	mov	x26, #0
	b	LBB0_1
LBB0_5:
	ldr	x0, [x23]
	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
	b	_flush_dcache_page
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.no_dead_strip	__copy_to_pages
.subsections_via_symbols
