	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_get_next_cpu_node           ## -- Begin function of_get_next_cpu_node
	.p2align	4, 0x90
_of_get_next_cpu_node:                  ## @of_get_next_cpu_node
	.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
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_devtree_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_lock_irqsave
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_of_find_node_by_path
	movq	%rax, %r15
	movq	_devtree_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_lock_irqsave
	testq	%r15, %r15
	je	LBB0_10
## %bb.3:
	movq	8(%r15), %rbx
	movq	%r15, %rdi
	callq	_of_node_put
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_5:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_of_node_get
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_of_node_name_eq
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___of_node_is_type
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_of_node_put
	movq	_devtree_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_unlock_irqrestore
	movq	%rbx, %rax
	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	"/cpus"

	.comm	_devtree_lock,4,2               ## @devtree_lock
L_.str.1:                               ## @.str.1
	.asciz	"cpu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_get_next_cpu_node           ; -- Begin function of_get_next_cpu_node
	.p2align	2
_of_get_next_cpu_node:                  ; @of_get_next_cpu_node
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, _devtree_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _devtree_lock@GOTPAGEOFF]
	bl	_raw_spin_lock_irqsave
	ldr	x20, [x19]
	cbnz	x20, LBB0_4
	b	LBB0_10
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_of_find_node_by_path
	mov	x21, x0
Lloh4:
	adrp	x0, _devtree_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _devtree_lock@GOTPAGEOFF]
	bl	_raw_spin_lock_irqsave
	cbz	x21, LBB0_9
; %bb.3:
	ldr	x20, [x21, #8]
	mov	x0, x21
	bl	_of_node_put
	cbz	x20, LBB0_10
LBB0_4:
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_of_node_get
	cbnz	x0, LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [x20]
	cbz	x20, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_of_node_name_eq
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	___of_node_is_type
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_9:
	mov	x20, #0
LBB0_10:
	mov	x0, x19
	bl	_of_node_put
Lloh8:
	adrp	x0, _devtree_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _devtree_lock@GOTPAGEOFF]
	bl	_raw_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/cpus"

	.comm	_devtree_lock,4,2               ; @devtree_lock
l_.str.1:                               ; @.str.1
	.asciz	"cpu"

.subsections_via_symbols
