	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpufreq_nearest_oppt
_cpufreq_nearest_oppt:                  ## @cpufreq_nearest_oppt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	cmpq	%rsi, %rax
	jge	LBB0_2
## %bb.1:
	cmpl	$0, 8(%rdi)
	cmoveq	%rax, %r14
LBB0_2:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_imx6_oppt_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_nitems
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	%r14d, %eax
	subl	(%rdi,%rbx,8), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	cmpl	%ecx, %r13d
	cmovgel	%ecx, %r13d
	cmovgl	%ebx, %r12d
	incq	%rbx
	callq	_nitems
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.5:
	movslq	%r12d, %r12
LBB0_6:
	shlq	$3, %r12
	addq	(%r15), %r12
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_imx6_oppt_table,8,3            ## @imx6_oppt_table
	.no_dead_strip	_cpufreq_nearest_oppt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpufreq_nearest_oppt
_cpufreq_nearest_oppt:                  ; @cpufreq_nearest_oppt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x8, [x0]
	cmp	x8, x1
	b.ge	LBB0_2
; %bb.1:
	ldr	w9, [x0, #8]
	cmp	w9, #0
	csel	x19, x8, x19, eq
LBB0_2:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x20, _imx6_oppt_table@GOTPAGE
Lloh4:
	ldr	x20, [x20, _imx6_oppt_table@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
	mov	w22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x0, x23, lsl #3]
	subs	w8, w19, w8
	cneg	w8, w8, mi
	cmp	w21, w8
	csel	w21, w21, w8, lt
	csel	w22, w23, w22, gt
	add	x23, x23, #1
	bl	_nitems
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
; %bb.5:
	sxtw	x8, w22
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	ldr	x9, [x20]
	add	x0, x9, x8, lsl #3
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_imx6_oppt_table,8,3            ; @imx6_oppt_table
	.no_dead_strip	_cpufreq_nearest_oppt
.subsections_via_symbols
