	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_vidioc_g_tuner
_si470x_vidioc_g_tuner:                 ## @si470x_vidioc_g_tuner
	.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	%rdx, %rbx
	callq	_video_drvdata
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_2:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	cmpl	$0, 16(%rax)
	jne	LBB0_4
## %bb.3:
	movq	_STATUSRSSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_11
LBB0_4:
	movl	40(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_V4L2_TUNER_CAP_LOW@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_CAP_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_RDS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_RDS_BLOCK_IO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_HWSEEK_WRAP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	_FREQ_MUL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	$76, %eax, %ecx
	movl	%ecx, 12(%rbx)
	imull	$108, %eax, %eax
	movl	%eax, 16(%rbx)
	movq	8(%r15), %rax
	movq	_STATUSRSSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_STATUSRSSI_ST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax,%rcx,4), %edx
	jne	LBB0_5
## %bb.6:
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_5:
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	(%rdx), %edx
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, 32(%rbx)
	movq	_POWERCFG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_POWERCFG_MONO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rax,%rdx,4), %esi
	jne	LBB0_8
## %bb.9:
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rdx
	jmp	LBB0_10
LBB0_8:
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rdx
LBB0_10:
	movl	(%rdx), %edx
	movl	%edx, 28(%rbx)
	movq	_STATUSRSSI_RSSI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax,%rcx,4), %edx
	imull	$873, %edx, %esi                ## imm = 0x369
	shll	$3, %edx
	movslq	%edx, %rdx
	imulq	$1717986919, %rdx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$34, %rdx
	addl	%edi, %edx
	addl	%esi, %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	movl	$65535, %esi                    ## imm = 0xFFFF
	cmovll	%edx, %esi
	movl	%esi, 20(%rbx)
	movq	_STATUSRSSI_AFCRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	andl	(%rax,%rcx,4), %edx
	setne	%sil
	movl	%esi, 24(%rbx)
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STATUSRSSI,8,3                 ## @STATUSRSSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FM"

	.comm	_V4L2_TUNER_RADIO,4,2           ## @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ## @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ## @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ## @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_CAP_RDS_BLOCK_IO,4,2 ## @V4L2_TUNER_CAP_RDS_BLOCK_IO
	.comm	_V4L2_TUNER_CAP_HWSEEK_BOUNDED,4,2 ## @V4L2_TUNER_CAP_HWSEEK_BOUNDED
	.comm	_V4L2_TUNER_CAP_HWSEEK_WRAP,4,2 ## @V4L2_TUNER_CAP_HWSEEK_WRAP
	.comm	_FREQ_MUL,4,2                   ## @FREQ_MUL
	.comm	_STATUSRSSI_ST,4,2              ## @STATUSRSSI_ST
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ## @V4L2_TUNER_SUB_RDS
	.comm	_POWERCFG,8,3                   ## @POWERCFG
	.comm	_POWERCFG_MONO,4,2              ## @POWERCFG_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.comm	_STATUSRSSI_RSSI,4,2            ## @STATUSRSSI_RSSI
	.comm	_STATUSRSSI_AFCRL,4,2           ## @STATUSRSSI_AFCRL
	.no_dead_strip	_si470x_vidioc_g_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function si470x_vidioc_g_tuner
