	.file	"212807.c"
	.intel_syntax noprefix
	.text
	.globl	my_tailq_head
	.section	.data.rel.local,"aw"
	.align 16
	.type	my_tailq_head, @object
	.size	my_tailq_head, 16
my_tailq_head:
	.quad	0
	.quad	my_tailq_head
	.section	.rodata
.LC0:
	.string	"malloc failed"
.LC1:
	.string	"Forward traversal: "
.LC2:
	.string	"%d "
.LC3:
	.string	"Adding new item after 5: "
.LC4:
	.string	"Deleting item with value 3: "
.LC5:
	.string	"tail queue is NOT empty!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR my_tailq_head[rip], 0
	lea	rax, my_tailq_head[rip]
	mov	QWORD PTR my_tailq_head[rip+8], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L4:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR my_tailq_head[rip+8]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR my_tailq_head[rip+8]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	QWORD PTR my_tailq_head[rip+8], rax
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 9
	jle	.L4
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR my_tailq_head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L5:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L6
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR my_tailq_head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L7
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	jne	.L8
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 10
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, 8
	mov	QWORD PTR 16[rax], rdx
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	QWORD PTR my_tailq_head[rip+8], rax
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L12
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L7:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L13
.L12:
	mov	rax, QWORD PTR my_tailq_head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L14:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L15
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR my_tailq_head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L16
.L21:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR my_tailq_head[rip+8], rax
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L20
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L16:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L21
.L20:
	mov	rax, QWORD PTR my_tailq_head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L22:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L23
	mov	edi, 10
	call	putchar@PLT
.L28:
	mov	rax, QWORD PTR my_tailq_head[rip]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L26
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR my_tailq_head[rip+8], rax
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L28
.L32:
	nop
	mov	rax, QWORD PTR my_tailq_head[rip]
	test	rax, rax
	je	.L29
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L29:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"212807.c"
	.text
	.global	my_tailq_head
	.data
	.align	2
	.type	my_tailq_head, %object
	.size	my_tailq_head, 8
my_tailq_head:
	.word	0
	.word	my_tailq_head
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc failed\000"
	.align	2
.LC1:
	.ascii	"Forward traversal: \000"
	.align	2
.LC2:
	.ascii	"%d \000"
	.align	2
.LC3:
	.ascii	"Adding new item after 5: \000"
	.align	2
.LC4:
	.ascii	"Deleting item with value 3: \000"
	.align	2
.LC5:
	.ascii	"tail queue is NOT empty!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L33
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L33
	ldr	r2, .L33
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L4:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L33+4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L33
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, .L33
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, .L33
	str	r3, [r2, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L4
	ldr	r0, .L33+8
	bl	printf
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+12
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	mov	r0, #10
	bl	putchar
	ldr	r0, .L33+16
	bl	printf
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L7
.L13:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L8
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L33+4
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-8]
	mov	r2, #10
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	add	r2, r2, #4
	str	r2, [r3, #8]
	b	.L11
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r2, .L33
	str	r3, [r2, #4]
.L11:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	add	r2, r3, #4
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	b	.L12
.L8:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L13
.L12:
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L14
.L15:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+12
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L15
	mov	r0, #10
	bl	putchar
	ldr	r0, .L33+20
	bl	printf
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L16
.L21:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L17
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	b	.L19
.L18:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, .L33
	str	r3, [r2, #4]
.L19:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #4]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	b	.L20
.L17:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L21
.L20:
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L22
.L23:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+12
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L23
	mov	r0, #10
	bl	putchar
.L28:
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	b	.L27
.L26:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, .L33
	str	r3, [r2, #4]
.L27:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #4]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	b	.L28
.L32:
	nop
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r0, .L33+24
	bl	puts
.L29:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	my_tailq_head
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.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
