	.file	"43886476.c"
	.intel_syntax noprefix
	.text
	.globl	queue
	.bss
	.align 16
	.type	queue, @object
	.size	queue, 20
queue:
	.zero	20
	.globl	tail
	.data
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.long	-1
	.globl	head
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.long	-1
	.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
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR tail[rip]
	cmp	eax, 3
	jle	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	eax, DWORD PTR tail[rip]
	add	eax, 1
	mov	DWORD PTR tail[rip], eax
	mov	eax, DWORD PTR tail[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, queue[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	enqueue, .-enqueue
	.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 tail[rip]
	cmp	eax, -1
	jne	.L5
	mov	eax, -2147483648
	jmp	.L6
.L5:
	mov	eax, DWORD PTR head[rip]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, queue[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -8[rbp], 1
.L7:
	mov	eax, DWORD PTR tail[rip]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR tail[rip]
	sub	eax, 1
	mov	DWORD PTR tail[rip], eax
	mov	eax, DWORD PTR -4[rbp]
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC0:
	.string	"t = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	edi, 1
	call	enqueue
	mov	edi, 4
	call	enqueue
	mov	edi, 3
	call	enqueue
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, 0
	call	dequeue
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -2147483648
	jne	.L11
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"43886476.c"
	.text
	.comm	queue,20,4
	.global	tail
	.data
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.word	-1
	.global	head
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.word	-1
	.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
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	mov	r3, #1
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	tail
	.word	queue
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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
	ldr	r3, .L11
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L7
	mov	r3, #-2147483648
	b	.L8
.L7:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L9
.L10:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, .L11+8
	ldr	r2, [fp, #-12]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L11+8
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L10
	ldr	r3, .L11
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, [fp, #-8]
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	tail
	.word	head
	.word	queue
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"t = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #1
	bl	enqueue
	mov	r0, #4
	bl	enqueue
	mov	r0, #3
	bl	enqueue
	b	.L14
.L15:
	ldr	r1, [fp, #-8]
	ldr	r0, .L17
	bl	printf
.L14:
	bl	dequeue
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #-2147483648
	bne	.L15
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
