	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_next_node                  ## -- Begin function fdt_next_node
	.p2align	4, 0x90
_fdt_next_node:                         ## @fdt_next_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	__fdt_check_node_offset
	movl	%eax, %ebx
	movl	%eax, -36(%rbp)
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	leaq	-36(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-36(%rbp), %ebx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_fdt_next_tag
	cmpl	$130, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$131, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$132, %eax
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r14)
	testl	%eax, %eax
	jg	LBB0_7
## %bb.12:
	movl	-36(%rbp), %ebx
	jmp	LBB0_17
LBB0_13:
	movl	-36(%rbp), %ebx
	testl	%ebx, %ebx
	jns	LBB0_16
## %bb.14:
	testq	%r14, %r14
	jne	LBB0_17
## %bb.15:
	movq	_FDT_ERR_TRUNCATED@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_17
LBB0_16:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_8:
	testq	%r14, %r14
	je	LBB0_17
## %bb.9:
	incl	(%r14)
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_TRUNCATED,4,2          ## @FDT_ERR_TRUNCATED
	.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_next_node                  ; -- Begin function fdt_next_node
	.p2align	2
_fdt_next_node:                         ; @fdt_next_node
	.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	x20, x2
	mov	x21, x0
	str	wzr, [sp, #12]
	tbnz	w1, #31, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	__fdt_check_node_offset
	mov	x19, x0
	str	w0, [sp, #12]
	tbz	w0, #31, LBB0_4
	b	LBB0_16
LBB0_2:
	mov	w19, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w19, [sp, #12]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_fdt_next_tag
	cmp	w0, #130
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #131
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #132
	b.ne	LBB0_3
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	sub	w9, w8, #1
	str	w9, [x20]
	cmp	w8, #0
	b.gt	LBB0_3
; %bb.9:
	ldr	w19, [sp, #12]
	b	LBB0_16
LBB0_10:
	ldr	w19, [sp, #12]
	tbz	w19, #31, LBB0_13
; %bb.11:
	cbnz	x20, LBB0_16
; %bb.12:
Lloh0:
	adrp	x8, _FDT_ERR_TRUNCATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_TRUNCATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w19, w8
	b.ne	LBB0_16
LBB0_13:
Lloh3:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_16
LBB0_14:
	cbz	x20, LBB0_16
; %bb.15:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_16:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_TRUNCATED,4,2          ; @FDT_ERR_TRUNCATED
	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
.subsections_via_symbols
