	.file	"extr_fdtget.c_do_fdtget.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_fdtget, @function
do_fdtget:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	rdi, rsi
	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
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	utilfdt_read@PLT
	test	rax, rax
	je	.L9
	mov	r13, rax
	cmp	r12d, r14d
	jg	.L3
	movsx	rax, r12d
	mov	ebp, r12d
	sal	rax, 3
	mov	QWORD PTR 8[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	xor	ecx, ecx
	cmp	r12d, 1
	je	.L7
	mov	rcx, QWORD PTR 8[rbx]
.L7:
	mov	rsi, r15
	mov	rdi, r13
	call	show_data_for_item@PLT
	test	rax, rax
	jne	.L18
	add	ebp, r12d
	add	rbx, QWORD PTR 8[rsp]
	cmp	r14d, ebp
	jl	.L3
.L8:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r13
	call	fdt_path_offset@PLT
	mov	edx, eax
	test	eax, eax
	jns	.L4
	mov	rdi, QWORD PTR [r15]
	test	rdi, rdi
	je	.L5
	call	puts@PLT
	add	ebp, r12d
	add	rbx, QWORD PTR 8[rsp]
	cmp	r14d, ebp
	jge	.L8
.L3:
	mov	rdi, r13
	call	free@PLT
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, r13
	call	free@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	mov	esi, eax
	call	report_error@PLT
	mov	rdi, r13
	call	free@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
.L9:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	do_fdtget, .-do_fdtget
	.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_fdtget.c_do_fdtget.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_fdtget, %function
do_fdtget:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	mov	r0, r1
	mov	r4, r2
	mov	r8, r3
	ldr	r7, [sp, #32]
	bl	utilfdt_read
	subs	r6, r0, #0
	beq	.L9
	cmp	r7, r8
	bgt	.L3
	mov	r5, r7
	lsl	r10, r7, #2
	b	.L8
.L4:
	cmp	r7, #1
	moveq	r3, #0
	ldrne	r3, [r4, #4]
	mov	r1, r9
	mov	r0, r6
	bl	show_data_for_item
	cmp	r0, #0
	bne	.L17
	add	r5, r5, r7
	cmp	r5, r8
	add	r4, r4, r10
	bgt	.L3
.L8:
	mov	r0, r6
	ldr	r1, [r4]
	bl	fdt_path_offset
	subs	r2, r0, #0
	bge	.L4
	ldr	r0, [r9]
	cmp	r0, #0
	beq	.L5
	add	r5, r5, r7
	bl	puts
	cmp	r5, r8
	add	r4, r4, r10
	ble	.L8
.L3:
	mov	r0, r6
	bl	free
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r0, r6
	bl	free
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r1, r2
	ldr	r0, [r4]
	bl	report_error
	mov	r0, r6
	bl	free
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	do_fdtget, .-do_fdtget
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
