	.file	"150139262.c"
	.intel_syntax noprefix
	.text
	.globl	get4k
	.type	get4k, @function
get4k:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	edx, 4096
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L2
.L3:
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 4095
	jbe	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get4k, .-get4k
	.globl	put4k
	.type	put4k, @function
put4k:
.LFB7:
	.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	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	edx, 4096
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	put4k, .-put4k
	.globl	death
	.type	death, @function
death:
.LFB8:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	death, .-death
	.section	.rodata
	.align 8
.LC0:
	.string	"Name of RAM disk file missing.\n"
	.align 8
.LC1:
	.string	"Name of System Map input file is missing.\n"
	.align 8
.LC2:
	.string	"Name of vmlinux file missing.\n"
	.align 8
.LC3:
	.string	"Name of vmlinux output file missing.\n"
.LC4:
	.string	"r"
	.align 8
.LC5:
	.string	"RAM disk file \"%s\" failed to open.\n"
	.align 8
.LC6:
	.string	"System Map file \"%s\" failed to open.\n"
	.align 8
.LC7:
	.string	"vmlinux file \"%s\" failed to open.\n"
.LC8:
	.string	"w+"
	.align 8
.LC9:
	.string	"output vmlinux file \"%s\" failed to open.\n"
.LC10:
	.string	"kernel file size = %d\n"
	.align 8
.LC11:
	.string	"You must have a linux kernel specified as argv[3]\n"
	.align 8
.LC12:
	.string	"actual kernel length (minus ELF header) = %d\n"
	.align 8
.LC13:
	.string	"Vmlinux length rounded up to a 4k multiple = %ld/0x%lx \n"
	.align 8
.LC14:
	.string	"Vmlinux pages to copy = %ld/0x%lx \n"
.LC15:
	.string	"%s file size = %ld/0x%lx \n"
	.align 8
.LC16:
	.string	"Rounding System Map file up to a multiple of 4096, adding %ld/0x%lx \n"
	.align 8
.LC17:
	.string	"Rounded System Map size is %ld/0x%lx \n"
.LC18:
	.string	" _end"
	.align 8
.LC19:
	.string	"Unable to find _end in the sysmap file \n"
.LC20:
	.string	"inbuf: \n"
.LC21:
	.string	"%s \n"
	.align 8
.LC22:
	.string	"Found _end in the last page of the sysmap - backing up 10 characters it looks like %s"
	.align 8
.LC23:
	.string	"vmlinux is larger than _end indicates it needs to be - offset_end = %lx \n"
	.align 8
.LC24:
	.string	"will insert %lx pages between the vmlinux and the start of the ram disk \n"
	.align 8
.LC25:
	.string	"vmlinux is smaller than _end indicates is needed - offset_end = %lx \n"
	.align 8
.LC26:
	.string	"Ram Disk will start at offset = 0x%lx \n"
	.align 8
.LC27:
	.string	"Rounding RAM disk file up to a multiple of 4096, adding %ld/0x%lx \n"
	.align 8
.LC28:
	.string	"Rounded RAM disk size is %ld/0x%lx \n"
	.align 8
.LC29:
	.string	"RAM disk pages to copy = %ld/0x%lx\n"
	.align 8
.LC30:
	.string	"Could not read hvReleaseData pointer\n"
.LC31:
	.string	"hvReleaseData is at %08x\n"
.LC32:
	.string	"Could not read hvReleaseData\n"
.LC33:
	.string	"hvReleaseData is invalid\n"
.LC34:
	.string	"Naca is at offset 0x%lx \n"
.LC35:
	.string	"Could not read naca\n"
	.align 8
.LC36:
	.string	"RAM disk is already attached to this kernel\n"
.LC37:
	.string	"Could not write naca\n"
	.align 8
