	.file	"extr_drm_ioctl.c_drm_setclientcap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"broken atomic modeset userspace detected, disabling atomic\n"
	.text
	.p2align 4
	.type	drm_setclientcap, @function
drm_setclientcap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	esi, DWORD PTR DRIVER_MODESET[rip]
	call	drm_core_check_feature@PLT
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR [rbx]
	add	eax, -128
	cmp	eax, 4
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR DRIVER_ATOMIC[rip]
	mov	rdi, rbp
	call	drm_core_check_feature@PLT
	test	eax, eax
	je	.L18
	mov	rdx, QWORD PTR current[rip]
	mov	eax, DWORD PTR 4[rbx]
	mov	rdx, QWORD PTR [rdx]
	cmp	BYTE PTR [rdx], 88
	jne	.L14
	cmp	eax, 1
	jne	.L14
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[r12]
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 1
	jle	.L20
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 1
	jg	.L4
	mov	DWORD PTR 12[r12], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 1
	jg	.L4
	mov	DWORD PTR 4[r12], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 1
	jg	.L4
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	eax, 2
	jg	.L4
	mov	DWORD PTR 8[r12], eax
	mov	DWORD PTR 4[r12], eax
	mov	DWORD PTR 12[r12], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	DWORD PTR 16[r12], eax
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	drm_setclientcap, .-drm_setclientcap
	.comm	current,8,8
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	DRIVER_MODESET,4,4
	.comm	DRIVER_ATOMIC,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_ioctl.c_drm_setclientcap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"broken atomic modeset userspace detected, disabling"
	.ascii	" atomic\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_setclientcap, %function
drm_setclientcap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L24
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, [r3]
	mov	r6, r2
	mov	r5, r0
	bl	drm_core_check_feature
	cmp	r0, #0
	beq	.L21
	ldr	r3, [r4]
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L7:
	ldr	r3, .L24+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	drm_core_check_feature
	cmp	r0, #0
	beq	.L21
	ldr	r2, .L24+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r2, [r2]
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, #88
	bne	.L14
	cmp	r3, #1
	bne	.L14
	ldr	r0, .L24+12
	bl	pr_info
.L21:
	ldr	r3, .L24+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #1
	ble	.L23
.L4:
	ldr	r3, .L24+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, [r4, #4]
	cmp	r3, #1
	bgt	.L4
	mov	r0, #0
	str	r3, [r6, #12]
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, [r4, #4]
	cmp	r3, #1
	bgt	.L4
	mov	r0, #0
	str	r3, [r6, #4]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, [r4, #4]
	cmp	r3, #1
	bgt	.L4
	mov	r0, #0
	str	r3, [r6]
	pop	{r4, r5, r6, pc}
.L14:
	cmp	r3, #2
	bgt	.L4
	mov	r0, #0
	str	r3, [r6, #8]
	str	r3, [r6, #4]
	str	r3, [r6, #12]
	pop	{r4, r5, r6, pc}
.L23:
	mov	r0, #0
	str	r3, [r6, #16]
	pop	{r4, r5, r6, pc}
.L25:
	.align	2
.L24:
	.word	DRIVER_MODESET
	.word	DRIVER_ATOMIC
	.word	current
	.word	.LC0
	.word	EOPNOTSUPP
	.word	EINVAL
	.size	drm_setclientcap, .-drm_setclientcap
	.comm	current,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	DRIVER_MODESET,4,4
	.comm	DRIVER_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
