	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_clkmsr_fixup_clk81
_aml8726_clkmsr_fixup_clk81:            ## @aml8726_clkmsr_fixup_clk81
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	(%rdi), %edi
	callq	_ofw_bus_get_node
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movl	%eax, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	andl	$-8, %eax
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.1:
	movq	-24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	callq	_OF_node_from_xref
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movl	%eax, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	andl	$-8, %eax
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.4:
	cmpq	$0, -24(%rbp)
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	_cpu_to_fdt32
	movl	%eax, -28(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_setprop
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clocks"

L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

	.no_dead_strip	_aml8726_clkmsr_fixup_clk81
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_clkmsr_fixup_clk81
_aml8726_clkmsr_fixup_clk81:            ; @aml8726_clkmsr_fixup_clk81
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	w0, [x0]
	bl	_ofw_bus_get_node
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	mov	w3, #8
	bl	_OF_getencprop
	and	w8, w0, #0xfffffff8
	ldr	x0, [sp]
	cmp	w8, #8
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_4
; %bb.1:
	bl	_OF_node_from_xref
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	mov	w3, #8
	bl	_OF_getencprop
	and	w8, w0, #0xfffffff8
	ldr	x9, [sp]
	cmp	w8, #8
	ccmp	x9, #0, #0, eq
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_cpu_to_fdt32
	str	w0, [sp, #12]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #4
	bl	_OF_setprop
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clocks"

l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

	.no_dead_strip	_aml8726_clkmsr_fixup_clk81
.subsections_via_symbols
