	.file	"extr_fdt_ro.c_fdt_get_path.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fdt_get_path
	.type	fdt_get_path, @function
fdt_get_path:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 4[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	FDT_CHECK_HEADER@PLT
	cmp	r14d, 1
	jle	.L26
	mov	eax, DWORD PTR FDT_ERR_BADOFFSET[rip]
	mov	DWORD PTR 16[rsp], 0
	neg	eax
	test	ebx, ebx
	js	.L5
	lea	rax, 20[rsp]
	xor	r12d, r12d
	xor	edx, edx
	xor	r14d, r14d
	mov	QWORD PTR 8[rsp], rax
	xor	r13d, r13d
.L4:
	cmp	r13d, edx
	jge	.L28
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	ebx, r12d
	je	.L29
.L10:
	lea	rdx, 16[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	call	fdt_next_node@PLT
	mov	r12d, eax
	not	eax
	shr	eax, 31
	mov	edx, eax
	cmp	ebx, r12d
	jl	.L13
	test	al, al
	je	.L13
	mov	edx, DWORD PTR 16[rsp]
	cmp	r13d, edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	lea	eax, -1[r14]
	cdqe
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r14d, eax
	sub	rax, 1
	cmp	BYTE PTR [r15+rax], 47
	jne	.L6
	sub	r13d, 1
	cmp	r13d, edx
	jne	.L7
	cmp	r13d, edx
	jl	.L8
.L28:
	mov	rdx, QWORD PTR 8[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	call	fdt_get_name@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L30
	mov	edx, DWORD PTR 20[rsp]
	lea	eax, [rdx+r14]
	cmp	eax, DWORD PTR 4[rsp]
	jge	.L8
	movsx	rdi, r14d
	add	r13d, 1
	add	rdi, r15
	call	memcpy@PLT
	mov	eax, DWORD PTR 20[rsp]
	add	eax, r14d
	lea	r14d, 1[rax]
	cdqe
	mov	BYTE PTR [r15+rax], 47
	cmp	ebx, r12d
	jne	.L10
.L29:
	cmp	DWORD PTR 16[rsp], r13d
	jl	.L11
.L26:
	mov	r12d, DWORD PTR FDT_ERR_NOSPACE[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR FDT_ERR_BADOFFSET[rip]
	mov	ecx, r12d
	neg	eax
	add	ecx, DWORD PTR FDT_ERR_NOTFOUND[rip]
	je	.L5
	test	dl, dl
	jne	.L5
	cmp	r12d, eax
	jne	.L1
	mov	r12d, DWORD PTR FDT_ERR_BADSTRUCTURE[rip]
	neg	r12d
	jmp	.L1
.L11:
	xor	eax, eax
	cmp	r14d, 1
	setg	al
	xor	r12d, r12d
	sub	r14d, eax
	movsx	rax, r14d
	mov	BYTE PTR [r15+rax], 0
	jmp	.L1
.L5:
	mov	r12d, eax
	jmp	.L1
.L30:
	mov	r12d, DWORD PTR 20[rsp]
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fdt_get_path, .-fdt_get_path
	.comm	FDT_ERR_NOTFOUND,4,4
	.comm	FDT_ERR_NOSPACE,4,4
	.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_ro.c_fdt_get_path.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fdt_get_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdt_get_path, %function
fdt_get_path:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	ldr	r3, .L29
	sub	sp, sp, #28
	mov	r6, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r7, r0
	bl	FDT_CHECK_HEADER
	cmp	r8, #1
	ble	.L22
	mov	r10, #0
	cmp	r6, r10
	movge	r9, #47
	movge	r0, r10
	movge	fp, r10
	movge	r4, r10
	str	r10, [sp, #12]
	blt	.L24
.L4:
	cmp	r0, r4
	ble	.L25
.L8:
	cmp	r6, r10
	beq	.L26
.L10:
	mov	r1, r10
	mov	r0, r7
	add	r2, sp, #12
	bl	fdt_next_node
	mvn	r3, r0
	cmp	r6, r0
	cmpge	r0, #0
	mov	r10, r0
	lsr	r3, r3, #31
	blt	.L13
	ldr	r0, [sp, #12]
	cmp	r4, r0
	ble	.L4
	rsb	r1, r5, #1
.L7:
	sub	r3, fp, #2
	add	r3, r5, r3
.L6:
	add	fp, r1, r3
	ldrb	r2, [r3], #-1	@ zero_extendqisi2
	cmp	r2, #47
	bne	.L6
	sub	r4, r4, #1
	cmp	r4, r0
	bne	.L7
	cmp	r0, r4
	bgt	.L8
.L25:
	mov	r1, r10
	mov	r0, r7
	add	r2, sp, #16
	bl	fdt_get_name
	subs	r1, r0, #0
	beq	.L27
	ldr	r2, [sp, #16]
	add	r3, r2, fp
	cmp	r3, r8
	bge	.L8
	add	r0, r5, fp
	str	r3, [sp, #4]
	bl	memcpy
	ldr	r3, [sp, #4]
	cmp	r6, r10
	add	fp, r3, #1
	strb	r9, [r5, r3]
	add	r4, r4, #1
	bne	.L10
.L26:
	ldr	r3, [sp, #12]
	cmp	r3, r4
	blt	.L11
.L22:
	ldr	r3, .L29+4
	ldr	r10, [r3]
	rsb	r10, r10, #0
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r1, .L29+8
	ldr	r2, .L29+12
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmn	r0, r1
	moveq	r3, #1
	cmp	r3, #0
	rsb	r3, r2, #0
	beq	.L15
.L5:
	mov	r10, r3
	b	.L1
.L11:
	mov	r10, #0
	cmp	fp, #1
	subgt	fp, fp, #1
	strb	r10, [r5, fp]
	b	.L1
.L15:
	cmp	r3, r0
	ldreq	r3, .L29+16
	ldreq	r10, [r3]
	rsbeq	r10, r10, #0
	b	.L1
.L27:
	ldr	r10, [sp, #16]
	b	.L1
.L28:
	bl	__stack_chk_fail
.L24:
	ldr	r3, .L29+12
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L5
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	FDT_ERR_NOSPACE
	.word	FDT_ERR_NOTFOUND
	.word	FDT_ERR_BADOFFSET
	.word	FDT_ERR_BADSTRUCTURE
	.size	fdt_get_path, .-fdt_get_path
	.comm	FDT_ERR_NOTFOUND,4,4
	.comm	FDT_ERR_NOSPACE,4,4
	.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
