	.file	"extr_uvc_queue.c_uvc_queue_cancel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uvc_queue_cancel
	.type	uvc_queue_cancel, @function
uvc_queue_cancel:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR UVC_BUF_STATE_ERROR[rip]
	mov	rdi, rbp
	call	uvc_queue_return_buffers@PLT
	test	ebx, ebx
	je	.L2
	mov	eax, DWORD PTR UVC_QUEUE_DISCONNECTED[rip]
	or	DWORD PTR 4[rbp], eax
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	uvc_queue_cancel, .-uvc_queue_cancel
	.comm	UVC_QUEUE_DISCONNECTED,4,4
	.comm	UVC_BUF_STATE_ERROR,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_uvc_queue.c_uvc_queue_cancel.c"
	.text
	.align	2
	.global	uvc_queue_cancel
	.syntax unified
	.arm
	.fpu softvfp
	.type	uvc_queue_cancel, %function
uvc_queue_cancel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, .L8
	mov	r0, r4
	ldr	r1, [r3]
	bl	uvc_queue_return_buffers
	cmp	r5, #0
	ldrne	r2, .L8+4
	ldrne	r3, [r4, #4]
	ldrne	r2, [r2]
	mov	r0, r4
	orrne	r3, r3, r2
	strne	r3, [r4, #4]
	mov	r1, #0
	pop	{r4, r5, r6, lr}
	b	spin_unlock_irqrestore
.L9:
	.align	2
.L8:
	.word	UVC_BUF_STATE_ERROR
	.word	UVC_QUEUE_DISCONNECTED
	.size	uvc_queue_cancel, .-uvc_queue_cancel
	.comm	UVC_QUEUE_DISCONNECTED,4,4
	.comm	UVC_BUF_STATE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
