	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freq_to_voltage
_freq_to_voltage:                       ## @freq_to_voltage
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movq	24(%rax), %rdx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	%rcx, %rdi
	movq	%rdx, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rbx)
	jge	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rbx
	decq	%rdi
	jne	LBB0_3
LBB0_4:
	decl	%ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rdx,%rcx,8), %rbx
LBB0_5:
	movl	4(%rax), %r15d
	movl	(%r14), %edi
	imull	8(%rbx), %edi
	movl	%r15d, %esi
	callq	_DIV_ROUND_CLOSEST
	addl	12(%rbx), %eax
	imull	(%r14), %eax
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_DIV_ROUND_CLOSEST
	addl	16(%rbx), %eax
	movq	8(%r14), %rcx
	movl	8(%rcx), %r12d
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_ROUND_UP
	movl	%eax, %r15d
	movq	8(%r14), %rax
	movl	12(%rax), %edi
	movl	%r12d, %esi
	callq	_ROUND_UP
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movl	16(%rax), %edi
	movl	%r12d, %esi
	callq	_ROUND_DOWN
	cmpl	%ebx, %r15d
	cmovgl	%r15d, %ebx
	cmpl	%eax, %ebx
	cmovll	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_freq_to_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freq_to_voltage
_freq_to_voltage:                       ; @freq_to_voltage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	ldr	x10, [x8, #24]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x11, x9
	mov	x21, x10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x21]
	cmp	x12, x1
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #24
	subs	x11, x11, #1
	b.ne	LBB0_2
LBB0_4:
	sub	w9, w9, #1
	mov	w11, #24
	smaddl	x21, w9, w11, x10
LBB0_5:
	ldr	w20, [x8, #4]
	ldr	w8, [x21, #8]
	ldr	w9, [x19]
	mul	w0, w9, w8
	mov	x1, x20
	bl	_DIV_ROUND_CLOSEST
	ldr	w8, [x21, #12]
	add	w8, w8, w0
	ldr	w9, [x19]
	mul	w0, w8, w9
	mov	x1, x20
	bl	_DIV_ROUND_CLOSEST
	ldr	w8, [x21, #16]
	add	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	w20, [x8, #8]
	mov	x1, x20
	bl	_ROUND_UP
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #12]
	mov	x1, x20
	bl	_ROUND_UP
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #16]
	mov	x1, x20
	bl	_ROUND_DOWN
	cmp	w21, w22
	csel	w8, w21, w22, gt
	cmp	w8, w0
	csel	w0, w8, w0, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_freq_to_voltage
.subsections_via_symbols
