	.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	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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	_bands@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rdi), %rdx
	movl	(%rcx,%rdx,8), %esi
	movl	4(%rcx,%rdx,8), %edx
	movl	%eax, %edi
	callq	_clamp
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	(%r14), %rcx
	subl	(%rax,%rcx,8), %ebx
	movq	%r14, %rdi
	callq	_si470x_get_step
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movzwl	%ax, %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_si470x_set_chan                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bands,8,3                      ## @bands
.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _bands@GOTPAGE
Lloh1:
	ldr	x20, [x20, _bands@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x10, [x0]
	add	x9, x9, x10, lsl #3
	ldp	w1, w2, [x9]
	mov	x0, x8
	bl	_clamp
	ldr	x8, [x20]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	sub	w20, w0, w8
	mov	x0, x19
	bl	_si470x_get_step
	udiv	w8, w20, w0
	and	w1, w8, #0xffff
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_si470x_set_chan
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bands,8,3                      ; @bands
.subsections_via_symbols
