	.file	"extr_dma-buf.c_dma_buf_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dma_buf_release, @function
dma_buf_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rsi
	mov	rbp, rsi
	call	is_dma_buf_file@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	BUG_ON@PLT
	cmp	QWORD PTR 40[rbp], 0
	mov	edi, 1
	jne	.L4
	xor	edi, edi
	cmp	QWORD PTR 32[rbp], 0
	setne	dil
.L4:
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	lea	rdi, db_list[rip]
	call	mutex_lock@PLT
	lea	rdi, 16[rbp]
	call	list_del@PLT
	lea	rdi, db_list[rip]
	call	mutex_unlock@PLT
	mov	rdi, QWORD PTR 8[rbp]
	lea	rax, 48[rbp]
	cmp	rdi, rax
	je	.L9
.L5:
	mov	edi, DWORD PTR 4[rbp]
	call	module_put@PLT
	mov	rdi, rbp
	call	kfree@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	dma_resv_fini@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	dma_buf_release, .-dma_buf_release
	.comm	db_list,4,4
	.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_dma-buf.c_dma_buf_release.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dma_buf_release, %function
dma_buf_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r0, r1
	mov	r4, r1
	bl	is_dma_buf_file
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L10
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L2:
	ldr	r4, [r4]
	ldr	r0, [r4]
	bl	BUG_ON
	ldr	r3, [r4, #24]
	cmp	r3, #0
	movne	r0, #1
	bne	.L4
	ldr	r0, [r4, #20]
	subs	r0, r0, #0
	movne	r0, #1
.L4:
	bl	BUG_ON
	ldr	r3, [r4, #16]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	ldr	r0, .L10+4
	bl	mutex_lock
	add	r0, r4, #12
	bl	list_del
	ldr	r0, .L10+4
	bl	mutex_unlock
	ldr	r0, [r4, #8]
	add	r3, r4, #28
	cmp	r0, r3
	beq	.L9
.L5:
	ldr	r0, [r4, #4]
	bl	module_put
	mov	r0, r4
	bl	kfree
	mov	r0, #0
	pop	{r4, pc}
.L9:
	bl	dma_resv_fini
	b	.L5
.L11:
	.align	2
.L10:
	.word	EINVAL
	.word	db_list
	.size	dma_buf_release, .-dma_buf_release
	.comm	db_list,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
