	.file	"extr_crash_dump.c_loads_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	loads_init, @function
loads_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_memory_layout@PLT
	mov	r9d, DWORD PTR MEMORY_CHUNKS[rip]
	mov	r13, rax
	test	r9d, r9d
	jle	.L6
	mov	r8d, DWORD PTR PF_R[rip]
	mov	r10, QWORD PTR CHUNK_READ_WRITE[rip]
	mov	rdx, rax
	xor	r12d, r12d
	or	r8d, DWORD PTR PF_W[rip]
	mov	rbp, QWORD PTR CHUNK_READ_ONLY[rip]
	mov	edi, DWORD PTR PT_LOAD[rip]
	mov	r11d, DWORD PTR PAGE_SIZE[rip]
	or	r8d, DWORD PTR PF_X[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, QWORD PTR 8[rdx]
	cmp	rsi, r10
	je	.L3
	cmp	rsi, rbp
	jne	.L4
.L3:
	mov	DWORD PTR 36[rbx], edi
	mov	esi, DWORD PTR 16[rdx]
	add	rbx, 40
	mov	QWORD PTR -40[rbx], rcx
	mov	DWORD PTR -8[rbx], esi
	mov	DWORD PTR -12[rbx], esi
	mov	DWORD PTR -16[rbx], esi
	mov	QWORD PTR -32[rbx], rcx
	mov	DWORD PTR -24[rbx], r8d
	mov	DWORD PTR -20[rbx], r11d
.L4:
	add	r12d, 1
	add	rdx, 24
	cmp	r12d, r9d
	je	.L2
.L5:
	mov	rcx, QWORD PTR [rdx]
	test	rcx, rcx
	jne	.L13
.L2:
	mov	rdi, r13
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	loads_init, .-loads_init
	.comm	PT_LOAD,4,4
	.comm	PF_X,4,4
	.comm	PF_W,4,4
	.comm	PF_R,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MEMORY_CHUNKS,4,4
	.comm	CHUNK_READ_WRITE,8,8
	.comm	CHUNK_READ_ONLY,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_crash_dump.c_loads_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	loads_init, %function
loads_init:
	@ 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
	bl	get_memory_layout
	ldr	r3, .L14
	ldr	lr, [r3]
	cmp	lr, #0
	ble	.L6
	ldr	ip, .L14+4
	ldr	r1, .L14+8
	ldr	r2, .L14+12
	ldr	r1, [r1]
	ldr	ip, [ip]
	ldr	r8, .L14+16
	ldr	r7, .L14+20
	orr	ip, ip, r1
	ldr	r6, .L14+24
	ldr	r2, [r2]
	ldr	r1, .L14+28
	ldr	r9, [r8]
	mov	r3, r0
	ldr	r8, [r7]
	mov	r5, #0
	ldr	r6, [r6]
	ldr	r7, [r1]
	orr	ip, ip, r2
	b	.L5
.L13:
	ldr	r1, [r3, #4]
	add	r5, r5, #1
	cmp	r1, r6
	beq	.L3
	cmp	r1, r9
	bne	.L4
.L3:
	str	r8, [r4, #28]
	ldr	r1, [r3, #8]
	stmib	r4, {r2, ip}
	str	r2, [r4]
	str	r1, [r4, #24]
	str	r1, [r4, #20]
	str	r1, [r4, #16]
	str	r7, [r4, #12]
	add	r4, r4, #32
.L4:
	cmp	r5, lr
	add	r3, r3, #12
	beq	.L2
.L5:
	ldr	r2, [r3]
	cmp	r2, #0
	bne	.L13
.L2:
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r5, #0
	b	.L2
.L15:
	.align	2
.L14:
	.word	MEMORY_CHUNKS
	.word	PF_R
	.word	PF_W
	.word	PF_X
	.word	CHUNK_READ_ONLY
	.word	PT_LOAD
	.word	CHUNK_READ_WRITE
	.word	PAGE_SIZE
	.size	loads_init, .-loads_init
	.comm	PT_LOAD,4,4
	.comm	PF_X,4,4
	.comm	PF_W,4,4
	.comm	PF_R,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MEMORY_CHUNKS,4,4
	.comm	CHUNK_READ_WRITE,4,4
	.comm	CHUNK_READ_ONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
