	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function si476x_radio_pretune
LCPI0_0:
	.quad	0x3fe3333333333333              ## double 0.59999999999999998
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_si476x_radio_pretune:                  ## @si476x_radio_pretune
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -48(%rbp)
	movl	$0, -32(%rbp)
	movq	_SI476X_SM_INITIALIZE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_SI476X_TM_VALIDATED_NORMAL_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_SI476X_INJSIDE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	cmpl	$129, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	movq	_FREQ_MUL@GOTPCREL(%rip), %rax
	imull	$92, (%rax), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	jmp	LBB0_3
LBB0_4:
	movl	(%rbx), %edi
	movq	_FREQ_MUL@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
LBB0_3:
	callq	_v4l2_to_si476x
	movq	%rax, -40(%rbp)
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	*(%rax)
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI476X_SM_INITIALIZE_AUDIO,4,2 ## @SI476X_SM_INITIALIZE_AUDIO
	.comm	_SI476X_TM_VALIDATED_NORMAL_TUNE,4,2 ## @SI476X_TM_VALIDATED_NORMAL_TUNE
	.comm	_SI476X_INJSIDE_AUTO,4,2        ## @SI476X_INJSIDE_AUTO
	.comm	_FREQ_MUL,4,2                   ## @FREQ_MUL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected tuner function value\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si476x_radio_pretune
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si476x_radio_pretune
_si476x_radio_pretune:                  ; @si476x_radio_pretune
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _SI476X_SM_INITIALIZE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI476X_SM_INITIALIZE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #16]
Lloh3:
	adrp	x8, _SI476X_TM_VALIDATED_NORMAL_TUNE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SI476X_TM_VALIDATED_NORMAL_TUNE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SI476X_INJSIDE_AUTO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SI476X_INJSIDE_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _FREQ_MUL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FREQ_MUL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #92
	mul	w8, w8, w9
	scvtf	d0, w8
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _FREQ_MUL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FREQ_MUL@GOTPAGEOFF]
Lloh14:
	ldr	s0, [x8]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x8, #3689348814741910323
	movk	x8, #16355, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
LBB0_4:
	bl	_v4l2_to_si476x
	str	x0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	mov	x1, sp
	blr	x8
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SI476X_SM_INITIALIZE_AUDIO,4,2 ; @SI476X_SM_INITIALIZE_AUDIO
	.comm	_SI476X_TM_VALIDATED_NORMAL_TUNE,4,2 ; @SI476X_TM_VALIDATED_NORMAL_TUNE
	.comm	_SI476X_INJSIDE_AUTO,4,2        ; @SI476X_INJSIDE_AUTO
	.comm	_FREQ_MUL,4,2                   ; @FREQ_MUL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected tuner function value\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si476x_radio_pretune
.subsections_via_symbols
