	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_video_poll
_dvb_video_poll:                        ## @dvb_video_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	callq	_dprintk
	movq	_O_ACCMODE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	(%r14), %eax
	movq	_O_RDONLY@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_2
## %bb.1:
	leaq	32(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_poll_wait
LBB0_2:
	leaq	24(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_poll_wait
	movq	8(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	16(%rbx), %rcx
	je	LBB0_4
## %bb.3:
	movq	_EPOLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	(%r12), %ecx
	andl	(%r14), %ecx
	cmpl	(%r13), %ecx
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	_FREE_COND@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
LBB0_7:
	movq	_EPOLLOUT@GOTPCREL(%rip), %rcx
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av7110:%p, \n"

	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
	.comm	_FREE_COND,8,3                  ## @FREE_COND
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ## @EPOLLWRNORM
	.no_dead_strip	_dvb_video_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_video_poll
_dvb_video_poll:                        ; @dvb_video_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_dprintk
	ldr	w8, [x20]
Lloh2:
	adrp	x22, _O_ACCMODE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _O_ACCMODE@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w8, w9, w8
Lloh4:
	adrp	x23, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x23, [x23, _O_RDONLY@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.1:
	add	x1, x19, #32
	mov	x0, x20
	mov	x2, x21
	bl	_poll_wait
LBB0_2:
	add	x1, x19, #24
	mov	x0, x20
	mov	x2, x21
	bl	_poll_wait
	ldp	x8, x9, [x19, #8]
Lloh6:
	adrp	x10, _EPOLLPRI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EPOLLPRI@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w0, wzr, w10, eq
	ldr	w8, [x20]
	ldr	w9, [x22]
	and	w8, w9, w8
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _FREE_COND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FREE_COND@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EPOLLOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPOLLOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _EPOLLWRNORM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EPOLLWRNORM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av7110:%p, \n"

	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
	.comm	_FREE_COND,8,3                  ; @FREE_COND
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ; @EPOLLWRNORM
	.no_dead_strip	_dvb_video_poll
.subsections_via_symbols
