	.file	"373037.c"
	.intel_syntax noprefix
	.text
	.globl	items
	.data
	.align 4
	.type	items, @object
	.size	items, 4
items:
	.long	144
	.section	.rodata
	.align 8
.LC0:
	.string	"thread: %ld is consumeing the %-5d item\n"
	.text
	.globl	consume
	.type	consume, @function
consume:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	jmp	.L2
.L3:
	mov	edi, 2022
	call	usleep@PLT
	mov	ebx, DWORD PTR items[rip]
	lea	eax, -1[rbx]
	mov	DWORD PTR items[rip], eax
	call	pthread_self@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR items[rip]
	test	eax, eax
	jg	.L3
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	consume, .-consume
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, consume[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, consume[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, consume[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE1:
	.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	"373037.c"
	.text
	.global	items
	.data
	.align	2
	.type	items, %object
	.size	items, 4
items:
	.word	144
	.section	.rodata
	.align	2
.LC0:
	.ascii	"thread: %ld is consumeing the %-5d item\012\000"
	.text
	.align	2
	.global	consume
	.syntax unified
	.arm
	.fpu softvfp
	.type	consume, %function
consume:
	@ 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]
	b	.L2
.L3:
	ldr	r0, .L5
	bl	usleep
	bl	pthread_self
	mov	r1, r0
	ldr	r3, .L5+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r0, .L5+4
	str	r2, [r0]
	mov	r2, r3
	ldr	r0, .L5+8
	bl	printf
.L2:
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	2022
	.word	items
	.word	.LC0
	.size	consume, .-consume
	.section	.rodata
	.align	2
.LC1:
	.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, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L9+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L9+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L9+4
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	pthread_detach
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_detach
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	pthread_detach
	mov	r0, #0
	bl	pthread_exit
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	consume
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
