	.file	"extr_drm_auth.c_drm_dropmaster_ioctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Attempt to drop lessee %d as master\n"
	.text
	.p2align 4
	.globl	drm_dropmaster_ioctl
	.type	drm_dropmaster_ioctl, @function
drm_dropmaster_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, DWORD PTR EINVAL[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	neg	r12d
	call	mutex_lock@PLT
	mov	rdi, r13
	call	drm_is_current_master@PLT
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR 8[rax], 0
	je	.L3
	mov	esi, DWORD PTR [rax]
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_LEASE@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	xor	r12d, r12d
	call	drm_drop_master@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	drm_dropmaster_ioctl, .-drm_dropmaster_ioctl
	.comm	EINVAL,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_auth.c_drm_dropmaster_ioctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Attempt to drop lessee %d as master\012\000"
	.text
	.align	2
	.global	drm_dropmaster_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_dropmaster_ioctl, %function
drm_dropmaster_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	ldr	r7, .L12
	mov	r5, r0
	ldr	r4, [r7]
	bl	mutex_lock
	mov	r0, r6
	bl	drm_is_current_master
	cmp	r0, #0
	rsb	r4, r4, #0
	beq	.L2
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r6]
	ldr	r4, [r3, #4]
	cmp	r4, #0
	beq	.L3
	ldr	r1, [r3]
	ldr	r0, .L12+4
	bl	DRM_DEBUG_LEASE
	ldr	r4, [r7]
	rsb	r4, r4, #0
.L2:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r1, r6
	mov	r0, r5
	bl	drm_drop_master
	b	.L2
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	.LC0
	.size	drm_dropmaster_ioctl, .-drm_dropmaster_ioctl
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
