	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_ccung_init_clocks
_aw_ccung_init_clocks:                  ## @aw_ccung_init_clocks
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_21
## %bb.1:
	movq	%rdi, %rbx
	movq	_bootverbose@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %ecx
	movl	24(%rax,%r12), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_device_printf
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	addq	$32, %r12
	cmpq	%rax, %r14
	jge	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %edi
	callq	_clknode_find_by_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	8(%rbx), %rax
	movq	24(%rax,%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movl	(%rax,%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_device_printf
	movq	8(%rbx), %rax
	movq	24(%rax,%r12), %rdx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rdx, %rsi
	callq	_clknode_set_parent_by_name
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rax,%r12), %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movl	(%rax,%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	8(%rbx), %rax
	movl	16(%rax,%r12), %edx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%edx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_clknode_set_freq
	testl	%eax, %eax
	je	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %edx
	movl	16(%rax,%r12), %ecx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %edx
	leaq	L_.str(%rip), %rsi
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rax,%r12)
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_clknode_enable
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %edx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_17
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find clock %s\n"

	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"Setting %s as parent for %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot set parent to %s for %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Setting freq %ju for %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot set frequency for %s to %ju\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot enable %s\n"

	.no_dead_strip	_aw_ccung_init_clocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_ccung_init_clocks
_aw_ccung_init_clocks:                  ; @aw_ccung_init_clocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x19, x0
	mov	x27, #0
	mov	w28, #16
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x21, _bootverbose@GOTPAGE
Lloh3:
	ldr	x21, [x21, _bootverbose@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.4@PAGE
Lloh5:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh6:
	adrp	x23, l_.str.3@PAGE
Lloh7:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh8:
	adrp	x24, l_.str.2@PAGE
Lloh9:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh10:
	adrp	x25, l_.str.1@PAGE
Lloh11:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldur	w2, [x8, #-16]
	mov	x1, x20
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_device_printf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19]
	add	x28, x28, #32
	cmp	x27, x8
	b.ge	LBB0_21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldur	w0, [x8, #-16]
	bl	_clknode_find_by_name
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	x8, [x19, #8]
	add	x9, x8, x28
	ldr	x2, [x9, #8]
	cbz	x2, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x21]
	cbz	x9, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	add	x8, x8, x28
	ldur	w8, [x8, #-16]
	str	x8, [sp]
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_device_printf
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldr	x2, [x8, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	mov	x1, x2
	bl	_clknode_set_parent_by_name
	cbz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldr	w2, [x8, #8]
	ldur	w8, [x8, #-16]
	str	x8, [sp]
	mov	x1, x24
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x8, x28]
	cbz	w2, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x21]
	cbz	x9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	add	x8, x8, x28
	ldur	w8, [x8, #-16]
	str	x8, [sp]
	mov	x1, x23
	bl	_device_printf
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x28]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	mov	x1, x2
	mov	w2, #0
	mov	w3, #0
	bl	_clknode_set_freq
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldur	w2, [x8, #-16]
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x1, x22
	b	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x28
	ldur	x8, [x8, #-8]
	cbz	x8, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_clknode_enable
	cbz	w0, LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x28
	ldur	w2, [x8, #-16]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find clock %s\n"

	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"Setting %s as parent for %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot set parent to %s for %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Setting freq %ju for %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot set frequency for %s to %ju\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot enable %s\n"

	.no_dead_strip	_aw_ccung_init_clocks
.subsections_via_symbols
