	.file	"extr_fdt.c_fdt_next_node.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fdt_next_node
	.type	fdt_next_node, @function
fdt_next_node:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	test	esi, esi
	jns	.L2
	xor	r12d, r12d
.L5:
	lea	r13, 4[rsp]
.L3:
	mov	rdx, r13
	mov	esi, r12d
	mov	rdi, rbp
	call	fdt_next_tag@PLT
	cmp	eax, 131
	je	.L6
	cmp	eax, 132
	je	.L7
	cmp	eax, 130
	je	.L25
.L9:
	mov	r12d, DWORD PTR 4[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, DWORD PTR 4[rsp]
	test	r12d, r12d
	jns	.L12
	mov	eax, r12d
	add	eax, DWORD PTR FDT_ERR_TRUNCATED[rip]
	jne	.L1
	test	rbx, rbx
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR FDT_ERR_NOTFOUND[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	test	rbx, rbx
	je	.L9
	sub	DWORD PTR [rbx], 1
	jns	.L9
	mov	r12d, DWORD PTR 4[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	test	rbx, rbx
	je	.L1
	add	DWORD PTR [rbx], 1
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	fdt_check_node_offset_@PLT
	mov	DWORD PTR 4[rsp], eax
	mov	r12d, eax
	test	eax, eax
	jns	.L5
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fdt_next_node, .-fdt_next_node
	.comm	FDT_ERR_TRUNCATED,4,4
	.comm	FDT_ERR_NOTFOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_fdt.c_fdt_next_node.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fdt_next_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdt_next_node, %function
fdt_next_node:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	ldr	r3, .L25
	sub	sp, sp, #8
	cmp	r1, r4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r2
	mov	r5, r0
	str	r4, [sp]
	bge	.L22
.L3:
	mov	r2, sp
	mov	r1, r4
	mov	r0, r5
	bl	fdt_next_tag
	cmp	r0, #131
	beq	.L6
	cmp	r0, #132
	beq	.L7
	cmp	r0, #130
	beq	.L23
.L9:
	ldr	r4, [sp]
	b	.L3
.L6:
	ldr	r4, [sp]
	cmp	r4, #0
	bge	.L12
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmn	r4, r3
	moveq	r2, #1
	movne	r2, #0
	cmp	r6, #0
	moveq	r6, r2
	movne	r6, #0
	cmp	r6, #0
	beq	.L1
.L12:
	ldr	r3, .L25+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L23:
	cmp	r6, #0
	beq	.L9
	ldr	r3, [r6]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r6]
	bge	.L9
	ldr	r4, [sp]
	b	.L1
.L7:
	cmp	r6, #0
	ldrne	r3, [r6]
	addne	r3, r3, #1
	strne	r3, [r6]
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L22:
	bl	fdt_check_node_offset_
	cmp	r0, #0
	mov	r4, r0
	str	r0, [sp]
	bge	.L3
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	FDT_ERR_TRUNCATED
	.word	FDT_ERR_NOTFOUND
	.size	fdt_next_node, .-fdt_next_node
	.comm	FDT_ERR_TRUNCATED,4,4
	.comm	FDT_ERR_NOTFOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
