	.file	"476.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 32
	.type	head, @object
	.size	head, 40
head:
	.zero	40
	.globl	file
	.align 8
	.type	file, @object
	.size	file, 8
file:
	.zero	8
	.globl	rd_root_image_va
	.align 8
	.type	rd_root_image_va, @object
	.size	rd_root_image_va, 8
rd_root_image_va:
	.zero	8
	.globl	rd_root_size_va
	.align 8
	.type	rd_root_size_va, @object
	.size	rd_root_size_va, 8
rd_root_size_va:
	.zero	8
	.globl	rd_root_image_off
	.align 8
	.type	rd_root_image_off, @object
	.size	rd_root_image_off, 8
rd_root_image_off:
	.zero	8
	.globl	rd_root_size_off
	.align 8
	.type	rd_root_size_off, @object
	.size	rd_root_size_off, 8
rd_root_size_off:
	.zero	8
	.globl	rd_root_size_val
	.align 4
	.type	rd_root_size_val, @object
	.size	rd_root_size_val, 4
rd_root_size_val:
	.zero	4
	.globl	dataseg
	.align 8
	.type	dataseg, @object
	.size	dataseg, 8
dataseg:
	.zero	8
	.globl	data_len
	.align 4
	.type	data_len, @object
	.size	data_len, 4
data_len:
	.zero	4
	.globl	data_off
	.align 4
	.type	data_off, @object
	.size	data_off, 4
data_off:
	.zero	4
	.globl	data_pgoff
	.align 4
	.type	data_pgoff, @object
	.size	data_pgoff, 4
data_pgoff:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s: missing file name\n"
.LC1:
	.string	"%s: reading header\n"
.LC2:
	.string	"%s: bad magic number\n"
.LC3:
	.string	"%s: no symbols\n"
.LC4:
	.string	"%s: has relocations\n"
.LC5:
	.string	"%s: can not map data seg\n"