.LC38:
	.string	"Ram Disk of 0x%lx pages is attached to the kernel at offset 0x%08x\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 248
	.cfi_offset 3, -24
	mov	DWORD PTR -4340[rbp], edi
	mov	QWORD PTR -4352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -4272[rbp], 0
	mov	QWORD PTR -4264[rbp], 0
	mov	QWORD PTR -4256[rbp], 0
	mov	QWORD PTR -4248[rbp], 0
	mov	DWORD PTR -4324[rbp], 0
	mov	QWORD PTR -4240[rbp], 0
	mov	QWORD PTR -4312[rbp], 0
	mov	QWORD PTR -4232[rbp], 0
	mov	QWORD PTR -4224[rbp], 0
	mov	QWORD PTR -4304[rbp], 0
	mov	QWORD PTR -4216[rbp], 0
	mov	QWORD PTR -4208[rbp], 0
	mov	QWORD PTR -4296[rbp], 0
	mov	QWORD PTR -4200[rbp], 0
	mov	QWORD PTR -4192[rbp], 0
	mov	QWORD PTR -4184[rbp], 0
	mov	QWORD PTR -4288[rbp], 0
	mov	QWORD PTR -4176[rbp], 0
	mov	QWORD PTR -4168[rbp], 0
	mov	QWORD PTR -4160[rbp], 0
	mov	QWORD PTR -4320[rbp], 0
	mov	DWORD PTR -4328[rbp], -928654908
	mov	QWORD PTR -4152[rbp], 0
	mov	QWORD PTR -4144[rbp], 0
	mov	QWORD PTR -4136[rbp], 0
	mov	QWORD PTR -4280[rbp], 0
	cmp	DWORD PTR -4340[rbp], 1
	jg	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	cmp	DWORD PTR -4340[rbp], 2
	jg	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	cmp	DWORD PTR -4340[rbp], 3
	jg	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	cmp	DWORD PTR -4340[rbp], 4
	jg	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4272[rbp], rax
	cmp	QWORD PTR -4272[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4264[rbp], rax
	cmp	QWORD PTR -4264[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4256[rbp], rax
	cmp	QWORD PTR -4256[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4248[rbp], rax
	cmp	QWORD PTR -4248[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -4256[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -4256[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -4200[rbp], rax
	mov	rax, QWORD PTR -4256[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -4200[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -4200[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -4200[rbp]
	sub	rax, 65536
	mov	QWORD PTR -4192[rbp], rax
	mov	rax, QWORD PTR -4192[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4192[rbp]
	and	eax, 4095
	mov	QWORD PTR -4184[rbp], rax
	mov	rax, QWORD PTR -4192[rbp]
	mov	QWORD PTR -4288[rbp], rax
	cmp	QWORD PTR -4184[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -4288[rbp]
	sub	rax, QWORD PTR -4184[rbp]
	add	rax, 4096
	mov	QWORD PTR -4288[rbp], rax
.L16:
	mov	rdx, QWORD PTR -4288[rbp]
	mov	rax, QWORD PTR -4288[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4288[rbp]
	shr	rax, 12
	mov	QWORD PTR -4160[rbp], rax
	mov	rdx, QWORD PTR -4160[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4264[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -4264[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -4224[rbp], rax
	mov	rax, QWORD PTR -4264[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -4224[rbp]
	mov	rdx, QWORD PTR -4224[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4224[rbp]
	mov	QWORD PTR -4304[rbp], rax
	mov	rax, QWORD PTR -4304[rbp]
	and	eax, 4095
	mov	rdx, rax
	mov	eax, 4096
	sub	rax, rdx
	mov	QWORD PTR -4232[rbp], rax
	cmp	QWORD PTR -4232[rbp], 0
	je	.L17
	mov	rdx, QWORD PTR -4232[rbp]
	mov	rax, QWORD PTR -4232[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4232[rbp]
	add	QWORD PTR -4304[rbp], rax
.L17:
	mov	rdx, QWORD PTR -4304[rbp]
	mov	rax, QWORD PTR -4304[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4304[rbp]
	shr	rax, 12
	mov	QWORD PTR -4216[rbp], rax
	nop
.L18:
	mov	rdx, QWORD PTR -4264[rbp]
	lea	rax, -4128[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L18
	lea	rax, -4128[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -4208[rbp], rax
	cmp	QWORD PTR -4208[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -4128[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -4208[rbp]
	sub	rax, 10
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4208[rbp]
	sub	rax, 10
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	eax, eax
	mov	QWORD PTR -4296[rbp], rax
	mov	rax, QWORD PTR -4296[rbp]
	shr	rax, 12
	sub	rax, QWORD PTR -4160[rbp]
	mov	QWORD PTR -4280[rbp], rax
	cmp	QWORD PTR -4280[rbp], 0
	jns	.L20
	mov	rax, QWORD PTR -4288[rbp]
	mov	QWORD PTR -4296[rbp], rax
	mov	rax, QWORD PTR -4296[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -4280[rbp], 0
	mov	rax, QWORD PTR -4280[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -4296[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4280[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	mov	rax, QWORD PTR -4296[rbp]
	mov	QWORD PTR -4176[rbp], rax
	mov	rax, QWORD PTR -4176[rbp]
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4272[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -4272[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -4240[rbp], rax
	mov	rax, QWORD PTR -4272[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -4240[rbp]
	mov	rdx, QWORD PTR -4240[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4240[rbp]
	mov	QWORD PTR -4312[rbp], rax
	mov	rax, QWORD PTR -4312[rbp]
	and	eax, 4095
	mov	rdx, rax
	mov	eax, 4096
	sub	rax, rdx
	mov	QWORD PTR -4232[rbp], rax
	cmp	QWORD PTR -4232[rbp], 0
	je	.L22
	mov	rdx, QWORD PTR -4232[rbp]
	mov	rax, QWORD PTR -4232[rbp]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4232[rbp]
	add	QWORD PTR -4312[rbp], rax
.L22:
	mov	rdx, QWORD PTR -4312[rbp]
	mov	rax, QWORD PTR -4312[rbp]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4312[rbp]
	shr	rax, 12
	mov	QWORD PTR -4168[rbp], rax
	mov	rdx, QWORD PTR -4168[rbp]
	mov	rax, QWORD PTR -4168[rbp]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4324[rbp], 0
	jmp	.L23
.L24:
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get4k
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	put4k
	add	DWORD PTR -4324[rbp], 1
.L23:
	cmp	DWORD PTR -4324[rbp], 15
	jbe	.L24
	mov	rax, QWORD PTR -4256[rbp]
	mov	edx, 0
	mov	esi, 65536
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -4324[rbp], 0
	jmp	.L25
.L26:
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get4k
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	put4k
	add	DWORD PTR -4324[rbp], 1
.L25:
	mov	eax, DWORD PTR -4324[rbp]
	cmp	QWORD PTR -4160[rbp], rax
	ja	.L26
	mov	DWORD PTR -4324[rbp], 0
	jmp	.L27
.L28:
	lea	rax, -4128[rbp]
	mov	edx, 4096
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	put4k
	add	DWORD PTR -4324[rbp], 1
.L27:
	mov	eax, DWORD PTR -4324[rbp]
	cmp	QWORD PTR -4280[rbp], rax
	jg	.L28
	mov	DWORD PTR -4324[rbp], 0
	jmp	.L29
.L30:
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get4k
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	put4k
	add	DWORD PTR -4324[rbp], 1
.L29:
	mov	eax, DWORD PTR -4324[rbp]
	cmp	QWORD PTR -4168[rbp], rax
	ja	.L30
	mov	rax, QWORD PTR -4272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -4256[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -4248[rbp]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -4248[rbp]
	mov	edx, 0
	mov	esi, 65572
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -4248[rbp]
	lea	rax, -4320[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L31
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	call	death
.L31:
	mov	rax, QWORD PTR -4320[rbp]
	mov	edi, eax
	call	ntohl@PLT
	mov	eax, eax
	mov	QWORD PTR -4320[rbp], rax
	mov	rax, QWORD PTR -4320[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4320[rbp]
	add	rax, 65536
	mov	rcx, rax
	mov	rax, QWORD PTR -4248[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -4248[rbp]
	lea	rax, -4128[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 64
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L32
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	call	death
.L32:
	lea	rcx, -4328[rbp]
	lea	rax, -4128[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	call	death
.L33:
	lea	rax, -4128[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	edx, eax
	movabs	rax, 4611686018427387904
	add	rax, rdx
	mov	QWORD PTR -4152[rbp], rax
	mov	rax, QWORD PTR -4152[rbp]
	mov	rsi, rax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4152[rbp]
	add	rax, 65536
	mov	rcx, rax
	mov	rax, QWORD PTR -4248[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -4248[rbp]
	lea	rax, -4128[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 24
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L34
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	call	death
.L34:
	lea	rax, -4128[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	eax, eax
	mov	QWORD PTR -4144[rbp], rax
	lea	rax, -4128[rbp]
	add	rax, 20
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	eax, eax
	mov	QWORD PTR -4136[rbp], rax
	cmp	QWORD PTR -4144[rbp], 0
	jne	.L35
	cmp	QWORD PTR -4136[rbp], 0
	je	.L36
.L35:
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	call	death
.L36:
	mov	rax, QWORD PTR -4176[rbp]
	mov	edx, eax
	lea	rax, -4128[rbp]
	lea	rbx, 12[rax]
	mov	edi, edx
	call	htonl@PLT
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR -4168[rbp]
	mov	edx, eax
	lea	rax, -4128[rbp]
	lea	rbx, 20[rax]
	mov	edi, edx
	call	htonl@PLT
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR -4248[rbp]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -4152[rbp]
	add	rax, 65536
	mov	rcx, rax
	mov	rax, QWORD PTR -4248[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -4248[rbp]
	lea	rax, -4128[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 24
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L37
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	call	death
.L37:
	mov	rdx, QWORD PTR -4176[rbp]
	mov	rax, QWORD PTR -4168[rbp]
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4248[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -4352[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	esi, 493
	mov	rdi, rax
	call	chmod@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.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	"150139262.c"
	.text
	.align	2
	.global	get4k
	.syntax unified
	.arm
	.fpu softvfp
	.type	get4k, %function
get4k:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	mov	r2, #4096
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fread
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #4096
	bcc	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get4k, .-get4k
	.align	2
	.global	put4k
	.syntax unified
	.arm
	.fpu softvfp
	.type	put4k, %function
put4k:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	mov	r2, #4096
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	put4k, .-put4k
	.align	2
	.global	death
	.syntax unified
	.arm
	.fpu softvfp
	.type	death, %function
death:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	unlink
	mov	r0, #1
	bl	exit
.L7:
	.align	2
.L6:
	.word	stderr
	.size	death, .-death
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Name of RAM disk file missing.\012\000"
	.align	2
.LC1:
	.ascii	"Name of System Map input file is missing.\012\000"
	.align	2
.LC2:
	.ascii	"Name of vmlinux file missing.\012\000"
	.align	2
.LC3:
	.ascii	"Name of vmlinux output file missing.\012\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"RAM disk file \"%s\" failed to open.\012\000"
	.align	2
.LC6:
	.ascii	"System Map file \"%s\" failed to open.\012\000"
	.align	2
.LC7:
	.ascii	"vmlinux file \"%s\" failed to open.\012\000"
	.align	2
.LC8:
	.ascii	"w+\000"
	.align	2
.LC9:
	.ascii	"output vmlinux file \"%s\" failed to open.\012\000"
	.align	2
.LC10:
	.ascii	"kernel file size = %d\012\000"
	.align	2
.LC11:
	.ascii	"You must have a linux kernel specified as argv[3]\012"
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"actual kernel length (minus ELF header) = %d\012\000"
	.align	2
.LC13:
	.ascii	"Vmlinux length rounded up to a 4k multiple = %ld/0x"
	.ascii	"%lx \012\000"
	.align	2
.LC14:
	.ascii	"Vmlinux pages to copy = %ld/0x%lx \012\000"
	.align	2
.LC15:
	.ascii	"%s file size = %ld/0x%lx \012\000"
	.align	2
.LC16:
	.ascii	"Rounding System Map file up to a multiple of 4096, "
	.ascii	"adding %ld/0x%lx \012\000"
	.align	2
.LC17:
	.ascii	"Rounded System Map size is %ld/0x%lx \012\000"
	.align	2
.LC18:
	.ascii	" _end\000"
	.align	2
.LC19:
	.ascii	"Unable to find _end in the sysmap file \012\000"
	.align	2
.LC20:
	.ascii	"inbuf: \012\000"
	.align	2
.LC21:
	.ascii	"%s \012\000"
	.align	2
.LC22:
	.ascii	"Found _end in the last page of the sysmap - backing"
	.ascii	" up 10 characters it looks like %s\000"
	.align	2
.LC23:
	.ascii	"vmlinux is larger than _end indicates it needs to b"
	.ascii	"e - offset_end = %lx \012\000"
	.align	2
.LC24:
	.ascii	"will insert %lx pages between the vmlinux and the s"
	.ascii	"tart of the ram disk \012\000"
	.align	2
.LC25:
	.ascii	"vmlinux is smaller than _end indicates is needed - "
	.ascii	"offset_end = %lx \012\000"
	.align	2
.LC26:
	.ascii	"Ram Disk will start at offset = 0x%lx \012\000"
	.align	2
.LC27:
	.ascii	"Rounding RAM disk file up to a multiple of 4096, ad"
	.ascii	"ding %ld/0x%lx \012\000"
	.align	2
.LC28:
	.ascii	"Rounded RAM disk size is %ld/0x%lx \012\000"
	.align	2
.LC29:
	.ascii	"RAM disk pages to copy = %ld/0x%lx\012\000"
	.align	2
.LC30:
	.ascii	"Could not read hvReleaseData pointer\012\000"
	.align	2
.LC31:
	.ascii	"hvReleaseData is at %08x\012\000"
	.align	2
.LC32:
	.ascii	"Could not read hvReleaseData\012\000"
	.align	2
.LC33:
	.ascii	"hvReleaseData is invalid\012\000"
	.align	2
.LC34:
	.ascii	"Naca is at offset 0x%lx \012\000"
	.align	2
.LC35:
	.ascii	"Could not read naca\012\000"
	.align	2
.LC36:
	.ascii	"RAM disk is already attached to this kernel\012\000"
	.align	2
.LC37:
	.ascii	"Could not write naca\012\000"
	.align	2
.LC38:
	.ascii	"Ram Disk of 0x%lx pages is attached to the kernel a"
	.ascii	"t offset 0x%08x\012\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #60
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-120]
	ldr	r3, .L42+172
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-76]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-72]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-68]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-96]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-56]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-92]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-48]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-88]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-84]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L42
	str	r3, [r2, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-80]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #1
	bgt	.L9
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L42+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #2
	bgt	.L10
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L42+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #3
	bgt	.L11
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L42+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #4
	bgt	.L12
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L42+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L42+24
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-76]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L42+4
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L42+28
	bl	fprintf
	mov	r0, #1
	bl	exit
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L42+24
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-72]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L42+4
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L42+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L42+24
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-68]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L42+4
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L42+36
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L42+40
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-64]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L42+4
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L42+44
	bl	fprintf
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-68]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-68]
	bl	ftell
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-68]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-40]
	ldr	r0, .L42+48
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L42+52
	bl	fwrite
	mov	r0, #1
	bl	exit
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r3, r3, #65536
	str	r3, [r2, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-36]
	ldr	r0, .L42+56
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [r2, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	str	r3, [r2, #-84]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-84]
	ldr	r3, [r3, #-32]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r3, #4096
	str	r3, [r2, #-84]
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-84]
	ldr	r1, [r3, #-84]
	ldr	r0, .L42+60
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-84]
	lsr	r3, r3, #12
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-20]
	ldr	r1, [r3, #-20]
	ldr	r0, .L42+64
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-72]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-72]
	bl	ftell
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-52]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-72]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3, #-52]
	ldr	r2, [r2, #-52]
	ldr	r0, .L42+68
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	str	r3, [r2, #-92]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	rsb	r3, r3, #4096
	str	r3, [r2, #-56]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-56]
	ldr	r1, [r3, #-56]
	ldr	r0, .L42+72
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-92]
	ldr	r3, [r3, #-56]
	add	r3, r2, r3
	str	r3, [r1, #-92]
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-92]
	ldr	r1, [r3, #-92]
	ldr	r0, .L42+76
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	lsr	r3, r3, #12
	str	r3, [r2, #-48]
	nop
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-72]
	mov	r1, #4096
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L42+80
	mov	r0, r3
	bl	strstr
	str	r0, [r4, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L42+84
	bl	fwrite
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L42+88
	bl	fwrite
	ldr	r3, .L42+4
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L42+92
	bl	fprintf
	mov	r0, #1
	bl	exit
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	sub	r3, r3, #10
	mov	r1, r3
	ldr	r0, .L42+96
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	sub	r3, r3, #10
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-88]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-88]
	lsr	r2, r3, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-80]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	bge	.L22
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-84]
	str	r3, [r2, #-88]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-88]
	ldr	r0, .L42+100
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-80]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-80]
	ldr	r0, .L42+104
	bl	printf
	b	.L23
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-88]
	ldr	r0, .L42+108
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-80]
	ldr	r0, .L42+104
	bl	printf
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-88]
	str	r3, [r2, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-28]
	ldr	r0, .L42+112
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-76]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-76]
	bl	ftell
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-76]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3, #-60]
	ldr	r2, [r2, #-60]
	ldr	r0, .L42+68
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	str	r3, [r2, #-96]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	rsb	r3, r3, #4096
	str	r3, [r2, #-56]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-56]
	ldr	r1, [r3, #-56]
	ldr	r0, .L42+116
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-96]
	ldr	r3, [r3, #-56]
	add	r3, r2, r3
	str	r3, [r1, #-96]
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-96]
	ldr	r1, [r3, #-96]
	ldr	r0, .L42+120
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	lsr	r3, r3, #12
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-24]
	ldr	r1, [r3, #-24]
	ldr	r0, .L42+124
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	b	.L25
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-68]
	bl	get4k
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-64]
	bl	put4k
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #1
	str	r3, [r2, #-100]
.L25:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #15
	bls	.L26
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #65536
	ldr	r0, [r3, #-68]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	b	.L27
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-68]
	bl	get4k
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-64]
	bl	put4k
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #1
	str	r3, [r2, #-100]
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-100]
	ldr	r3, [r3, #-20]
	cmp	r2, r3
	bcc	.L28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	b	.L29
.L30:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-64]
	bl	put4k
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #1
	str	r3, [r2, #-100]
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-100]
	cmp	r2, r3
	bcc	.L30
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	b	.L31
.L43:
	.align	2
.L42:
	.word	-928654908
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	65572
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	493
	.word	.LC39
.L32:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-76]
	bl	get4k
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-64]
	bl	put4k
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #1
	str	r3, [r2, #-100]
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-100]
	ldr	r3, [r3, #-24]
	cmp	r2, r3
	bcc	.L32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-76]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-68]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-64]
	bl	fflush
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, .L42+128
	ldr	r0, [r3, #-64]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4160
	sub	r0, r0, #12
	sub	r0, r0, #44
	ldr	r3, [r3, #-64]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-64]
	ldr	r0, .L42+132
	bl	death
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	mov	r1, r3
	ldr	r0, .L42+136
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	add	r3, r3, #65536
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-64]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-64]
	mov	r2, #1
	mov	r1, #64
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L34
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-64]
	ldr	r0, .L42+140
	bl	death
.L34:
	sub	r1, fp, #4160
	sub	r1, r1, #12
	sub	r1, r1, #40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-64]
	ldr	r0, .L42+144
	bl	death
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	ntohl
	str	r0, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-16]
	ldr	r0, .L42+148
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #65536
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-64]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-64]
	mov	r2, #1
	mov	r1, #24
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-64]
	ldr	r0, .L42+152
	bl	death
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	ntohl
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	ntohl
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L38
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-64]
	ldr	r0, .L42+156
	bl	death
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	htonl
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, #20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	htonl
	mov	r3, r0
	str	r3, [r4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-64]
	bl	fflush
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #65536
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-64]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-64]
	mov	r2, #1
	mov	r1, #24
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L39
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-64]
	ldr	r0, .L42+160
	bl	death
.L39:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-28]
	ldr	r1, [r3, #-24]
	ldr	r0, .L42+164
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-64]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L42+168
	mov	r0, r3
	bl	chmod
	mov	r3, #0
	ldr	r2, .L42+172
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
