	.file	"64201594.c"
	.intel_syntax noprefix
	.text
	.globl	npos
	.bss
	.align 4
	.type	npos, @object
	.size	npos, 4
npos:
	.zero	4
	.globl	g_buf
	.align 8
	.type	g_buf, @object
	.size	g_buf, 8
g_buf:
	.zero	8
	.globl	pos
	.align 4
	.type	pos, @object
	.size	pos, 4
pos:
	.zero	4
	.globl	val
	.align 4
	.type	val, @object
	.size	val, 4
val:
	.zero	4
	.text
	.globl	fill
	.type	fill, @function
fill:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
.L4:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR npos[rip]
	cmp	edx, eax
	jl	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	mov	eax, 0
	jmp	.L5
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fill, .-fill
	.section	.rodata
.LC0:
	.string	"ERROR: buf[%d] = %d\n"
	.text
	.globl	verify
	.type	verify, @function
verify:
.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	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L7
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L10:
	mov	rdx, QWORD PTR g_buf[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	je	.L9
	mov	rdx, QWORD PTR g_buf[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR npos[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L10
	mov	eax, 0
	jmp	.L11
.L7:
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	verify, .-verify
	.section	.rodata
.LC1:
	.string	"Usage: %s <nr_pos> <nr_thrs>\n"
.LC2:
	.string	"/shmp04"
	.align 8
.LC3:
	.string	"Failure to open shared memory\n"
.LC4:
	.string	"Failed to allocate memory\n"
.LC5:
	.string	"Map failed!\n"
.LC6:
	.string	"/shmp04_pos"
.LC7:
	.string	"npos, nthr: %d, %d\n"
.LC8:
	.string	"/sem05"
.LC9:
	.string	"Failed to create semaphore!\n"
.LC10:
	.string	"count[%d] = %d\n"
.LC11:
	.string	"total count = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 496
	mov	DWORD PTR -484[rbp], edi
	mov	QWORD PTR -496[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -484[rbp], 3
	je	.L13
	mov	rax, QWORD PTR -496[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L31
.L13:
	mov	edx, 384
	mov	esi, 66
	lea	rdi, .LC2[rip]
	call	shm_open@PLT
	mov	DWORD PTR -460[rbp], eax
	cmp	DWORD PTR -460[rbp], 0
	jns	.L15
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -460[rbp]
	mov	esi, 40000000
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	jns	.L16
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR -460[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 40000000
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -440[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR g_buf[rip], rax
	cmp	QWORD PTR -440[rbp], -1
	jne	.L17
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L17:
	mov	edx, 384
	mov	esi, 66
	lea	rdi, .LC6[rip]
	call	shm_open@PLT
	mov	DWORD PTR -456[rbp], eax
	cmp	DWORD PTR -456[rbp], 0
	jns	.L18
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	eax, DWORD PTR -456[rbp]
	mov	esi, 8
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	jns	.L19
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L19:
	mov	eax, DWORD PTR -460[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 40000000
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], -1
	jne	.L20
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -432[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -432[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 9999999
	jg	.L21
	mov	rax, QWORD PTR -496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L22
.L21:
	mov	eax, 10000000
.L22:
	mov	DWORD PTR npos[rip], eax
	mov	rax, QWORD PTR -496[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 99
	jg	.L23
	mov	rax, QWORD PTR -496[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L24
.L23:
	mov	eax, 100
.L24:
	mov	DWORD PTR -452[rbp], eax
	mov	eax, DWORD PTR npos[rip]
	mov	edx, DWORD PTR -452[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, 1
	mov	edx, 384
	mov	esi, 64
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jne	.L25
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L25:
	mov	DWORD PTR -468[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -468[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], 0
	call	fork@PLT
	test	eax, eax
	jne	.L27
	lea	rdx, -416[rbp]
	mov	eax, DWORD PTR -468[rbp]
	cdqe
	sal	rax, 2
	lea	rdi, [rdx+rax]
	mov	rcx, QWORD PTR -424[rbp]
	mov	rdx, QWORD PTR -432[rbp]
	mov	rax, QWORD PTR -440[rbp]
	mov	rsi, rax
	call	fill
	mov	edi, 0
	call	exit@PLT
.L27:
	add	DWORD PTR -468[rbp], 1
.L26:
	mov	eax, DWORD PTR -468[rbp]
	cmp	eax, DWORD PTR -452[rbp]
	jl	.L28
	mov	DWORD PTR -464[rbp], 0
	mov	DWORD PTR -468[rbp], 0
	jmp	.L29
.L30:
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -468[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -468[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -468[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	add	DWORD PTR -464[rbp], eax
	add	DWORD PTR -468[rbp], 1
.L29:
	mov	eax, DWORD PTR -468[rbp]
	cmp	eax, DWORD PTR -452[rbp]
	jl	.L30
	mov	eax, DWORD PTR -464[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -448[rbp]
	mov	ecx, 0
	lea	rdx, verify[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -448[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -424[rbp]
	mov	rdi, rax
	call	sem_close@PLT
	lea	rdi, .LC8[rip]
	call	sem_unlink@PLT
	mov	eax, 0
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"64201594.c"
	.text
	.comm	npos,4,4
	.comm	g_buf,4,4
	.global	pos
	.bss
	.align	2
	.type	pos, %object
	.size	pos, 4
pos:
	.space	4
	.global	val
	.align	2
	.type	val, %object
	.size	val, 4
val:
	.space	4
	.text
	.align	2
	.global	fill
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill, %function
fill:
	@ 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]
	str	r3, [fp, #-20]
.L4:
	ldr	r0, [fp, #-20]
	bl	sem_wait
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L2
	ldr	r0, [fp, #-20]
	bl	sem_post
	mov	r3, #0
	b	.L5
.L2:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	sem_post
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L4
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	npos
	.size	fill, .-fill
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR: buf[%d] = %d\012\000"
	.text
	.align	2
	.global	verify
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify, %function
verify:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L12:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L11
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L14+4
	bl	printf
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	b	.L13
.L9:
	mov	r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	g_buf
	.word	.LC0
	.word	npos
	.size	verify, .-verify
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: %s <nr_pos> <nr_thrs>\012\000"
	.align	2
.LC2:
	.ascii	"/shmp04\000"
	.align	2
.LC3:
	.ascii	"Failure to open shared memory\012\000"
	.align	2
.LC4:
	.ascii	"Failed to allocate memory\012\000"
	.align	2
.LC5:
	.ascii	"Map failed!\012\000"
	.align	2
.LC6:
	.ascii	"/shmp04_pos\000"
	.align	2
.LC7:
	.ascii	"npos, nthr: %d, %d\012\000"
	.align	2
.LC8:
	.ascii	"/sem05\000"
	.align	2
.LC9:
	.ascii	"Failed to create semaphore!\012\000"
	.align	2
.LC10:
	.ascii	"count[%d] = %d\012\000"
	.align	2
.LC11:
	.ascii	"total count = %d\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 448
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #456
	str	r0, [fp, #-448]
	str	r1, [fp, #-452]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-448]
	cmp	r3, #3
	beq	.L17
	ldr	r3, [fp, #-452]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L37+4
	bl	printf
	mov	r3, #1
	b	.L35
.L17:
	mov	r2, #384
	mov	r1, #66
	ldr	r0, .L37+8
	bl	shm_open
	str	r0, [fp, #-432]
	ldr	r3, [fp, #-432]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L37+12
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r1, .L37+16
	ldr	r0, [fp, #-432]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L37+20
	bl	perror
	mov	r0, #2
	bl	exit
.L20:
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-432]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	ldr	r1, .L37+16
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-428]
	ldr	r2, .L37+24
	ldr	r3, [fp, #-428]
	str	r3, [r2]
	ldr	r3, [fp, #-428]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L37+28
	bl	perror
	mov	r0, #3
	bl	exit
.L21:
	mov	r2, #384
	mov	r1, #66
	ldr	r0, .L37+32
	bl	shm_open
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L37+12
	bl	perror
	mov	r0, #1
	bl	exit
.L22:
	mov	r1, #8
	ldr	r0, [fp, #-424]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L37+20
	bl	perror
	mov	r0, #2
	bl	exit
.L23:
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-432]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	ldr	r1, .L37+16
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L37+28
	bl	perror
	mov	r0, #3
	bl	exit
.L24:
	ldr	r3, [fp, #-420]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-420]
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-452]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L37+36
	cmp	r3, r2
	bgt	.L25
	ldr	r3, [fp, #-452]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L26
.L25:
	ldr	r3, .L37+40
.L26:
	ldr	r2, .L37+44
	str	r3, [r2]
	ldr	r3, [fp, #-452]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #99
	bgt	.L27
	ldr	r3, [fp, #-452]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L28
.L27:
	mov	r3, #100
.L28:
	str	r3, [fp, #-416]
	ldr	r3, .L37+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-416]
	mov	r1, r3
	ldr	r0, .L37+48
	bl	printf
	mov	r3, #1
	mov	r2, #384
	mov	r1, #64
	ldr	r0, .L37+52
	bl	sem_open
	str	r0, [fp, #-412]
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L37+56
	bl	perror
	mov	r0, #4
	bl	exit
.L29:
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L30
.L32:
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-404]
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	sub	r2, fp, #408
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-412]
	ldr	r2, [fp, #-420]
	ldr	r1, [fp, #-428]
	bl	fill
	mov	r0, #0
	bl	exit
.L31:
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L30:
	ldr	r2, [fp, #-440]
	ldr	r3, [fp, #-416]
	cmp	r2, r3
	blt	.L32
	mov	r3, #0
	str	r3, [fp, #-436]
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L33
.L34:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r2, r3
	ldr	r1, [fp, #-440]
	ldr	r0, .L37+60
	bl	printf
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	ldr	r2, [fp, #-436]
	add	r3, r2, r3
	str	r3, [fp, #-436]
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L33:
	ldr	r2, [fp, #-440]
	ldr	r3, [fp, #-416]
	cmp	r2, r3
	blt	.L34
	ldr	r1, [fp, #-436]
	ldr	r0, .L37+64
	bl	printf
	sub	r0, fp, #444
	mov	r3, #0
	ldr	r2, .L37+68
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-444]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, [fp, #-412]
	bl	sem_close
	ldr	r0, .L37+52
	bl	sem_unlink
	mov	r3, #0
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC12
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	40000000
	.word	.LC4
	.word	g_buf
	.word	.LC5
	.word	.LC6
	.word	9999999
	.word	10000000
	.word	npos
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	verify
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
