	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_cpufreq_settings
_bcm2835_cpufreq_settings:              ## @bcm2835_cpufreq_settings
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %rbx
	movl	%edi, %r15d
	callq	_device_get_softc
	cmpq	$0, (%rax)
	js	LBB0_5
## %bb.4:
	cmpq	$0, 8(%rax)
	js	LBB0_5
## %bb.6:
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	shll	$2, %edx
	movq	%rbx, %rdi
	callq	_memset
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_bcm2835_cpufreq_make_freq_list
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ## @CPUFREQ_VAL_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"device is not configured"

	.no_dead_strip	_bcm2835_cpufreq_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_cpufreq_settings
_bcm2835_cpufreq_settings:              ; @bcm2835_cpufreq_settings
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x20, x1
	mov	x21, x0
	bl	_device_get_softc
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
	tbnz	x8, #63, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	x0, x20
	bl	_memset
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bcm2835_cpufreq_make_freq_list
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"device is not configured"

	.no_dead_strip	_bcm2835_cpufreq_settings
.subsections_via_symbols
