	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freq_to_shift
_freq_to_shift:                         ## @freq_to_shift
	.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
	movl	%edi, %ebx
	movq	_MLX4_EN_WRAP_AROUND_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%edi, %eax
	imull	$1000000, %eax, %edi            ## imm = 0xF4240
	decl	%edi
	callq	_fls64
	movl	$1, %esi
	movl	%eax, %ecx
	shlq	%cl, %rsi
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_div64_u64
	imull	%ebx, %eax
	imull	$1000, %eax, %edi               ## imm = 0x3E8
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_div_u64
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ilog2                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EN_WRAP_AROUND_SEC,4,2    ## @MLX4_EN_WRAP_AROUND_SEC
	.comm	_ULLONG_MAX,4,2                 ## @ULLONG_MAX
	.no_dead_strip	_freq_to_shift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freq_to_shift
_freq_to_shift:                         ; @freq_to_shift
	.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
Lloh0:
	adrp	x8, _MLX4_EN_WRAP_AROUND_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_EN_WRAP_AROUND_SEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w0, w8
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w8, w8, w9
	sub	w0, w8, #1
	bl	_fls64
	mov	w8, #1
	lsl	x1, x8, x0
Lloh3:
	adrp	x8, _ULLONG_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ULLONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_div64_u64
	mul	w8, w19, w0
	mov	w9, #1000
	mul	w0, w8, w9
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_div_u64
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ilog2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EN_WRAP_AROUND_SEC,4,2    ; @MLX4_EN_WRAP_AROUND_SEC
	.comm	_ULLONG_MAX,4,2                 ; @ULLONG_MAX
	.no_dead_strip	_freq_to_shift
.subsections_via_symbols
