	.file	"536676.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	header, @object
	.size	header, 4112
header:
	.quad	76326966217272149
	.long	0
	.zero	4096
	.zero	4
	.align 8
	.type	next_sector, @object
	.size	next_sector, 8
next_sector:
	.quad	1
	.local	lvm_file
	.comm	lvm_file,8,8
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"svfs.img"
.LC2:
	.string	"Can't open svfs.img"
.LC3:
	.string	"Error reading file"
	.text
	.type	add_svfs, @function
add_svfs:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -1052672[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -1052704[rbp]
	mov	eax, 0
	mov	ecx, 514
	mov	rdi, rdx
	rep stosq
	movabs	rax, 6182976215284950438
	mov	QWORD PTR -1052704[rbp], rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1052712[rbp], rax
	cmp	QWORD PTR -1052712[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -1052712[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1052712[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -1052696[rbp], rax
	mov	rax, QWORD PTR -1052712[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	QWORD PTR -1052720[rbp], 0
	jmp	.L3
.L5:
	mov	rax, QWORD PTR next_sector[rip]
	mov	rdx, QWORD PTR -1052720[rbp]
	shr	rdx, 20
	mov	ecx, eax
	lea	rax, 4[rdx]
	mov	DWORD PTR -1052704[rbp+rax*4], ecx
	mov	QWORD PTR -1048592[rbp], 0
	mov	QWORD PTR -1048584[rbp], 0
	lea	rax, -1048576[rbp]
	mov	edx, 1048560
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -1052712[rbp]
	lea	rax, -1048592[rbp]
	mov	rcx, rdx
	mov	edx, 1048576
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR next_sector[rip]
	sal	rax, 20
	mov	rcx, rax
	mov	rax, QWORD PTR lvm_file[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR lvm_file[rip]
	lea	rax, -1048592[rbp]
	mov	rcx, rdx
	mov	edx, 1048576
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR next_sector[rip]
	add	rax, 1
	mov	QWORD PTR next_sector[rip], rax
	add	QWORD PTR -1052720[rbp], 1048576
.L3:
	mov	rax, QWORD PTR -1052696[rbp]
	cmp	QWORD PTR -1052720[rbp], rax
	jb	.L5
	mov	rax, QWORD PTR -1052712[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR next_sector[rip]
	sal	rax, 20
	mov	rcx, rax
	mov	rax, QWORD PTR lvm_file[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR lvm_file[rip]
	lea	rax, -1052704[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4112
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR next_sector[rip]
	mov	DWORD PTR header[rip+12], eax
	mov	rax, QWORD PTR next_sector[rip]
	add	rax, 1
	mov	QWORD PTR next_sector[rip], rax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	add_svfs, .-add_svfs
	.type	add_tmp, @function
add_tmp:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -4128[rbp]
	mov	eax, 0
	mov	ecx, 514
	mov	rdi, rdx
	rep stosq
	movabs	rax, 6017234970732546149
	mov	QWORD PTR -4128[rbp], rax
	mov	rax, QWORD PTR next_sector[rip]
	sal	rax, 20
	mov	rcx, rax
	mov	rax, QWORD PTR lvm_file[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR lvm_file[rip]
	lea	rax, -4128[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4112
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR next_sector[rip]
	mov	DWORD PTR header[rip+16], eax
	mov	rax, QWORD PTR next_sector[rip]
	add	rax, 1
	mov	QWORD PTR next_sector[rip], rax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_tmp, .-add_tmp
	.section	.rodata
.LC4:
	.string	"w"
.LC5:
	.string	"lvm.img"
	.text
	.globl	main
	.type	main, @function
main:
.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, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR lvm_file[rip], rax
	call	add_svfs
	call	add_tmp
	mov	rax, QWORD PTR lvm_file[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR lvm_file[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4112
	lea	rdi, header[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR lvm_file[rip]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR lvm_file[rip]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -536[rbp]
	and	eax, 511
	test	rax, rax
	je	.L10
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	mov	rdx, QWORD PTR lvm_file[rip]
	mov	rax, QWORD PTR -536[rbp]
	and	eax, 511
	mov	ecx, 512
	sub	rcx, rax
	mov	rsi, rcx
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L10:
	mov	rax, QWORD PTR lvm_file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"536676.c"
	.text
	.data
	.align	3
	.type	header, %object
	.size	header, 4112
header:
	.word	-1406538923
	.word	17771256
	.word	0
	.space	4096
	.space	4
	.align	2
	.type	next_sector, %object
	.size	next_sector, 4
next_sector:
	.word	1
	.local	lvm_file
	.comm	lvm_file,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"svfs.img\000"
	.align	2
.LC2:
	.ascii	"Can't open svfs.img\000"
	.align	2
.LC3:
	.ascii	"Error reading file\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_svfs, %function
add_svfs:
	@ args = 0, pretend = 0, frame = 1052704
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1048576
	sub	sp, sp, #4096
	sub	sp, sp, #36
	ldr	r3, .L7+8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	sub	r3, r3, #24
	ldr	r2, .L7+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r1, r3
	adr	r3, .L7
	ldmia	r3, {r2-r3}
	str	r2, [r1, #-24]
	str	r3, [r1, #-20]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r4, r3
	ldr	r1, .L7+16
	ldr	r0, .L7+20
	bl	fopen
	str	r0, [r4, #-28]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L7+24
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-28]
	bl	fseek
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r0, [r3, #-28]
	bl	ftell
	mov	r3, r0
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	str	r0, [r3, #-16]
	str	r1, [r3, #-12]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r0, [r3, #-28]
	bl	rewind
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-32]
	b	.L3
.L5:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-32]
	lsr	r1, r3, #20
	ldr	r3, .L7+28
	ldr	r2, [r3]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r0, r3
	add	r3, r1, #4
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r2, [r3, #-24]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L7+32
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	sub	r0, fp, #1048576
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	mov	r2, #1048576
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L7+36
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L7+40
	ldr	r0, [r3]
	ldr	r3, .L7+28
	ldr	r3, [r3]
	lsl	r3, r3, #20
	mov	r2, #0
	mov	r1, r3
	bl	fseek
	ldr	r3, .L7+40
	ldr	r3, [r3]
	sub	r0, fp, #1048576
	sub	r0, r0, #12
	sub	r0, r0, #4
	mov	r2, #1048576
	mov	r1, #1
	bl	fwrite
	ldr	r3, .L7+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+28
	str	r3, [r2]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-32]
	add	r3, r3, #1048576
	str	r3, [r2, #-32]
.L3:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-32]
	mov	r0, r3
	mov	r1, #0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L5
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r0, [r3, #-28]
	bl	fclose
	ldr	r3, .L7+40
	ldr	r0, [r3]
	ldr	r3, .L7+28
	ldr	r3, [r3]
	lsl	r3, r3, #20
	mov	r2, #0
	mov	r1, r3
	bl	fseek
	ldr	r3, .L7+40
	ldr	r3, [r3]
	ldr	r0, .L7+44
	sub	r2, fp, #12
	add	r0, r2, r0
	mov	r2, #1
	ldr	r1, .L7+12
	bl	fwrite
	ldr	r3, .L7+28
	ldr	r3, [r3]
	ldr	r2, .L7+48
	str	r3, [r2, #12]
	ldr	r3, .L7+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+28
	str	r3, [r2]
	nop
	ldr	r3, .L7+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	3
.L7:
	.word	-423647834
	.word	1439586331
	.word	.LC4
	.word	4112
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	next_sector
	.word	1048572
	.word	.LC3
	.word	lvm_file
	.word	-1052696
	.word	header
	.size	add_svfs, .-add_svfs
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_tmp, %function
add_tmp:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #24
	ldr	r3, .L11+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #24
	ldr	r2, .L11+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	adr	r3, .L11
	ldmia	r3, {r2-r3}
	str	r2, [r1, #-24]
	str	r3, [r1, #-20]
	ldr	r3, .L11+16
	ldr	r0, [r3]
	ldr	r3, .L11+20
	ldr	r3, [r3]
	lsl	r3, r3, #20
	mov	r2, #0
	mov	r1, r3
	bl	fseek
	ldr	r3, .L11+16
	ldr	r3, [r3]
	sub	r0, fp, #4096
	sub	r0, r0, #4
	sub	r0, r0, #24
	mov	r2, #1
	ldr	r1, .L11+12
	bl	fwrite
	ldr	r3, .L11+20
	ldr	r3, [r3]
	ldr	r2, .L11+24
	str	r3, [r2, #16]
	ldr	r3, .L11+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+20
	str	r3, [r2]
	nop
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	3
.L11:
	.word	1083328613
	.word	1400996691
	.word	.LC5
	.word	4112
	.word	lvm_file
	.word	next_sector
	.word	header
	.size	add_tmp, .-add_tmp
	.section	.rodata
	.align	2
.LC6:
	.ascii	"w\000"
	.align	2
.LC7:
	.ascii	"lvm.img\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #520
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L17+4
	ldr	r0, .L17+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L17+12
	str	r3, [r2]
	bl	add_svfs
	bl	add_tmp
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	bl	fwrite
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-524]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-524]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	rsb	r2, r3, #512
	ldr	r3, .L17+12
	ldr	r3, [r3]
	sub	r0, fp, #520
	mov	r1, #1
	bl	fwrite
.L14:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.word	lvm_file
	.word	4112
	.word	header
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
