	.file	"extr_machine_kexec_file.c_create_dtb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	create_dtb, @function
create_dtb:
.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
	mov	r14, rdx
	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, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 8[rsp], r8
	test	rcx, rcx
	je	.L2
	mov	rdi, rcx
	call	strlen@PLT
	mov	rbx, rax
.L2:
	mov	edi, DWORD PTR initial_boot_params[rip]
	call	fdt_totalsize@PLT
	add	rbx, rax
.L12:
	add	rbx, QWORD PTR DTB_EXTRA_SPACE[rip]
	mov	rdi, rbx
	call	vmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L14
	mov	edi, DWORD PTR initial_boot_params[rip]
	mov	rdx, rbx
	mov	rsi, rax
	call	fdt_open_into@PLT
	test	eax, eax
	jne	.L15
	mov	rdi, QWORD PTR [rsp]
	mov	r8, r12
	mov	rcx, rbp
	mov	rdx, r14
	mov	rsi, r13
	call	setup_dtb@PLT
	mov	rdi, r12
	mov	r15d, eax
	test	eax, eax
	je	.L6
	call	vfree@PLT
	mov	eax, r15d
	add	eax, DWORD PTR ENOMEM[rip]
	je	.L12
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L14:
	.cfi_restore_state
	mov	r15d, DWORD PTR ENOMEM[rip]
	neg	r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r15d, DWORD PTR EINVAL[rip]
	neg	r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	call	fdt_pack@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], r12
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	create_dtb, .-create_dtb
	.comm	initial_boot_params,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DTB_EXTRA_SPACE,8,8
	.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_machine_kexec_file.c_create_dtb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_dtb, %function
create_dtb:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r6, r3, #0
	mov	r7, r0
	mov	r8, r1
	mov	r9, r2
	moveq	r5, r6
	sub	sp, sp, #20
	beq	.L2
	mov	r0, r6
	bl	strlen
	mov	r5, r0
.L2:
	ldr	r3, .L15
	ldr	r10, .L15+4
	ldr	r0, [r3]
	bl	fdt_totalsize
	ldr	r3, [r10]
	add	r5, r0, r5
	ldr	fp, .L15+8
	add	r5, r5, r3
.L7:
	mov	r0, r5
	bl	vmalloc
	subs	r4, r0, #0
	beq	.L12
	ldr	r3, .L15
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r3]
	bl	fdt_open_into
	cmp	r0, #0
	bne	.L13
	mov	r3, r6
	mov	r2, r9
	mov	r1, r8
	mov	r0, r7
	str	r4, [sp]
	bl	setup_dtb
	subs	r3, r0, #0
	str	r3, [sp, #12]
	mov	r0, r4
	beq	.L6
	bl	vfree
	ldr	r2, [fp]
	ldr	r3, [sp, #12]
	cmn	r3, r2
	beq	.L14
.L1:
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, [r10]
	add	r5, r5, r3
	b	.L7
.L12:
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r3, r0, #0
	b	.L1
.L13:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r3, r0, #0
	b	.L1
.L6:
	bl	fdt_pack
	ldr	r3, [sp, #56]
	str	r4, [r3]
	ldr	r3, [sp, #12]
	b	.L1
.L16:
	.align	2
.L15:
	.word	initial_boot_params
	.word	DTB_EXTRA_SPACE
	.word	ENOMEM
	.word	EINVAL
	.size	create_dtb, .-create_dtb
	.comm	initial_boot_params,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DTB_EXTRA_SPACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
