	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv1394_poll
_dv1394_poll:                           ## @dv1394_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_file_to_video_card
	movq	%rax, %rbx
	leaq	28(%rax), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	xorl	%r15d, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	cmpl	$-1, 8(%rbx)
	je	LBB0_2
## %bb.3:
	cmpq	$0, 16(%rbx)
	jle	LBB0_5
## %bb.4:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	jmp	LBB0_5
LBB0_2:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLIN,4,2                     ## @POLLIN
	.no_dead_strip	_dv1394_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv1394_poll
_dv1394_poll:                           ; @dv1394_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	bl	_file_to_video_card
	mov	x20, x0
	add	x1, x0, #28
	mov	x0, x21
	mov	x2, x19
	bl	_poll_wait
	add	x19, x20, #24
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x20, #8]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x20, #16]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POLLIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLIN,4,2                     ; @POLLIN
	.no_dead_strip	_dv1394_poll
.subsections_via_symbols
