	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp1_cursor_set_position      ## -- Begin function hubp1_cursor_set_position
	.p2align	4, 0x90
_hubp1_cursor_set_position:             ## @hubp1_cursor_set_position
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_TO_DCN10_HUBP
	cmpq	$0, 16(%r12)
	je	LBB0_11
## %bb.1:
	movl	16(%rbx), %ecx
	movl	8(%r13), %r14d
	movl	12(%r13), %esi
	movl	20(%rbx), %r8d
	addl	%esi, %r8d
	movl	(%r13), %edx
	movl	4(%r13), %r10d
	subl	%ecx, %edx
	subl	%r10d, %edx
	movq	(%rbx), %rdi
	movq	_ROTATION_ANGLE_90@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	sete	%r9b
	movq	_ROTATION_ANGLE_270@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	sete	%al
	orb	%r9b, %al
	movl	%r14d, %r15d
	subl	%ecx, %r15d
	subl	%esi, %r15d
	testb	%al, %al
	cmovel	%edx, %r15d
	movl	%r10d, %edx
	cmovnel	%esi, %edx
	cmovnel	%r10d, %esi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, 48(%rbx)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	movl	24(%rbx), %eax
	subl	%r15d, %ecx
	addl	%eax, %ecx
	subl	%edx, %eax
	movl	%ecx, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
