	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video1394_poll
_video1394_poll:                        ## @video1394_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rdx
	leaq	20(%rbx), %rsi
	callq	_poll_wait
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_VIDEO1394_BUFFER_READY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rsi,8)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_3
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_PRINT
	movq	_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Current iso context not set"

	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_VIDEO1394_BUFFER_READY,8,3     ## @VIDEO1394_BUFFER_READY
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.no_dead_strip	_video1394_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video1394_poll
_video1394_poll:                        ; @video1394_poll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x2, x1
	add	x1, x20, #20
	bl	_poll_wait
	add	x19, x20, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x9, [x20, #8]
Lloh0:
	adrp	x10, _VIDEO1394_BUFFER_READY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VIDEO1394_BUFFER_READY@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x9, _KERN_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KERN_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_PRINT
Lloh8:
	adrp	x8, _POLLERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _POLLIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w20, w9, w8
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Current iso context not set"

	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_VIDEO1394_BUFFER_READY,8,3     ; @VIDEO1394_BUFFER_READY
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.no_dead_strip	_video1394_poll
.subsections_via_symbols
