	.file	"670710.c"
	.intel_syntax noprefix
	.text
	.globl	ld2
	.type	ld2, @function
ld2:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cbw
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ld2, .-ld2
	.globl	ld4
	.type	ld4, @function
ld4:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ld4, .-ld4
	.globl	st4
	.type	st4, @function
st4:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	st4, .-st4
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: piggyback vmlinux.aout System.map fs_img.gz\n"
	.align 8
.LC1:
	.string	"\tKernel image will be modified in place.\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.globl	die
	.type	die, @function
die:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	die, .-die
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	" T start\n"
.LC4:
	.string	" A end\n"
	.align 8
.LC5:
	.string	"Could not determine start and end from System.map\n"
.LC6:
	.string	"\177ELF"
.LC7:
	.string	"lseek"
	.align 8
.LC8:
	.string	"Not ELF nor a.out. Don't blame me.\n"
	.align 8
.LC9:
	.string	"Couldn't find headers signature in the kernel.\n"
.LC10:
	.string	"close"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1272
	.cfi_offset 3, -24
	mov	DWORD PTR -1268[rbp], edi
	mov	QWORD PTR -1280[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1268[rbp], 4
	je	.L9
	call	usage
.L9:
	mov	DWORD PTR -1244[rbp], 0
	mov	eax, DWORD PTR -1244[rbp]
	mov	DWORD PTR -1248[rbp], eax
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L10
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
.L10:
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1216[rbp], rax
	cmp	QWORD PTR -1216[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
	jmp	.L12
.L16:
	lea	rax, -1056[rbp]
	add	rax, 8
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L13
	lea	rax, -1056[rbp]
	add	rax, 16
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
.L13:
	lea	rax, -1056[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -1248[rbp], eax
	jmp	.L12
.L14:
	lea	rax, -1056[rbp]
	add	rax, 8
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L15
	lea	rax, -1056[rbp]
	add	rax, 16
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
.L15:
	lea	rax, -1056[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -1244[rbp], eax
.L12:
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1056[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -1248[rbp], 0
	je	.L17
	cmp	DWORD PTR -1244[rbp], 0
	jne	.L18
.L17:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1240[rbp], eax
	cmp	DWORD PTR -1240[rbp], 0
	jns	.L19
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
.L19:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 512
	je	.L20
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
.L20:
	lea	rax, -1056[rbp]
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L21
	lea	rax, -1056[rbp]
	add	rax, 28
	mov	rdi, rax
	call	ld4
	mov	edx, eax
	lea	rax, -1056[rbp]
	add	rax, rdx
	mov	QWORD PTR -1224[rbp], rax
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 4
	mov	rdi, rax
	call	ld4
	mov	ebx, eax
	lea	rax, -1056[rbp]
	add	rax, 24
	mov	rdi, rax
	call	ld4
	add	ebx, eax
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 8
	mov	rdi, rax
	call	ld4
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	DWORD PTR -1256[rbp], eax
	mov	ecx, DWORD PTR -1256[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	jns	.L22
	lea	rdi, .LC7[rip]
	call	die
.L22:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 512
	je	.L23
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
.L23:
	mov	DWORD PTR -1252[rbp], 0
	jmp	.L24
.L21:
	lea	rax, -1056[rbp]
	mov	edx, 4
	lea	rsi, aout_magic.0[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L25
	mov	DWORD PTR -1252[rbp], 32
	mov	eax, DWORD PTR -1252[rbp]
	mov	DWORD PTR -1256[rbp], eax
	jmp	.L24
.L25:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR -1256[rbp]
	mov	DWORD PTR -1236[rbp], eax
	mov	eax, DWORD PTR -1252[rbp]
	lea	rdx, 2[rax]
	lea	rax, -1056[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	ld2
	movzx	eax, ax
	sal	eax, 2
	sub	eax, 512
	add	DWORD PTR -1256[rbp], eax
	mov	ecx, DWORD PTR -1256[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	jns	.L26
	lea	rdi, .LC7[rip]
	call	die
.L26:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1024
	je	.L27
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
.L27:
	lea	rax, -1056[rbp]
	mov	QWORD PTR -1224[rbp], rax
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 512
	mov	QWORD PTR -1208[rbp], rax
	jmp	.L28
.L31:
	mov	rax, QWORD PTR -1224[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 72
	jne	.L29
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 100
	jne	.L29
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	jne	.L29
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 83
	je	.L43
.L29:
	add	QWORD PTR -1224[rbp], 4
.L28:
	mov	rax, QWORD PTR -1224[rbp]
	cmp	rax, QWORD PTR -1208[rbp]
	jb	.L31
	jmp	.L30
.L43:
	nop
.L30:
	mov	rax, QWORD PTR -1224[rbp]
	cmp	rax, QWORD PTR -1208[rbp]
	jne	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	lea	rdx, -1056[rbp]
	mov	rax, QWORD PTR -1224[rbp]
	sub	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -1256[rbp]
	add	eax, edx
	add	eax, 10
	mov	DWORD PTR -1232[rbp], eax
	mov	ecx, DWORD PTR -1232[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	jns	.L33
	lea	rdi, .LC7[rip]
	call	die
.L33:
	lea	rax, -1056[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	st4
	lea	rax, -1056[rbp]
	add	rax, 4
	mov	esi, 16777216
	mov	rdi, rax
	call	st4
	mov	eax, DWORD PTR -1244[rbp]
	add	eax, 4127
	and	eax, -4096
	mov	edx, eax
	lea	rax, -1056[rbp]
	add	rax, 8
	mov	esi, edx
	mov	rdi, rax
	call	st4
	mov	rax, QWORD PTR -1152[rbp]
	mov	edx, eax
	lea	rax, -1056[rbp]
	add	rax, 12
	mov	esi, edx
	mov	rdi, rax
	call	st4
	lea	rax, -1056[rbp]
	add	rax, 2
	mov	ecx, DWORD PTR -1240[rbp]
	mov	edx, 14
	mov	rsi, rax
	mov	edi, ecx
	call	write@PLT
	cmp	rax, 14
	je	.L34
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
.L34:
	mov	eax, DWORD PTR -1236[rbp]
	sub	eax, DWORD PTR -1248[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1244[rbp]
	add	eax, 4127
	and	eax, -4096
	add	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -1240[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	jns	.L35
	lea	rdi, .LC7[rip]
	call	die
.L35:
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1228[rbp], eax
	cmp	DWORD PTR -1228[rbp], 0
	jns	.L37
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
	jmp	.L37
.L38:
	mov	edx, DWORD PTR -1256[rbp]
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1240[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -1256[rbp]
	cmp	rax, rdx
	je	.L37
	mov	rax, QWORD PTR -1280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	die
.L37:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1228[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1256[rbp], eax
	cmp	DWORD PTR -1256[rbp], 0
	jne	.L38
	mov	eax, DWORD PTR -1240[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L39
	lea	rdi, .LC10[rip]
	call	die
.L39:
	mov	eax, DWORD PTR -1228[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L40
	lea	rdi, .LC10[rip]
	call	die
.L40:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.data
	.type	aout_magic.0, @object
	.size	aout_magic.0, 4
aout_magic.0:
	.ascii	"\001\003\001\007"
	.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	"670710.c"
	.text
	.align	2
	.global	ld2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ld2, %function
ld2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ld2, .-ld2
	.align	2
	.global	ld4
	.syntax unified
	.arm
	.fpu softvfp
	.type	ld4, %function
ld4:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #3
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ld4, .-ld4
	.align	2
	.global	st4
	.syntax unified
	.arm
	.fpu softvfp
	.type	st4, %function
st4:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	st4, .-st4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: piggyback vmlinux.aout System.map fs_img.gz\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"\011Kernel image will be modified in place.\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L7+4
	bl	fwrite
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L7+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	.align	2
.L7:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	usage, .-usage
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	die, .-die
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	" T start\012\000"
	.align	2
.LC4:
	.ascii	" A end\012\000"
	.align	2
.LC5:
	.ascii	"Could not determine start and end from System.map\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"\177ELF\000"
	.align	2
.LC7:
	.ascii	"lseek\000"
	.align	2
.LC8:
	.ascii	"Not ELF nor a.out. Don't blame me.\012\000"
	.align	2
.LC9:
	.ascii	"Couldn't find headers signature in the kernel.\012\000"
	.align	2
.LC10:
	.ascii	"close\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1168
	sub	sp, sp, #12
	str	r0, [fp, #-1184]
	str	r1, [fp, #-1188]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1184]
	cmp	r3, #4
	beq	.L11
	bl	usage
.L11:
	mov	r3, #0
	str	r3, [fp, #-1160]
	ldr	r3, [fp, #-1160]
	str	r3, [fp, #-1164]
	ldr	r3, [fp, #-1188]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #1120
	sub	r2, r2, #12
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r3, [fp, #-1188]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L12:
	ldr	r3, [fp, #-1188]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L46+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-1188]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
	b	.L14
.L18:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #8
	ldr	r1, .L46+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #16
	ldr	r1, .L46+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L15:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-1164]
	b	.L14
.L16:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #8
	ldr	r1, .L46+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #16
	ldr	r1, .L46+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
.L17:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-1160]
.L14:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1156]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-1156]
	bl	fclose
	ldr	r3, [fp, #-1164]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-1160]
	cmp	r3, #0
	bne	.L20
.L19:
	ldr	r3, .L46+16
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L46+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1152]
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	bge	.L21
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L21:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	read
	mov	r3, r0
	cmp	r3, #512
	beq	.L22
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L22:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L46+24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #28
	mov	r0, r3
	bl	ld4
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	str	r3, [fp, #-1176]
	ldr	r3, [fp, #-1176]
	add	r3, r3, #4
	mov	r0, r3
	bl	ld4
	mov	r4, r0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #24
	mov	r0, r3
	bl	ld4
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-1176]
	add	r3, r3, #8
	mov	r0, r3
	bl	ld4
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L46+28
	bl	die
.L24:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	read
	mov	r3, r0
	cmp	r3, #512
	beq	.L25
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L25:
	mov	r3, #0
	str	r3, [fp, #-1168]
	b	.L26
.L23:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L46+32
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	mov	r3, #32
	str	r3, [fp, #-1168]
	ldr	r3, [fp, #-1168]
	str	r3, [fp, #-1172]
	b	.L26
.L27:
	ldr	r3, .L46+16
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L46+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, [fp, #-1172]
	str	r3, [fp, #-1148]
	ldr	r3, [fp, #-1168]
	add	r2, r3, #2
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r0, r3
	bl	ld2
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r3, r3, #512
	mov	r2, r3
	ldr	r3, [fp, #-1172]
	add	r3, r3, r2
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L28
	ldr	r0, .L46+28
	bl	die
.L28:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	read
	mov	r3, r0
	cmp	r3, #1024
	beq	.L29
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L29:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1176]
	ldr	r3, [fp, #-1176]
	add	r3, r3, #512
	str	r3, [fp, #-1144]
	b	.L30
.L33:
	ldr	r3, [fp, #-1176]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #72
	bne	.L31
	ldr	r3, [fp, #-1176]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L31
	ldr	r3, [fp, #-1176]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L31
	ldr	r3, [fp, #-1176]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #83
	beq	.L45
.L31:
	ldr	r3, [fp, #-1176]
	add	r3, r3, #4
	str	r3, [fp, #-1176]
.L30:
	ldr	r2, [fp, #-1176]
	ldr	r3, [fp, #-1144]
	cmp	r2, r3
	bcc	.L33
	b	.L32
.L45:
	nop
.L32:
	ldr	r2, [fp, #-1176]
	ldr	r3, [fp, #-1144]
	cmp	r2, r3
	bne	.L34
	ldr	r3, .L46+16
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L46+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L34:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1176]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-1172]
	add	r3, r2, r3
	add	r3, r3, #10
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L35
	ldr	r0, .L46+28
	bl	die
.L35:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	st4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r1, #16777216
	mov	r0, r3
	bl	st4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-1160]
	add	r2, r2, #4096
	add	r2, r2, #31
	bic	r2, r2, #4080
	bic	r2, r2, #15
	mov	r1, r2
	mov	r0, r3
	bl	st4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #12
	ldr	r2, [fp, #-1088]
	mov	r1, r2
	mov	r0, r3
	bl	st4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r2, #14
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	write
	mov	r3, r0
	cmp	r3, #14
	beq	.L36
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L36:
	ldr	r2, [fp, #-1148]
	ldr	r3, [fp, #-1164]
	sub	r2, r2, r3
	ldr	r3, [fp, #-1160]
	add	r3, r3, #4096
	add	r3, r3, #31
	bic	r3, r3, #4080
	bic	r3, r3, #15
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L37
	ldr	r0, .L46+28
	bl	die
.L37:
	ldr	r3, [fp, #-1188]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	bge	.L39
	ldr	r3, [fp, #-1188]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
	b	.L39
.L40:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1172]
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1172]
	cmp	r3, r2
	beq	.L39
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L39:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1136]
	bl	read
	mov	r3, r0
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	cmp	r3, #0
	bne	.L40
	ldr	r0, [fp, #-1152]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L46+44
	bl	die
.L41:
	ldr	r0, [fp, #-1136]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L46+44
	bl	die
.L42:
	mov	r3, #0
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC11
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	aout_magic.6217
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.data
	.align	2
	.type	aout_magic.6217, %object
	.size	aout_magic.6217, 4
aout_magic.6217:
	.ascii	"\001\003\001\007"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
