	.file	"3262694.c"
	.intel_syntax noprefix
	.text
	.type	use_buffer, @function
use_buffer:
.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]
	mov	BYTE PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	use_buffer, .-use_buffer
	.local	marker_var
	.comm	marker_var,4,4
	.type	marker_miss, @function
marker_miss:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR marker_var[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	marker_miss, .-marker_miss
	.type	marker_hit, @function
marker_hit:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR marker_var[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	marker_hit, .-marker_hit
	.globl	reserved
	.bss
	.align 8
	.type	reserved, @object
	.size	reserved, 8
reserved:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d: %p < %p\n"
	.text
	.type	down, @function
down:
.LFB9:
	.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, 1840
	mov	DWORD PTR -10020[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR last.0[rip]
	test	rax, rax
	je	.L5
	mov	rdx, QWORD PTR last.0[rip]
	lea	rax, -10016[rbp]
	cmp	rdx, rax
	jnb	.L5
	mov	rdx, QWORD PTR last.0[rip]
	lea	rcx, -10016[rbp]
	mov	eax, DWORD PTR -10020[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	marker_hit
.L5:
	lea	rax, -10016[rbp]
	mov	QWORD PTR last.0[rip], rax
	cmp	DWORD PTR -10020[rbp], 500
	jne	.L6
	mov	rax, QWORD PTR reserved[rip]
	mov	esi, 16777216
	mov	rdi, rax
	call	munmap@PLT
	test	eax, eax
	je	.L7
	call	abort@PLT
.L7:
	mov	QWORD PTR reserved[rip], 0
.L6:
	cmp	DWORD PTR -10020[rbp], 0
	jle	.L8
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	use_buffer
	mov	eax, DWORD PTR -10020[rbp]
	sub	eax, 1
	mov	edi, eax
	call	down
	jmp	.L11
.L8:
	call	marker_miss
.L11:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	down, .-down
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 34
	mov	edx, 3
	mov	esi, 16777216
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR reserved[rip], rax
	mov	rax, QWORD PTR reserved[rip]
	cmp	rax, -1
	jne	.L13
	call	abort@PLT
.L13:
	mov	QWORD PTR -32[rbp], 8388608
	mov	QWORD PTR -24[rbp], 8388608
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	setrlimit@PLT
	test	eax, eax
	je	.L14
	call	abort@PLT
.L14:
	mov	edi, 1000
	call	down
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.local	last.0
	.comm	last.0,8,8
	.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	"3262694.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	use_buffer, %function
use_buffer:
	@ 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]
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	use_buffer, .-use_buffer
	.local	marker_var
	.comm	marker_var,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	marker_miss, %function
marker_miss:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L3
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	marker_var
	.size	marker_miss, .-marker_miss
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	marker_hit, %function
marker_hit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L6
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	marker_var
	.size	marker_hit, .-marker_hit
	.comm	reserved,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d: %p < %p\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	down, %function
down:
	@ args = 0, pretend = 0, frame = 10016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #9984
	sub	sp, sp, #32
	sub	r3, fp, #8192
	sub	r3, r3, #4
	str	r0, [r3, #-1820]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L16+4
	ldr	r2, [r3]
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	cmp	r2, r3
	bcs	.L9
	ldr	r3, .L16+4
	ldr	r2, [r3]
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	sub	r1, fp, #8192
	sub	r1, r1, #4
	ldr	r1, [r1, #-1820]
	ldr	r0, .L16+8
	bl	printf
	bl	marker_hit
.L9:
	ldr	r2, .L16+4
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	str	r3, [r2]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	cmp	r3, #500
	bne	.L10
	ldr	r3, .L16+12
	ldr	r3, [r3]
	mov	r1, #16777216
	mov	r0, r3
	bl	munmap
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	bl	abort
.L11:
	ldr	r3, .L16+12
	mov	r2, #0
	str	r2, [r3]
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	cmp	r3, #0
	ble	.L12
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r0, r3
	bl	use_buffer
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	sub	r3, r3, #1
	mov	r0, r3
	bl	down
	b	.L15
.L12:
	bl	marker_miss
.L15:
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	last.5287
	.word	.LC0
	.word	reserved
	.size	down, .-down
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #34
	mov	r2, #3
	mov	r1, #16777216
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L23+4
	str	r3, [r2]
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L19
	bl	abort
.L19:
	mov	r3, #8388608
	str	r3, [fp, #-16]
	mov	r3, #8388608
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #3
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	bl	abort
.L20:
	mov	r0, #1000
	bl	down
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	reserved
	.size	main, .-main
	.local	last.5287
	.comm	last.5287,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
