	.file	"extr_fdt_wip.c__fdt_node_end_offset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_fdt_node_end_offset
	.type	_fdt_node_end_offset, @function
_fdt_node_end_offset:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbp, 4[rsp]
	mov	rdx, rbp
	call	fdt_next_tag@PLT
	cmp	eax, 132
	je	.L10
	mov	r12d, DWORD PTR FDT_ERR_BADOFFSET[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	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
.L10:
	.cfi_restore_state
	xor	r13d, r13d
.L2:
	mov	r12d, DWORD PTR 4[rsp]
	mov	rdx, rbp
	mov	rdi, rbx
	mov	esi, r12d
	call	fdt_next_tag@PLT
	cmp	eax, 131
	je	.L1
	jg	.L4
	cmp	eax, 130
	jne	.L18
	sub	r13d, 1
	cmp	r13d, -1
	jne	.L2
	mov	r12d, DWORD PTR 4[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	eax, 132
	jne	.L7
	add	r13d, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	eax, 127
	jg	.L2
.L7:
	mov	r12d, DWORD PTR FDT_ERR_BADSTRUCTURE[rip]
	neg	r12d
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_fdt_node_end_offset, .-_fdt_node_end_offset
	.comm	FDT_ERR_BADSTRUCTURE,4,4
	.comm	FDT_ERR_BADOFFSET,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_wip.c__fdt_node_end_offset.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_fdt_node_end_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	_fdt_node_end_offset, %function
_fdt_node_end_offset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	sub	sp, sp, #8
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	fdt_next_tag
	cmp	r0, #132
	beq	.L11
	ldr	r3, .L15+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	mov	r6, #0
.L2:
	ldr	r4, [sp]
	mov	r2, sp
	mov	r1, r4
	mov	r0, r5
	bl	fdt_next_tag
	sub	r3, r0, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L1
	.word	.L5
.L7:
	sub	r6, r6, #1
.L8:
	cmn	r6, #1
	bne	.L2
	ldr	r4, [sp]
	b	.L1
.L5:
	add	r6, r6, #1
	b	.L2
.L14:
	bl	__stack_chk_fail
.L4:
	ldr	r3, .L15+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	FDT_ERR_BADOFFSET
	.word	FDT_ERR_BADSTRUCTURE
	.size	_fdt_node_end_offset, .-_fdt_node_end_offset
	.comm	FDT_ERR_BADSTRUCTURE,4,4
	.comm	FDT_ERR_BADOFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
