	.file	"245734.c"
	.intel_syntax noprefix
	.text
	.globl	init_queue
	.type	init_queue, @function
init_queue:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 28[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_queue, .-init_queue
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 28[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 6
	jne	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 28[rax], 1
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 28[rax]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	enqueue, .-enqueue
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 6
	jne	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 1
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rdx], ecx
	mov	rdx, QWORD PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dequeue, .-dequeue
	.globl	is_empty_queue
	.type	is_empty_queue, @function
is_empty_queue:
.LFB9:
	.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 40[rbp]
	mov	edx, DWORD PTR 44[rbp]
	sub	eax, edx
	cmp	eax, 1
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_empty_queue, .-is_empty_queue
	.section	.rodata
.LC0:
	.string	"Queue is empty."
.LC1:
	.string	"%d "
	.text
	.globl	print_queue
	.type	print_queue, @function
print_queue:
.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, 16
	push	QWORD PTR 40[rbp]
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	call	is_empty_queue
	add	rsp, 32
	test	ax, ax
	je	.L10
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR 40[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L12
.L14:
	cmp	DWORD PTR -4[rbp], 6
	jne	.L13
	mov	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L12:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR 44[rbp]
	cmp	edx, eax
	jne	.L14
	mov	edi, 10
	call	putchar@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print_queue, .-print_queue
	.section	.rodata
.LC2:
	.string	"Deq: %d\n"
	.text
	.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
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	init_queue
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	lea	rax, -48[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	enqueue
	lea	rax, -48[rbp]
	mov	esi, 30
	mov	rdi, rax
	call	enqueue
	lea	rax, -48[rbp]
	mov	esi, 40
	mov	rdi, rax
	call	enqueue
	lea	rax, -48[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	enqueue
	lea	rax, -48[rbp]
	mov	esi, 60
	mov	rdi, rax
	call	enqueue
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	lea	rax, -48[rbp]
	mov	esi, 70
	mov	rdi, rax
	call	enqueue
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	lea	rax, -48[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	enqueue
	lea	rax, -48[rbp]
	mov	esi, 90
	mov	rdi, rax
	call	enqueue
	lea	rax, -48[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	enqueue
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	print_queue
	add	rsp, 32
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.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	"245734.c"
	.text
	.align	2
	.global	init_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_queue, %function
init_queue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #28]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	init_queue, .-init_queue
	.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
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmp	r3, #6
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #28]
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #6
	bne	.L5
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #24]
.L5:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	add	r1, r3, #1
	ldr	r2, [fp, #-16]
	str	r1, [r2, #24]
	ldr	r2, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	dequeue, .-dequeue
	.align	2
	.global	is_empty_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_empty_queue, %function
is_empty_queue:
	@ args = 32, pretend = 16, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, [fp, #28]
	ldr	r3, [fp, #32]
	sub	r3, r2, r3
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	is_empty_queue, .-is_empty_queue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Queue is empty.\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.text
	.align	2
	.global	print_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_queue, %function
print_queue:
	@ args = 32, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	ip, sp
	add	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	add	r3, fp, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	is_empty_queue
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L15
	bl	puts
	b	.L9
.L10:
	ldr	r3, [fp, #28]
	str	r3, [fp, #-8]
	b	.L12
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	bne	.L13
	mov	r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #32]
	cmp	r2, r3
	bne	.L14
	mov	r0, #10
	bl	putchar
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.size	print_queue, .-print_queue
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Deq: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r0, r3
	bl	init_queue
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	sub	r3, fp, #40
	mov	r1, #20
	mov	r0, r3
	bl	enqueue
	sub	r3, fp, #40
	mov	r1, #30
	mov	r0, r3
	bl	enqueue
	sub	r3, fp, #40
	mov	r1, #40
	mov	r0, r3
	bl	enqueue
	sub	r3, fp, #40
	mov	r1, #50
	mov	r0, r3
	bl	enqueue
	sub	r3, fp, #40
	mov	r1, #60
	mov	r0, r3
	bl	enqueue
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	sub	r3, fp, #40
	mov	r1, #70
	mov	r0, r3
	bl	enqueue
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	sub	r3, fp, #40
	mov	r1, #80
	mov	r0, r3
	bl	enqueue
	sub	r3, fp, #40
	mov	r1, #90
	mov	r0, r3
	bl	enqueue
	sub	r3, fp, #40
	mov	r1, #100
	mov	r0, r3
	bl	enqueue
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	sub	r3, fp, #40
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	mov	ip, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	print_queue
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
