	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v8_0_cursor_move_locked
_dce_v8_0_cursor_move_locked:           ## @dce_v8_0_cursor_move_locked
	.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, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_to_amdgpu_crtc
	movq	%rax, %r14
	movl	%r12d, (%rax)
	movl	%r15d, 4(%rax)
	movq	(%rbx), %r8
	movq	8(%rbx), %rbx
	addl	%r8d, %r15d
	leaq	L_.str(%rip), %rdi
	leal	(%rbx,%r12), %esi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	_DRM_DEBUG
	addl	%ebx, %r12d
	movl	$0, %r13d
	js	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	js	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	negl	%r12d
	movq	32(%r14), %rsi
	decq	%rsi
	movl	%r12d, %edi
	callq	_min
	movl	%eax, %r13d
	shll	$16, %r13d
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	jns	LBB0_3
LBB0_4:
	negl	%r15d
	movq	24(%r14), %rsi
	decq	%rsi
	movl	%r15d, %edi
	callq	_min
	movl	%eax, %ebx
	xorl	%r15d, %r15d
LBB0_5:
	orl	%r13d, %ebx
	movq	_mmCUR_POSITION@GOTPCREL(%rip), %rax
	movq	16(%r14), %rdi
	addq	(%rax), %rdi
	shll	$16, %r12d
	orl	%r15d, %r12d
	movl	%r12d, %esi
	callq	_WREG32
	movq	_mmCUR_HOT_SPOT@GOTPCREL(%rip), %rax
	movq	16(%r14), %rdi
	addq	(%rax), %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_mmCUR_SIZE@GOTPCREL(%rip), %rax
	movq	16(%r14), %rdi
	addq	(%rax), %rdi
	movl	8(%r14), %eax
	movl	12(%r14), %esi
	shll	$16, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	decl	%esi
	orl	%eax, %esi
	callq	_WREG32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"x %d y %d c->x %d c->y %d\n"

	.comm	_mmCUR_POSITION,8,3             ## @mmCUR_POSITION
	.comm	_mmCUR_HOT_SPOT,8,3             ## @mmCUR_HOT_SPOT
	.comm	_mmCUR_SIZE,8,3                 ## @mmCUR_SIZE
	.no_dead_strip	_dce_v8_0_cursor_move_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v8_0_cursor_move_locked
_dce_v8_0_cursor_move_locked:           ; @dce_v8_0_cursor_move_locked
	.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	x20, x1
	mov	x22, x0
	bl	_to_amdgpu_crtc
	mov	x19, x0
	stp	w20, w21, [x0]
	ldp	x4, x3, [x22]
	add	w20, w3, w20
	add	w21, w4, w21
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_DRM_DEBUG
	tbnz	w20, #31, LBB0_3
; %bb.1:
	mov	w23, #0
	tbnz	w21, #31, LBB0_4
LBB0_2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:
	neg	w0, w20
	ldr	x8, [x19, #32]
	sub	x1, x8, #1
	bl	_min
	mov	w20, #0
	lsl	w23, w0, #16
	tbz	w21, #31, LBB0_2
LBB0_4:
	neg	w0, w21
	ldr	x8, [x19, #24]
	sub	x1, x8, #1
	bl	_min
	mov	x22, x0
	mov	w21, #0
LBB0_5:
Lloh2:
	adrp	x8, _mmCUR_POSITION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCUR_POSITION@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	orr	w1, w21, w20, lsl #16
	bl	_WREG32
Lloh5:
	adrp	x8, _mmCUR_HOT_SPOT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmCUR_HOT_SPOT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	orr	w1, w22, w23
	bl	_WREG32
Lloh8:
	adrp	x8, _mmCUR_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmCUR_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	ldp	w8, w9, [x19, #8]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	sub	w9, w9, #1
	orr	w1, w8, w9
	bl	_WREG32
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"x %d y %d c->x %d c->y %d\n"

	.comm	_mmCUR_POSITION,8,3             ; @mmCUR_POSITION
	.comm	_mmCUR_HOT_SPOT,8,3             ; @mmCUR_HOT_SPOT
	.comm	_mmCUR_SIZE,8,3                 ; @mmCUR_SIZE
	.no_dead_strip	_dce_v8_0_cursor_move_locked
.subsections_via_symbols
