	.file	"399779.c"
	.intel_syntax noprefix
	.text
	.globl	arr
	.bss
	.align 16
	.type	arr, @object
	.size	arr, 20
arr:
	.zero	20
	.globl	front
	.align 4
	.type	front, @object
	.size	front, 4
front:
	.zero	4
	.globl	rear
	.data
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.long	5
	.text
	.globl	full
	.type	full, @function
full:
.LFB6:
	.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 front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	full, .-full
	.globl	empty
	.type	empty, @function
empty:
.LFB7:
	.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 rear[rip]
	cmp	eax, 5
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	empty, .-empty
	.section	.rodata
.LC0:
	.string	"Queue is full!"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB8:
	.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
	call	full
	test	eax, eax
	je	.L6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L8
.L6:
	mov	eax, DWORD PTR rear[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR rear[rip], eax
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, arr[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC1:
	.string	"Queue is empty!"
.LC2:
	.string	"dequeue() = "
.LC3:
	.string	"arr[%d] = %d\n"
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	empty
	test	eax, eax
	je	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L12
.L10:
	mov	eax, DWORD PTR front[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR front[rip], eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR front[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jne	.L12
	mov	DWORD PTR front[rip], 0
	mov	DWORD PTR rear[rip], 5
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC4:
	.string	"%d-> "
.LC5:
	.string	"%d->"
.LC6:
	.string	" rear"
	.text
	.globl	output
	.type	output, @function
output:
.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	QWORD PTR -24[rbp], rdi
	call	empty
	test	eax, eax
	je	.L14
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L15
.L14:
	call	full
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -8[rbp], edx
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, ecx
	sal	edx, 2
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -8[rbp], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L17:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L18
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L16:
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, ecx
	sal	edx, 2
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L20
.L15:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	output, .-output
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 15
	call	enqueue
	mov	edi, 20
	call	enqueue
	mov	edi, 25
	call	enqueue
	mov	edi, 30
	call	enqueue
	mov	edi, 35
	call	enqueue
	lea	rdi, arr[rip]
	call	output
	mov	edi, 40
	call	enqueue
	call	dequeue
	call	dequeue
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"399779.c"
	.text
	.comm	arr,20,4
	.global	front
	.bss
	.align	2
	.type	front, %object
	.size	front, 4
front:
	.space	4
	.global	rear
	.data
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.word	5
	.text
	.align	2
	.global	full
	.syntax unified
	.arm
	.fpu softvfp
	.type	full, %function
full:
	@ 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
	ldr	r2, [r3]
	ldr	r3, .L3+4
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	front
	.word	rear
	.size	full, .-full
	.align	2
	.global	empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	empty, %function
empty:
	@ 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, .L7
	ldr	r3, [r3]
	cmp	r3, #5
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	rear
	.size	empty, .-empty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Queue is full!\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]
	bl	full
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L13
	bl	puts
	b	.L12
.L10:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L13+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L13+4
	str	r2, [r3]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r1, .L13+12
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	rear
	.word	1717986919
	.word	arr
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Queue is empty!\000"
	.align	2
.LC2:
	.ascii	"dequeue() = \000"
	.align	2
.LC3:
	.ascii	"arr[%d] = %d\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
	bl	empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L19
	bl	puts
	b	.L18
.L16:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L19+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L19+4
	str	r2, [r3]
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, .L19+4
	ldr	r1, [r3]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, .L19+16
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L19+20
	bl	printf
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L18
	ldr	r3, .L19+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+24
	mov	r2, #5
	str	r2, [r3]
.L18:
	nop
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	front
	.word	1717986919
	.word	.LC2
	.word	arr
	.word	.LC3
	.word	rear
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d-> \000"
	.align	2
.LC5:
	.ascii	"%d->\000"
	.align	2
.LC6:
	.ascii	" rear\000"
	.text
	.align	2
	.global	output
	.syntax unified
	.arm
	.fpu softvfp
	.type	output, %function
output:
	@ 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]
	bl	empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L29
	bl	puts
	b	.L23
.L22:
	bl	full
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L29+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L29+8
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L25
.L26:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+12
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L26
	ldr	r3, .L29+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+20
	bl	printf
	b	.L23
.L24:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L29+8
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L27
.L28:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L27:
	ldr	r3, .L29+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L28
.L23:
	ldr	r0, .L29+24
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	front
	.word	1717986919
	.word	.LC4
	.word	rear
	.word	.LC5
	.word	.LC6
	.size	output, .-output
	.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, #15
	bl	enqueue
	mov	r0, #20
	bl	enqueue
	mov	r0, #25
	bl	enqueue
	mov	r0, #30
	bl	enqueue
	mov	r0, #35
	bl	enqueue
	ldr	r0, .L33
	bl	output
	mov	r0, #40
	bl	enqueue
	bl	dequeue
	bl	dequeue
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	arr
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
