	.file	"extr_dce_v11_0.c_dce_v11_0_crtc_cursor_set2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bad cursor width or height %d x %d\n"
	.align 8
.LC1:
	.string	"Cannot find cursor object %x for crtc %d\n"
	.align 8
.LC2:
	.string	"Failed to pin new cursor BO (%d)\n"
	.text
	.p2align 4
	.type	dce_v11_0_crtc_cursor_set2, @function
dce_v11_0_crtc_cursor_set2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], r9
	call	to_amdgpu_crtc@PLT
	mov	r15, rax
	test	r12, r12
	je	.L24
	cmp	QWORD PTR [rax], rbx
	jl	.L4
	cmp	QWORD PTR 8[rax], r13
	jge	.L5
.L4:
	mov	rdx, r13
	mov	esi, ebx
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r14
	mov	rsi, r12
	call	drm_gem_object_lookup@PLT
	mov	r14, rax
	test	rax, rax
	je	.L25
	mov	rdi, rax
	call	gem_to_amdgpu_bo@PLT
	xor	esi, esi
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	amdgpu_bo_reserve@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	jne	.L22
	mov	esi, DWORD PTR AMDGPU_GEM_DOMAIN_VRAM[rip]
	mov	QWORD PTR 8[rsp], rdi
	call	amdgpu_bo_pin@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, eax
	call	amdgpu_bo_unreserve@PLT
	test	r12d, r12d
	mov	rdi, QWORD PTR 8[rsp]
	jne	.L26
	call	amdgpu_bo_gpu_offset@PLT
	mov	esi, 1
	mov	rdi, rbp
	mov	DWORD PTR 72[r15], eax
	call	dce_v11_0_lock_cursor@PLT
	cmp	QWORD PTR 16[r15], rbx
	mov	rax, QWORD PTR 32[r15]
	mov	rsi, QWORD PTR 40[r15]
	jne	.L11
	cmp	QWORD PTR 24[r15], r13
	je	.L27
.L11:
	mov	edx, DWORD PTR 56[r15]
	sub	edx, DWORD PTR 80[rsp]
	mov	rdi, rbp
	mov	r12, QWORD PTR [rsp]
	add	edx, esi
	mov	esi, DWORD PTR 48[r15]
	sub	esi, r12d
	add	esi, eax
	call	dce_v11_0_cursor_move_locked@PLT
	mov	rax, QWORD PTR 80[rsp]
	mov	QWORD PTR 16[r15], rbx
	mov	QWORD PTR 24[r15], r13
	mov	QWORD PTR 32[r15], r12
	mov	QWORD PTR 40[r15], rax
.L12:
	mov	rdi, rbp
	call	dce_v11_0_show_cursor@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	dce_v11_0_lock_cursor@PLT
	mov	rdi, QWORD PTR 64[r15]
	test	rdi, rdi
	je	.L13
.L29:
	call	gem_to_amdgpu_bo@PLT
	mov	esi, 1
	mov	rdi, rax
	mov	rbp, rax
	call	amdgpu_bo_reserve@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	likely@PLT
	test	rax, rax
	jne	.L28
.L14:
	mov	rdi, QWORD PTR 64[r15]
	call	drm_gem_object_put_unlocked@PLT
.L13:
	mov	QWORD PTR 64[r15], r14
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
.L3:
	endbr64
	mov	rdi, rbp
	xor	r14d, r14d
	call	dce_v11_0_hide_cursor@PLT
	mov	rdi, QWORD PTR 64[r15]
	test	rdi, rdi
	jne	.L29
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
.L22:
	mov	rdi, r14
	call	drm_gem_object_put_unlocked@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR 76[r15]
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	call	amdgpu_bo_unpin@PLT
	mov	rdi, rbp
	call	amdgpu_bo_unreserve@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L27:
	cmp	QWORD PTR [rsp], rax
	jne	.L11
	cmp	QWORD PTR 80[rsp], rsi
	jne	.L11
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	dce_v11_0_crtc_cursor_set2, .-dce_v11_0_crtc_cursor_set2
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	AMDGPU_GEM_DOMAIN_VRAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dce_v11_0.c_dce_v11_0_crtc_cursor_set2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad cursor width or height %d x %d\012\000"
	.align	2
.LC1:
	.ascii	"Cannot find cursor object %x for crtc %d\012\000"
	.align	2
