	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si2165_set_if_freq_shift
_si2165_set_if_freq_shift:              ## @si2165_set_if_freq_shift
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_si2165_get_fe_clk
	movl	$0, -20(%rbp)
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	16(%rbx), %rdi
	leaq	-20(%rbp), %rsi
	callq	*%rcx
	movl	-20(%rbp), %edi
	shll	$29, %edi
	movl	%r14d, %esi
	callq	_do_div
	movq	_REG_IF_FREQ_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_si2165_writereg32
	jmp	LBB0_5
LBB0_1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: get_if_frequency() not defined at tuner. Can't work without it!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REG_IF_FREQ_SHIFT,4,2          ## @REG_IF_FREQ_SHIFT
	.no_dead_strip	_si2165_set_if_freq_shift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si2165_set_if_freq_shift
_si2165_set_if_freq_shift:              ; @si2165_set_if_freq_shift
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_si2165_get_fe_clk
	mov	x20, x0
	mov	x0, x19
	ldr	x8, [x0, #16]!
	str	wzr, [sp, #12]
	cbz	x8, LBB0_3
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	add	x1, sp, #12
	blr	x8
	ldr	w8, [sp, #12]
	lsl	w0, w8, #29
	mov	x1, x20
	bl	_do_div
Lloh0:
	adrp	x8, _REG_IF_FREQ_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_IF_FREQ_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_si2165_writereg32
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: get_if_frequency() not defined at tuner. Can't work without it!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REG_IF_FREQ_SHIFT,4,2          ; @REG_IF_FREQ_SHIFT
	.no_dead_strip	_si2165_set_if_freq_shift
.subsections_via_symbols
