	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_cpufreq_identify
_bcm2835_cpufreq_identify:              ## @bcm2835_cpufreq_identify
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %r12d
	movq	_compat_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_ofw_bus_node_is_compatible
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_2
LBB0_4:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_DPRINTF
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	movl	$-1, %edx
	callq	_device_find_child
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	$-1, %ecx
	callq	_BUS_ADD_CHILD
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_compat_data,8,3                ## @compat_data
L_.str.1:                               ## @.str.1
	.asciz	"driver=%p, parent=%p\n"

L_.str.2:                               ## @.str.2
	.asciz	"bcm2835_cpufreq"

L_.str.3:                               ## @.str.3
	.asciz	"add child failed\n"

	.no_dead_strip	_bcm2835_cpufreq_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_cpufreq_identify
_bcm2835_cpufreq_identify:              ; @bcm2835_cpufreq_identify
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
Lloh2:
	adrp	x8, _compat_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _compat_data@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ofw_bus_node_is_compatible
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x22, #16
	ldr	x1, [x22, #24]
	mov	x22, x8
	cbnz	x1, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x8, x22
LBB0_5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x8, x22
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_DPRINTF
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	bl	_device_find_child
	cbnz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #-1
	bl	_BUS_ADD_CHILD
	cbz	x0, LBB0_10
LBB0_9:
	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
LBB0_10:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	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
	b	_device_printf
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_compat_data,8,3                ; @compat_data
l_.str.1:                               ; @.str.1
	.asciz	"driver=%p, parent=%p\n"

l_.str.2:                               ; @.str.2
	.asciz	"bcm2835_cpufreq"

l_.str.3:                               ; @.str.3
	.asciz	"add child failed\n"

	.no_dead_strip	_bcm2835_cpufreq_identify
.subsections_via_symbols
