	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9887_get_afc
_tda9887_get_afc:                       ## @tda9887_get_afc
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rdi
	movl	$0, -12(%rbp)
	movq	(%rdi), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	addq	$8, %rdi
	leaq	-12(%rbp), %rsi
	movl	$1, %edx
	callq	_tuner_i2c_xfer_recv
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movl	-12(%rbp), %eax
	andl	$30, %eax
	leaq	_tda9887_get_afc.AFC_BITS_2_kHz(%rip), %rcx
	movl	(%rcx,%rax,2), %eax
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @tda9887_get_afc.AFC_BITS_2_kHz
_tda9887_get_afc.AFC_BITS_2_kHz:
	.long	4294954796                      ## 0xffffcf2c
	.long	4294929796                      ## 0xffff6d84
	.long	4294904796                      ## 0xffff0bdc
	.long	4294869796                      ## 0xfffe8324
	.long	4294854796                      ## 0xfffe488c
	.long	4294829796                      ## 0xfffde6e4
	.long	4294804796                      ## 0xfffd853c
	.long	4294779796                      ## 0xfffd2394
	.long	187500                          ## 0x2dc6c
	.long	162500                          ## 0x27ac4
	.long	137500                          ## 0x2191c
	.long	112500                          ## 0x1b774
	.long	97500                           ## 0x17cdc
	.long	62500                           ## 0xf424
	.long	37500                           ## 0x927c
	.long	12500                           ## 0x30d4

	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.no_dead_strip	_tda9887_get_afc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9887_get_afc
_tda9887_get_afc:                       ; @tda9887_get_afc
	.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
	ldr	x8, [x0]
	str	wzr, [sp, #12]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _V4L2_TUNER_RADIO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	add	x0, x8, #8
	add	x1, sp, #12
	mov	w2, #1
	bl	_tuner_i2c_xfer_recv
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	ubfx	x8, x8, #1, #4
Lloh3:
	adrp	x9, _tda9887_get_afc.AFC_BITS_2_kHz@PAGE
Lloh4:
	add	x9, x9, _tda9887_get_afc.AFC_BITS_2_kHz@PAGEOFF
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @tda9887_get_afc.AFC_BITS_2_kHz
_tda9887_get_afc.AFC_BITS_2_kHz:
	.long	4294954796                      ; 0xffffcf2c
	.long	4294929796                      ; 0xffff6d84
	.long	4294904796                      ; 0xffff0bdc
	.long	4294869796                      ; 0xfffe8324
	.long	4294854796                      ; 0xfffe488c
	.long	4294829796                      ; 0xfffde6e4
	.long	4294804796                      ; 0xfffd853c
	.long	4294779796                      ; 0xfffd2394
	.long	187500                          ; 0x2dc6c
	.long	162500                          ; 0x27ac4
	.long	137500                          ; 0x2191c
	.long	112500                          ; 0x1b774
	.long	97500                           ; 0x17cdc
	.long	62500                           ; 0xf424
	.long	37500                           ; 0x927c
	.long	12500                           ; 0x30d4

	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.no_dead_strip	_tda9887_get_afc
.subsections_via_symbols
