	.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_set_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
	.globl	_si470x_set_freq
	.p2align	4, 0x90
_si470x_set_freq:                       ## @si470x_set_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	(%rdi), %rcx
	movq	_SYSCONFIG2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	_SYSCONFIG2_SPACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	sarl	$4, %edx
	cmpl	$1, %edx
	je	LBB0_3
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_4
## %bb.2:
	movq	_FREQ_MUL@GOTPCREL(%rip), %rdx
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_5
LBB0_3:
	movq	_FREQ_MUL@GOTPCREL(%rip), %rdx
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_5
LBB0_4:
	movq	_FREQ_MUL@GOTPCREL(%rip), %rdx
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
LBB0_5:
	mulsd	%xmm0, %xmm1
	movq	_SYSCONFIG2_BAND@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	xorl	%edx, %edx
	cmpl	$64, %ecx
	setb	%dl
	leaq	LCPI0_3(%rip), %rcx
	mulsd	(%rcx,%rdx,8), %xmm0
	cvttsd2si	%xmm0, %rcx
	cvttsd2si	%xmm1, %rsi
	subl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movzwl	%ax, %esi
	popq	%rbp
	jmp	_si470x_set_chan                ## TAILCALL
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si470x_set_freq                ; -- Begin function si470x_set_freq
	.p2align	2
_si470x_set_freq:                       ; @si470x_set_freq
	.cfi_startproc
; %bb.0:
	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	w8, d0
	fcvtzu	w9, d1
	sub	w8, w1, w8
	udiv	w8, w8, w9
	and	w1, w8, #0xffff
	b	_si470x_set_chan
	.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 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
.subsections_via_symbols
