	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oct5066_copy_to
_oct5066_copy_to:                       ## @oct5066_copy_to
	.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, -48(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_oct5066_spin@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_WINDOW_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_WINDOW_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%rbx, %rax
	subq	%rax, %r12
	cmpq	%r12, %r15
	cmovbq	%r15, %r12
	movq	%r13, %rdi
	callq	_spin_lock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_oct5066_page
	movq	_iomapadr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_memcpy_toio
	movq	%r13, %rdi
	callq	_spin_unlock
	addq	%r12, %rbx
	addq	%r12, %r14
	subq	%r12, %r15
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_LENGTH,8,3              ## @WINDOW_LENGTH
	.comm	_WINDOW_MASK,8,3                ## @WINDOW_MASK
	.comm	_oct5066_spin,4,2               ## @oct5066_spin
	.comm	_iomapadr,8,3                   ## @iomapadr
	.no_dead_strip	_oct5066_copy_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oct5066_copy_to
_oct5066_copy_to:                       ; @oct5066_copy_to
	.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
	cbz	x3, LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _WINDOW_LENGTH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WINDOW_LENGTH@GOTPAGEOFF]
Lloh2:
	adrp	x26, _WINDOW_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _WINDOW_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x23, _oct5066_spin@GOTPAGE
Lloh5:
	ldr	x23, [x23, _oct5066_spin@GOTPAGEOFF]
Lloh6:
	adrp	x27, _iomapadr@GOTPAGE
Lloh7:
	ldr	x27, [x27, _iomapadr@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	and	x9, x9, x21
	sub	x8, x8, x9
	cmp	x19, x8
	csel	x24, x19, x8, lo
	mov	x0, x23
	bl	_spin_lock
	mov	x0, x22
	mov	x1, x21
	bl	_oct5066_page
	ldr	x8, [x27]
	add	x0, x8, x21
	mov	x1, x20
	mov	x2, x24
	bl	_memcpy_toio
	mov	x0, x23
	bl	_spin_unlock
	add	x21, x24, x21
	add	x20, x20, x24
	subs	x19, x19, x24
	b.ne	LBB0_2
LBB0_3:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_LENGTH,8,3              ; @WINDOW_LENGTH
	.comm	_WINDOW_MASK,8,3                ; @WINDOW_MASK
	.comm	_oct5066_spin,4,2               ; @oct5066_spin
	.comm	_iomapadr,8,3                   ; @iomapadr
	.no_dead_strip	_oct5066_copy_to
.subsections_via_symbols
