	.file	"797556.c"
	.intel_syntax noprefix
	.text
	.globl	freelist
	.bss
	.align 8
	.type	freelist, @object
	.size	freelist, 8
freelist:
	.zero	8
	.section	.data.rel,"aw"
	.align 8
	.type	top, @object
	.size	top, 8
top:
	.quad	end
	.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
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	rbx, QWORD PTR freelist[rip]
	lea	r12, freelist[rip]
	jmp	.L2
.L4:
	mov	r12, rbx
	mov	rbx, QWORD PTR [rbx]
.L2:
	test	rbx, rbx
	je	.L3
	mov	eax, DWORD PTR 8[rbx]
	cmp	DWORD PTR -20[rbp], eax
	ja	.L4
.L3:
	test	rbx, rbx
	jne	.L5
	mov	rbx, QWORD PTR top[rip]
	mov	rdx, QWORD PTR top[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 3
	mov	eax, eax
	and	eax, 4294967292
	add	rax, rdx
	mov	QWORD PTR top[rip], rax
	jmp	.L6
.L5:
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [r12], rax
.L6:
	mov	rax, rbx
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	alloc, .-alloc
	.globl	free
	.type	free, @function
free:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -20[rbp], esi
	mov	rbx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 3
	and	eax, -4
	mov	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR freelist[rip]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR freelist[rip], rbx
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	free, .-free
	.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	"797556.c"
	.text
	.global	freelist
	.bss
	.align	2
	.type	freelist, %object
	.size	freelist, 4
freelist:
	.space	4
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	end
	.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.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L8
	ldr	r4, [r3]
	ldr	r5, .L8
	b	.L2
.L4:
	mov	r5, r4
	ldr	r4, [r4]
.L2:
	cmp	r4, #0
	beq	.L3
	ldr	r3, [r4, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bhi	.L4
.L3:
	cmp	r4, #0
	bne	.L5
	ldr	r3, .L8+4
	ldr	r4, [r3]
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	bic	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, .L8+4
	str	r3, [r2]
	b	.L6
.L5:
	ldr	r3, [r4]
	str	r3, [r5]
.L6:
	mov	r3, r4
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L9:
	.align	2
.L8:
	.word	freelist
	.word	top
	.size	alloc, .-alloc
	.align	2
	.global	free
	.syntax unified
	.arm
	.fpu softvfp
	.type	free, %function
free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r4, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	bic	r3, r3, #3
	str	r3, [r4, #4]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [r4]
	ldr	r3, .L11
	str	r4, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
.L12:
	.align	2
.L11:
	.word	freelist
	.size	free, .-free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
