	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp2_set_cursor_attributes     ## -- Begin function dpp2_set_cursor_attributes
	.p2align	4, 0x90
_dpp2_set_cursor_attributes:            ## @dpp2_set_cursor_attributes
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	(%rsi), %ebx
	callq	_TO_DCN20_DPP
	movq	_CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	_CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	setne	%al
LBB0_3:
	movq	_CURSOR0_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_CUR0_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CUR0_EXPANSION_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CUR0_ROM_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%eax, (%rsp)
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_3
	movq	_CURSOR_MODE_MONO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.5:
	movq	_CURSOR0_COLOR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CUR0_COLOR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_CURSOR0_COLOR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CUR0_COLOR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA,4,2 ## @CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA,4,2 ## @CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR0_CONTROL,4,2            ## @CURSOR0_CONTROL
	.comm	_CUR0_MODE,4,2                  ## @CUR0_MODE
	.comm	_CUR0_EXPANSION_MODE,4,2        ## @CUR0_EXPANSION_MODE
	.comm	_CUR0_ROM_EN,4,2                ## @CUR0_ROM_EN
	.comm	_CURSOR_MODE_MONO,4,2           ## @CURSOR_MODE_MONO
	.comm	_CURSOR0_COLOR0,4,2             ## @CURSOR0_COLOR0
	.comm	_CUR0_COLOR0,4,2                ## @CUR0_COLOR0
	.comm	_CURSOR0_COLOR1,4,2             ## @CURSOR0_COLOR1
	.comm	_CUR0_COLOR1,4,2                ## @CUR0_COLOR1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp2_set_cursor_attributes     ; -- Begin function dpp2_set_cursor_attributes
	.p2align	2
_dpp2_set_cursor_attributes:            ; @dpp2_set_cursor_attributes
	.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, x1
	ldr	w19, [x1]
	bl	_TO_DCN20_DPP
Lloh0:
	adrp	x8, _CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w19, w8
	ccmp	w19, w9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w6, ne
	b	LBB0_3
LBB0_2:
	mov	w6, #0
LBB0_3:
Lloh6:
	adrp	x8, _CURSOR0_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CURSOR0_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _CUR0_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CUR0_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _CUR0_EXPANSION_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CUR0_EXPANSION_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _CUR0_ROM_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CUR0_ROM_EN@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	x2, x19
	mov	w4, #0
	bl	_REG_UPDATE_3
Lloh18:
	adrp	x8, _CURSOR_MODE_MONO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CURSOR_MODE_MONO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _CURSOR0_COLOR0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CURSOR0_COLOR0@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _CUR0_COLOR0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CUR0_COLOR0@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_REG_UPDATE
Lloh27:
	adrp	x8, _CURSOR0_COLOR1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CURSOR0_COLOR1@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _CUR0_COLOR1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CUR0_COLOR1@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w2, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_UPDATE
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA,4,2 ; @CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA,4,2 ; @CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR0_CONTROL,4,2            ; @CURSOR0_CONTROL
	.comm	_CUR0_MODE,4,2                  ; @CUR0_MODE
	.comm	_CUR0_EXPANSION_MODE,4,2        ; @CUR0_EXPANSION_MODE
	.comm	_CUR0_ROM_EN,4,2                ; @CUR0_ROM_EN
	.comm	_CURSOR_MODE_MONO,4,2           ; @CURSOR_MODE_MONO
	.comm	_CURSOR0_COLOR0,4,2             ; @CURSOR0_COLOR0
	.comm	_CUR0_COLOR0,4,2                ; @CUR0_COLOR0
	.comm	_CURSOR0_COLOR1,4,2             ; @CURSOR0_COLOR1
	.comm	_CUR0_COLOR1,4,2                ; @CUR0_COLOR1
.subsections_via_symbols
