	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	__fdt_check_node_offset
	movl	%eax, %ebx
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	leaq	-44(%rbp), %r12
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ebx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_fdt_next_tag
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	(%r14)
	jmp	LBB0_10
LBB0_12:
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	testq	%r14, %r14
	je	LBB0_14
## %bb.7:
	incl	(%r14)
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
.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	x19, x2
	mov	x20, x0
	str	wzr, [sp, #12]
	tbnz	w1, #31, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	__fdt_check_node_offset
	mov	x21, x0
	str	w0, [sp, #12]
	tbz	w0, #31, LBB0_3
	b	LBB0_14
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh0:
	adrp	x22, lJTI0_0@PAGE
Lloh1:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [sp, #12]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_fdt_next_tag
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x19, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_9:
Lloh2:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh4:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_12:
	cbz	x19, LBB0_14
; %bb.13:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_14:
	mov	x0, x21
	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 AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
                                        ; -- End function
	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
.subsections_via_symbols