.LC6:
	.string	"read"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR file[rip], rax
	mov	rax, QWORD PTR file[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L3
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 40
	lea	rsi, head[rip]
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 39
	ja	.L4
	mov	rax, QWORD PTR file[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 263
	je	.L5
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 264
	je	.L5
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 267
	je	.L5
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 204
	je	.L5
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR head[rip+20]
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR file[rip]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR head[rip+28]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR head[rip+32]
	test	eax, eax
	je	.L8
.L7:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	mov	eax, 0
	call	find_rd_root_image
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 267
	je	.L9
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 204
	jne	.L10
	mov	edx, 0
	jmp	.L12
.L10:
	mov	edx, 40
	jmp	.L12
.L9:
	mov	edx, 1024
.L12:
	mov	eax, DWORD PTR head[rip+8]
	add	eax, edx
	mov	DWORD PTR data_off[rip], eax
	mov	eax, DWORD PTR head[rip+12]
	mov	DWORD PTR data_len[rip], eax
	sub	rsp, 8
	push	QWORD PTR head[rip+32]
	push	QWORD PTR head[rip+24]
	push	QWORD PTR head[rip+16]
	push	QWORD PTR head[rip+8]
	push	QWORD PTR head[rip]
	mov	eax, 0
	call	N_PAGSIZ@PLT
	add	rsp, 48
	sub	eax, 1
	mov	DWORD PTR data_pgoff[rip], eax
	mov	edx, DWORD PTR data_pgoff[rip]
	mov	eax, DWORD PTR data_off[rip]
	and	eax, edx
	mov	DWORD PTR data_pgoff[rip], eax
	mov	eax, DWORD PTR data_off[rip]
	mov	edx, DWORD PTR data_pgoff[rip]
	sub	eax, edx
	mov	DWORD PTR data_off[rip], eax
	mov	edx, DWORD PTR data_len[rip]
	mov	eax, DWORD PTR data_pgoff[rip]
	add	eax, edx
	mov	DWORD PTR data_len[rip], eax
	mov	eax, DWORD PTR data_off[rip]
	movsx	rcx, eax
	mov	eax, DWORD PTR data_len[rip]
	cdqe
	mov	edx, DWORD PTR -16[rbp]
	mov	r9, rcx
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR dataseg[rip], rax
	mov	rax, QWORD PTR dataseg[rip]
	cmp	rax, -1
	jne	.L13
	mov	rax, QWORD PTR file[rip]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rdx, QWORD PTR dataseg[rip]
	mov	eax, DWORD PTR data_pgoff[rip]
	cdqe
	add	rax, rdx
	mov	QWORD PTR dataseg[rip], rax
	mov	rdx, QWORD PTR dataseg[rip]
	mov	rax, QWORD PTR rd_root_size_off[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR rd_root_size_val[rip], eax
	mov	eax, DWORD PTR rd_root_size_val[rip]
	mov	rcx, QWORD PTR dataseg[rip]
	mov	rdx, QWORD PTR rd_root_image_off[rip]
	add	rcx, rdx
	mov	edx, eax
	mov	rsi, rcx
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L14
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR data_len[rip]
	cdqe
	mov	rcx, QWORD PTR dataseg[rip]
	mov	edx, DWORD PTR data_pgoff[rip]
	movsx	rdx, edx
	neg	rdx
	add	rcx, rdx
	mov	edx, 0
	mov	rsi, rax
	mov	rdi, rcx
	call	msync@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	wantsyms
	.section	.rodata
.LC7:
	.string	"_md_root_size"
.LC8:
	.string	"_md_root_image"
	.section	.data.rel.local,"aw"
	.align 32
	.type	wantsyms, @object
	.size	wantsyms, 72
wantsyms:
	.quad	.LC7
	.byte	0
	.zero	15
	.quad	.LC8
	.byte	0
	.zero	15
	.quad	0
	.byte	0
	.zero	15
	.section	.rodata
	.align 8
.LC9:
	.string	"%s: no md_root_image symbols?\n"
	.align 8
.LC10:
	.string	"%s: warning: non-standard entry point: 0x%08x\n"
.LC11:
	.string	"\texpecting entry=0x%X\n"
	.align 8
.LC12:
	.string	"%s: md_root_image not in data segment?\n"
	.align 8
.LC13:
	.string	"%s: md_root_size not in data segment?\n"
	.text
	.globl	find_rd_root_image
	.type	find_rd_root_image, @function
find_rd_root_image:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, wantsyms[rip]
	mov	rdi, rax
	mov	eax, 0
	call	nlist@PLT
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 204
	jne	.L17
	mov	r12d, 4096
	jmp	.L18
.L17:
	mov	r12d, 0
.L18:
	mov	ebx, DWORD PTR head[rip+24]
	sub	rsp, 8
	push	QWORD PTR head[rip+32]
	push	QWORD PTR head[rip+24]
	push	QWORD PTR head[rip+16]
	push	QWORD PTR head[rip+8]
	push	QWORD PTR head[rip]
	mov	eax, 0
	call	N_PAGSIZ@PLT
	add	rsp, 48
	sub	eax, 1
	and	eax, ebx
	add	eax, r12d
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 263
	jne	.L19
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 204
	jne	.L20
	mov	edx, 4096
	jmp	.L21
.L20:
	mov	edx, 0
.L21:
	mov	eax, DWORD PTR head[rip+8]
	add	eax, edx
	jmp	.L22
.L19:
	mov	rax, QWORD PTR head[rip]
	movzx	eax, ax
	cmp	rax, 204
	jne	.L23
	mov	edx, 4096
	jmp	.L24
.L23:
	mov	edx, 0
.L24:
	mov	eax, DWORD PTR head[rip+8]
	add	eax, edx
	add	eax, 1023
	and	eax, -1024
.L22:
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR head[rip+24]
	mov	eax, DWORD PTR -20[rbp]
	cmp	edx, eax
	je	.L25
	mov	edx, DWORD PTR head[rip+24]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR head[rip+24]
	mov	edx, DWORD PTR -20[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, ecx
	mov	DWORD PTR -24[rbp], eax
.L25:
	mov	rax, QWORD PTR wantsyms[rip+16]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	mov	QWORD PTR rd_root_size_off[rip], rax
	mov	rax, QWORD PTR wantsyms[rip+40]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	mov	QWORD PTR rd_root_image_off[rip], rax
	mov	rax, QWORD PTR rd_root_image_off[rip]
	test	rax, rax
	js	.L26
	mov	eax, DWORD PTR head[rip+12]
	mov	edx, eax
	mov	rax, QWORD PTR rd_root_image_off[rip]
	cmp	rdx, rax
	jg	.L27
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rax, QWORD PTR rd_root_size_off[rip]
	test	rax, rax
	js	.L28
	mov	eax, DWORD PTR head[rip+12]
	mov	edx, eax
	mov	rax, QWORD PTR rd_root_size_off[rip]
	cmp	rdx, rax
	jg	.L29
.L28:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	nop
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find_rd_root_image, .-find_rd_root_image
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"476.c"
	.text
	.comm	head,32,4
	.comm	file,4,4
	.comm	rd_root_image_va,4,4
	.comm	rd_root_size_va,4,4
	.comm	rd_root_image_off,4,4
	.comm	rd_root_size_off,4,4
	.comm	rd_root_size_val,4,4
	.comm	dataseg,4,4
	.comm	data_len,4,4
	.comm	data_off,4,4
	.comm	data_pgoff,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: missing file name\012\000"
	.align	2
.LC1:
	.ascii	"%s: reading header\012\000"
	.align	2
.LC2:
	.ascii	"%s: bad magic number\012\000"
	.align	2
.LC3:
	.ascii	"%s: no symbols\012\000"
	.align	2
.LC4:
	.ascii	"%s: has relocations\012\000"
	.align	2
.LC5:
	.ascii	"%s: can not map data seg\012\000"
	.align	2
.LC6:
	.ascii	"read\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	ldr	r2, .L15+4
	str	r3, [r2]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #32
	ldr	r1, .L15+8
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #31
	bhi	.L4
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L15+16
	cmp	r3, r2
	beq	.L5
	ldr	r3, .L15+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #264
	beq	.L5
	ldr	r3, .L15+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L15+20
	cmp	r3, r2
	beq	.L5
	ldr	r3, .L15+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #204
	beq	.L5
	ldr	r0, .L15+24
	bl	printf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, .L15+8
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+28
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, .L15+8
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L15+8
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L8
.L7:
	ldr	r0, .L15+32
	bl	printf
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	find_rd_root_image
	ldr	r3, .L15+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L15+20
	cmp	r3, r2
	beq	.L9
	ldr	r3, .L15+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #204
	bne	.L10
	mov	r3, #0
	b	.L12
.L10:
	mov	r3, #32
	b	.L12
.L9:
	mov	r3, #1024
.L12:
	ldr	r2, .L15+8
	ldr	r2, [r2, #4]
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, .L15+36
	str	r2, [r3]
	ldr	r3, .L15+8
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, .L15+40
	str	r2, [r3]
	ldr	ip, .L15+8
	mov	lr, sp
	add	r3, ip, #16
	ldm	r3, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	bl	N_PAGSIZ
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L15+44
	str	r3, [r2]
	ldr	r3, .L15+44
	ldr	r2, [r3]
	ldr	r3, .L15+36
	ldr	r3, [r3]
	and	r3, r3, r2
	ldr	r2, .L15+44
	str	r3, [r2]
	ldr	r3, .L15+36
	ldr	r2, [r3]
	ldr	r3, .L15+44
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, .L15+36
	str	r3, [r2]
	ldr	r3, .L15+40
	ldr	r2, [r3]
	ldr	r3, .L15+44
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L15+40
	str	r3, [r2]
	ldr	r3, .L15+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L15+36
	ldr	r3, [r3]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L15+48
	str	r3, [r2]
	ldr	r3, .L15+48
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L13
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+52
	bl	printf
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, .L15+48
	ldr	r3, [r3]
	ldr	r2, .L15+44
	ldr	r2, [r2]
	add	r3, r3, r2
	ldr	r2, .L15+48
	str	r3, [r2]
	ldr	r3, .L15+48
	ldr	r3, [r3]
	ldr	r2, .L15+56
	ldr	r2, [r2]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, .L15+60
	str	r3, [r2]
	ldr	r3, .L15+48
	ldr	r3, [r3]
	ldr	r2, .L15+64
	ldr	r2, [r2]
	add	r3, r3, r2
	ldr	r2, .L15+60
	ldr	r2, [r2]
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L15+68
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, .L15+48
	ldr	r2, [r3]
	ldr	r3, .L15+44
	ldr	r3, [r3]
	rsb	r3, r3, #0
	add	r3, r2, r3
	ldr	r2, .L15+40
	ldr	r2, [r2]
	mov	r1, r2
	mov	r2, #0
	mov	r0, r3
	bl	msync
	ldr	r0, [fp, #-16]
	bl	close
	mov	r0, #0
	bl	exit
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	file
	.word	head
	.word	.LC1
	.word	263
	.word	267
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	data_off
	.word	data_len
	.word	data_pgoff
	.word	dataseg
	.word	.LC5
	.word	rd_root_size_off
	.word	rd_root_size_val
	.word	rd_root_image_off
	.word	.LC6
	.size	main, .-main
	.global	wantsyms
	.section	.rodata
	.align	2
.LC7:
	.ascii	"_md_root_size\000"
	.align	2
.LC8:
	.ascii	"_md_root_image\000"
	.data
	.align	2
	.type	wantsyms, %object
	.size	wantsyms, 36
wantsyms:
	.word	.LC7
	.byte	0
	.space	7
	.word	.LC8
	.byte	0
	.space	7
	.word	0
	.byte	0
	.space	7
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s: no md_root_image symbols?\012\000"
	.align	2
.LC10:
	.ascii	"%s: warning: non-standard entry point: 0x%08x\012\000"
	.align	2
.LC11:
	.ascii	"\011expecting entry=0x%X\012\000"
	.align	2
.LC12:
	.ascii	"%s: md_root_image not in data segment?\012\000"
	.align	2
.LC13:
	.ascii	"%s: md_root_size not in data segment?\012\000"
	.text
	.align	2
	.global	find_rd_root_image
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_rd_root_image, %function
find_rd_root_image:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r1, .L32
	ldr	r0, [fp, #-24]
	bl	nlist
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r1, [fp, #-24]
	ldr	r0, .L32+4
	bl	printf
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #204
	bne	.L19
	mov	r4, #4096
	b	.L20
.L19:
	mov	r4, #0
.L20:
	ldr	r3, .L32+8
	ldr	r5, [r3, #20]
	ldr	ip, .L32+8
	mov	lr, sp
	add	r3, ip, #16
	ldm	r3, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	bl	N_PAGSIZ
	mov	r3, r0
	sub	r3, r3, #1
	and	r3, r3, r5
	add	r3, r4, r3
	str	r3, [fp, #-16]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L32+12
	cmp	r3, r2
	bne	.L21
	ldr	r3, .L32+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #204
	bne	.L22
	mov	r2, #4096
	b	.L23
.L22:
	mov	r2, #0
.L23:
	ldr	r3, .L32+8
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	b	.L24
.L21:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #204
	bne	.L25
	mov	r2, #4096
	b	.L26
.L25:
	mov	r2, #0
.L26:
	ldr	r3, .L32+8
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	add	r3, r3, #1020
	add	r3, r3, #3
	bic	r3, r3, #1020
	bic	r3, r3, #3
.L24:
	str	r3, [fp, #-20]
	ldr	r3, .L32+8
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L27
	ldr	r3, .L32+8
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L32+16
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L32+20
	bl	printf
	ldr	r3, .L32+8
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L27:
	ldr	r3, .L32
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L32+24
	str	r2, [r3]
	ldr	r3, .L32
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L32+28
	str	r2, [r3]
	ldr	r3, .L32+28
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L28
	ldr	r3, .L32+8
	ldr	r3, [r3, #8]
	ldr	r2, .L32+28
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L29
.L28:
	ldr	r1, [fp, #-24]
	ldr	r0, .L32+32
	bl	printf
	mov	r0, #1
	bl	exit
.L29:
	ldr	r3, .L32+24
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L30
	ldr	r3, .L32+8
	ldr	r3, [r3, #8]
	ldr	r2, .L32+24
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L31
.L30:
	ldr	r1, [fp, #-24]
	ldr	r0, .L32+36
	bl	printf
	mov	r0, #1
	bl	exit
.L31:
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L33:
	.align	2
.L32:
	.word	wantsyms
	.word	.LC9
	.word	head
	.word	263
	.word	.LC10
	.word	.LC11
	.word	rd_root_size_off
	.word	rd_root_image_off
	.word	.LC12
	.word	.LC13
	.size	find_rd_root_image, .-find_rd_root_image
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
