	.file	"805597.c"
	.intel_syntax noprefix
	.text
	.local	var
	.comm	var,20,16
	.local	head
	.comm	head,4,4
	.local	tail
	.comm	tail,4,4
	.globl	main_arrayqueue
	.type	main_arrayqueue, @function
main_arrayqueue:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	edi, 97
	call	enqueue
	mov	edi, 98
	call	enqueue
	mov	edi, 99
	call	enqueue
	mov	edi, 100
	call	enqueue
	call	dequeue
	call	dequeue
	mov	edi, 101
	call	enqueue
	mov	edi, 102
	call	enqueue
	call	list
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main_arrayqueue, .-main_arrayqueue
	.section	.rodata
.LC0:
	.string	"error: queue is full"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR tail[rip]
	cmp	eax, 4
	jle	.L4
	mov	eax, DWORD PTR head[rip]
	test	eax, eax
	jne	.L5
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L9
.L5:
	mov	eax, DWORD PTR head[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L7
.L8:
	mov	edx, DWORD PTR head[rip]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, var[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, var[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR tail[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L8
	mov	eax, DWORD PTR tail[rip]
	mov	edx, DWORD PTR head[rip]
	sub	eax, edx
	mov	DWORD PTR tail[rip], eax
	mov	DWORD PTR head[rip], 0
	jmp	.L9
.L4:
	mov	eax, DWORD PTR tail[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR tail[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, var[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC1:
	.string	"error:queue is empty"
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR head[rip]
	mov	eax, DWORD PTR tail[rip]
	cmp	edx, eax
	jne	.L11
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L12
.L11:
	mov	eax, DWORD PTR head[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR head[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, var[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC2:
	.string	"%c\n"
	.text
	.globl	list
	.type	list, @function
list:
.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, 16
	mov	edx, DWORD PTR head[rip]
	mov	eax, DWORD PTR tail[rip]
	cmp	edx, eax
	je	.L17
	mov	eax, DWORD PTR head[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, var[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR tail[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L16
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	list, .-list
	.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	"805597.c"
	.text
	.local	var
	.comm	var,20,4
	.local	head
	.comm	head,4,4
	.local	tail
	.comm	tail,4,4
	.align	2
	.global	main_arrayqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	main_arrayqueue, %function
main_arrayqueue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r0, #97
	bl	enqueue
	mov	r0, #98
	bl	enqueue
	mov	r0, #99
	bl	enqueue
	mov	r0, #100
	bl	enqueue
	bl	dequeue
	bl	dequeue
	mov	r0, #101
	bl	enqueue
	mov	r0, #102
	bl	enqueue
	bl	list
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main_arrayqueue, .-main_arrayqueue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error: queue is full\000"
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #4
	ble	.L4
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L10+8
	bl	puts
	b	.L9
.L5:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	sub	r3, r2, r3
	ldr	r1, .L10+12
	ldr	r2, [fp, #-8]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L10+12
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L8
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, .L10
	str	r3, [r2]
	ldr	r3, .L10+4
	mov	r2, #0
	str	r2, [r3]
	b	.L9
.L4:
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L10
	str	r2, [r1]
	ldr	r1, .L10+12
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	tail
	.word	head
	.word	.LC0
	.word	var
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC1:
	.ascii	"error:queue is empty\000"
	.text
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L13
	ldr	r0, .L15+8
	bl	puts
	mvn	r3, #0
	b	.L14
.L13:
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L15
	str	r2, [r1]
	ldr	r2, .L15+12
	ldr	r3, [r2, r3, lsl #2]
.L14:
	mov	r0, r3
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	head
	.word	tail
	.word	.LC1
	.word	var
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%c\012\000"
	.text
	.align	2
	.global	list
	.syntax unified
	.arm
	.fpu softvfp
	.type	list, %function
list:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L21
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r2, .L22+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L20
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	head
	.word	tail
	.word	var
	.word	.LC2
	.size	list, .-list
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
