	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_demux_poll
_dvb_demux_poll:                        ## @dvb_demux_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	leaq	16(%r15), %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	32(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_2:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_dvb_vb2_is_streaming
	testq	%rax, %rax
	je	LBB0_4
## %bb.13:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dvb_vb2_poll                   ## TAILCALL
LBB0_4:
	movq	(%r15), %rax
	movq	_DMXDEV_STATE_GO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_DMXDEV_STATE_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	movq	_DMXDEV_STATE_TIMEDOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_7:
	addq	$8, %r15
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.9:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_EPOLLPRI@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_10
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r15, %rdi
	callq	_dvb_ringbuffer_empty
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	movq	_EPOLLPRI@GOTPCREL(%rip), %rdx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	orl	(%rdx), %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_DMXDEV_STATE_GO,8,3            ## @DMXDEV_STATE_GO
	.comm	_DMXDEV_STATE_DONE,8,3          ## @DMXDEV_STATE_DONE
	.comm	_DMXDEV_STATE_TIMEDOUT,8,3      ## @DMXDEV_STATE_TIMEDOUT
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
	.no_dead_strip	_dvb_demux_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_demux_poll
_dvb_demux_poll:                        ; @dvb_demux_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	x20, x0
	ldr	x22, [x0]
	add	x1, x22, #16
	mov	x2, x19
	bl	_poll_wait
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x8, [x22, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	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
LBB0_4:
	add	x21, x22, #24
	mov	x0, x21
	bl	_dvb_vb2_is_streaming
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_dvb_vb2_poll
LBB0_6:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _DMXDEV_STATE_GO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMXDEV_STATE_GO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _DMXDEV_STATE_DONE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DMXDEV_STATE_DONE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _DMXDEV_STATE_TIMEDOUT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DMXDEV_STATE_TIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_9
; %bb.7:
	add	x0, x22, #8
	ldr	x8, [x0]
Lloh12:
	adrp	x20, _EPOLLIN@GOTPAGE
Lloh13:
	ldr	x20, [x20, _EPOLLIN@GOTPAGEOFF]
Lloh14:
	adrp	x21, _EPOLLRDNORM@GOTPAGE
Lloh15:
	ldr	x21, [x21, _EPOLLRDNORM@GOTPAGEOFF]
Lloh16:
	adrp	x22, _EPOLLPRI@GOTPAGE
Lloh17:
	ldr	x22, [x22, _EPOLLPRI@GOTPAGEOFF]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _EPOLLERR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EPOLLERR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w19, w8, w9
	bl	_dvb_ringbuffer_empty
	cbnz	w0, LBB0_3
	b	LBB0_11
LBB0_9:
	mov	w19, #0
	b	LBB0_3
LBB0_10:
	mov	w19, #0
	bl	_dvb_ringbuffer_empty
	cbnz	w0, LBB0_3
LBB0_11:
	ldr	w8, [x20]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w8, w8, w19
	orr	w8, w8, w9
	orr	w19, w8, w10
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_DMXDEV_STATE_GO,8,3            ; @DMXDEV_STATE_GO
	.comm	_DMXDEV_STATE_DONE,8,3          ; @DMXDEV_STATE_DONE
	.comm	_DMXDEV_STATE_TIMEDOUT,8,3      ; @DMXDEV_STATE_TIMEDOUT
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
	.no_dead_strip	_dvb_demux_poll
.subsections_via_symbols
