	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_crtc_cursor_move           ## -- Begin function gma_crtc_cursor_move
	.p2align	4, 0x90
_gma_crtc_cursor_move:                  ## @gma_crtc_cursor_move
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	(%rdi), %r15
	callq	_to_gma_crtc
	movl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_CURSOR_POS_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_CURSOR_X_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CURSOR_Y_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_CURSOR_POS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gma_power_begin
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r13d, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%r12d, %edx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %ecx
	shll	%cl, %r13d
	sarl	$31, %edx
	andl	%eax, %edx
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%r13d, %eax
	orl	%edx, %eax
	movl	%ebx, %esi
	negl	%esi
	cmovsl	%ebx, %esi
	movl	%r12d, %edx
	negl	%edx
	cmovsl	%r12d, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	%ebx, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	andl	%ebx, %esi
	movl	%edi, %ecx
	shll	%cl, %esi
	orl	%edx, %esi
	orl	%eax, %esi
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	_CURBPOS@GOTPCREL(%rip), %rax
	cmoveq	_CURAPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CURBBASE@GOTPCREL(%rip), %rbx
	cmoveq	_CURABASE@GOTPCREL(%rip), %rbx
	callq	_REG_WRITE
	movl	(%rbx), %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_REG_WRITE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_gma_power_end
LBB0_2:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_POS_SIGN,4,2            ## @CURSOR_POS_SIGN
	.comm	_CURSOR_X_SHIFT,4,2             ## @CURSOR_X_SHIFT
	.comm	_CURSOR_Y_SHIFT,4,2             ## @CURSOR_Y_SHIFT
	.comm	_CURSOR_POS_MASK,4,2            ## @CURSOR_POS_MASK
	.comm	_CURAPOS,4,2                    ## @CURAPOS
	.comm	_CURBPOS,4,2                    ## @CURBPOS
	.comm	_CURABASE,4,2                   ## @CURABASE
	.comm	_CURBBASE,4,2                   ## @CURBBASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_crtc_cursor_move           ; -- Begin function gma_crtc_cursor_move
	.p2align	2
_gma_crtc_cursor_move:                  ; @gma_crtc_cursor_move
	.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	x22, x2
	mov	x21, x1
	ldr	x19, [x0]
	bl	_to_gma_crtc
Lloh0:
	adrp	x8, _CURSOR_POS_SIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CURSOR_POS_SIGN@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x8, _CURSOR_X_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CURSOR_X_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _CURSOR_Y_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CURSOR_Y_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x8, _CURSOR_POS_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CURSOR_POS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
	ldp	w23, w20, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_gma_power_begin
	cbz	x0, LBB0_2
; %bb.1:
	lsl	w8, w27, w25
	and	w8, w8, w21, asr #31
	lsl	w9, w27, w24
	and	w9, w9, w22, asr #31
	orr	w8, w9, w8
	cmp	w22, #0
	cneg	w9, w22, mi
	cmp	w21, #0
	cneg	w10, w21, mi
	and	w10, w26, w10
	lsl	w10, w10, w25
	orr	w8, w8, w10
	and	w9, w26, w9
	lsl	w9, w9, w24
Lloh12:
	adrp	x10, _CURAPOS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CURAPOS@GOTPAGEOFF]
	orr	w1, w8, w9
Lloh14:
	adrp	x8, _CURBPOS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CURBPOS@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x10, x8, eq
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _CURABASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CURABASE@GOTPAGEOFF]
Lloh18:
	adrp	x9, _CURBBASE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CURBBASE@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	bl	_REG_WRITE
	ldr	w0, [x21]
	mov	x1, x20
	bl	_REG_WRITE
	mov	x0, x19
	bl	_gma_power_end
LBB0_2:
	mov	w0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_POS_SIGN,4,2            ; @CURSOR_POS_SIGN
	.comm	_CURSOR_X_SHIFT,4,2             ; @CURSOR_X_SHIFT
	.comm	_CURSOR_Y_SHIFT,4,2             ; @CURSOR_Y_SHIFT
	.comm	_CURSOR_POS_MASK,4,2            ; @CURSOR_POS_MASK
	.comm	_CURAPOS,4,2                    ; @CURAPOS
	.comm	_CURBPOS,4,2                    ; @CURBPOS
	.comm	_CURABASE,4,2                   ; @CURABASE
	.comm	_CURBBASE,4,2                   ; @CURBBASE
.subsections_via_symbols
