	.file	"122004.c"
	.intel_syntax noprefix
	.text
	.local	allocbuf
	.comm	allocbuf,10000,32
	.section	.data.rel.local,"aw"
	.align 8
	.type	allocp, @object
	.size	allocp, 8
allocp:
	.quad	allocbuf
	.text
	.globl	alloc
	.type	alloc, @function
alloc:
.LFB0:
	.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 -4[rbp], edi
	lea	rax, allocbuf[rip+10000]
	mov	rcx, QWORD PTR allocp[rip]
	sub	rax, rcx
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	rdx, rax
	jl	.L2
	mov	rdx, QWORD PTR allocp[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR allocp[rip], rax
	mov	rdx, QWORD PTR allocp[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	neg	rax
	add	rax, rdx
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	alloc, .-alloc
	.globl	afree
	.type	afree, @function
afree:
.LFB1:
	.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
	lea	rax, allocbuf[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L6
	lea	rax, allocbuf[rip+10000]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR allocp[rip], rax
.L6:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	afree, .-afree
	.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	"122004.c"
	.text
	.local	allocbuf
	.comm	allocbuf,10000,4
	.data
	.align	2
	.type	allocp, %object
	.size	allocp, 4
allocp:
	.word	allocbuf
	.text
	.align	2
	.global	alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc, %function
alloc:
	@ 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	r2, .L4
	ldr	r3, .L4+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, .L4+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L4+4
	str	r3, [r2]
	ldr	r3, .L4+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	add	r3, r2, r3
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	allocbuf+10000
	.word	allocp
	.size	alloc, .-alloc
	.align	2
	.global	afree
	.syntax unified
	.arm
	.fpu softvfp
	.type	afree, %function
afree:
	@ 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]
	ldr	r2, .L9
	cmp	r3, r2
	bcc	.L8
	ldr	r2, .L9+4
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcs	.L8
	ldr	r2, .L9+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L8:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	allocbuf
	.word	allocbuf+10000
	.word	allocp
	.size	afree, .-afree
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
