	.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, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_FDT_ERR_TRUNCATED@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	xorl	%r13d, %r13d
	movl	%ecx, (%rdx)
	movq	_FDT_TAGSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_fdt_offset_ptr
	movl	$131, %ecx
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	(%rax), %edi
	callq	_fdt32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14), %r14d
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r13d
	addl	%r12d, %r14d
	movl	%r13d, (%r15)
	movq	%rax, %r13
	addl	$-129, %eax
	cmpl	$3, %eax
	jae	LBB0_4
LBB0_2:
	movl	%r14d, %edx
	subl	%r12d, %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_fdt_offset_ptr
	testq	%rax, %rax
	movl	$131, %ecx
	je	LBB0_13
## %bb.3:
	movl	%r14d, %edi
	callq	_FDT_TAGALIGN
	movl	%eax, (%r15)
	movl	%r13d, %ecx
	jmp	LBB0_13
LBB0_4:
	cmpl	$128, %r13d
	je	LBB0_8
## %bb.5:
	cmpl	$132, %r13d
	jne	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_fdt_offset_ptr
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	cmpb	$0, (%rax)
	jne	LBB0_6
	jmp	LBB0_2
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	callq	_fdt_offset_ptr
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	(%rax), %edi
	movq	_FDT_TAGSIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	callq	_fdt32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r14d
	addl	$4, %r14d
	jmp	LBB0_2
LBB0_12:
	movl	$131, %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_TRUNCATED,4,2          ## @FDT_ERR_TRUNCATED
	.comm	_FDT_TAGSIZE,4,2                ## @FDT_TAGSIZE
	.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_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
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _FDT_ERR_TRUNCATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_TRUNCATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x2]
Lloh3:
	adrp	x24, _FDT_TAGSIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FDT_TAGSIZE@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_fdt_offset_ptr
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w0, [x0]
	bl	_fdt32_to_cpu
	mov	x20, x0
	ldr	w8, [x24]
Lloh5:
	adrp	x9, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
	add	w23, w8, w21
Lloh7:
	ldr	w8, [x9]
	neg	w8, w8
	str	w8, [x19]
	sub	w8, w0, #129
	cmp	w8, #3
	b.hs	LBB0_4
LBB0_2:
	sub	w2, w23, w21
	mov	x0, x22
	mov	x1, x21
	bl	_fdt_offset_ptr
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x23
	bl	_FDT_TAGALIGN
	str	w0, [x19]
	b	LBB0_11
LBB0_4:
	cmp	w20, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w20, #132
	b.ne	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	w2, #1
	bl	_fdt_offset_ptr
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	ldrb	w8, [x0]
	cbnz	w8, LBB0_6
	b	LBB0_2
LBB0_8:
	mov	x0, x22
	mov	x1, x23
	mov	w2, #4
	bl	_fdt_offset_ptr
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w24, [x24]
	ldr	w0, [x0]
	bl	_fdt32_to_cpu
	sub	w8, w23, w24
	add	w8, w8, w0
	add	w23, w8, #4
	b	LBB0_2
LBB0_10:
	mov	w20, #131
LBB0_11:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_TRUNCATED,4,2          ; @FDT_ERR_TRUNCATED
	.comm	_FDT_TAGSIZE,4,2                ; @FDT_TAGSIZE
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
.subsections_via_symbols
