	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_next_tag                   ## -- Begin function fdt_next_tag
	.p2align	4, 0x90
_fdt_next_tag:                          ## @fdt_next_tag
	.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	_FDT_TAGSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movl	$-1, %r15d
	testl	%edx, %edx
	jne	LBB0_11
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%ecx, %edx
	callq	_fdt_offset_ptr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rax), %edi
	callq	_fdt32_to_cpu
	movl	%eax, %r15d
	addl	(%r13), %ebx
	cmpl	$128, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$129, %r15d
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_fdt_offset_ptr
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpb	$0, (%rax)
	jne	LBB0_5
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_fdt_offset_ptr
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movl	(%r13), %r12d
	movl	(%rax), %edi
	callq	_fdt32_to_cpu
	leal	(%rbx,%r12,2), %ebx
	addl	%eax, %ebx
LBB0_9:
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	_FDT_TAGALIGN
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_2:
	movq	_FDT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_TAGSIZE,4,2                ## @FDT_TAGSIZE
	.comm	_FDT_END,4,2                    ## @FDT_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_next_tag                   ; -- Begin function fdt_next_tag
	.p2align	2
_fdt_next_tag:                          ; @fdt_next_tag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
Lloh0:
	adrp	x23, _FDT_TAGSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FDT_TAGSIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	sdiv	w8, w1, w2
	msub	w8, w8, w2, w1
	cbz	w8, LBB0_2
; %bb.1:
	mov	w20, #-1
	b	LBB0_12
LBB0_2:
	mov	x21, x1
	mov	x22, x0
	bl	_fdt_offset_ptr
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w0, [x0]
	bl	_fdt32_to_cpu
	mov	x20, x0
	ldr	w8, [x23]
	add	w21, w8, w21
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #129
	b.ne	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	w2, #1
	bl	_fdt_offset_ptr
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldrb	w8, [x0]
	cbnz	w8, LBB0_5
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #4
	bl	_fdt_offset_ptr
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w22, [x23]
	ldr	w0, [x0]
	bl	_fdt32_to_cpu
	add	w8, w21, w22, lsl #1
	add	w21, w8, w0
LBB0_9:
	cbz	x19, LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_FDT_TAGALIGN
	str	w0, [x19]
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _FDT_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_END@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_TAGSIZE,4,2                ; @FDT_TAGSIZE
	.comm	_FDT_END,4,2                    ; @FDT_END
.subsections_via_symbols
