	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra124_cpufreq_set
_tegra124_cpufreq_set:                  ## @tegra124_cpufreq_set
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, (%rsi)
	js	LBB0_2
## %bb.3:
	callq	_device_get_softc
	movl	(%rbx), %ecx
	movq	_cpufreq_lowest_freq@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%ecx, %edx
	cmovgl	%edx, %ecx
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	movl	(%rax), %esi
	cmpl	%esi, %ecx
	cmovll	%ecx, %esi
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_cpu_freq                   ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cpufreq_lowest_freq,4,2        ## @cpufreq_lowest_freq
	.no_dead_strip	_tegra124_cpufreq_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra124_cpufreq_set
_tegra124_cpufreq_set:                  ; @tegra124_cpufreq_set
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	tbnz	x8, #63, LBB0_3
; %bb.2:
	bl	_device_get_softc
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _cpufreq_lowest_freq@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cpufreq_lowest_freq@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	csel	w8, w9, w8, gt
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w8, w8, w9
	ldr	w9, [x0]
	cmp	w8, w9
	csel	w1, w8, w9, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_cpu_freq
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cpufreq_lowest_freq,4,2        ; @cpufreq_lowest_freq
	.no_dead_strip	_tegra124_cpufreq_set
.subsections_via_symbols
