	.file	"655774.c"
	.intel_syntax noprefix
	.text
	.globl	counters
	.section	__DATA,__pcnts,"aw"
	.align 4
	.type	counters, @object
	.size	counters, 4
counters:
	.long	2989
	.globl	cnts_len
	.section	.rodata
	.align 8
	.type	cnts_len, @object
	.size	cnts_len, 8
cnts_len:
	.quad	16384
	.globl	data
	.section	__DATA,__pdata,"aw"
	.align 8
	.type	data, @object
	.size	data, 12
data:
	.long	1
	.long	2
	.long	3
	.globl	data_len
	.section	.rodata
	.align 8
	.type	data_len, @object
	.size	data_len, 8
data_len:
	.quad	12
.LC0:
	.string	"open"
.LC1:
	.string	"ftruncate"
.LC2:
	.string	"write"
.LC3:
	.string	"mmap"
	.text
	.globl	create_tmpfile
	.type	create_tmpfile, @function
create_tmpfile:
.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	rax, QWORD PTR -24[rbp]
	mov	edx, 438
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	edx, 16384
	mov	eax, 12
	add	rax, rdx
	mov	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L3
.L4:
	mov	edx, 12
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, 16384
	lea	rsi, data[rip]
	mov	edi, eax
	call	pwrite@PLT
	mov	edx, 12
	cmp	rax, rdx
	je	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -12[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 17
	mov	edx, 3
	mov	esi, 16384
	lea	rdi, section$start$__DATA$__pcnts[rip]
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rax, section$start$__DATA$__pcnts[rip]
	cmp	QWORD PTR -8[rbp], rax
	je	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L3
.L6:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -16[rbp], 1
.L7:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L8
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_tmpfile, .-create_tmpfile
	.section	.rodata
.LC4:
	.string	"read"
	.align 8
.LC5:
	.string	"validate_tmpfile: Expected '%d' at pos=%d, but got '%d' instead.\n"
	.text
	.globl	validate_tmpfile
	.type	validate_tmpfile, @function
validate_tmpfile:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L10
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	edx, 16384
	mov	eax, 12
	add	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	r14, rax
	mov	r15d, 0
	mov	rax, QWORD PTR -80[rbp]
	mov	r12, rax
	mov	r13d, 0
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L12:
	cmp	rsp, rdx
	je	.L13
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L12
.L13:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L14
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L14:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rdx, QWORD PTR -80[rbp]
	cmp	rax, rdx
	je	.L15
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L15:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L16
.L18:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -92[rbp], eax
	je	.L17
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -92[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	r8d, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L17:
	add	DWORD PTR -92[rbp], 1
.L16:
	cmp	DWORD PTR -92[rbp], 9
	jle	.L18
	mov	DWORD PTR -84[rbp], 4096
	mov	DWORD PTR -96[rbp], 10
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -96[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 0
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L20:
	add	DWORD PTR -96[rbp], 1
.L19:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L21
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -100[rbp], eax
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, DWORD PTR -84[rbp]
	add	eax, 1
	cmp	edx, eax
	je	.L23
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, DWORD PTR -84[rbp]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -100[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L23:
	add	DWORD PTR -100[rbp], 1
.L22:
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 2
	cmp	DWORD PTR -100[rbp], eax
	jle	.L24
	mov	eax, 0
.L11:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	validate_tmpfile, .-validate_tmpfile
	.section	.rodata
	.align 8
.LC6:
	.string	"__pcnts is not page-aligned: 0x%lx.\n"
	.align 8
.LC7:
	.string	"__pdata is not page-aligned: 0x%lx.\n"
	.align 8
.LC8:
	.string	"__pdata not ordered after __pcnts.\n"
.LC9:
	.string	"create"
.LC10:
	.string	"validate"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	lea	rax, section$start$__DATA$__pcnts[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, section$start$__DATA$__pdata[rip]
	mov	QWORD PTR -24[rbp], rax
	call	getpagesize@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16384
	cmp	QWORD PTR -24[rbp], rax
	je	.L31
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L29
.L31:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	create_tmpfile
	jmp	.L29
.L32:
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	validate_tmpfile
	jmp	.L29
.L33:
	mov	eax, 1
.L29:
	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	"655774.c"
	.text
	.global	counters
	.section	__DATA,__pcnts,"aw"
	.align	2
	.type	counters, %object
	.size	counters, 4
counters:
	.word	2989
	.global	cnts_len
	.section	.rodata
	.align	2
	.type	cnts_len, %object
	.size	cnts_len, 4
cnts_len:
	.word	16384
	.global	data
	.section	__DATA,__pdata,"aw"
	.align	2
	.type	data, %object
	.size	data, 12
data:
	.word	1
	.word	2
	.word	3
	.global	data_len
	.section	.rodata
	.align	2
	.type	data_len, %object
	.size	data_len, 4
data_len:
	.word	12
	.align	2
.LC0:
	.ascii	"open\000"
	.align	2
.LC1:
	.ascii	"ftruncate\000"
	.align	2
.LC2:
	.ascii	"write\000"
	.align	2
.LC3:
	.ascii	"mmap\000"
	.text
	.align	2
	.global	create_tmpfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_tmpfile, %function
create_tmpfile:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r2, .L9
	ldr	r1, .L9+4
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L9+8
	bl	perror
	mov	r3, #1
	b	.L3
.L2:
	mov	r2, #16384
	mov	r3, #12
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L9+12
	bl	perror
	mov	r3, #1
	b	.L3
.L4:
	mov	r2, #12
	mov	r3, #16384
	ldr	r1, .L9+16
	ldr	r0, [fp, #-12]
	bl	pwrite
	mov	r3, r0
	mov	r2, #12
	cmp	r3, r2
	beq	.L5
	ldr	r0, .L9+20
	bl	perror
	mov	r3, #1
	b	.L3
.L5:
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #17
	mov	r2, #3
	mov	r1, #16384
	ldr	r0, .L9+24
	bl	mmap
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L9+24
	cmp	r3, r2
	beq	.L6
	ldr	r0, .L9+28
	bl	perror
	mov	r3, #1
	b	.L3
.L6:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L8
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	438
	.word	578
	.word	.LC0
	.word	.LC1
	.word	data
	.word	.LC2
	.word	section$start$__DATA$__pcnts
	.word	.LC3
	.size	create_tmpfile, .-create_tmpfile
	.section	.rodata
	.align	2
.LC4:
	.ascii	"read\000"
	.align	2
.LC5:
	.ascii	"validate_tmpfile: Expected '%d' at pos=%d, but got "
	.ascii	"'%d' instead.\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	validate_tmpfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_tmpfile, %function
validate_tmpfile:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	open
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L26+4
	bl	perror
	mov	r3, #1
	b	.L13
.L12:
	mov	r2, #16384
	mov	r3, #12
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L14
	ldr	r0, .L26+8
	bl	perror
	mov	r3, #1
	b	.L13
.L14:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L15
.L17:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L16
	ldr	r3, .L26+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r1, .L26+16
	bl	fprintf
	mov	r3, #1
	b	.L13
.L16:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L15:
	ldr	r3, [fp, #-40]
	cmp	r3, #9
	ble	.L17
	mov	r3, #4096
	str	r3, [fp, #-20]
	mov	r3, #10
	str	r3, [fp, #-44]
	b	.L18
.L20:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-44]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L26+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-44]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	ldr	r1, .L26+16
	bl	fprintf
	mov	r3, #1
	b	.L13
.L19:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L18:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-48]
	b	.L21
.L23:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-48]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, [fp, #-48]
	ldr	r3, [fp, #-20]
	sub	r3, r1, r3
	add	r3, r3, #1
	cmp	r2, r3
	beq	.L22
	ldr	r3, .L26+12
	ldr	r0, [r3]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-48]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	mov	r2, r1
	ldr	r1, .L26+16
	bl	fprintf
	mov	r3, #1
	b	.L13
.L22:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L21:
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	ble	.L23
	mov	r3, #0
.L13:
	mov	sp, r4
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC6
	.word	.LC0
	.word	.LC4
	.word	stderr
	.word	.LC5
	.size	validate_tmpfile, .-validate_tmpfile
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC7:
	.ascii	"__pcnts is not page-aligned: 0x%lx.\012\000"
	.align	2
.LC8:
	.ascii	"__pdata is not page-aligned: 0x%lx.\012\000"
	.align	2
.LC9:
	.ascii	"__pdata not ordered after __pcnts.\012\000"
	.align	2
.LC10:
	.ascii	"create\000"
	.align	2
.LC11:
	.ascii	"validate\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L35
	str	r3, [fp, #-24]
	ldr	r3, .L35+4
	str	r3, [fp, #-20]
	bl	getpagesize
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L35+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L30
.L29:
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L35+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L30
.L31:
	ldr	r3, [fp, #-24]
	add	r3, r3, #16384
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L32
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L35+20
	bl	fwrite
	mov	r3, #1
	b	.L30
.L32:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r1, .L35+24
	ldr	r0, [fp, #-12]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r0, [fp, #-8]
	bl	create_tmpfile
	mov	r3, r0
	b	.L30
.L33:
	ldr	r1, .L35+28
	ldr	r0, [fp, #-12]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r0, [fp, #-8]
	bl	validate_tmpfile
	mov	r3, r0
	b	.L30
.L34:
	mov	r3, #1
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	section$start$__DATA$__pcnts
	.word	section$start$__DATA$__pdata
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
