	.file	"585919.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.globl	rear
	.data
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.long	-1
	.globl	top
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.text
	.globl	isempty
	.type	isempty, @function
isempty:
.LFB0:
	.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, -1
	jne	.L2
	mov	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isempty, .-isempty
	.section	.rodata
.LC0:
	.string	"queue full"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB1:
	.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, 0
	call	isempty
	test	al, al
	je	.L5
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, 99
	jne	.L7
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L7:
	mov	eax, DWORD PTR rear[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR rear[rip], eax
.L6:
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, a[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC1:
	.string	"empty"
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	isempty
	test	al, al
	je	.L10
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L10:
	mov	edx, DWORD PTR rear[rip]
	mov	eax, DWORD PTR top[rip]
	cmp	edx, eax
	jne	.L12
	mov	DWORD PTR top[rip], -1
	mov	DWORD PTR rear[rip], -1
	jmp	.L13
.L12:
	mov	eax, DWORD PTR top[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR top[rip], eax
.L13:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC2:
	.string	"%d "
	.text
	.globl	print
	.type	print, @function
print:
.LFB3:
	.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 top[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, a[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 rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	print, .-print
	.section	.rodata
.LC3:
	.string	"enter num of ele:"
.LC4:
	.string	"%d"
.LC5:
	.string	"enqueue:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L18
.L19:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	enqueue
	add	DWORD PTR -12[rbp], 1
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L19
	mov	eax, 0
	call	print
	mov	eax, 0
	call	dequeue
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	call	print
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"585919.c"
	.text
	.comm	a,400,4
	.global	rear
	.data
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.word	-1
	.global	top
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.text
	.align	2
	.global	isempty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isempty, %function
isempty:
	@ 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, .L4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	mov	r3, #1
	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	rear
	.word	top
	.size	isempty, .-isempty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"queue 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	isempty
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+4
	str	r3, [r2]
	b	.L8
.L7:
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #99
	bne	.L9
	ldr	r0, .L11+8
	bl	printf
	b	.L6
.L9:
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L11+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, .L11
	str	r2, [r3]
.L8:
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r1, .L11+16
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	rear
	.word	top
	.word	.LC0
	.word	1374389535
	.word	a
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC1:
	.ascii	"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
	bl	isempty
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L18
	bl	printf
	b	.L17
.L14:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L16
	ldr	r3, .L18+8
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L18+4
	mvn	r2, #0
	str	r2, [r3]
	b	.L17
.L16:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L18+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, .L18+8
	str	r2, [r3]
.L17:
	nop
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	rear
	.word	top
	.word	1374389535
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d \000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ 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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r2, .L23+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, .L23+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L22
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	top
	.word	a
	.word	.LC2
	.word	rear
	.size	print, .-print
	.section	.rodata
	.align	2
.LC3:
	.ascii	"enter num of ele:\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"enqueue:\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L29+4
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L29+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L26
.L27:
	ldr	r0, .L29+12
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L29+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	enqueue
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L27
	bl	print
	bl	dequeue
	mov	r0, #10
	bl	putchar
	bl	print
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC6
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
