	.file	"474437.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Malloc error for array!"
.LC1:
	.string	"the_stack_data/474437.c"
.LC2:
	.string	"%s:%d\n"
.LC3:
	.string	"SIG_BLOCK error"
	.align 8
.LC4:
	.string	"Couldn't create signal handling thread!"
	.align 8
.LC5:
	.string	"Can't join with 'signal handling' thread"
	.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, 480
	mov	DWORD PTR -468[rbp], edi
	mov	QWORD PTR -480[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -453[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	lea	rdx, -452[rbp]
	mov	rcx, QWORD PTR -480[rbp]
	mov	eax, DWORD PTR -468[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	ReadArguments
	mov	eax, DWORD PTR -452[rbp]
	mov	DWORD PTR -448[rbp], eax
	mov	eax, DWORD PTR -452[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -440[rbp], rax
	cmp	QWORD PTR -440[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 41
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -444[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -440[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -444[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -444[rbp], 1
.L3:
	mov	eax, DWORD PTR -452[rbp]
	cmp	DWORD PTR -444[rbp], eax
	jl	.L4
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rdx, -272[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	pthread_sigmask@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 47
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -448[rbp]
	mov	QWORD PTR -424[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR -416[rbp], rax
	lea	rax, -320[rbp]
	mov	QWORD PTR -408[rbp], rax
	lea	rax, -144[rbp]
	mov	QWORD PTR -400[rbp], rax
	lea	rax, -453[rbp]
	mov	QWORD PTR -392[rbp], rax
	lea	rax, -368[rbp]
	mov	QWORD PTR -384[rbp], rax
	lea	rdx, -432[rbp]
	lea	rax, -432[rbp]
	mov	rcx, rdx
	lea	rdx, signal_handling[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 55
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	movzx	eax, BYTE PTR -453[rbp]
	test	al, al
	je	.L7
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	nop
	mov	rax, QWORD PTR -432[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L9
	jmp	.L12
.L7:
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	edx, DWORD PTR -452[rbp]
	mov	rax, QWORD PTR -440[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printArray
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L6
.L12:
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 69
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -440[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdx, -272[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	pthread_sigmask@PLT
	test	eax, eax
	je	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 71
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.string	"Invalid value for 'array size'"
	.text
	.globl	ReadArguments
	.type	ReadArguments, @function
ReadArguments:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 10
	cmp	DWORD PTR -4[rbp], 1
	jle	.L15
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L15
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ReadArguments, .-ReadArguments
	.globl	removeItem
	.type	removeItem, @function
removeItem:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -8[rbp], -1
	mov	DWORD PTR -4[rbp], -1
	jmp	.L17
.L18:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L17
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jne	.L18
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	removeItem, .-removeItem
	.section	.rodata
.LC7:
	.string	" %d"
.LC8:
	.string	" ]"
	.text
	.globl	printArray
	.type	printArray, @function
printArray:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edi, 91
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L21
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	add	DWORD PTR -4[rbp], 1
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L22
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printArray, .-printArray
	.section	.rodata
.LC9:
	.string	"sigwait failed."
.LC10:
	.string	"unexpected signal %d\n"
	.text
	.globl	signal_handling
	.type	signal_handling, @function
signal_handling:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L31:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 32[rax]
	lea	rdx, -20[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sigwait@PLT
	test	eax, eax
	je	.L24
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 109
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 2
	je	.L25
	cmp	eax, 3
	je	.L26
	jmp	.L33
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L28
	call	rand@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	ecx, DWORD PTR [rdx]
	cdq
	idiv	ecx
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	removeItem
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	jmp	.L34
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L32
	jmp	.L35
.L33:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	jmp	.L31
.L35:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	signal_handling, .-signal_handling
	.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	"474437.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Malloc error for array!\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/474437.c\000"
	.align	2
.LC2:
	.ascii	"%s:%d\012\000"
	.align	2
.LC3:
	.ascii	"SIG_BLOCK error\000"
	.align	2
.LC4:
	.ascii	"Couldn't create signal handling thread!\000"
	.align	2
.LC5:
	.ascii	"Can't join with 'signal handling' thread\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 368
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #368
	str	r0, [fp, #-368]
	str	r1, [fp, #-372]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-357]
	sub	r3, fp, #312
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	sub	r3, fp, #288
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	sub	r3, fp, #356
	mov	r2, r3
	ldr	r1, [fp, #-372]
	ldr	r0, [fp, #-368]
	bl	ReadArguments
	ldr	r3, [fp, #-356]
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-356]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-344]
	ldr	r3, [fp, #-344]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L13+4
	bl	perror
	ldr	r3, .L13+8
	ldr	r0, [r3]
	mov	r3, #41
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L3
.L4:
	ldr	r3, [fp, #-348]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-344]
	add	r3, r2, r3
	ldr	r2, [fp, #-348]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L3:
	ldr	r3, [fp, #-356]
	ldr	r2, [fp, #-348]
	cmp	r2, r3
	blt	.L4
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #136
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #3
	mov	r0, r3
	bl	sigaddset
	sub	r2, fp, #264
	sub	r3, fp, #136
	mov	r1, r3
	mov	r0, #0
	bl	pthread_sigmask
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L13+20
	bl	perror
	ldr	r3, .L13+8
	ldr	r0, [r3]
	mov	r3, #47
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #352
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-344]
	str	r3, [fp, #-332]
	sub	r3, fp, #288
	str	r3, [fp, #-328]
	sub	r3, fp, #136
	str	r3, [fp, #-324]
	sub	r3, fp, #356
	sub	r3, r3, #1
	str	r3, [fp, #-320]
	sub	r3, fp, #312
	str	r3, [fp, #-316]
	sub	r3, fp, #340
	sub	r0, fp, #340
	ldr	r2, .L13+24
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L13+28
	bl	perror
	ldr	r3, .L13+8
	ldr	r0, [r3]
	mov	r3, #55
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L6:
	sub	r3, fp, #312
	mov	r0, r3
	bl	pthread_mutex_lock
	ldrb	r3, [fp, #-357]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #312
	mov	r0, r3
	bl	pthread_mutex_unlock
	nop
	ldr	r3, [fp, #-340]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	b	.L12
.L7:
	sub	r3, fp, #312
	mov	r0, r3
	bl	pthread_mutex_unlock
	sub	r3, fp, #288
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-356]
	mov	r1, r3
	ldr	r0, [fp, #-344]
	bl	printArray
	sub	r3, fp, #288
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r0, #1
	bl	sleep
	b	.L6
.L12:
	ldr	r0, .L13+32
	bl	perror
	ldr	r3, .L13+8
	ldr	r0, [r3]
	mov	r3, #69
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r0, [fp, #-344]
	bl	free
	sub	r2, fp, #264
	sub	r3, fp, #136
	mov	r1, r3
	mov	r0, #1
	bl	pthread_sigmask
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L13+20
	bl	perror
	ldr	r3, .L13+8
	ldr	r0, [r3]
	mov	r3, #71
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	signal_handling
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Invalid value for 'array size'\000"
	.text
	.align	2
	.global	ReadArguments
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadArguments, %function
ReadArguments:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #10
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L17
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L17
	ldr	r0, .L18
	bl	printf
	mov	r0, #1
	bl	exit
.L17:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC7
	.size	ReadArguments, .-ReadArguments
	.align	2
	.global	removeItem
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeItem, %function
removeItem:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L21
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L22
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	removeItem, .-removeItem
	.section	.rodata
	.align	2
.LC8:
	.ascii	" %d\000"
	.align	2
.LC9:
	.ascii	" ]\000"
	.text
	.align	2
	.global	printArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	printArray, %function
printArray:
	@ 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]
	str	r1, [fp, #-20]
	mov	r0, #91
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L26:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L25
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L27
	bl	printf
.L25:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L26
	ldr	r0, .L27+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC8
	.word	.LC9
	.size	printArray, .-printArray
	.section	.rodata
	.align	2
.LC10:
	.ascii	"sigwait failed.\000"
	.global	__aeabi_idivmod
	.align	2
.LC11:
	.ascii	"unexpected signal %d\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	signal_handling
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handling, %function
signal_handling:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L37:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	sigwait
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L42+4
	bl	perror
	ldr	r3, .L42+8
	ldr	r0, [r3]
	mov	r3, #109
	ldr	r2, .L42+12
	ldr	r1, .L42+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L31
	cmp	r3, #3
	beq	.L32
	b	.L39
.L31:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L34
	ldr	r3, [fp, #-20]
	ldr	r4, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r5, [r3, #4]
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	removeItem
.L34:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pthread_mutex_unlock
	b	.L40
.L32:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r3, #0
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	b	.L41
.L39:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L42+20
	bl	printf
	mov	r0, #1
	bl	exit
.L40:
	b	.L37
.L41:
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC12
	.word	.LC10
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC11
	.size	signal_handling, .-signal_handling
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
