	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_drm_crtc_cursor_set
_armada_drm_crtc_cursor_set:            ## @armada_drm_crtc_cursor_set
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	callq	_drm_to_armada_crtc
	movq	%rax, %r14
	movq	16(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.4:
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.5:
	testl	%r12d, %r12d
	jle	LBB0_17
## %bb.6:
	cmpl	$64, %r15d
	ja	LBB0_10
## %bb.7:
	cmpl	$64, %r12d
	ja	LBB0_10
## %bb.8:
	cmpl	$33, %r15d
	jb	LBB0_11
## %bb.9:
	cmpl	$33, %r12d
	jb	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_11:
	movl	%r13d, %esi
	callq	_armada_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movq	%rax, %r13
	addq	$16, %r13
	cmpl	$0, 20(%rax)
	je	LBB0_14
## %bb.15:
	movl	%r15d, %eax
	imull	%r12d, %eax
	shll	$2, %eax
	cmpl	%eax, (%r13)
	jge	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r13, %rdi
	callq	_drm_gem_object_put_unlocked
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_17:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	addq	$16, %rdi
	callq	_drm_gem_object_put_unlocked
LBB0_19:
	movq	%rbx, 8(%r14)
	movl	%r15d, (%r14)
	movl	%r12d, 4(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_armada_drm_crtc_cursor_update
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.20:
	movq	%r14, 8(%rbx)
	movq	_cursor_update@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_14:
	movq	%r13, %rdi
	callq	_drm_gem_object_put_unlocked
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer is too small\n"

	.comm	_cursor_update,8,3              ## @cursor_update
	.no_dead_strip	_armada_drm_crtc_cursor_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_drm_crtc_cursor_set
_armada_drm_crtc_cursor_set:            ; @armada_drm_crtc_cursor_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	bl	_drm_to_armada_crtc
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	cbz	w23, LBB0_15
; %bb.2:
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_15
; %bb.4:
	cmp	w21, #64
	b.hi	LBB0_8
; %bb.5:
	cmp	w20, #64
	b.hi	LBB0_8
; %bb.6:
	cmp	w21, #33
	b.lo	LBB0_11
; %bb.7:
	cmp	w20, #33
	b.lo	LBB0_11
LBB0_8:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_11:
	mov	x0, x24
	mov	x1, x23
	bl	_armada_gem_object_lookup
	cbz	x0, LBB0_20
; %bb.12:
	mov	x22, x0
	ldr	w8, [x0, #20]
	add	x23, x0, #16
	cbz	w8, LBB0_21
; %bb.13:
	ldr	w8, [x23]
	mul	w9, w21, w20
	cmp	w8, w9, lsl #2
	b.ge	LBB0_15
; %bb.14:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x23
	bl	_drm_gem_object_put_unlocked
	b	LBB0_8
LBB0_15:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
; %bb.16:
	add	x0, x8, #16
	stp	xzr, xzr, [x8]
	bl	_drm_gem_object_put_unlocked
LBB0_17:
	str	x22, [x19, #8]
	stp	w21, w20, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_armada_drm_crtc_cursor_update
	cbz	x22, LBB0_19
; %bb.18:
Lloh6:
	adrp	x8, _cursor_update@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cursor_update@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, x19, [x22]
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_21:
	mov	x0, x23
	bl	_drm_gem_object_put_unlocked
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer is too small\n"

	.comm	_cursor_update,8,3              ; @cursor_update
	.no_dead_strip	_armada_drm_crtc_cursor_set
.subsections_via_symbols
