	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_rtc_install_clocks
_aw_rtc_install_clocks:                 ## @aw_rtc_install_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_ofw_bus_get_node
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movl	%eax, %edi
	callq	_ofw_bus_string_list_to_array
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	cmpl	$3, %eax
	jne	LBB0_2
## %bb.3:
	movl	%ebx, %edi
	callq	_clkdom_create
	movq	%rax, %r14
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	_aw_rtc_osc32k@GOTPCREL(%rip), %rsi
	movq	%rax, 8(%rsi)
	movq	%r14, %rdi
	callq	_clknode_fixed_register
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_5:
	movq	-32(%rbp), %rax
	movq	16(%rax), %rax
	movq	_aw_rtc_iosc@GOTPCREL(%rip), %rsi
	movq	%rax, 8(%rsi)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	%r14, %rdi
	callq	_clknode_fixed_register
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_7:
	movq	%r14, %rdi
	callq	_clkdom_finit
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_clkdom_dump
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-output-names"

L_.str.1:                               ## @.str.1
	.asciz	"Having only %d clocks instead of 3, aborting\n"

	.comm	_aw_rtc_osc32k,16,3             ## @aw_rtc_osc32k
L_.str.2:                               ## @.str.2
	.asciz	"Cannot register osc32k clock\n"

	.comm	_aw_rtc_iosc,16,3               ## @aw_rtc_iosc
L_.str.3:                               ## @.str.3
	.asciz	"Cannot register iosc clock\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_rtc_install_clocks
_aw_rtc_install_clocks:                 ; @aw_rtc_install_clocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_ofw_bus_get_node
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_ofw_bus_string_list_to_array
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	cmp	w0, #3
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_clkdom_create
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x1, _aw_rtc_osc32k@GOTPAGE
Lloh3:
	ldr	x1, [x1, _aw_rtc_osc32k@GOTPAGEOFF]
	str	x8, [x1, #8]
	bl	_clknode_fixed_register
	cbz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_4:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
Lloh6:
	adrp	x1, _aw_rtc_iosc@GOTPAGE
Lloh7:
	ldr	x1, [x1, _aw_rtc_iosc@GOTPAGEOFF]
	str	x8, [x1, #8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [x1]
	mov	x0, x20
	bl	_clknode_fixed_register
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_6:
	mov	x0, x20
	bl	_clkdom_finit
Lloh10:
	adrp	x8, _bootverbose@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_clkdom_dump
	b	LBB0_9
LBB0_8:
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-output-names"

l_.str.1:                               ; @.str.1
	.asciz	"Having only %d clocks instead of 3, aborting\n"

	.comm	_aw_rtc_osc32k,16,3             ; @aw_rtc_osc32k
l_.str.2:                               ; @.str.2
	.asciz	"Cannot register osc32k clock\n"

	.comm	_aw_rtc_iosc,16,3               ; @aw_rtc_iosc
l_.str.3:                               ; @.str.3
	.asciz	"Cannot register iosc clock\n"

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