	.file	"extr_ep405.c_platform_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	platform_init
	.type	platform_init, @function
platform_init:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	QWORD PTR table[rip], rdi
	call	planetcore_prepare_table@PLT
	mov	esi, DWORD PTR PLANETCORE_KEY_MB_RAM[rip]
	mov	rdi, QWORD PTR table[rip]
	lea	rdx, mem_size[rip]
	call	planetcore_get_decimal@PLT
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR mem_size[rip]
	mov	ecx, 64
	mov	edx, 32
	mov	rdi, QWORD PTR _end[rip]
	sal	esi, 20
	mov	DWORD PTR mem_size[rip], esi
	sub	esi, edi
	call	simple_alloc_init@PLT
	mov	edi, DWORD PTR _dtb_start[rip]
	call	fdt_init@PLT
	mov	rdi, QWORD PTR table[rip]
	call	planetcore_set_stdout_path@PLT
	xor	eax, eax
	call	serial_console_init@PLT
	mov	eax, DWORD PTR platform_fixups[rip]
	mov	DWORD PTR platform_ops[rip], eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	platform_init, .-platform_init
	.comm	table,8,8
	.comm	platform_ops,4,4
	.comm	platform_fixups,4,4
	.comm	mem_size,4,4
	.comm	_end,8,8
	.comm	_dtb_start,4,4
	.comm	PLANETCORE_KEY_MB_RAM,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_ep405.c_platform_init.c"
	.text
	.align	2
	.global	platform_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	platform_init, %function
platform_init:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L8
	ldr	r5, .L8+4
	str	r0, [r4]
	bl	planetcore_prepare_table
	ldr	r3, .L8+8
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	planetcore_get_decimal
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L8+12
	ldr	r2, [r5]
	ldr	r0, [r3]
	lsl	r2, r2, #20
	sub	r1, r2, r0
	mov	r3, #64
	str	r2, [r5]
	mov	r2, #32
	bl	simple_alloc_init
	ldr	r3, .L8+16
	ldr	r0, [r3]
	bl	fdt_init
	ldr	r0, [r4]
	bl	planetcore_set_stdout_path
	bl	serial_console_init
	ldr	r2, .L8+20
	ldr	r3, .L8+24
	ldr	r2, [r2]
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	table
	.word	mem_size
	.word	PLANETCORE_KEY_MB_RAM
	.word	_end
	.word	_dtb_start
	.word	platform_fixups
	.word	platform_ops
	.size	platform_init, .-platform_init
	.comm	table,4,4
	.comm	platform_ops,4,4
	.comm	platform_fixups,4,4
	.comm	mem_size,4,4
	.comm	_end,4,4
	.comm	_dtb_start,4,4
	.comm	PLANETCORE_KEY_MB_RAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
