	.file	"extr_drm_drv.c_drm_minor_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	drm_minor_alloc, @function
drm_minor_alloc:
.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, rdi
	mov	edi, 24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rax], r13d
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	xor	r15d, r15d
	mov	rbp, rax
	mov	QWORD PTR 16[rax], r14
	call	idr_preload@PLT
	mov	rsi, r15
	lea	rdi, drm_minor_lock[rip]
	call	spin_lock_irqsave@PLT
	lea	ecx, 1[r13]
	xor	esi, esi
	mov	r8d, DWORD PTR GFP_NOWAIT[rip]
	sal	ecx, 6
	lea	rdi, drm_minors_idr[rip]
	lea	edx, -64[rcx]
	call	idr_alloc@PLT
	mov	rsi, r15
	lea	rdi, drm_minor_lock[rip]
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	call	idr_preload_end@PLT
	test	r12d, r12d
	js	.L4
	mov	DWORD PTR 4[rbp], r12d
	mov	rdi, rbp
	call	drm_sysfs_minor_alloc@PLT
	mov	DWORD PTR 8[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L8
	mov	esi, r13d
	mov	rdi, r14
	xor	r12d, r12d
	call	drm_minor_get_slot@PLT
	mov	QWORD PTR [rax], rbp
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	call	PTR_ERR@PLT
	mov	rsi, r15
	lea	rdi, drm_minor_lock[rip]
	mov	r12d, eax
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR 4[rbp]
	lea	rdi, drm_minors_idr[rip]
	call	idr_remove@PLT
	mov	rsi, r15
	lea	rdi, drm_minor_lock[rip]
	call	spin_unlock_irqrestore@PLT
.L4:
	mov	rdi, rbp
	call	kfree@PLT
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	drm_minor_alloc, .-drm_minor_alloc
	.comm	drm_minors_idr,4,4
	.comm	drm_minor_lock,4,4
	.comm	GFP_NOWAIT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_drv.c_drm_minor_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_minor_alloc, %function
drm_minor_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L10
	mov	r7, r0
	mov	r6, r1
	mov	r0, #16
	ldr	r1, [r5]
	sub	sp, sp, #8
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L8
	mov	r8, #0
	ldr	r0, [r5]
	str	r6, [r4]
	str	r7, [r4, #12]
	bl	idr_preload
	mov	r1, r8
	ldr	r0, .L10+4
	bl	spin_lock_irqsave
	ldr	r3, .L10+8
	lsl	r2, r6, #6
	ldr	r1, [r3]
	ldr	r0, .L10+12
	add	r3, r2, #64
	str	r1, [sp]
	mov	r1, r8
	bl	idr_alloc
	mov	r5, r0
	mov	r1, r8
	ldr	r0, .L10+4
	bl	spin_unlock_irqrestore
	bl	idr_preload_end
	cmp	r5, r8
	blt	.L4
	str	r5, [r4, #4]
	mov	r0, r4
	bl	drm_sysfs_minor_alloc
	str	r0, [r4, #8]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L9
	mov	r1, r6
	mov	r0, r7
	bl	drm_minor_get_slot
	str	r4, [r0]
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, [r4, #8]
	bl	PTR_ERR
	mov	r1, r8
	mov	r5, r0
	ldr	r0, .L10+4
	bl	spin_lock_irqsave
	ldr	r1, [r4, #4]
	ldr	r0, .L10+12
	bl	idr_remove
	mov	r1, r8
	ldr	r0, .L10+4
	bl	spin_unlock_irqrestore
.L4:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L10+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	GFP_KERNEL
	.word	drm_minor_lock
	.word	GFP_NOWAIT
	.word	drm_minors_idr
	.word	ENOMEM
	.size	drm_minor_alloc, .-drm_minor_alloc
	.comm	drm_minors_idr,4,4
	.comm	drm_minor_lock,4,4
	.comm	GFP_NOWAIT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
