	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_cursor_move
_ast_cursor_move:                       ## @ast_cursor_move
	.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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_to_ast_crtc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movl	4(%rbx), %edi
	callq	_drm_gem_vram_of_gem
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_drm_gem_vram_kmap
	movq	_AST_HWC_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AST_HWC_SIGNATURE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%ecx, %edx
	imull	(%rbx), %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,4), %r13
	movq	_AST_HWC_SIGNATURE_X@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_AST_HWC_SIGNATURE_Y@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movl	%r12d, %edi
	callq	_writel
	movl	(%r14), %ecx
	movl	%r15d, %eax
	sarl	$31, %eax
	andl	%r15d, %eax
	subl	%eax, %ecx
	testl	%r15d, %r15d
	movl	$0, %eax
	cmovlel	%eax, %r15d
	testl	%r12d, %r12d
	movl	$0, %r13d
	cmovgl	%r12d, %r13d
	cmovnsl	%eax, %r12d
	movl	4(%r14), %r14d
	subl	%r12d, %r14d
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$194, %edx
	callq	_ast_set_index_reg
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$195, %edx
	movl	%r14d, %ecx
	callq	_ast_set_index_reg
	movl	(%r12), %esi
	movzbl	%r15b, %ecx
	movq	%rbx, %rdi
	movl	$196, %edx
	callq	_ast_set_index_reg
	movl	(%r12), %esi
	shrl	$8, %r15d
	andl	$15, %r15d
	movq	%rbx, %rdi
	movl	$197, %edx
	movl	%r15d, %ecx
	callq	_ast_set_index_reg
	movl	(%r12), %esi
	movzbl	%r13b, %ecx
	movq	%rbx, %rdi
	movl	$198, %edx
	callq	_ast_set_index_reg
	movl	(%r12), %esi
	shrl	$8, %r13d
	andl	$7, %r13d
	movq	%rbx, %rdi
	movl	$199, %edx
	movl	%r13d, %ecx
	callq	_ast_set_index_reg
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ast_show_cursor
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_HWC_SIZE,4,2               ## @AST_HWC_SIZE
	.comm	_AST_HWC_SIGNATURE_SIZE,4,2     ## @AST_HWC_SIGNATURE_SIZE
	.comm	_AST_HWC_SIGNATURE_X,4,2        ## @AST_HWC_SIGNATURE_X
	.comm	_AST_HWC_SIGNATURE_Y,4,2        ## @AST_HWC_SIGNATURE_Y
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.no_dead_strip	_ast_cursor_move
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_cursor_move
_ast_cursor_move:                       ; @ast_cursor_move
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_to_ast_crtc
	mov	x23, x0
	ldr	x8, [x19]
	ldr	x20, [x8]
	ldr	w0, [x20, #4]
	bl	_drm_gem_vram_of_gem
	mov	w1, #0
	mov	x2, #0
	bl	_drm_gem_vram_kmap
Lloh0:
	adrp	x8, _AST_HWC_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AST_HWC_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AST_HWC_SIGNATURE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AST_HWC_SIGNATURE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w9, w9, w8
	ldr	w10, [x20]
	madd	w8, w9, w10, w8
	add	x24, x0, w8, sxtw #2
Lloh6:
	adrp	x8, _AST_HWC_SIGNATURE_X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AST_HWC_SIGNATURE_X@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x1, x24, x8, lsl #2
	mov	x0, x22
	bl	_writel
Lloh9:
	adrp	x8, _AST_HWC_SIGNATURE_Y@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AST_HWC_SIGNATURE_Y@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x1, x24, x8, lsl #2
	mov	x0, x21
	bl	_writel
	ldp	w8, w9, [x23]
	cmp	w22, #0
	csel	w10, w22, wzr, lt
	csel	w22, w22, wzr, gt
	sub	w3, w8, w10
	cmp	w21, #0
	csel	w23, w21, wzr, gt
	csel	w8, w21, wzr, lt
	sub	w21, w9, w8
Lloh12:
	adrp	x24, _AST_IO_CRTC_PORT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _AST_IO_CRTC_PORT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #194
	bl	_ast_set_index_reg
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #195
	mov	x3, x21
	bl	_ast_set_index_reg
	ldr	w1, [x24]
	and	w3, w22, #0xff
	mov	x0, x20
	mov	w2, #196
	bl	_ast_set_index_reg
	ldr	w1, [x24]
	ubfx	w3, w22, #8, #4
	mov	x0, x20
	mov	w2, #197
	bl	_ast_set_index_reg
	ldr	w1, [x24]
	and	w3, w23, #0xff
	mov	x0, x20
	mov	w2, #198
	bl	_ast_set_index_reg
	ldr	w1, [x24]
	ubfx	w3, w23, #8, #3
	mov	x0, x20
	mov	w2, #199
	bl	_ast_set_index_reg
	mov	x0, x19
	bl	_ast_show_cursor
	mov	w0, #0
	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	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_HWC_SIZE,4,2               ; @AST_HWC_SIZE
	.comm	_AST_HWC_SIGNATURE_SIZE,4,2     ; @AST_HWC_SIGNATURE_SIZE
	.comm	_AST_HWC_SIGNATURE_X,4,2        ; @AST_HWC_SIGNATURE_X
	.comm	_AST_HWC_SIGNATURE_Y,4,2        ; @AST_HWC_SIGNATURE_Y
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.no_dead_strip	_ast_cursor_move
.subsections_via_symbols