LBB0_4:
	subl	%r8d, %r14d
	movq	16(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testl	%r15d, %r15d
	cmovgl	%r15d, %eax
	imull	8(%rbx), %eax
	cltd
	idivl	12(%rbx)
	movl	%eax, %r12d
	movq	40(%rbx), %rdi
	callq	_ASSERT
	cmpq	$0, 40(%rbx)
	je	LBB0_5
## %bb.6:
	movl	%r12d, %edi
	callq	_dc_fixpt_from_int
	movq	40(%rbx), %rsi
	movl	%eax, %edi
	callq	_dc_fixpt_div
	movl	%eax, %edi
	callq	_dc_fixpt_floor
	jmp	LBB0_7
LBB0_5:
	movl	%r12d, %eax
LBB0_7:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%sil
	cmpl	24(%rbx), %r15d
	setl	%cl
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	addl	8(%r12), %r15d
	setg	%dl
	cmpl	32(%rbx), %r14d
	setl	%bl
	addl	(%r12), %r14d
	setg	%al
	andb	%bl, %al
	andb	%dl, %al
	andb	%sil, %cl
	andb	%al, %cl
	movzbl	%cl, %ebx
	cmpb	$1, %bl
	jne	LBB0_10
## %bb.8:
	movq	_CURSOR_SURFACE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
LBB0_10:
	movq	_CURSOR_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CURSOR_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_REG_UPDATE
	movq	_CURSOR_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CURSOR_X_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CURSOR_Y_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %ecx
	movl	8(%r13), %r9d
	xorl	%esi, %esi
	callq	_REG_SET_2
	movq	_CURSOR_HOT_SPOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CURSOR_HOT_SPOT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CURSOR_HOT_SPOT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_REG_SET_2
	movq	_CURSOR_DST_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CURSOR_DST_X_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_SET                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ROTATION_ANGLE_90,8,3          ## @ROTATION_ANGLE_90
	.comm	_ROTATION_ANGLE_270,8,3         ## @ROTATION_ANGLE_270
	.comm	_CURSOR_SURFACE_ADDRESS,4,2     ## @CURSOR_SURFACE_ADDRESS
	.comm	_CURSOR_CONTROL,4,2             ## @CURSOR_CONTROL
	.comm	_CURSOR_ENABLE,4,2              ## @CURSOR_ENABLE
	.comm	_CURSOR_POSITION,4,2            ## @CURSOR_POSITION
	.comm	_CURSOR_X_POSITION,4,2          ## @CURSOR_X_POSITION
	.comm	_CURSOR_Y_POSITION,4,2          ## @CURSOR_Y_POSITION
	.comm	_CURSOR_HOT_SPOT,4,2            ## @CURSOR_HOT_SPOT
	.comm	_CURSOR_HOT_SPOT_X,4,2          ## @CURSOR_HOT_SPOT_X
	.comm	_CURSOR_HOT_SPOT_Y,4,2          ## @CURSOR_HOT_SPOT_Y
	.comm	_CURSOR_DST_OFFSET,4,2          ## @CURSOR_DST_OFFSET
	.comm	_CURSOR_DST_X_OFFSET,4,2        ## @CURSOR_DST_X_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp1_cursor_set_position      ; -- Begin function hubp1_cursor_set_position
	.p2align	2
_hubp1_cursor_set_position:             ; @hubp1_cursor_set_position
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	bl	_TO_DCN10_HUBP
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_9
; %bb.1:
	ldp	w8, w11, [x19, #8]
	ldp	w10, w9, [x24, #16]
	add	w9, w11, w9
	ldp	w12, w13, [x19]
	add	w14, w10, w13
	sub	w12, w12, w14
	ldr	x14, [x24]
Lloh0:
	adrp	x15, _ROTATION_ANGLE_90@GOTPAGE
Lloh1:
	ldr	x15, [x15, _ROTATION_ANGLE_90@GOTPAGEOFF]
Lloh2:
	ldr	x15, [x15]
	cmp	x14, x15
Lloh3:
	adrp	x15, _ROTATION_ANGLE_270@GOTPAGE
Lloh4:
	ldr	x15, [x15, _ROTATION_ANGLE_270@GOTPAGEOFF]
Lloh5:
	ldr	x15, [x15]
	ccmp	x14, x15, #4, ne
	add	w14, w10, w11
	sub	w14, w8, w14
	csel	w25, w14, w12, eq
	csel	w21, w11, w13, eq
	csel	w20, w13, w11, eq
	ldr	x11, [x24, #48]
	cbz	x11, LBB0_3
; %bb.2:
	ldr	w11, [x24, #24]
	sub	w21, w11, w21
	sub	w10, w10, w25
	add	w25, w10, w11
LBB0_3:
	sub	w27, w8, w9
	ldr	x26, [x19, #16]
	cmp	w25, #0
	csel	w8, w25, wzr, gt
	ldp	w9, w10, [x24, #8]
	mul	w8, w9, w8
	ldr	x0, [x24, #40]
	sdiv	w23, w8, w10
	bl	_ASSERT
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_dc_fixpt_from_int
	ldr	x1, [x24, #40]
	bl	_dc_fixpt_div
	bl	_dc_fixpt_floor
	mov	x23, x0
LBB0_5:
	ldr	w8, [x24, #24]
	ldr	w9, [x22, #8]
	add	w9, w25, w9
	ldr	w10, [x24, #32]
	ldr	w11, [x22]
	add	w11, w27, w11
	cmp	w11, #0
	ccmp	w27, w10, #0, gt
	ccmp	w9, #0, #4, lt
	ccmp	w25, w8, #0, gt
	ccmp	x26, #0, #4, lt
	cset	w24, ne
	b.eq	LBB0_8
; %bb.6:
Lloh6:
	adrp	x8, _CURSOR_SURFACE_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CURSOR_SURFACE_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_REG_READ
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x22
	blr	x8
LBB0_8:
Lloh9:
	adrp	x8, _CURSOR_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CURSOR_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _CURSOR_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CURSOR_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_REG_UPDATE
Lloh15:
	adrp	x8, _CURSOR_POSITION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CURSOR_POSITION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _CURSOR_X_POSITION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CURSOR_X_POSITION@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh21:
	adrp	x8, _CURSOR_Y_POSITION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CURSOR_Y_POSITION@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	ldr	w5, [x19, #8]
	mov	w1, #0
	bl	_REG_SET_2
Lloh24:
	adrp	x8, _CURSOR_HOT_SPOT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CURSOR_HOT_SPOT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _CURSOR_HOT_SPOT_X@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CURSOR_HOT_SPOT_X@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _CURSOR_HOT_SPOT_Y@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CURSOR_HOT_SPOT_Y@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	mov	w1, #0
	mov	x3, x21
	mov	x5, x20
	bl	_REG_SET_2
Lloh33:
	adrp	x8, _CURSOR_DST_OFFSET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CURSOR_DST_OFFSET@GOTPAGEOFF]
Lloh35:
	adrp	x9, _CURSOR_DST_X_OFFSET@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CURSOR_DST_X_OFFSET@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	ldr	w2, [x9]
	mov	w1, #0
	mov	x3, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_REG_SET
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ROTATION_ANGLE_90,8,3          ; @ROTATION_ANGLE_90
	.comm	_ROTATION_ANGLE_270,8,3         ; @ROTATION_ANGLE_270
	.comm	_CURSOR_SURFACE_ADDRESS,4,2     ; @CURSOR_SURFACE_ADDRESS
	.comm	_CURSOR_CONTROL,4,2             ; @CURSOR_CONTROL
	.comm	_CURSOR_ENABLE,4,2              ; @CURSOR_ENABLE
	.comm	_CURSOR_POSITION,4,2            ; @CURSOR_POSITION
	.comm	_CURSOR_X_POSITION,4,2          ; @CURSOR_X_POSITION
	.comm	_CURSOR_Y_POSITION,4,2          ; @CURSOR_Y_POSITION
	.comm	_CURSOR_HOT_SPOT,4,2            ; @CURSOR_HOT_SPOT
	.comm	_CURSOR_HOT_SPOT_X,4,2          ; @CURSOR_HOT_SPOT_X
	.comm	_CURSOR_HOT_SPOT_Y,4,2          ; @CURSOR_HOT_SPOT_Y
	.comm	_CURSOR_DST_OFFSET,4,2          ; @CURSOR_DST_OFFSET
	.comm	_CURSOR_DST_X_OFFSET,4,2        ; @CURSOR_DST_X_OFFSET
.subsections_via_symbols
