	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aw_ccung_attach                ## -- Begin function aw_ccung_attach
	.p2align	4, 0x90
_aw_ccung_attach:                       ## @aw_ccung_attach
	.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
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r12
	movl	%ebx, 48(%rax)
	movq	_aw_ccung_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	44(%r12), %rdx
	movl	%ebx, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_28
LBB0_2:
	movq	%r12, %r15
	addq	$40, %r15
	movl	%ebx, %edi
	callq	_device_get_nameunit
	movq	_MTX_DEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mtx_init
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_clkdom_create
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_4:
	cmpl	$0, (%r12)
	jle	LBB0_20
## %bb.5:
	movl	$44, %ebx
	xorl	%r15d, %r15d
	movl	$-129, %r13d
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-40(%rax,%rbx), %esi
	callq	_aw_clk_nmm_register
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$48, %rbx
	cmpq	%rax, %r15
	jge	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	-44(%rax,%rbx), %ecx
	addl	%r13d, %ecx
	cmpl	$10, %ecx
	ja	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-24(%rax,%rbx), %esi
	callq	_aw_clk_prediv_mux_register
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-36(%rax,%rbx), %esi
	callq	_aw_clk_np_register
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-16(%rax,%rbx), %esi
	callq	_aw_clk_nm_register
	jmp	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-12(%rax,%rbx), %esi
	callq	_aw_clk_nkmp_register
	jmp	LBB0_19
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	(%rax,%rbx), %esi
	callq	_clknode_mux_register
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-32(%rax,%rbx), %esi
	callq	_aw_clk_mipi_register
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-20(%rax,%rbx), %esi
	callq	_aw_clk_m_register
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-28(%rax,%rbx), %esi
	callq	_aw_clk_frac_register
	jmp	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-8(%rax,%rbx), %esi
	callq	_clknode_fixed_register
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdi
	movl	-4(%rax,%rbx), %esi
	callq	_clknode_div_register
	jmp	LBB0_19
LBB0_20:
	cmpq	$0, 24(%r12)
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_aw_ccung_register_gates
LBB0_22:
	movq	16(%r12), %rdi
	callq	_clkdom_finit
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.2(%rip), %rdi
	callq	_panic
LBB0_24:
	movq	16(%r12), %rdi
	callq	_clkdom_xlock
	movq	%r12, %rdi
	callq	_aw_ccung_init_clocks
	movq	16(%r12), %rdi
	callq	_clkdom_unlock
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_26
## %bb.25:
	movq	16(%r12), %rdi
	callq	_clkdom_dump
LBB0_26:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%r12)
	je	LBB0_28
## %bb.27:
	movl	%ebx, %edi
	callq	_hwreset_register_ofw_provider
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_10
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_aw_ccung_spec,4,2              ## @aw_ccung_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate resources for device\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
L_.str.1:                               ## @.str.1
	.asciz	"Cannot create clkdom\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot finalize clkdom initialization\n"

	.comm	_bootverbose,8,3                ## @bootverbose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aw_ccung_attach                ; -- Begin function aw_ccung_attach
	.p2align	2
_aw_ccung_attach:                       ; @aw_ccung_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #48]
Lloh0:
	adrp	x8, _aw_ccung_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aw_ccung_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x0, #44
	mov	x0, x19
	bl	_bus_alloc_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_29
LBB0_2:
	add	x21, x20, #40
	mov	x0, x19
	bl	_device_get_nameunit
	mov	x1, x0
Lloh8:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, #0
	bl	_mtx_init
	mov	x0, x19
	bl	_clkdom_create
	str	x0, [x20, #16]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.5:
	mov	x21, #0
	mov	w22, #24
Lloh13:
	adrp	x23, lJTI0_0@PAGE
Lloh14:
	add	x23, x23, lJTI0_0@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldur	w1, [x8, #-20]
	bl	_aw_clk_nmm_register
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #48
	cmp	x21, x8
	b.ge	LBB0_20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	add	x9, x8, x22
	ldur	w9, [x9, #-24]
	sub	w9, w9, #129
	cmp	w9, #10
	b.hi	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	adr	x10, LBB0_6
	ldrb	w11, [x23, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldur	w1, [x8, #-4]
	bl	_aw_clk_prediv_mux_register
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldur	w1, [x8, #-16]
	bl	_aw_clk_np_register
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldr	w1, [x8, #4]
	bl	_aw_clk_nm_register
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldr	w1, [x8, #8]
	bl	_aw_clk_nkmp_register
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldr	w1, [x8, #20]
	bl	_clknode_mux_register
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldur	w1, [x8, #-12]
	bl	_aw_clk_mipi_register
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	ldr	w1, [x8, x22]
	bl	_aw_clk_m_register
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldur	w1, [x8, #-8]
	bl	_aw_clk_frac_register
	b	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldr	w1, [x8, #12]
	bl	_clknode_fixed_register
	b	LBB0_7
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x20, #16]
	add	x8, x8, x22
	ldr	w1, [x8, #16]
	bl	_clknode_div_register
	b	LBB0_7
LBB0_20:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_aw_ccung_register_gates
LBB0_22:
	ldr	x0, [x20, #16]
	bl	_clkdom_finit
	cbz	x0, LBB0_24
; %bb.23:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_24:
	ldr	x0, [x20, #16]
	bl	_clkdom_xlock
	mov	x0, x20
	bl	_aw_ccung_init_clocks
	ldr	x0, [x20, #16]
	bl	_clkdom_unlock
Lloh17:
	adrp	x8, _bootverbose@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.25:
	ldr	x0, [x20, #16]
	bl	_clkdom_dump
LBB0_26:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_hwreset_register_ofw_provider
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_18-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
                                        ; -- End function
	.comm	_aw_ccung_spec,4,2              ; @aw_ccung_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate resources for device\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
l_.str.1:                               ; @.str.1
	.asciz	"Cannot create clkdom\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot finalize clkdom initialization\n"

	.comm	_bootverbose,8,3                ; @bootverbose
.subsections_via_symbols
