	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1273_fm_fops_poll
_wl1273_fm_fops_poll:                   ## @wl1273_fm_fops_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	_video_devdata
	movl	%eax, %edi
	callq	_video_get_drvdata
	movq	%rax, %rbx
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	%r15, %rax
	je	LBB0_3
## %bb.2:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_3:
	movq	32(%rbx), %rax
	movq	%r15, 24(%rbx)
	movq	(%rax), %rcx
	movq	_WL1273_MODE_RX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rsi
	addq	$16, %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	8(%rbx), %rcx
	je	LBB0_9
## %bb.5:
	movq	_EPOLLIN@GOTPCREL(%rip), %rcx
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_WL1273_MODE_TX@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.7:
	movq	_EPOLLOUT@GOTPCREL(%rip), %rcx
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_WL1273_MODE_RX,8,3             ## @WL1273_MODE_RX
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_WL1273_MODE_TX,8,3             ## @WL1273_MODE_TX
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ## @EPOLLWRNORM
	.no_dead_strip	_wl1273_fm_fops_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1273_fm_fops_poll
_wl1273_fm_fops_poll:                   ; @wl1273_fm_fops_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
	bl	_video_devdata
	bl	_video_get_drvdata
	ldr	x8, [x0, #24]
	cmp	x8, #0
	ccmp	x8, x20, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #32]
	str	x20, [x0, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _WL1273_MODE_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WL1273_MODE_RX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	add	x1, x21, #16
	mov	x0, x20
	mov	x2, x19
	bl	_poll_wait
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x9, _WL1273_MODE_TX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WL1273_MODE_TX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _EPOLLOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPOLLOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _EPOLLWRNORM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EPOLLWRNORM@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_WL1273_MODE_RX,8,3             ; @WL1273_MODE_RX
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_WL1273_MODE_TX,8,3             ; @WL1273_MODE_TX
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ; @EPOLLWRNORM
	.no_dead_strip	_wl1273_fm_fops_poll
.subsections_via_symbols
