	.file	"extr_drm_crtc.c_drm_mode_obj_set_property_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_mode_obj_set_property_ioctl
	.type	drm_mode_obj_set_property_ioctl, @function
drm_mode_obj_set_property_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR EINVAL[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	esi, DWORD PTR DRIVER_MODESET[rip]
	neg	r12d
	call	drm_core_check_feature@PLT
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	sx_xlock@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	drm_mode_object_find@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L4
	mov	r8d, DWORD PTR [rax]
	test	r8d, r8d
	jle	.L11
	lea	edx, -1[r8]
	mov	rcx, QWORD PTR 8[rax]
	mov	rsi, QWORD PTR 8[rbx]
	mov	eax, 1
	add	rdx, 2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, eax
	add	rax, 1
	cmp	rax, rdx
	je	.L5
.L7:
	cmp	QWORD PTR -8[rcx+rax*8], rsi
	jne	.L27
.L6:
	mov	edx, DWORD PTR DRM_MODE_OBJECT_PROPERTY[rip]
	mov	rdi, rbp
	call	drm_mode_object_find@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L4
	call	obj_to_property@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rax
	mov	r14, rax
	call	drm_property_change_is_valid@PLT
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR 0[r13]
	cmp	eax, 129
	je	.L8
	cmp	eax, 130
	je	.L9
	cmp	eax, 128
	je	.L28
.L4:
	mov	rdi, rbp
	call	sx_xunlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	xor	edi, edi
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	r8d, edi
	je	.L4
	mov	rsi, QWORD PTR 8[rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, DWORD PTR 16[rbx]
	mov	rsi, r14
	mov	rdi, r13
	call	drm_mode_plane_set_obj_prop@PLT
	mov	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR 16[rbx]
	mov	rsi, r14
	mov	rdi, r13
	call	drm_mode_connector_set_obj_prop@PLT
	mov	r12d, eax
	jmp	.L4
.L8:
	mov	edx, DWORD PTR 16[rbx]
	mov	rsi, r14
	mov	rdi, r13
	call	drm_mode_crtc_set_obj_prop@PLT
	mov	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	drm_mode_obj_set_property_ioctl, .-drm_mode_obj_set_property_ioctl
	.comm	EINVAL,4,4
	.comm	DRM_MODE_OBJECT_PROPERTY,4,4
	.comm	DRIVER_MODESET,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_drm_crtc.c_drm_mode_obj_set_property_ioctl.c"
	.text
	.align	2
	.global	drm_mode_obj_set_property_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_mode_obj_set_property_ioctl, %function
drm_mode_obj_set_property_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L28
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L28+4
	mov	r6, r1
	ldr	r1, [r3]
	mov	r5, r0
	ldr	r4, [r7]
	bl	drm_core_check_feature
	cmp	r0, #0
	bne	.L2
	ldr	r4, [r7]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	sx_xlock
	mov	r0, r5
	ldr	r2, [r6, #12]
	ldr	r1, [r6]
	bl	drm_mode_object_find
	subs	r7, r0, #0
	rsb	r4, r4, #0
	beq	.L4
	ldr	r2, [r7, #4]
	cmp	r2, #0
	beq	.L4
	ldr	r0, [r2]
	cmp	r0, #0
	ble	.L5
	ldr	r2, [r2, #4]
	mov	r3, #0
	ldr	r1, [r6, #4]
	sub	r2, r2, #4
	b	.L7
.L26:
	cmp	r0, r3
	beq	.L4
.L7:
	ldr	ip, [r2, #4]!
	add	r3, r3, #1
	cmp	ip, r1
	bne	.L26
.L6:
	ldr	r3, .L28+8
	mov	r0, r5
	ldr	r2, [r3]
	bl	drm_mode_object_find
	cmp	r0, #0
	beq	.L4
	bl	obj_to_property
	ldr	r1, [r6, #8]
	mov	r8, r0
	bl	drm_property_change_is_valid
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r7]
	cmp	r3, #129
	beq	.L8
	cmp	r3, #130
	beq	.L9
	cmp	r3, #128
	beq	.L27
.L4:
	mov	r0, r5
	bl	sx_xunlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	beq	.L4
	ldr	r1, [r6, #4]
	b	.L6
.L27:
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [r6, #8]
	bl	drm_mode_plane_set_obj_prop
	mov	r4, r0
	b	.L4
.L9:
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [r6, #8]
	bl	drm_mode_connector_set_obj_prop
	mov	r4, r0
	b	.L4
.L8:
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [r6, #8]
	bl	drm_mode_crtc_set_obj_prop
	mov	r4, r0
	b	.L4
.L29:
	.align	2
.L28:
	.word	DRIVER_MODESET
	.word	EINVAL
	.word	DRM_MODE_OBJECT_PROPERTY
	.size	drm_mode_obj_set_property_ioctl, .-drm_mode_obj_set_property_ioctl
	.comm	EINVAL,4,4
	.comm	DRM_MODE_OBJECT_PROPERTY,4,4
	.comm	DRIVER_MODESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
