	.file	"extr_fdt_sw.c_fdt_resize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fdt_resize
	.type	fdt_resize, @function
fdt_resize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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
	movsx	rbx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	FDT_SW_CHECK_HEADER@PLT
	mov	rdi, rbp
	call	fdt_off_dt_struct@PLT
	mov	rdi, rbp
	mov	r15, rax
	call	fdt_size_dt_strings@PLT
	mov	r12, rax
	add	rax, r15
	cmp	rax, rbx
	jbe	.L2
	mov	eax, DWORD PTR FDT_ERR_NOSPACE[rip]
	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
	neg	eax
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r14, rbx
	sub	rbx, r12
	call	fdt_totalsize@PLT
	add	rbx, r13
	movsx	r8, eax
	sub	r8, r12
	add	r8, rbp
	cmp	rbp, r13
	jb	.L4
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], r8
	call	memmove@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdx, r12
	mov	rdi, rbx
	mov	rsi, r8
	call	memmove@PLT
.L5:
	mov	esi, r14d
	mov	rdi, r13
	call	fdt_set_off_dt_strings@PLT
	mov	esi, r14d
	mov	rdi, r13
	call	fdt_set_totalsize@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L4:
	.cfi_restore_state
	mov	rdx, r12
	mov	rsi, r8
	mov	rdi, rbx
	call	memmove@PLT
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r13
	call	memmove@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	fdt_resize, .-fdt_resize
	.comm	FDT_ERR_NOSPACE,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_sw.c_fdt_resize.c"
	.text
	.align	2
	.global	fdt_resize
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdt_resize, %function
fdt_resize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r5, r2
	mov	r7, r1
	bl	FDT_SW_CHECK_HEADER
	mov	r0, r4
	bl	fdt_off_dt_struct
	mov	r8, r0
	mov	r0, r4
	bl	fdt_size_dt_strings
	add	r3, r8, r0
	cmp	r3, r5
	bls	.L2
	ldr	r3, .L8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r6, r0
	mov	r0, r4
	bl	fdt_totalsize
	sub	r9, r5, r6
	sub	r10, r0, r6
	cmp	r4, r7
	add	r10, r4, r10
	add	r9, r7, r9
	bcc	.L4
	mov	r2, r8
	mov	r1, r4
	mov	r0, r7
	bl	memmove
	mov	r2, r6
	mov	r1, r10
	mov	r0, r9
	bl	memmove
.L5:
	mov	r1, r5
	mov	r0, r7
	bl	fdt_set_off_dt_strings
	mov	r1, r5
	mov	r0, r7
	bl	fdt_set_totalsize
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r2, r6
	mov	r1, r10
	mov	r0, r9
	bl	memmove
	mov	r2, r8
	mov	r1, r4
	mov	r0, r7
	bl	memmove
	b	.L5
.L9:
	.align	2
.L8:
	.word	FDT_ERR_NOSPACE
	.size	fdt_resize, .-fdt_resize
	.comm	FDT_ERR_NOSPACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
