	.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_get_freq
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
LCPI0_1:
	.quad	0x3fc999999999999a              ## double 0.20000000000000001
LCPI0_2:
	.quad	0x3fa999999999999a              ## double 0.050000000000000003
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3
LCPI0_3:
	.quad	0x4053000000000000              ## double 76
	.quad	0x4055e00000000000              ## double 87.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_si470x_get_freq:                       ## @si470x_get_freq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_SYSCONFIG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_SYSCONFIG2_SPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sarl	$4, %ecx
	cmpl	$1, %ecx
	je	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.2:
	movq	_FREQ_MUL@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_5
LBB0_3:
	movq	_FREQ_MUL@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_5
LBB0_4:
	movq	_FREQ_MUL@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
LBB0_5:
	mulsd	%xmm0, %xmm1
	movq	_SYSCONFIG2_BAND@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpl	$64, %eax
	setb	%cl
	leaq	LCPI0_3(%rip), %rax
	mulsd	(%rax,%rcx,8), %xmm0
	cvttsd2si	%xmm0, %r12
	cvttsd2si	%xmm1, %rbx
	movq	_READCHAN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_si470x_get_register
	movq	(%r15), %rcx
	movq	(%r13), %rdx
	movzwl	(%rcx,%rdx,4), %ecx
	movq	_READCHAN_READCHAN@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	andl	%ecx, %edx
	imull	%ebx, %edx
	addl	%r12d, %edx
	movl	%edx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCONFIG2,8,3                 ## @SYSCONFIG2
	.comm	_SYSCONFIG2_SPACE,4,2           ## @SYSCONFIG2_SPACE
	.comm	_FREQ_MUL,8,3                   ## @FREQ_MUL
	.comm	_SYSCONFIG2_BAND,4,2            ## @SYSCONFIG2_BAND
	.comm	_READCHAN,8,3                   ## @READCHAN
	.comm	_READCHAN_READCHAN,2,1          ## @READCHAN_READCHAN
	.no_dead_strip	_si470x_get_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si470x_get_freq
_si470x_get_freq:                       ; @si470x_get_freq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SYSCONFIG2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SYSCONFIG2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _SYSCONFIG2_SPACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYSCONFIG2_SPACE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
	asr	w9, w9, #4
	cmp	w9, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w9, LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _FREQ_MUL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FREQ_MUL@GOTPAGEOFF]
Lloh8:
	ldr	d0, [x9]
	mov	x9, #-7378697629483820647
	movk	x9, #39322
	movk	x9, #16329, lsl #48
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x9, _FREQ_MUL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FREQ_MUL@GOTPAGEOFF]
Lloh11:
	ldr	d0, [x9]
	mov	x9, #-7378697629483820647
	movk	x9, #39322
	movk	x9, #16313, lsl #48
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x9, _FREQ_MUL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FREQ_MUL@GOTPAGEOFF]
Lloh14:
	ldr	d0, [x9]
	mov	x9, #-7378697629483820647
	movk	x9, #39322
	movk	x9, #16297, lsl #48
LBB0_5:
	fmov	d1, x9
	fmul	d1, d0, d1
Lloh15:
	adrp	x9, _SYSCONFIG2_BAND@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SYSCONFIG2_BAND@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #64
	mov	x8, #4635048441494372352
	fmov	d2, x8
	mov	x8, #246290604621824
	movk	x8, #16469, lsl #48
	fmov	d3, x8
	fcsel	d2, d3, d2, lo
	fmul	d0, d0, d2
	fcvtzu	w21, d0
	fcvtzu	w22, d1
Lloh18:
	adrp	x23, _READCHAN@GOTPAGE
Lloh19:
	ldr	x23, [x23, _READCHAN@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x20
	bl	_si470x_get_register
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
Lloh20:
	adrp	x9, _READCHAN_READCHAN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _READCHAN_READCHAN@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w8, w8, w9
	madd	w8, w8, w22, w21
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCONFIG2,8,3                 ; @SYSCONFIG2
	.comm	_SYSCONFIG2_SPACE,4,2           ; @SYSCONFIG2_SPACE
	.comm	_FREQ_MUL,8,3                   ; @FREQ_MUL
	.comm	_SYSCONFIG2_BAND,4,2            ; @SYSCONFIG2_BAND
	.comm	_READCHAN,8,3                   ; @READCHAN
	.comm	_READCHAN_READCHAN,2,1          ; @READCHAN_READCHAN
	.no_dead_strip	_si470x_get_freq
.subsections_via_symbols
