	.file	"extr_dtoverlay.c_dtoverlay_resolve_phandles.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phandle"
.LC1:
	.string	"linux,phandle"
.LC2:
	.string	"/__local_fixups__"
.LC3:
	.string	"fixup"
.LC4:
	.string	"error applying local fixups"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"  +overlay max phandle +%d -> %d"
	.text
	.p2align 4
	.type	dtoverlay_resolve_phandles, @function
dtoverlay_resolve_phandles:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	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
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, DWORD PTR [r12]
	mov	esi, ebp
	mov	rdx, r13
	mov	rdi, rbx
	call	dtoverlay_phandle_relocate@PLT
	mov	ecx, DWORD PTR [r12]
	mov	esi, ebp
	mov	rdi, rbx
	lea	rdx, .LC1[rip]
	call	dtoverlay_phandle_relocate@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, ebp
	xor	edx, edx
	call	fdt_next_node@PLT
	mov	ebp, eax
	test	eax, eax
	jns	.L2
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC2[rip]
	call	fdt_path_offset@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L3
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, eax
	lea	rcx, 4[rsp]
	lea	rdx, .LC3[rip]
	call	fdt_getprop@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L4
	mov	ecx, DWORD PTR FIXUP_RELATIVE[rip]
	mov	edx, DWORD PTR [r12]
	mov	rdi, rbx
	call	dtoverlay_apply_fixups@PLT
	mov	DWORD PTR 4[rsp], eax
.L5:
	test	eax, eax
	js	.L11
.L3:
	mov	edx, DWORD PTR [r12]
	add	edx, DWORD PTR [rbx]
	lea	rdi, .LC5[rip]
	mov	DWORD PTR [rbx], edx
	mov	esi, DWORD PTR [r12]
	call	phandle_debug@PLT
	mov	eax, DWORD PTR 4[rsp]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L4:
	.cfi_restore_state
	mov	ecx, DWORD PTR [r12]
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, rbx
	call	dtoverlay_apply_fixups_node@PLT
	mov	DWORD PTR 4[rsp], eax
	jmp	.L5
.L11:
	lea	rdi, .LC4[rip]
	call	dtoverlay_error@PLT
	mov	eax, DWORD PTR 4[rsp]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dtoverlay_resolve_phandles, .-dtoverlay_resolve_phandles
	.comm	FIXUP_RELATIVE,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_dtoverlay.c_dtoverlay_resolve_phandles.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phandle\000"
	.align	2
.LC1:
	.ascii	"linux,phandle\000"
	.align	2
.LC2:
	.ascii	"/__local_fixups__\000"
	.align	2
.LC3:
	.ascii	"fixup\000"
	.align	2
.LC4:
	.ascii	"error applying local fixups\000"
	.align	2
.LC5:
	.ascii	"  +overlay max phandle +%d -> %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dtoverlay_resolve_phandles, %function
dtoverlay_resolve_phandles:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r1
	mov	r4, r3
	ldr	r2, .L13
	sub	sp, sp, #8
	ldr	r8, .L13+4
	ldr	r7, .L13+8
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
.L2:
	mov	r1, r4
	mov	r2, r8
	ldr	r3, [r6]
	mov	r0, r5
	bl	dtoverlay_phandle_relocate
	mov	r1, r4
	mov	r2, r7
	ldr	r3, [r6]
	mov	r0, r5
	bl	dtoverlay_phandle_relocate
	mov	r1, r4
	mov	r2, #0
	ldr	r0, [r5, #4]
	bl	fdt_next_node
	subs	r4, r0, #0
	bge	.L2
	ldr	r1, .L13+12
	ldr	r0, [r5, #4]
	bl	fdt_path_offset
	subs	r4, r0, #0
	blt	.L3
	mov	r1, r4
	mov	r3, sp
	ldr	r2, .L13+16
	ldr	r0, [r5, #4]
	bl	fdt_getprop
	subs	r1, r0, #0
	beq	.L4
	ldr	r3, .L13+20
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r6]
	bl	dtoverlay_apply_fixups
	str	r0, [sp]
.L5:
	cmp	r0, #0
	blt	.L11
.L3:
	ldr	r2, [r5]
	ldr	r3, [r6]
	ldr	r0, .L13+24
	add	r2, r2, r3
	str	r2, [r5]
	ldr	r1, [r6]
	bl	phandle_debug
	ldr	r0, [sp]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r2, r1
	mov	r0, r5
	mov	r1, r4
	ldr	r3, [r6]
	bl	dtoverlay_apply_fixups_node
	str	r0, [sp]
	b	.L5
.L11:
	ldr	r0, .L13+28
	bl	dtoverlay_error
	ldr	r0, [sp]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	FIXUP_RELATIVE
	.word	.LC5
	.word	.LC4
	.size	dtoverlay_resolve_phandles, .-dtoverlay_resolve_phandles
	.comm	FIXUP_RELATIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
