	.file	"481936.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	rear
	.align 8
	.type	rear, @object
	.size	rear, 8
rear:
	.zero	8
	.text
	.globl	q_init
	.type	q_init, @function
q_init:
.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 rear[rip], 0
	mov	rax, QWORD PTR rear[rip]
	mov	QWORD PTR head[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	q_init, .-q_init
	.section	.rodata
.LC0:
	.string	"=> "
.LC1:
	.string	"%d "
	.text
	.globl	q_print
	.type	q_print, @function
q_print:
.LFB7:
	.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR rear[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L3:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	q_print, .-q_print
	.globl	q_enqueue
	.type	q_enqueue, @function
q_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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR rear[rip], rax
	mov	rax, QWORD PTR rear[rip]
	mov	QWORD PTR head[rip], rax
	jmp	.L8
.L6:
	mov	rax, QWORD PTR head[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR head[rip], rax
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	q_enqueue, .-q_enqueue
	.globl	q_dequeue
	.type	q_dequeue, @function
q_dequeue:
.LFB9:
	.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	rax, QWORD PTR rear[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR rear[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR rear[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR rear[rip], rax
	mov	rax, QWORD PTR rear[rip]
	test	rax, rax
	jne	.L10
	mov	QWORD PTR head[rip], 0
.L10:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	q_dequeue, .-q_dequeue
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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	q_init
	mov	edi, 1
	call	q_enqueue
	mov	edi, 2
	call	q_enqueue
	mov	eax, 0
	call	q_print
	mov	eax, 0
	call	q_dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	q_enqueue
	mov	edi, 4
	call	q_enqueue
	mov	eax, 0
	call	q_print
	mov	eax, 0
	call	q_dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	q_dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	q_print
	mov	eax, 0
	call	q_dequeue
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"481936.c"
	.text
	.comm	head,4,4
	.comm	rear,4,4
	.align	2
	.global	q_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_init, %function
q_init:
	@ 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, .L2
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+4
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	rear
	.word	head
	.size	q_init, .-q_init
	.section	.rodata
	.align	2
.LC0:
	.ascii	"=> \000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.text
	.align	2
	.global	q_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_print, %function
q_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	r0, .L7
	bl	printf
	ldr	r3, .L7+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	rear
	.word	.LC1
	.size	q_print, .-q_print
	.align	2
	.global	q_enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_enqueue, %function
q_enqueue:
	@ 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]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r2, .L13+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, .L13
	str	r3, [r2]
	b	.L12
.L10:
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [r3, #4]
	ldr	r2, .L13
	str	r3, [r2]
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	head
	.word	rear
	.size	q_enqueue, .-q_enqueue
	.align	2
	.global	q_dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_dequeue, %function
q_dequeue:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, .L18
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L18+4
	mov	r2, #0
	str	r2, [r3]
.L16:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	rear
	.word	head
	.size	q_dequeue, .-q_dequeue
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.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
	bl	q_init
	mov	r0, #1
	bl	q_enqueue
	mov	r0, #2
	bl	q_enqueue
	bl	q_print
	bl	q_dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	mov	r0, #3
	bl	q_enqueue
	mov	r0, #4
	bl	q_enqueue
	bl	q_print
	bl	q_dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	bl	q_dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	bl	q_print
	bl	q_dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