.LC2:
	.ascii	"Failed to pin new cursor BO (%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dce_v11_0_crtc_cursor_set2, %function
dce_v11_0_crtc_cursor_set2:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r9, r1
	mov	r6, r3
	mov	r7, r0
	ldr	r8, [sp, #32]
	bl	to_amdgpu_crtc
	cmp	r5, #0
	mov	r4, r0
	beq	.L24
	ldr	r3, [r0]
	cmp	r3, r6
	blt	.L4
	ldr	r3, [r0, #4]
	cmp	r3, r8
	bge	.L5
.L4:
	mov	r2, r8
	mov	r1, r6
	ldr	r0, .L29
	bl	DRM_ERROR
	ldr	r3, .L29+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r0, r9
	mov	r1, r5
	bl	drm_gem_object_lookup
	subs	r9, r0, #0
	beq	.L25
	bl	gem_to_amdgpu_bo
	mov	r1, #0
	mov	r10, r0
	bl	amdgpu_bo_reserve
	subs	r5, r0, #0
	bne	.L22
	ldr	r3, .L29+8
	mov	r0, r10
	ldr	r1, [r3]
	bl	amdgpu_bo_pin
	mov	r5, r0
	mov	r0, r10
	bl	amdgpu_bo_unreserve
	cmp	r5, #0
	bne	.L26
	mov	r0, r10
	bl	amdgpu_bo_gpu_offset
	mov	r1, #1
	str	r0, [r4, #36]
	mov	r0, r7
	bl	dce_v11_0_lock_cursor
	ldr	r3, [r4, #8]
	cmp	r3, r6
	beq	.L10
	ldr	r1, [r4, #16]
	ldr	r2, [r4, #20]
.L11:
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #28]
	add	r1, r1, r3
	ldr	r3, [sp, #40]
	add	r2, r2, r0
	sub	r2, r2, r3
	ldr	r3, [sp, #36]
	mov	r0, r7
	sub	r1, r1, r3
	bl	dce_v11_0_cursor_move_locked
	ldr	r3, [sp, #36]
	str	r6, [r4, #8]
	str	r3, [r4, #16]
	ldr	r3, [sp, #40]
	str	r8, [r4, #12]
	str	r3, [r4, #20]
.L12:
	mov	r0, r7
	bl	dce_v11_0_show_cursor
	mov	r0, r7
	mov	r1, #0
	bl	dce_v11_0_lock_cursor
	ldr	r0, [r4, #32]
	cmp	r0, #0
	beq	.L13
.L28:
	bl	gem_to_amdgpu_bo
	mov	r1, #1
	mov	r5, r0
	bl	amdgpu_bo_reserve
	clz	r0, r0
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	bne	.L27
.L14:
	ldr	r0, [r4, #32]
	bl	drm_gem_object_put_unlocked
.L13:
	mov	r5, #0
	str	r9, [r4, #32]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
.L3:
	mov	r0, r7
	bl	dce_v11_0_hide_cursor
	ldr	r0, [r4, #32]
	mov	r9, r5
	cmp	r0, #0
	bne	.L28
	b	.L13
.L26:
	mov	r1, r5
	ldr	r0, .L29+12
	bl	DRM_ERROR
.L22:
	mov	r0, r9
	bl	drm_gem_object_put_unlocked
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #16]
	cmp	r3, r8
	ldr	r2, [r4, #20]
	bne	.L11
	ldr	r3, [sp, #36]
	cmp	r3, r1
	bne	.L11
	ldr	r3, [sp, #40]
	cmp	r3, r2
	bne	.L11
	b	.L12
.L25:
	mov	r1, r5
	ldr	r2, [r4, #40]
	ldr	r0, .L29+16
	bl	DRM_ERROR
	ldr	r3, .L29+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L27:
	mov	r0, r5
	bl	amdgpu_bo_unpin
	mov	r0, r5
	bl	amdgpu_bo_unreserve
	b	.L14
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	EINVAL
	.word	AMDGPU_GEM_DOMAIN_VRAM
	.word	.LC2
	.word	.LC1
	.word	ENOENT
	.size	dce_v11_0_crtc_cursor_set2, .-dce_v11_0_crtc_cursor_set2
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	AMDGPU_GEM_DOMAIN_VRAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
