	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_cpufreq_make_freq_list
_bcm2835_cpufreq_make_freq_list:        ## @bcm2835_cpufreq_make_freq_list
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_device_get_softc
	movq	%rax, %rsi
	movl	(%rax), %ecx
	movl	4(%rax), %edi
	movq	_MHZSTEP@GOTPCREL(%rip), %r8
	movl	%ecx, %eax
	cltd
	idivl	(%r8)
	subl	%edx, %ecx
	cmpl	%edi, %ecx
	cmovlel	%edi, %ecx
	movq	8(%rsi), %rdx
	movq	_BCM2835_MBOX_TURBO_ON@GOTPCREL(%rip), %r8
	movq	_cpufreq_lowest_freq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	cmovll	%edi, %eax
	cmpq	(%r8), %rdx
	cmovel	%edi, %eax
	movl	20(%rsi), %edx
	movl	%ecx, (%rbx)
	movl	%edx, 4(%rbx)
	movq	_TRANSITION_LATENCY@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 16(%rbx)
	movq	%r15, 8(%rbx)
	movl	$1, %edi
	cmpl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movl	%eax, 24(%rbx)
	movl	%edx, 28(%rbx)
	movq	%rsi, 40(%rbx)
	movq	%r15, 32(%rbx)
	movl	$2, %edi
LBB0_2:
	movl	%edi, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MHZSTEP,4,2                    ## @MHZSTEP
	.comm	_BCM2835_MBOX_TURBO_ON,8,3      ## @BCM2835_MBOX_TURBO_ON
	.comm	_cpufreq_lowest_freq,4,2        ## @cpufreq_lowest_freq
	.comm	_TRANSITION_LATENCY,8,3         ## @TRANSITION_LATENCY
	.no_dead_strip	_bcm2835_cpufreq_make_freq_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_cpufreq_make_freq_list
_bcm2835_cpufreq_make_freq_list:        ; @bcm2835_cpufreq_make_freq_list
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_device_get_softc
	ldp	w8, w10, [x0]
Lloh0:
	adrp	x9, _MHZSTEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MHZSTEP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	mul	w8, w8, w9
	cmp	w8, w10
	csel	w11, w8, w10, gt
Lloh3:
	adrp	x8, _BCM2835_MBOX_TURBO_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM2835_MBOX_TURBO_ON@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x12, _cpufreq_lowest_freq@GOTPAGE
Lloh7:
	ldr	x12, [x12, _cpufreq_lowest_freq@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	cmp	w10, w12
	csel	w12, w10, w12, lt
	cmp	x9, x8
	ldr	w8, [x0, #20]
Lloh9:
	adrp	x9, _TRANSITION_LATENCY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TRANSITION_LATENCY@GOTPAGEOFF]
	stp	w11, w8, [x20]
Lloh11:
	ldr	x9, [x9]
	csel	w10, w10, w12, eq
	stp	x21, x9, [x20, #8]
	cmp	w11, w10
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	stp	w10, w8, [x20, #24]
	mov	w8, #2
	stp	x21, x9, [x20, #32]
LBB0_3:
	str	w8, [x19]
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MHZSTEP,4,2                    ; @MHZSTEP
	.comm	_BCM2835_MBOX_TURBO_ON,8,3      ; @BCM2835_MBOX_TURBO_ON
	.comm	_cpufreq_lowest_freq,4,2        ; @cpufreq_lowest_freq
	.comm	_TRANSITION_LATENCY,8,3         ; @TRANSITION_LATENCY
	.no_dead_strip	_bcm2835_cpufreq_make_freq_list
.subsections_via_symbols
