	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_lock_cursor
_radeon_lock_cursor:                    ## @radeon_lock_cursor
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	callq	_to_radeon_crtc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ASIC_IS_DCE4
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EVERGREEN_CUR_UPDATE@GOTPCREL(%rip), %rbx
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_RREG32
	movq	_EVERGREEN_CURSOR_UPDATE_LOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_ASIC_IS_AVIVO
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_AVIVO_D1CUR_UPDATE@GOTPCREL(%rip), %rbx
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_RREG32
	movq	_AVIVO_D1CURSOR_UPDATE_LOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_RADEON_CUR_OFFSET@GOTPCREL(%rip), %rbx
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_RREG32
	movq	_RADEON_CUR_LOCK@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %esi
	movl	%esi, %ecx
	orl	%eax, %ecx
	notl	%esi
	andl	%eax, %esi
	testl	%r14d, %r14d
	cmovnel	%ecx, %esi
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVERGREEN_CUR_UPDATE,8,3       ## @EVERGREEN_CUR_UPDATE
	.comm	_EVERGREEN_CURSOR_UPDATE_LOCK,4,2 ## @EVERGREEN_CURSOR_UPDATE_LOCK
	.comm	_AVIVO_D1CUR_UPDATE,8,3         ## @AVIVO_D1CUR_UPDATE
	.comm	_AVIVO_D1CURSOR_UPDATE_LOCK,4,2 ## @AVIVO_D1CURSOR_UPDATE_LOCK
	.comm	_RADEON_CUR_OFFSET,8,3          ## @RADEON_CUR_OFFSET
	.comm	_RADEON_CUR_LOCK,4,2            ## @RADEON_CUR_LOCK
	.no_dead_strip	_radeon_lock_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_lock_cursor
_radeon_lock_cursor:                    ; @radeon_lock_cursor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_to_radeon_crtc
	mov	x19, x0
	mov	x0, x21
	bl	_ASIC_IS_DCE4
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _EVERGREEN_CUR_UPDATE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EVERGREEN_CUR_UPDATE@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh2:
	adrp	x8, _EVERGREEN_CURSOR_UPDATE_LOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVERGREEN_CURSOR_UPDATE_LOCK@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_ASIC_IS_AVIVO
	cbz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x21, _AVIVO_D1CUR_UPDATE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _AVIVO_D1CUR_UPDATE@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh6:
	adrp	x8, _AVIVO_D1CURSOR_UPDATE_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVIVO_D1CURSOR_UPDATE_LOCK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x21, _RADEON_CUR_OFFSET@GOTPAGE
Lloh9:
	ldr	x21, [x21, _RADEON_CUR_OFFSET@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh10:
	adrp	x8, _RADEON_CUR_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RADEON_CUR_LOCK@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w20, #0
	csel	w1, w8, w9, eq
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EVERGREEN_CUR_UPDATE,8,3       ; @EVERGREEN_CUR_UPDATE
	.comm	_EVERGREEN_CURSOR_UPDATE_LOCK,4,2 ; @EVERGREEN_CURSOR_UPDATE_LOCK
	.comm	_AVIVO_D1CUR_UPDATE,8,3         ; @AVIVO_D1CUR_UPDATE
	.comm	_AVIVO_D1CURSOR_UPDATE_LOCK,4,2 ; @AVIVO_D1CURSOR_UPDATE_LOCK
	.comm	_RADEON_CUR_OFFSET,8,3          ; @RADEON_CUR_OFFSET
	.comm	_RADEON_CUR_LOCK,4,2            ; @RADEON_CUR_LOCK
	.no_dead_strip	_radeon_lock_cursor
.subsections_via_symbols