lCPI0_0:
	.long	76                              ; 0x4c
	.long	108                             ; 0x6c
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_si470x_vidioc_g_tuner:                 ; @si470x_vidioc_g_tuner
	.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, x2
	bl	_video_drvdata
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
	mov	x21, x0
	ldr	w8, [x0, #16]
Lloh3:
	adrp	x22, _STATUSRSSI@GOTPAGE
Lloh4:
	ldr	x22, [x22, _STATUSRSSI@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21]
	ldr	x1, [x22]
	mov	x0, x21
	blr	x8
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
LBB0_5:
	ldr	w0, [x19, #40]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh7:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #36]
Lloh10:
	adrp	x8, _V4L2_TUNER_CAP_LOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_TUNER_CAP_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _V4L2_TUNER_CAP_STEREO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_TUNER_CAP_STEREO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _V4L2_TUNER_CAP_RDS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_TUNER_CAP_RDS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _V4L2_TUNER_CAP_RDS_BLOCK_IO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _V4L2_TUNER_CAP_RDS_BLOCK_IO@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _V4L2_TUNER_CAP_HWSEEK_BOUNDED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _V4L2_TUNER_CAP_HWSEEK_WRAP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V4L2_TUNER_CAP_HWSEEK_WRAP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
Lloh28:
	adrp	x8, _FREQ_MUL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FREQ_MUL@GOTPAGEOFF]
	ld1r.2s	{ v0 }, [x8]
Lloh30:
	adrp	x8, lCPI0_0@PAGE
Lloh31:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	mul.2s	v0, v0, v1
	stur	d0, [x19, #12]
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
Lloh32:
	adrp	x11, _STATUSRSSI_ST@GOTPAGE
Lloh33:
	ldr	x11, [x11, _STATUSRSSI_ST@GOTPAGEOFF]
Lloh34:
	adrp	x12, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh35:
	ldr	x12, [x12, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
Lloh37:
	adrp	x13, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh38:
	ldr	x13, [x13, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
	tst	w11, w10
	csel	x10, x12, x13, eq
	ldr	w10, [x10]
Lloh39:
	adrp	x11, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh40:
	ldr	x11, [x11, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh42:
	adrp	x11, _POWERCFG@GOTPAGE
Lloh43:
	ldr	x11, [x11, _POWERCFG@GOTPAGEOFF]
	str	w10, [x19, #32]
Lloh44:
	ldr	x10, [x11]
	ldr	w10, [x8, x10, lsl #2]
Lloh45:
	adrp	x11, _POWERCFG_MONO@GOTPAGE
Lloh46:
	ldr	x11, [x11, _POWERCFG_MONO@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
Lloh48:
	adrp	x12, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh49:
	ldr	x12, [x12, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh50:
	adrp	x13, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh51:
	ldr	x13, [x13, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
	tst	w11, w10
	csel	x10, x12, x13, eq
	ldr	w10, [x10]
	str	w10, [x19, #28]
	ldr	w10, [x8, x9]
Lloh52:
	adrp	x11, _STATUSRSSI_RSSI@GOTPAGE
Lloh53:
	ldr	x11, [x11, _STATUSRSSI_RSSI@GOTPAGEOFF]
Lloh54:
	ldr	w11, [x11]
	and	w10, w11, w10
	mov	w11, #873
	lsl	w12, w10, #3
	mov	w13, #26215
	movk	w13, #26214, lsl #16
	smull	x12, w12, w13
	lsr	x13, x12, #32
	lsr	x12, x12, #63
	add	w12, w12, w13, asr #2
	madd	w10, w10, w11, w12
	mov	w11, #65535
	cmp	w10, w11
	csel	w10, w10, w11, lt
	str	w10, [x19, #20]
	ldr	w8, [x8, x9]
Lloh55:
	adrp	x9, _STATUSRSSI_AFCRL@GOTPAGE
Lloh56:
	ldr	x9, [x9, _STATUSRSSI_AFCRL@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #24]
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STATUSRSSI,8,3                 ; @STATUSRSSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FM"

	.comm	_V4L2_TUNER_RADIO,4,2           ; @V4L2_TUNER_RADIO
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ; @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ; @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ; @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_CAP_RDS_BLOCK_IO,4,2 ; @V4L2_TUNER_CAP_RDS_BLOCK_IO
	.comm	_V4L2_TUNER_CAP_HWSEEK_BOUNDED,4,2 ; @V4L2_TUNER_CAP_HWSEEK_BOUNDED
	.comm	_V4L2_TUNER_CAP_HWSEEK_WRAP,4,2 ; @V4L2_TUNER_CAP_HWSEEK_WRAP
	.comm	_FREQ_MUL,4,2                   ; @FREQ_MUL
	.comm	_STATUSRSSI_ST,4,2              ; @STATUSRSSI_ST
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ; @V4L2_TUNER_SUB_RDS
	.comm	_POWERCFG,8,3                   ; @POWERCFG
	.comm	_POWERCFG_MONO,4,2              ; @POWERCFG_MONO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.comm	_STATUSRSSI_RSSI,4,2            ; @STATUSRSSI_RSSI
	.comm	_STATUSRSSI_AFCRL,4,2           ; @STATUSRSSI_AFCRL
	.no_dead_strip	_si470x_vidioc_g_tuner
.subsections_via_symbols
