	.file	"extr_drm_syncobj.c_drm_syncobj_get_handle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_syncobj_get_handle
	.type	drm_syncobj_get_handle, @function
drm_syncobj_get_handle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	drm_syncobj_get@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	idr_preload@PLT
	mov	rdi, rbp
	call	spin_lock@PLT
	xor	ecx, ecx
	lea	rdi, 4[rbp]
	mov	edx, 1
	mov	r8d, DWORD PTR GFP_NOWAIT[rip]
	mov	rsi, r13
	call	idr_alloc@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock@PLT
	xor	eax, eax
	call	idr_preload_end@PLT
	test	r12d, r12d
	js	.L6
	mov	DWORD PTR [rbx], r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.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
.L6:
	.cfi_restore_state
	mov	rdi, r13
	call	drm_syncobj_put@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	drm_syncobj_get_handle, .-drm_syncobj_get_handle
	.comm	GFP_NOWAIT,4,4
	.comm	GFP_KERNEL,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_syncobj.c_drm_syncobj_get_handle.c"
	.text
	.align	2
	.global	drm_syncobj_get_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_syncobj_get_handle, %function
drm_syncobj_get_handle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	mov	r6, r1
	sub	sp, sp, #12
	mov	r0, r1
	mov	r7, r2
	bl	drm_syncobj_get
	ldr	r3, .L7
	ldr	r0, [r3]
	bl	idr_preload
	mov	r0, r5
	bl	spin_lock
	ldr	r3, .L7+4
	mov	r1, r6
	ldr	r3, [r3]
	mov	r2, #1
	str	r3, [sp]
	add	r0, r5, #4
	mov	r3, #0
	bl	idr_alloc
	mov	r4, r0
	mov	r0, r5
	bl	spin_unlock
	bl	idr_preload_end
	cmp	r4, #0
	strge	r4, [r7]
	movge	r4, #0
	blt	.L6
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r6
	bl	drm_syncobj_put
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	GFP_KERNEL
	.word	GFP_NOWAIT
	.size	drm_syncobj_get_handle, .-drm_syncobj_get_handle
	.comm	GFP_NOWAIT,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
