	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_hide_cursor
_radeon_hide_cursor:                    ## @radeon_hide_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_to_radeon_crtc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ASIC_IS_DCE4
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EVERGREEN_CUR_CONTROL@GOTPCREL(%rip), %rax
	movq	8(%r14), %r14
	addq	(%rax), %r14
	movq	_EVERGREEN_CURSOR_24_8_PRE_MULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVERGREEN_CURSOR_MODE
	movl	%eax, %ebx
	movq	_EVERGREEN_CURSOR_URGENT_1_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVERGREEN_CURSOR_URGENT_CONTROL
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_ASIC_IS_AVIVO
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_AVIVO_D1CUR_CONTROL@GOTPCREL(%rip), %rax
	movq	8(%r14), %rdi
	addq	(%rax), %rdi
	movq	_AVIVO_D1CURSOR_MODE_24BPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AVIVO_D1CURSOR_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	jmp	LBB0_4
LBB0_5:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.8:
	movq	_RADEON_CRTC2_GEN_CNTL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_RADEON_CRTC_GEN_CNTL@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_RREG32_IDX
	movq	_RADEON_CRTC_CUR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	%rbx, %rdi
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32_IDX                     ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVERGREEN_CUR_CONTROL,8,3      ## @EVERGREEN_CUR_CONTROL
	.comm	_EVERGREEN_CURSOR_24_8_PRE_MULT,4,2 ## @EVERGREEN_CURSOR_24_8_PRE_MULT
	.comm	_EVERGREEN_CURSOR_URGENT_1_2,4,2 ## @EVERGREEN_CURSOR_URGENT_1_2
	.comm	_AVIVO_D1CUR_CONTROL,8,3        ## @AVIVO_D1CUR_CONTROL
	.comm	_AVIVO_D1CURSOR_MODE_24BPP,4,2  ## @AVIVO_D1CURSOR_MODE_24BPP
	.comm	_AVIVO_D1CURSOR_MODE_SHIFT,4,2  ## @AVIVO_D1CURSOR_MODE_SHIFT
	.comm	_RADEON_CRTC_GEN_CNTL,8,3       ## @RADEON_CRTC_GEN_CNTL
	.comm	_RADEON_CRTC2_GEN_CNTL,8,3      ## @RADEON_CRTC2_GEN_CNTL
	.comm	_RADEON_CRTC_CUR_EN,4,2         ## @RADEON_CRTC_CUR_EN
	.no_dead_strip	_radeon_hide_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_hide_cursor
_radeon_hide_cursor:                    ; @radeon_hide_cursor
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_to_radeon_crtc
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ASIC_IS_DCE4
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EVERGREEN_CUR_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVERGREEN_CUR_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x19, x9, x8
Lloh3:
	adrp	x8, _EVERGREEN_CURSOR_24_8_PRE_MULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVERGREEN_CURSOR_24_8_PRE_MULT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_EVERGREEN_CURSOR_MODE
	mov	x20, x0
Lloh6:
	adrp	x8, _EVERGREEN_CURSOR_URGENT_1_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVERGREEN_CURSOR_URGENT_1_2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_EVERGREEN_CURSOR_URGENT_CONTROL
	orr	w1, w0, w20
LBB0_2:
	mov	x0, x19
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_ASIC_IS_AVIVO
	cbz	x0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _AVIVO_D1CUR_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVIVO_D1CUR_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x0, x9, x8
Lloh12:
	adrp	x8, _AVIVO_D1CURSOR_MODE_24BPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVIVO_D1CURSOR_MODE_24BPP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _AVIVO_D1CURSOR_MODE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AVIVO_D1CURSOR_MODE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsl	w1, w8, w9
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_IDX
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.8:
Lloh18:
	adrp	x8, _RADEON_CRTC2_GEN_CNTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RADEON_CRTC2_GEN_CNTL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x8, _RADEON_CRTC_GEN_CNTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RADEON_CRTC_GEN_CNTL@GOTPAGEOFF]
LBB0_10:
	ldr	x19, [x8]
	mov	x0, x19
	bl	_RREG32_IDX
Lloh22:
	adrp	x8, _RADEON_CRTC_CUR_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RADEON_CRTC_CUR_EN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bic	w1, w0, w8
	b	LBB0_2
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EVERGREEN_CUR_CONTROL,8,3      ; @EVERGREEN_CUR_CONTROL
	.comm	_EVERGREEN_CURSOR_24_8_PRE_MULT,4,2 ; @EVERGREEN_CURSOR_24_8_PRE_MULT
	.comm	_EVERGREEN_CURSOR_URGENT_1_2,4,2 ; @EVERGREEN_CURSOR_URGENT_1_2
	.comm	_AVIVO_D1CUR_CONTROL,8,3        ; @AVIVO_D1CUR_CONTROL
	.comm	_AVIVO_D1CURSOR_MODE_24BPP,4,2  ; @AVIVO_D1CURSOR_MODE_24BPP
	.comm	_AVIVO_D1CURSOR_MODE_SHIFT,4,2  ; @AVIVO_D1CURSOR_MODE_SHIFT
	.comm	_RADEON_CRTC_GEN_CNTL,8,3       ; @RADEON_CRTC_GEN_CNTL
	.comm	_RADEON_CRTC2_GEN_CNTL,8,3      ; @RADEON_CRTC2_GEN_CNTL
	.comm	_RADEON_CRTC_CUR_EN,4,2         ; @RADEON_CRTC_CUR_EN
	.no_dead_strip	_radeon_hide_cursor
.subsections_via_symbols
