	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_fixup_cpubusfreqs          ## -- Begin function fdt_fixup_cpubusfreqs
	.p2align	4, 0x90
_fdt_fixup_cpubusfreqs:                 ## @fdt_fixup_cpubusfreqs
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	_fdtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movl	%eax, %r14d
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %r15
	movl	%eax, %ebx
	movq	_fdtp@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_fdt_next_node
	movl	%eax, %ebx
	cmpl	$-1, -48(%rbp)
	jne	LBB0_2
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rdx
	leaq	-44(%rbp), %r15
	movl	%r14d, %esi
	movq	%r15, %rcx
	movl	$4, %r8d
	callq	_fdt_node_offset_by_prop_value
	movl	%eax, %r13d
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %esi
	movq	%r15, %rcx
	movl	$4, %r8d
	callq	_fdt_node_offset_by_prop_value
	movl	%eax, %r14d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_MIN
	movl	%eax, %r12d
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %r13d
	je	LBB0_9
## %bb.4:
	cmpl	%eax, %r14d
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_fdtp@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_fdt_node_offset_by_prop_value
	movl	%eax, %r13d
	movl	(%r14), %edi
	movl	%r12d, %esi
	leaq	L_.str.2(%rip), %rdx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_fdt_node_offset_by_prop_value
	cmpl	%ebx, %r12d
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r14d
	movq	_fdtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_fdt_setprop_inplace_cell
	movq	_fdtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_fdt_setprop_inplace_cell
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_MIN
	movl	%eax, %r12d
	xorl	%eax, %eax
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%eax, %r13d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %r14d
	jne	LBB0_6
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fdtp,4,2                       ## @fdtp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/cpus"

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

L_.str.2:                               ## @.str.2
	.asciz	"bus-frequency"

	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_fixup_cpubusfreqs          ; -- Begin function fdt_fixup_cpubusfreqs
	.p2align	2
_fdt_fixup_cpubusfreqs:                 ; @fdt_fixup_cpubusfreqs
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x27, _fdtp@GOTPAGE
Lloh1:
	ldr	x27, [x27, _fdtp@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdt_path_offset
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x22, x0
	str	wzr, [sp, #12]
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	add	x2, sp, #12
	mov	x1, x21
	bl	_fdt_next_node
	mov	x21, x0
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.ne	LBB0_2
; %bb.3:
	ldr	w0, [x27]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x1, x22
	mov	w4, #4
	bl	_fdt_node_offset_by_prop_value
	mov	x23, x0
	ldr	w0, [x27]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x3, sp, #8
	mov	x1, x23
	mov	w4, #4
	bl	_fdt_node_offset_by_prop_value
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_MIN
Lloh8:
	adrp	x28, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh9:
	ldr	x28, [x28, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
	ldr	w8, [x28]
	neg	w9, w8
	cmn	w23, w8
	ccmp	w24, w9, #4, ne
	b.eq	LBB0_7
; %bb.4:
	mov	x22, x0
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh12:
	adrp	x24, l_.str.2@PAGE
Lloh13:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	add	x3, sp, #8
	mov	x1, x22
	mov	x2, x23
	mov	w4, #4
	bl	_fdt_node_offset_by_prop_value
	mov	x25, x0
	ldr	w0, [x27]
	add	x3, sp, #8
	mov	x1, x22
	mov	x2, x24
	mov	w4, #4
	bl	_fdt_node_offset_by_prop_value
	cmp	w22, w21
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	w0, [x27]
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	bl	_fdt_setprop_inplace_cell
	ldr	w0, [x27]
	mov	x1, x22
	mov	x2, x24
	mov	x3, x19
	bl	_fdt_setprop_inplace_cell
	mov	x0, x25
	mov	x1, x26
	bl	_MIN
	mov	x22, x0
	ldr	w8, [x28]
	neg	w9, w8
	cmn	w25, w8
	ccmp	w26, w9, #4, ne
	b.ne	LBB0_5
LBB0_7:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_fdtp,4,2                       ; @fdtp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/cpus"

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

l_.str.2:                               ; @.str.2
	.asciz	"bus-frequency"

	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
.subsections_via_symbols
