	.file	"extr_video1394.c_video1394_poll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Current iso context not set"
	.text
	.p2align 4
	.type	video1394_poll, @function
video1394_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rdi]
	mov	rbx, QWORD PTR 8[rax]
	test	rbx, rbx
	je	.L11
	mov	rdx, rsi
	lea	rbp, 16[rbx]
	lea	rsi, 20[rbx]
	call	poll_wait@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	ecx, DWORD PTR [rbx]
	test	ecx, ecx
	jle	.L7
	mov	rax, QWORD PTR 8[rbx]
	sub	ecx, 1
	mov	rdx, QWORD PTR VIDEO1394_BUFFER_READY[rip]
	lea	rcx, 8[rax+rcx*8]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rax, 8
	cmp	rax, rcx
	je	.L7
.L6:
	cmp	QWORD PTR [rax], rdx
	jne	.L5
	mov	r12d, DWORD PTR POLLIN[rip]
	or	r12d, DWORD PTR POLLRDNORM[rip]
.L4:
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR KERN_ERR[rip]
	lea	rdx, .LC0[rip]
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR [rax]
	call	PRINT@PLT
	mov	r12d, DWORD PTR POLLERR[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	video1394_poll, .-video1394_poll
	.comm	VIDEO1394_BUFFER_READY,8,8
	.comm	POLLRDNORM,4,4
	.comm	POLLIN,4,4
	.comm	POLLERR,4,4
	.comm	KERN_ERR,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_video1394.c_video1394_poll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Current iso context not set\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	video1394_poll, %function
video1394_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	ldr	r4, [r3, #4]
	cmp	r4, #0
	beq	.L11
	mov	r2, r1
	add	r5, r4, #8
	add	r1, r4, #12
	bl	poll_wait
	mov	r0, r5
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r0, [r4]
	cmp	r0, #0
	ble	.L7
	ldr	r1, .L12
	ldr	r2, [r4, #4]
	mov	r3, #0
	ldr	ip, [r1]
	sub	r2, r2, #4
	b	.L6
.L5:
	cmp	r3, r0
	beq	.L7
.L6:
	ldr	r1, [r2, #4]!
	add	r3, r3, #1
	cmp	r1, ip
	bne	.L5
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r4, [r2]
	ldr	r3, [r3]
	orr	r4, r4, r3
.L4:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	mov	r4, #0
	b	.L4
.L11:
	ldr	r3, [r3]
	ldr	r2, .L12+12
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, .L12+16
	bl	PRINT
	ldr	r3, .L12+20
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	VIDEO1394_BUFFER_READY
	.word	POLLIN
	.word	POLLRDNORM
	.word	KERN_ERR
	.word	.LC0
	.word	POLLERR
	.size	video1394_poll, .-video1394_poll
	.comm	VIDEO1394_BUFFER_READY,4,4
	.comm	POLLRDNORM,4,4
	.comm	POLLIN,4,4
	.comm	POLLERR,4,4
	.comm	KERN_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
