	.file	"extr_xen_drm_front.c_xen_drm_front_dbuf_destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xen_drm_front_dbuf_destroy, @function
xen_drm_front_dbuf_destroy:
.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	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 16[rdi]
	mov	rdx, QWORD PTR GENERIC_OP_EVT_CHNL[rip]
	xor	edi, edi
	lea	r13, [rax+rdx*4]
	test	r13, r13
	sete	dil
	call	unlikely@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 8[rbp]
	lea	r15, 4[rbp]
	test	eax, eax
	jne	.L10
	xor	ebx, ebx
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rsi, rbx
	mov	rdi, r15
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR XENDISPL_OP_DBUF_DESTROY[rip]
	mov	rdi, r13
	call	be_prepare_req@PLT
	mov	rdi, r13
	mov	DWORD PTR [rax], r14d
	mov	rsi, rax
	call	be_stream_do_io@PLT
	mov	rsi, rbx
	mov	rdi, r15
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	test	r12d, r12d
	jne	.L7
	mov	rdi, r13
	call	be_stream_wait_io@PLT
	mov	r12d, eax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	mov	esi, r14d
	call	dbuf_free@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore_state
	mov	esi, r14d
	mov	rdi, rbp
	xor	ebx, ebx
	call	dbuf_free@PLT
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rsi, rbx
	mov	rdi, r15
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR XENDISPL_OP_DBUF_DESTROY[rip]
	mov	rdi, r13
	call	be_prepare_req@PLT
	mov	rdi, r13
	mov	DWORD PTR [rax], r14d
	mov	rsi, rax
	call	be_stream_do_io@PLT
	mov	rsi, rbx
	mov	rdi, r15
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	test	r12d, r12d
	je	.L11
.L6:
	mov	rdi, r13
	call	mutex_unlock@PLT
	jmp	.L1
.L11:
	mov	rdi, r13
	call	be_stream_wait_io@PLT
	mov	r12d, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	xen_drm_front_dbuf_destroy, .-xen_drm_front_dbuf_destroy
	.comm	XENDISPL_OP_DBUF_DESTROY,4,4
	.comm	GENERIC_OP_EVT_CHNL,8,8
	.comm	EIO,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_xen_drm_front.c_xen_drm_front_dbuf_destroy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xen_drm_front_dbuf_destroy, %function
xen_drm_front_dbuf_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	ldr	r4, [r0, #12]
	mov	r5, r0
	adds	r4, r4, r3, lsl #2
	moveq	r0, #1
	movne	r0, #0
	mov	r7, r1
	bl	unlikely
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r5, #8]
	mov	r9, #0
	cmp	r3, #0
	add	r8, r5, #4
	bne	.L11
	mov	r0, r4
	bl	mutex_lock
	mov	r1, r9
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r3, .L13+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	be_prepare_req
	mov	r1, r0
	mov	r0, r4
	str	r7, [r1]
	bl	be_stream_do_io
	mov	r6, r0
	mov	r1, r9
	mov	r0, r8
	bl	spin_unlock_irqrestore
	cmp	r6, r9
	bne	.L7
	mov	r0, r4
	bl	be_stream_wait_io
	mov	r6, r0
.L7:
	mov	r1, r7
	mov	r0, r5
	bl	dbuf_free
	b	.L6
.L11:
	mov	r1, r7
	mov	r0, r5
	bl	dbuf_free
	mov	r0, r4
	bl	mutex_lock
	mov	r1, r9
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r3, .L13+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	be_prepare_req
	mov	r1, r0
	mov	r0, r4
	str	r7, [r1]
	bl	be_stream_do_io
	mov	r6, r0
	mov	r1, r9
	mov	r0, r8
	bl	spin_unlock_irqrestore
	cmp	r6, r9
	beq	.L12
.L6:
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L13+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r0, r4
	bl	be_stream_wait_io
	mov	r6, r0
	b	.L6
.L14:
	.align	2
.L13:
	.word	GENERIC_OP_EVT_CHNL
	.word	XENDISPL_OP_DBUF_DESTROY
	.word	EIO
	.size	xen_drm_front_dbuf_destroy, .-xen_drm_front_dbuf_destroy
	.comm	XENDISPL_OP_DBUF_DESTROY,4,4
	.comm	GENERIC_OP_EVT_CHNL,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
