	.file	"654022.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Got semaphore\n"
	.text
	.globl	entry
	.type	entry, @function
entry:
.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	entry, .-entry
	.section	.rodata
.LC1:
	.string	"Test begin\n"
.LC2:
	.string	"the_stack_data/654022.c"
.LC3:
	.string	"0 == sem_init(&sem_b, 0, 0)"
	.align 8
.LC4:
	.string	"0 == sem_getvalue(&sem_b, &val)"
.LC5:
	.string	"0 == val"
.LC6:
	.string	"0 == sem_post(&sem_b)"
.LC7:
	.string	"1 == val"
.LC8:
	.string	"0 == sem_wait(&sem_b)"
.LC9:
	.string	"-1 == sem_trywait(&sem_b)"
.LC10:
	.string	"EAGAIN == errno"
.LC11:
	.string	"0 == sem_trywait(&sem_b)"
.LC12:
	.string	"0 == sem_destroy(&sem_b)"
.LC13:
	.string	"0 == sem_init(&sem_a, 0, 0)"
.LC14:
	.string	"0 == sem_post(&sem_a)"
.LC15:
	.string	"0 == sem_destroy(&sem_a)"
.LC16:
	.string	"Test end\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	lea	rax, -128[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	test	eax, eax
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 73
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L4:
	lea	rdx, -168[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sem_getvalue@PLT
	test	eax, eax
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 74
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L5:
	mov	eax, DWORD PTR -168[rbp]
	test	eax, eax
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 75
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L6:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	test	eax, eax
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 77
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L7:
	lea	rdx, -168[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sem_getvalue@PLT
	test	eax, eax
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 78
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L8:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, 1
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 79
	lea	rsi, .LC2[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L9:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	test	eax, eax
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 81
	lea	rsi, .LC2[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L10:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_trywait@PLT
	cmp	eax, -1
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 82
	lea	rsi, .LC2[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L11:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 83
	lea	rsi, .LC2[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L12:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	test	eax, eax
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 84
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L13:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_trywait@PLT
	test	eax, eax
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 85
	lea	rsi, .LC2[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L14:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	test	eax, eax
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 86
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L15:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	test	eax, eax
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 87
	lea	rsi, .LC2[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L16:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	test	eax, eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 88
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L17:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sem_destroy@PLT
	test	eax, eax
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 101
	lea	rsi, .LC2[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L18:
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	test	eax, eax
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 103
	lea	rsi, .LC2[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L19:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L20
.L21:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -164[rbp]
	sal	rax, 3
	lea	rdi, [rdx+rax]
	lea	rax, -160[rbp]
	mov	rcx, rax
	lea	rdx, entry[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	DWORD PTR -164[rbp], 1
.L20:
	cmp	DWORD PTR -164[rbp], 9
	jbe	.L21
	mov	DWORD PTR -164[rbp], 0
	jmp	.L22
.L24:
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	test	eax, eax
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 110
	lea	rsi, .LC2[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L23:
	add	DWORD PTR -164[rbp], 1
.L22:
	cmp	DWORD PTR -164[rbp], 9
	jbe	.L24
	mov	DWORD PTR -164[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -164[rbp]
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -164[rbp], 1
.L25:
	cmp	DWORD PTR -164[rbp], 9
	jbe	.L26
	mov	DWORD PTR -164[rbp], 0
	jmp	.L27
.L28:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -164[rbp]
	sal	rax, 3
	lea	rdi, [rdx+rax]
	lea	rax, -160[rbp]
	mov	rcx, rax
	lea	rdx, entry[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	DWORD PTR -164[rbp], 1
.L27:
	cmp	DWORD PTR -164[rbp], 9
	jbe	.L28
	mov	DWORD PTR -164[rbp], 0
	jmp	.L29
.L31:
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	test	eax, eax
	je	.L30
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 122
	lea	rsi, .LC2[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L30:
	add	DWORD PTR -164[rbp], 1
.L29:
	cmp	DWORD PTR -164[rbp], 9
	jbe	.L31
	mov	DWORD PTR -164[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -164[rbp]
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -164[rbp], 1
.L32:
	cmp	DWORD PTR -164[rbp], 9
	jbe	.L33
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	sem_destroy@PLT
	test	eax, eax
	je	.L34
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 129
	lea	rsi, .LC2[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L34:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"654022.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Got semaphore\012\000"
	.text
	.align	2
	.global	entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	entry, %function
entry:
	@ 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]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	sem_wait
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L3+4
	bl	fwrite
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	stderr
	.word	.LC0
	.size	entry, .-entry
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Test begin\012\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/654022.c\000"
	.align	2
.LC3:
	.ascii	"0 == sem_init(&sem_b, 0, 0)\000"
	.align	2
.LC4:
	.ascii	"0 == sem_getvalue(&sem_b, &val)\000"
	.align	2
.LC5:
	.ascii	"0 == val\000"
	.align	2
.LC6:
	.ascii	"0 == sem_post(&sem_b)\000"
	.align	2
.LC7:
	.ascii	"1 == val\000"
	.align	2
.LC8:
	.ascii	"0 == sem_wait(&sem_b)\000"
	.align	2
.LC9:
	.ascii	"-1 == sem_trywait(&sem_b)\000"
	.align	2
.LC10:
	.ascii	"EAGAIN == errno\000"
	.align	2
.LC11:
	.ascii	"0 == sem_trywait(&sem_b)\000"
	.align	2
.LC12:
	.ascii	"0 == sem_destroy(&sem_b)\000"
	.align	2
.LC13:
	.ascii	"0 == sem_init(&sem_a, 0, 0)\000"
	.align	2
.LC14:
	.ascii	"0 == sem_post(&sem_a)\000"
	.align	2
.LC15:
	.ascii	"0 == sem_destroy(&sem_a)\000"
	.align	2
.LC16:
	.ascii	"Test end\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L39+4
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L39+8
	bl	fwrite
	sub	r3, fp, #64
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L39+12
	mov	r2, #73
	ldr	r1, .L39+16
	ldr	r0, .L39+20
	bl	__assert_fail
.L6:
	sub	r2, fp, #88
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	sem_getvalue
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L39+12
	mov	r2, #74
	ldr	r1, .L39+16
	ldr	r0, .L39+24
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L39+12
	mov	r2, #75
	ldr	r1, .L39+16
	ldr	r0, .L39+28
	bl	__assert_fail
.L8:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_post
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L39+12
	mov	r2, #77
	ldr	r1, .L39+16
	ldr	r0, .L39+32
	bl	__assert_fail
.L9:
	sub	r2, fp, #88
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	sem_getvalue
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L39+12
	mov	r2, #78
	ldr	r1, .L39+16
	ldr	r0, .L39+24
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	beq	.L11
	ldr	r3, .L39+12
	mov	r2, #79
	ldr	r1, .L39+16
	ldr	r0, .L39+36
	bl	__assert_fail
.L11:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_wait
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L39+12
	mov	r2, #81
	ldr	r1, .L39+16
	ldr	r0, .L39+40
	bl	__assert_fail
.L12:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_trywait
	mov	r3, r0
	cmn	r3, #1
	beq	.L13
	ldr	r3, .L39+12
	mov	r2, #82
	ldr	r1, .L39+16
	ldr	r0, .L39+44
	bl	__assert_fail
.L13:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L14
	ldr	r3, .L39+12
	mov	r2, #83
	ldr	r1, .L39+16
	ldr	r0, .L39+48
	bl	__assert_fail
.L14:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_post
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L39+12
	mov	r2, #84
	ldr	r1, .L39+16
	ldr	r0, .L39+32
	bl	__assert_fail
.L15:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_trywait
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L39+12
	mov	r2, #85
	ldr	r1, .L39+16
	ldr	r0, .L39+52
	bl	__assert_fail
.L16:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_post
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L39+12
	mov	r2, #86
	ldr	r1, .L39+16
	ldr	r0, .L39+32
	bl	__assert_fail
.L17:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_wait
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L39+12
	mov	r2, #87
	ldr	r1, .L39+16
	ldr	r0, .L39+40
	bl	__assert_fail
.L18:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_post
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L39+12
	mov	r2, #88
	ldr	r1, .L39+16
	ldr	r0, .L39+32
	bl	__assert_fail
.L19:
	sub	r3, fp, #64
	mov	r0, r3
	bl	sem_destroy
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L39+12
	mov	r2, #101
	ldr	r1, .L39+16
	ldr	r0, .L39+56
	bl	__assert_fail
.L20:
	sub	r3, fp, #80
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L39+12
	mov	r2, #103
	ldr	r1, .L39+16
	ldr	r0, .L39+60
	bl	__assert_fail
.L21:
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L22
.L23:
	sub	r2, fp, #48
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r3, fp, #80
	ldr	r2, .L39+64
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L22:
	ldr	r3, [fp, #-84]
	cmp	r3, #9
	bls	.L23
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L24
.L26:
	sub	r3, fp, #80
	mov	r0, r3
	bl	sem_post
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L39+12
	mov	r2, #110
	ldr	r1, .L39+16
	ldr	r0, .L39+68
	bl	__assert_fail
.L25:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L24:
	ldr	r3, [fp, #-84]
	cmp	r3, #9
	bls	.L26
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L27
.L28:
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L27:
	ldr	r3, [fp, #-84]
	cmp	r3, #9
	bls	.L28
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L29
.L30:
	sub	r2, fp, #48
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r3, fp, #80
	ldr	r2, .L39+64
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L29:
	ldr	r3, [fp, #-84]
	cmp	r3, #9
	bls	.L30
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L31
.L33:
	sub	r3, fp, #80
	mov	r0, r3
	bl	sem_post
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L39+12
	mov	r2, #122
	ldr	r1, .L39+16
	ldr	r0, .L39+68
	bl	__assert_fail
.L32:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L31:
	ldr	r3, [fp, #-84]
	cmp	r3, #9
	bls	.L33
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L34
.L35:
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L34:
	ldr	r3, [fp, #-84]
	cmp	r3, #9
	bls	.L35
	sub	r3, fp, #80
	mov	r0, r3
	bl	sem_destroy
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L39+12
	mov	r2, #129
	ldr	r1, .L39+16
	ldr	r0, .L39+72
	bl	__assert_fail
.L36:
	ldr	r3, .L39+4
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L39+76
	bl	fwrite
	mov	r3, #0
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC17
	.word	stderr
	.word	.LC1
	.word	__PRETTY_FUNCTION__.5384
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	entry
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5384, %object
	.size	__PRETTY_FUNCTION__.5384, 5
__PRETTY_FUNCTION__.5384:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
