	.file	"57383.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Seen buffer overflow!"
.LC1:
	.string	"%ld\n"
.LC2:
	.string	"First Invalid Number: %ld\n"
.LC3:
	.string	"Weakness: %ld\n"
	.align 8
.LC4:
	.string	"\nProblem 1 Time, including Parse: %d microseconds\n"
	.align 8
.LC5:
	.string	"Problem 2 Time: %d microseconds\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 528
	mov	DWORD PTR -8708[rbp], edi
	mov	QWORD PTR -8720[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8700[rbp], 0
	mov	QWORD PTR -8680[rbp], 0
	mov	QWORD PTR -8688[rbp], 0
	lea	rdx, -8624[rbp]
	mov	eax, 0
	mov	ecx, 25
	mov	rdi, rdx
	rep stosq
	lea	rdx, -8416[rbp]
	mov	eax, 0
	mov	ecx, 25
	mov	rdi, rdx
	rep stosq
	lea	rdx, -8208[rbp]
	mov	eax, 0
	mov	ecx, 1024
	mov	rdi, rdx
	rep stosq
	lea	rax, -8672[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	jmp	.L2
.L7:
	cmp	DWORD PTR -8700[rbp], 24
	jle	.L3
	mov	rax, QWORD PTR -8696[rbp]
	lea	rdx, -8416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	check_valid
	test	eax, eax
	je	.L10
	mov	ecx, DWORD PTR -8700[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	lea	edx, 0[0+rax*4]
	add	eax, edx
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, edx
	mov	rax, QWORD PTR -8624[rbp+rax*8]
	mov	QWORD PTR -8688[rbp], rax
.L3:
	cmp	DWORD PTR -8700[rbp], 1024
	jle	.L6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rdx, QWORD PTR -8696[rbp]
	mov	eax, DWORD PTR -8700[rbp]
	cdqe
	mov	QWORD PTR -8208[rbp+rax*8], rdx
	mov	edx, DWORD PTR -8700[rbp]
	lea	eax, 1[rdx]
	mov	DWORD PTR -8700[rbp], eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 3
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	lea	ecx, 0[0+rax*4]
	add	eax, ecx
	mov	ecx, edx
	sub	ecx, eax
	mov	rdx, QWORD PTR -8696[rbp]
	movsx	rax, ecx
	mov	QWORD PTR -8624[rbp+rax*8], rdx
	mov	rcx, QWORD PTR -8696[rbp]
	lea	rdx, -8416[rbp]
	mov	rax, QWORD PTR -8688[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	replace_precursor
	lea	rax, -8416[rbp]
	lea	rcx, compar[rip]
	mov	edx, 8
	mov	esi, 25
	mov	rdi, rax
	call	qsort@PLT
.L2:
	lea	rax, -8696[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jg	.L7
	jmp	.L5
.L10:
	nop
.L5:
	mov	rax, QWORD PTR -8696[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8656[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rdx, QWORD PTR -8696[rbp]
	mov	ecx, DWORD PTR -8700[rbp]
	lea	rax, -8208[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	find_region
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8640[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -8648[rbp]
	mov	rdx, QWORD PTR -8664[rbp]
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8632[rbp]
	mov	rdx, QWORD PTR -8648[rbp]
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.string	"Search for element %ld failed\n"
	.text
	.globl	replace_precursor
	.type	replace_precursor, @function
replace_precursor:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
	mov	rsi, QWORD PTR -40[rbp]
	lea	rax, -24[rbp]
	lea	r8, compar[rip]
	mov	ecx, 8
	mov	edx, 25
	mov	rdi, rax
	call	bsearch@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	replace_precursor, .-replace_precursor
	.globl	compar
	.type	compar, @function
compar:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	setg	al
	movzx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	setl	al
	movzx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compar, .-compar
	.globl	check_valid
	.type	check_valid, @function
check_valid:
.LFB9:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 24
	jmp	.L16
.L20:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -24[rbp], rax
	jne	.L17
	mov	eax, 1
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -24[rbp], rax
	jle	.L19
	add	DWORD PTR -12[rbp], 1
	jmp	.L16
.L19:
	sub	DWORD PTR -8[rbp], 1
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L20
	mov	eax, 0
.L18:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	check_valid, .-check_valid
	.globl	find_region
	.type	find_region, @function
find_region:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	jle	.L23
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L22:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	jne	.L24
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -12[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rdi, [rcx+rdx]
	lea	rcx, compar[rip]
	mov	edx, 8
	mov	rsi, rax
	call	qsort@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	add	rax, rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	find_region, .-find_region
	.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	"57383.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Seen buffer overflow!\000"
	.align	2
.LC1:
	.ascii	"%ld\012\000"
	.align	2
.LC2:
	.ascii	"First Invalid Number: %ld\012\000"
	.align	2
.LC3:
	.ascii	"Weakness: %ld\012\000"
	.align	2
.LC4:
	.ascii	"\012Problem 1 Time, including Parse: %d microsecond"
	.ascii	"s\012\000"
	.align	2
.LC5:
	.ascii	"Problem 2 Time: %d microseconds\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4352
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-252]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-256]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-240]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-232]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-236]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #204
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #104
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4288
	sub	r3, r3, #4
	sub	r3, r3, #36
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	b	.L2
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-240]
	cmp	r3, #24
	ble	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-244]
	sub	r3, fp, #4160
	sub	r3, r3, #4
	sub	r3, r3, #40
	mov	r1, r3
	mov	r0, r2
	bl	check_valid
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r1, [r3, #-240]
	ldr	r3, .L11+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-204]
	str	r3, [r1, #-236]
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-240]
	cmp	r3, #1024
	ble	.L6
	ldr	r0, .L11+8
	bl	puts
	mov	r0, #1
	bl	exit
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-244]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-240]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-240]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	add	r3, r2, #1
	str	r3, [r1, #-240]
	ldr	r3, .L11+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	sub	r1, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-244]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r0, r3
	lsl	r3, r1, #2
	add	r3, r0, r3
	str	r2, [r3, #-204]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r1, [r3, #-244]
	sub	r3, fp, #4160
	sub	r3, r3, #4
	sub	r3, r3, #40
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r0, r2
	mov	r2, r3
	ldr	r0, [r0, #-236]
	bl	replace_precursor
	sub	r0, fp, #4160
	sub	r0, r0, #4
	sub	r0, r0, #40
	ldr	r3, .L11+12
	mov	r2, #4
	mov	r1, #25
	bl	qsort
.L2:
	sub	r3, fp, #4288
	sub	r3, r3, #4
	sub	r3, r3, #52
	mov	r1, r3
	ldr	r0, .L11+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L7
	b	.L5
.L10:
	nop
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-244]
	mov	r1, r3
	ldr	r0, .L11+20
	bl	printf
	sub	r3, fp, #4288
	sub	r3, r3, #4
	sub	r3, r3, #28
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-244]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-240]
	mov	r0, r3
	bl	find_region
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
	sub	r3, fp, #4288
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-216]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-224]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-208]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-216]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L11+32
	bl	printf
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	1374389535
	.word	.LC0
	.word	compar
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Search for element %ld failed\012\000"
	.text
	.align	2
	.global	replace_precursor
	.syntax unified
	.arm
	.fpu softvfp
	.type	replace_precursor, %function
replace_precursor:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	sub	r0, fp, #16
	ldr	r3, .L15
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #25
	ldr	r1, [fp, #-24]
	bl	bsearch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	compar
	.word	.LC7
	.size	replace_precursor, .-replace_precursor
	.align	2
	.global	compar
	.syntax unified
	.arm
	.fpu softvfp
	.type	compar, %function
compar:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	sub	r3, r1, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compar, .-compar
	.align	2
	.global	check_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_valid, %function
check_valid:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #24
	str	r3, [fp, #-12]
	b	.L20
.L24:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L21
	mov	r3, #1
	b	.L22
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L20
.L23:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L24
	mov	r3, #0
.L22:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_valid, .-check_valid
	.align	2
	.global	find_region
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_region, %function
find_region:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L26
.L28:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L27
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L26
.L27:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L26:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bne	.L28
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L30
	mov	r2, #4
	bl	qsort
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	compar
	.size	find_region, .-find_region
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
