	.file	"877244.c"
	.intel_syntax noprefix
	.text
	.globl	queue_array
	.bss
	.align 32
	.type	queue_array, @object
	.size	queue_array, 200
queue_array:
	.zero	200
	.globl	rear
	.data
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.long	-1
	.globl	front
	.align 4
	.type	front, @object
	.size	front, 4
front:
	.long	-1
	.section	.rodata
.LC0:
	.string	"Queue overflow.\n"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB0:
	.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	eax, DWORD PTR rear[rip]
	cmp	eax, 49
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	jmp	.L1
.L2:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L4
	mov	DWORD PTR front[rip], 0
.L4:
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, queue_array[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC1:
	.string	"Queue underflow.\n"
.LC2:
	.string	"Dequeued element: %i\n"
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	je	.L6
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jle	.L7
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	jmp	.L5
.L7:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue_array[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR front[rip], eax
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC3:
	.string	"Queue is empty.\n"
.LC4:
	.string	"%i "
	.text
	.globl	display
	.type	display, @function
display:
.LFB2:
	.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	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue_array[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L12:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L13
	mov	edi, 10
	call	putchar@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	display, .-display
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	call	enqueue
	mov	edi, 2
	call	enqueue
	mov	edi, 3
	call	enqueue
	mov	edi, 4
	call	enqueue
	mov	eax, 0
	call	display
	mov	eax, 0
	call	dequeue
	mov	eax, 0
	call	dequeue
	mov	eax, 0
	call	display
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.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	"877244.c"
	.text
	.comm	queue_array,200,4
	.global	rear
	.data
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.word	-1
	.global	front
	.align	2
	.type	front, %object
	.size	front, 4
front:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Queue overflow.\012\000"
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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]
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #49
	bne	.L2
	ldr	r3, .L5+4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L5+8
	bl	fwrite
	b	.L1
.L2:
	ldr	r3, .L5+12
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L5+12
	mov	r2, #0
	str	r2, [r3]
.L4:
	ldr	r3, .L5
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5
	str	r3, [r2]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r1, .L5+16
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	rear
	.word	stderr
	.word	.LC0
	.word	front
	.word	queue_array
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Queue underflow.\012\000"
	.align	2
.LC2:
	.ascii	"Dequeued element: %i\012\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, .L11
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L8
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L9
.L8:
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	pop	{fp, pc}
.L9:
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+16
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L11+20
	bl	printf
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	front
	.word	rear
	.word	stderr
	.word	.LC1
	.word	queue_array
	.word	.LC2
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Queue is empty.\012\000"
	.align	2
.LC4:
	.ascii	"%i \000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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, .L18
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L14
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L18+8
	bl	fwrite
	b	.L13
.L14:
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r2, .L18+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L18+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, .L18+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L17
	mov	r0, #10
	bl	putchar
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	front
	.word	stderr
	.word	.LC3
	.word	queue_array
	.word	.LC4
	.word	rear
	.size	display, .-display
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	bl	enqueue
	mov	r0, #2
	bl	enqueue
	mov	r0, #3
	bl	enqueue
	mov	r0, #4
	bl	enqueue
	bl	display
	bl	dequeue
	bl	dequeue
	bl	display
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
