	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fmi_set_freq
_fmi_set_freq:                          ## @fmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_RSF16_MINFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RSF16_MAXFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, (%rbx)
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$40, %rax
	addl	%ecx, %eax
	imull	$800, %eax, %edi                ## imm = 0x320
	movq	_fmi_set_pins@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_lm7000_set_freq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RSF16_MINFREQ,4,2              ## @RSF16_MINFREQ
	.comm	_RSF16_MAXFREQ,4,2              ## @RSF16_MAXFREQ
	.comm	_fmi_set_pins,4,2               ## @fmi_set_pins
	.no_dead_strip	_fmi_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fmi_set_freq
_fmi_set_freq:                          ; @fmi_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	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _RSF16_MINFREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSF16_MINFREQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RSF16_MAXFREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSF16_MAXFREQ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x19]
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #40
	add	w8, w8, w9
	mov	w9, #800
	mul	w0, w8, w9
Lloh6:
	adrp	x8, _fmi_set_pins@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fmi_set_pins@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lm7000_set_freq
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSF16_MINFREQ,4,2              ; @RSF16_MINFREQ
	.comm	_RSF16_MAXFREQ,4,2              ; @RSF16_MAXFREQ
	.comm	_fmi_set_pins,4,2               ; @fmi_set_pins
	.no_dead_strip	_fmi_set_freq
.subsections_via_symbols
