	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_poll
_radio_poll:                            ## @radio_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
	subq	$24, %rsp
	.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, %r12
	movq	(%rdi), %rbx
	movq	8(%rbx), %r14
	movq	%rsi, %rdi
	callq	_poll_requested_events
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_v4l2_event_pending
	movq	_EPOLLPRI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ecx, %r13d
	jmp	LBB0_4
LBB0_2:
	movl	%r13d, %eax
	xorl	%r13d, %r13d
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_poll_wait
LBB0_4:
	movq	%r14, %rdi
	callq	_radio_enable
	movq	%r12, -48(%rbp)
	movq	%r15, -56(%rbp)
	movl	%r13d, -64(%rbp)
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SAA6588_CMD_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	callq	_bttv_call_all
	movl	-64(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
	.comm	_core,4,2                       ## @core
	.comm	_ioctl,4,2                      ## @ioctl
	.comm	_SAA6588_CMD_POLL,4,2           ## @SAA6588_CMD_POLL
	.no_dead_strip	_radio_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_poll
_radio_poll:                            ; @radio_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	x19, [x22, #8]
	mov	x0, x1
	bl	_poll_requested_events
	mov	x23, x0
	mov	x0, x22
	bl	_v4l2_event_pending
Lloh0:
	adrp	x8, _EPOLLPRI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLPRI@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	cbnz	x0, LBB0_4
; %bb.1:
	tst	w24, w23
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_poll_wait
LBB0_3:
	mov	w24, #0
LBB0_4:
	mov	x0, x19
	bl	_radio_enable
	stp	x20, x21, [sp, #16]
	str	w24, [sp, #8]
Lloh3:
	adrp	x8, _core@GOTPAGE
Lloh4:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ioctl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ioctl@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _SAA6588_CMD_POLL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SAA6588_CMD_POLL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_bttv_call_all
	ldr	w0, [sp, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
	.comm	_core,4,2                       ; @core
	.comm	_ioctl,4,2                      ; @ioctl
	.comm	_SAA6588_CMD_POLL,4,2           ; @SAA6588_CMD_POLL
	.no_dead_strip	_radio_poll
.subsections_via_symbols
