	.file	"922934.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s: "
	.text
	.type	panic, @function
panic:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -224[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -216[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -208[rbp], 16
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -224[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	panic, .-panic
	.section	.rodata
.LC1:
	.string	" error=%d: %s\n"
	.text
	.type	error, @function
error:
.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, 240
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	QWORD PTR -232[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L5
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L5:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -224[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -208[rbp], 24
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -232[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -212[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	error, .-error
	.type	time_now, @function
time_now:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	time_now, .-time_now
	.type	time_sleep, @function
time_sleep:
.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, 64
	movsd	QWORD PTR -56[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR -56[rbp]
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movsd	xmm0, QWORD PTR -56[rbp]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
.L12:
	lea	rdx, -32[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nanosleep@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L12
.L14:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	time_sleep, .-time_sleep
	.section	.rodata
	.align 8
.LC3:
	.string	"pthread_rwlock_init(lock, attr)"
.LC4:
	.string	"%d:%s"
.LC5:
	.string	"pthread_rwlock_rdlock(lock)"
.LC6:
	.string	"pthread_rwlock_unlock(lock)"
.LC7:
	.string	"pthread_rwlock_destroy(lock)"
	.text
	.type	do_test_rwlock_rd1, @function
do_test_rwlock_rd1:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -88[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -80[rbp]
	lea	r8, .LC3[rip]
	mov	ecx, 115
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.10[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L16:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_rdlock@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -76[rbp]
	lea	r8, .LC5[rip]
	mov	ecx, 116
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.10[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L17:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -72[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 117
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.10[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L18:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	je	.L21
	mov	eax, DWORD PTR -68[rbp]
	lea	r8, .LC7[rip]
	mov	ecx, 118
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.10[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L21:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	do_test_rwlock_rd1, .-do_test_rwlock_rd1
	.section	.rodata
.LC8:
	.string	"pthread_rwlock_wrlock(lock)"
	.text
	.type	do_test_rwlock_wr1, @function
do_test_rwlock_wr1:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -88[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	je	.L23
	mov	eax, DWORD PTR -80[rbp]
	lea	r8, .LC3[rip]
	mov	ecx, 126
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.9[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L23:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_wrlock@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -76[rbp]
	lea	r8, .LC8[rip]
	mov	ecx, 127
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.9[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L24:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L25
	mov	eax, DWORD PTR -72[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 128
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.9[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L25:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	je	.L28
	mov	eax, DWORD PTR -68[rbp]
	lea	r8, .LC7[rip]
	mov	ecx, 129
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.9[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L28:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	do_test_rwlock_wr1, .-do_test_rwlock_wr1
	.section	.rodata
	.align 8
.LC9:
	.string	"pthread_rwlockattr_setpshared(attr, shared)"
	.align 8
.LC10:
	.string	"pthread_rwlockattr_getpshared(attr, &newshared)"
.LC11:
	.string	"newshared"
	.align 8
.LC12:
	.string	"%d:%s returned %d (%d expected)"
	.text
	.type	set_rwlockattr_shared, @function
set_rwlockattr_shared:
.LFB12:
	.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	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pthread_rwlockattr_setpshared@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L30
	mov	eax, DWORD PTR -20[rbp]
	lea	r8, .LC9[rip]
	mov	ecx, 135
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.8[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L30:
	mov	eax, DWORD PTR -44[rbp]
	not	eax
	mov	DWORD PTR -24[rbp], eax
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlockattr_getpshared@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L31
	mov	eax, DWORD PTR -16[rbp]
	lea	r8, .LC10[rip]
	mov	ecx, 137
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.8[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L31:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	je	.L34
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	r9d, edx
	mov	r8d, eax
	lea	rcx, .LC11[rip]
	mov	edx, 138
	lea	rsi, .LC12[rip]
	lea	rdi, __FUNCTION__.8[rip]
	mov	eax, 0
	call	panic
.L34:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	set_rwlockattr_shared, .-set_rwlockattr_shared
	.section	.rodata
.LC13:
	.string	"pthread_rwlockattr_init(attr)"
	.align 8
.LC14:
	.string	"pthread_rwlockattr_destroy(attr)"
	.text
	.type	do_test_1, @function
do_test_1:
.LFB13:
	.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
	mov	edi, 0
	call	do_test_rwlock_rd1
	mov	edi, 0
	call	do_test_rwlock_wr1
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pthread_rwlockattr_init@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L36
	mov	eax, DWORD PTR -24[rbp]
	lea	r8, .LC13[rip]
	mov	ecx, 152
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.7[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L36:
	lea	rax, -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_rwlockattr_shared
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_rd1
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_wr1
	lea	rax, -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	set_rwlockattr_shared
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_rd1
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_wr1
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pthread_rwlockattr_destroy@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L39
	mov	eax, DWORD PTR -20[rbp]
	lea	r8, .LC14[rip]
	mov	ecx, 162
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.7[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L39:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	do_test_1, .-do_test_1
	.section	.rodata
	.align 8
.LC15:
	.string	"pthread_rwlock_tryrdlock(lock)"
	.text
	.type	do_test_rwlock_rd2_rec, @function
do_test_rwlock_rd2_rec:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	je	.L41
	mov	eax, DWORD PTR -104[rbp]
	lea	r8, .LC3[rip]
	mov	ecx, 169
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L41:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_tryrdlock@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L42
	mov	eax, DWORD PTR -100[rbp]
	lea	r8, .LC15[rip]
	mov	ecx, 170
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L42:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L43
	mov	eax, DWORD PTR -96[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 171
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L43:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L44
	mov	eax, DWORD PTR -92[rbp]
	lea	r8, .LC7[rip]
	mov	ecx, 172
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L44:
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	je	.L45
	mov	eax, DWORD PTR -88[rbp]
	lea	r8, .LC3[rip]
	mov	ecx, 174
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L45:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_tryrdlock@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L46
	mov	eax, DWORD PTR -84[rbp]
	lea	r8, .LC15[rip]
	mov	ecx, 175
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L46:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_tryrdlock@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	je	.L47
	mov	eax, DWORD PTR -80[rbp]
	lea	r8, .LC15[rip]
	mov	ecx, 176
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L47:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L48
	mov	eax, DWORD PTR -76[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 177
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L48:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L49
	mov	eax, DWORD PTR -72[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 178
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L49:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	je	.L52
	mov	eax, DWORD PTR -68[rbp]
	lea	r8, .LC7[rip]
	mov	ecx, 179
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.6[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L52:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	do_test_rwlock_rd2_rec, .-do_test_rwlock_rd2_rec
	.section	.rodata
	.align 8
.LC16:
	.string	"pthread_rwlock_trywrlock(lock)"
	.text
	.type	do_test_rwlock_wr2_rec, @function
do_test_rwlock_wr2_rec:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	je	.L54
	mov	eax, DWORD PTR -104[rbp]
	lea	r8, .LC3[rip]
	mov	ecx, 186
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L54:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_trywrlock@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L55
	mov	eax, DWORD PTR -100[rbp]
	lea	r8, .LC16[rip]
	mov	ecx, 187
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L55:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L56
	mov	eax, DWORD PTR -96[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 188
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L56:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L57
	mov	eax, DWORD PTR -92[rbp]
	lea	r8, .LC7[rip]
	mov	ecx, 189
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L57:
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	je	.L58
	mov	eax, DWORD PTR -88[rbp]
	lea	r8, .LC3[rip]
	mov	ecx, 191
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L58:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_trywrlock@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L59
	mov	eax, DWORD PTR -84[rbp]
	lea	r8, .LC16[rip]
	mov	ecx, 192
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L59:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_trywrlock@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	je	.L60
	mov	eax, DWORD PTR -80[rbp]
	lea	r8, .LC16[rip]
	mov	ecx, 199
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L60:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L61
	mov	eax, DWORD PTR -76[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 200
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L61:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L62
	mov	eax, DWORD PTR -72[rbp]
	lea	r8, .LC6[rip]
	mov	ecx, 202
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L62:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	je	.L65
	mov	eax, DWORD PTR -68[rbp]
	lea	r8, .LC7[rip]
	mov	ecx, 203
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.5[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L65:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	do_test_rwlock_wr2_rec, .-do_test_rwlock_wr2_rec
	.type	do_test_2, @function
do_test_2:
.LFB16:
	.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
	mov	edi, 0
	call	do_test_rwlock_rd2_rec
	mov	edi, 0
	call	do_test_rwlock_wr2_rec
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pthread_rwlockattr_init@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L67
	mov	eax, DWORD PTR -24[rbp]
	lea	r8, .LC13[rip]
	mov	ecx, 215
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.4[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L67:
	lea	rax, -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_rwlockattr_shared
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_rd2_rec
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_wr2_rec
	lea	rax, -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	set_rwlockattr_shared
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_rd2_rec
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	do_test_rwlock_wr2_rec
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pthread_rwlockattr_destroy@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L70
	mov	eax, DWORD PTR -20[rbp]
	lea	r8, .LC14[rip]
	mov	ecx, 225
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.4[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L70:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	do_test_2, .-do_test_2
	.section	.rodata
	.align 8
.LC17:
	.string	"pthread_rwlock_tryrdlock(s->rwlock)"
	.align 8
.LC18:
	.string	"pthread_rwlock_unlock(s->rwlock)"
	.align 8
.LC19:
	.string	"pthread_rwlock_wrlock(s->rwlock)"
.LC20:
	.string	"(t1-s->t0) >= s->waitDelay"
	.text
	.type	do_rwlock_test_rd3_t1, @function
do_rwlock_test_rd3_t1:
.LFB17:
	.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 -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_rwlock_tryrdlock@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	je	.L72
	mov	eax, DWORD PTR -32[rbp]
	lea	r8, .LC17[rip]
	mov	ecx, 262
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.3[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L72:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L73
	mov	eax, DWORD PTR -28[rbp]
	lea	r8, .LC18[rip]
	mov	ecx, 263
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.3[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L73:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_rwlock_wrlock@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L74
	mov	eax, DWORD PTR -24[rbp]
	lea	r8, .LC19[rip]
	mov	ecx, 266
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.3[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L74:
	call	time_now
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR 56[rax]
	movsd	xmm0, QWORD PTR -8[rbp]
	subsd	xmm0, xmm1
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR 64[rax]
	comisd	xmm0, xmm1
	setnb	al
	xor	eax, 1
	test	al, al
	je	.L75
	lea	rcx, .LC20[rip]
	mov	edx, 270
	lea	rsi, .LC4[rip]
	lea	rdi, __FUNCTION__.3[rip]
	mov	eax, 0
	call	panic
.L75:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L76
	mov	eax, DWORD PTR -20[rbp]
	lea	r8, .LC18[rip]
	mov	ecx, 271
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.3[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L76:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	do_rwlock_test_rd3_t1, .-do_rwlock_test_rd3_t1
	.type	do_rwlock_test_rd3_t2, @function
do_rwlock_test_rd3_t2:
.LFB18:
	.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 -40[rbp]
	mov	QWORD PTR -16[rbp], rax
.L82:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_rwlock_trywrlock@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L87
	cmp	DWORD PTR -24[rbp], 16
	jne	.L82
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 72[rax]
	movq	xmm0, rax
	call	time_sleep
	nop
	jmp	.L82
.L87:
	nop
	call	time_now
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR 56[rax]
	movsd	xmm0, QWORD PTR -8[rbp]
	subsd	xmm0, xmm1
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR 64[rax]
	comisd	xmm0, xmm1
	setnb	al
	xor	eax, 1
	test	al, al
	je	.L83
	lea	rcx, .LC20[rip]
	mov	edx, 290
	lea	rsi, .LC4[rip]
	lea	rdi, __FUNCTION__.2[rip]
	mov	eax, 0
	call	panic
.L83:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L84
	mov	eax, DWORD PTR -20[rbp]
	lea	r8, .LC18[rip]
	mov	ecx, 291
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.2[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L84:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	do_rwlock_test_rd3_t2, .-do_rwlock_test_rd3_t2
	.section	.rodata
	.align 8
.LC21:
	.string	"pthread_rwlock_init(s->rwlock, attr)"
	.align 8
.LC23:
	.string	"pthread_rwlock_rdlock(s->rwlock)"
.LC24:
	.string	"pthread_join(th1, &dummy)"
.LC25:
	.string	"pthread_join(th2, &dummy)"
	.text
	.type	do_test_rwlock_rd3, @function
do_test_rwlock_rd3:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	movsd	QWORD PTR -160[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	je	.L89
	mov	eax, DWORD PTR -140[rbp]
	lea	r8, .LC21[rip]
	mov	ecx, 302
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.1[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L89:
	movsd	xmm0, QWORD PTR -160[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -160[rbp]
	movsd	xmm1, QWORD PTR .LC22[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	pthread_rwlock_rdlock@PLT
	mov	DWORD PTR -136[rbp], eax
	cmp	DWORD PTR -136[rbp], 0
	je	.L90
	mov	eax, DWORD PTR -136[rbp]
	lea	r8, .LC23[rip]
	mov	ecx, 306
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.1[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L90:
	lea	rdx, -96[rbp]
	lea	rax, -120[rbp]
	mov	rcx, rdx
	lea	rdx, do_rwlock_test_rd3_t1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdx, -96[rbp]
	lea	rax, -112[rbp]
	mov	rcx, rdx
	lea	rdx, do_rwlock_test_rd3_t2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	call	time_now
	movq	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	movq	xmm0, rax
	call	time_sleep
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	je	.L91
	mov	eax, DWORD PTR -132[rbp]
	lea	r8, .LC18[rip]
	mov	ecx, 314
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.1[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L91:
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], 0
	je	.L92
	mov	eax, DWORD PTR -128[rbp]
	lea	r8, .LC24[rip]
	mov	ecx, 316
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.1[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L92:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L95
	mov	eax, DWORD PTR -124[rbp]
	lea	r8, .LC25[rip]
	mov	ecx, 317
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.1[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L95:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L94
	call	__stack_chk_fail@PLT
.L94:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	do_test_rwlock_rd3, .-do_test_rwlock_rd3
	.type	do_test_3, @function
do_test_3:
.LFB20:
	.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
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	mov	edi, 0
	call	do_test_rwlock_rd3
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pthread_rwlockattr_init@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L97
	mov	eax, DWORD PTR -24[rbp]
	lea	r8, .LC13[rip]
	mov	ecx, 328
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.0[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L97:
	lea	rax, -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_rwlockattr_shared
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -16[rbp]
	movq	xmm0, rdx
	mov	rdi, rax
	call	do_test_rwlock_rd3
	lea	rax, -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	set_rwlockattr_shared
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -16[rbp]
	movq	xmm0, rdx
	mov	rdi, rax
	call	do_test_rwlock_rd3
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pthread_rwlockattr_destroy@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L100
	mov	eax, DWORD PTR -20[rbp]
	lea	r8, .LC14[rip]
	mov	ecx, 336
	lea	rdx, .LC4[rip]
	lea	rsi, __FUNCTION__.0[rip]
	mov	edi, eax
	mov	eax, 0
	call	error
.L100:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L99
	call	__stack_chk_fail@PLT
.L99:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	do_test_3, .-do_test_3
	.globl	main
	.type	main, @function
main:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	do_test_1
	call	do_test_2
	mov	rax, QWORD PTR .LC26[rip]
	movq	xmm0, rax
	call	do_test_3
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__FUNCTION__.10, @object
	.size	__FUNCTION__.10, 19
__FUNCTION__.10:
	.string	"do_test_rwlock_rd1"
	.align 16
	.type	__FUNCTION__.9, @object
	.size	__FUNCTION__.9, 19
__FUNCTION__.9:
	.string	"do_test_rwlock_wr1"
	.align 16
	.type	__FUNCTION__.8, @object
	.size	__FUNCTION__.8, 22
__FUNCTION__.8:
	.string	"set_rwlockattr_shared"
	.align 8
	.type	__FUNCTION__.7, @object
	.size	__FUNCTION__.7, 10
__FUNCTION__.7:
	.string	"do_test_1"
	.align 16
	.type	__FUNCTION__.6, @object
	.size	__FUNCTION__.6, 23
__FUNCTION__.6:
	.string	"do_test_rwlock_rd2_rec"
	.align 16
	.type	__FUNCTION__.5, @object
	.size	__FUNCTION__.5, 23
__FUNCTION__.5:
	.string	"do_test_rwlock_wr2_rec"
	.align 8
	.type	__FUNCTION__.4, @object
	.size	__FUNCTION__.4, 10
__FUNCTION__.4:
	.string	"do_test_2"
	.align 16
	.type	__FUNCTION__.3, @object
	.size	__FUNCTION__.3, 22
__FUNCTION__.3:
	.string	"do_rwlock_test_rd3_t1"
	.align 16
	.type	__FUNCTION__.2, @object
	.size	__FUNCTION__.2, 22
__FUNCTION__.2:
	.string	"do_rwlock_test_rd3_t2"
	.align 16
	.type	__FUNCTION__.1, @object
	.size	__FUNCTION__.1, 19
__FUNCTION__.1:
	.string	"do_test_rwlock_rd3"
	.align 8
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 10
__FUNCTION__.0:
	.string	"do_test_3"
	.align 8
.LC2:
	.long	0
	.long	1104006501
	.align 8
.LC22:
	.long	0
	.long	1077149696
	.align 8
.LC26:
	.long	-1717986918
	.long	1069128089
	.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	"922934.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: \000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	panic, %function
panic:
	@ args = 4, pretend = 12, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #20
	str	r0, [fp, #-20]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	ldr	r3, .L3+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L3+8
	mov	r0, r3
	bl	fprintf
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r3, .L3+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L3+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #1
	bl	exit
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	panic, .-panic
	.section	.rodata
	.align	2
.LC2:
	.ascii	" error=%d: %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 4, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r2, r3}
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L7+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L7+8
	mov	r0, r3
	bl	fprintf
	add	r3, fp, #8
	str	r3, [fp, #-20]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L7+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-24]
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, .L7+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	stderr
	.word	.LC0
	.word	.LC2
	.size	error, .-error
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	time_now, %function
time_now:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L12+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L12
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	1104006501
	.size	time_now, .-time_now
	.global	__aeabi_d2iz
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	time_sleep, %function
time_sleep:
	@ 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, #-28]
	str	r1, [fp, #-24]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L19+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-12]
.L16:
	sub	r2, fp, #16
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	nanosleep
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L16
.L18:
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	1104006501
	.size	time_sleep, .-time_sleep
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%d:%s\000"
	.align	2
.LC7:
	.ascii	"pthread_rwlock_init(lock, attr)\000"
	.align	2
.LC8:
	.ascii	"pthread_rwlock_rdlock(lock)\000"
	.align	2
.LC9:
	.ascii	"pthread_rwlock_unlock(lock)\000"
	.align	2
.LC10:
	.ascii	"pthread_rwlock_destroy(lock)\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_rwlock_rd1, %function
do_test_rwlock_rd1:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L28+4
	str	r3, [sp]
	mov	r3, #115
	ldr	r2, .L28+8
	ldr	r1, .L28+12
	ldr	r0, [fp, #-56]
	bl	error
.L22:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_rdlock
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L28+16
	str	r3, [sp]
	mov	r3, #116
	ldr	r2, .L28+8
	ldr	r1, .L28+12
	ldr	r0, [fp, #-52]
	bl	error
.L23:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L28+20
	str	r3, [sp]
	mov	r3, #117
	ldr	r2, .L28+8
	ldr	r1, .L28+12
	ldr	r0, [fp, #-48]
	bl	error
.L24:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L28+24
	str	r3, [sp]
	mov	r3, #118
	ldr	r2, .L28+8
	ldr	r1, .L28+12
	ldr	r0, [fp, #-44]
	bl	error
.L27:
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC11
	.word	.LC7
	.word	.LC6
	.word	__FUNCTION__.5818
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	do_test_rwlock_rd1, .-do_test_rwlock_rd1
	.section	.rodata
	.align	2
.LC12:
	.ascii	"pthread_rwlock_wrlock(lock)\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_rwlock_wr1, %function
do_test_rwlock_wr1:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L37+4
	str	r3, [sp]
	mov	r3, #126
	ldr	r2, .L37+8
	ldr	r1, .L37+12
	ldr	r0, [fp, #-56]
	bl	error
.L31:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_wrlock
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L37+16
	str	r3, [sp]
	mov	r3, #127
	ldr	r2, .L37+8
	ldr	r1, .L37+12
	ldr	r0, [fp, #-52]
	bl	error
.L32:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L37+20
	str	r3, [sp]
	mov	r3, #128
	ldr	r2, .L37+8
	ldr	r1, .L37+12
	ldr	r0, [fp, #-48]
	bl	error
.L33:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L37+24
	str	r3, [sp]
	mov	r3, #129
	ldr	r2, .L37+8
	ldr	r1, .L37+12
	ldr	r0, [fp, #-44]
	bl	error
.L36:
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC13
	.word	.LC7
	.word	.LC6
	.word	__FUNCTION__.5828
	.word	.LC12
	.word	.LC9
	.word	.LC10
	.size	do_test_rwlock_wr1, .-do_test_rwlock_wr1
	.section	.rodata
	.align	2
.LC14:
	.ascii	"pthread_rwlockattr_setpshared(attr, shared)\000"
	.align	2
.LC15:
	.ascii	"pthread_rwlockattr_getpshared(attr, &newshared)\000"
	.align	2
.LC16:
	.ascii	"newshared\000"
	.align	2
.LC17:
	.ascii	"%d:%s returned %d (%d expected)\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_rwlockattr_shared, %function
set_rwlockattr_shared:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	pthread_rwlockattr_setpshared
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L45+4
	str	r3, [sp]
	mov	r3, #135
	ldr	r2, .L45+8
	ldr	r1, .L45+12
	ldr	r0, [fp, #-20]
	bl	error
.L40:
	ldr	r3, [fp, #-36]
	mvn	r3, r3
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	pthread_rwlockattr_getpshared
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L45+16
	str	r3, [sp]
	mov	r3, #137
	ldr	r2, .L45+8
	ldr	r1, .L45+12
	ldr	r0, [fp, #-16]
	bl	error
.L41:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L44
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, .L45+20
	mov	r2, #138
	ldr	r1, .L45+24
	ldr	r0, .L45+12
	bl	panic
.L44:
	nop
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC18
	.word	.LC14
	.word	.LC6
	.word	__FUNCTION__.5838
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	set_rwlockattr_shared, .-set_rwlockattr_shared
	.section	.rodata
	.align	2
.LC19:
	.ascii	"pthread_rwlockattr_init(attr)\000"
	.align	2
.LC20:
	.ascii	"pthread_rwlockattr_destroy(attr)\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_1, %function
do_test_1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	do_test_rwlock_rd1
	mov	r0, #0
	bl	do_test_rwlock_wr1
	sub	r3, fp, #16
	mov	r0, r3
	bl	pthread_rwlockattr_init
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L48
	ldr	r3, .L52+4
	str	r3, [sp]
	mov	r3, #152
	ldr	r2, .L52+8
	ldr	r1, .L52+12
	ldr	r0, [fp, #-24]
	bl	error
.L48:
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	set_rwlockattr_shared
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_rd1
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_wr1
	sub	r3, fp, #16
	mov	r1, #1
	mov	r0, r3
	bl	set_rwlockattr_shared
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_rd1
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_wr1
	sub	r3, fp, #16
	mov	r0, r3
	bl	pthread_rwlockattr_destroy
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L52+16
	str	r3, [sp]
	mov	r3, #162
	ldr	r2, .L52+8
	ldr	r1, .L52+12
	ldr	r0, [fp, #-20]
	bl	error
.L51:
	nop
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC21
	.word	.LC19
	.word	.LC6
	.word	__FUNCTION__.5848
	.word	.LC20
	.size	do_test_1, .-do_test_1
	.section	.rodata
	.align	2
.LC22:
	.ascii	"pthread_rwlock_tryrdlock(lock)\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_rwlock_rd2_rec, %function
do_test_rwlock_rd2_rec:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	ldr	r1, [fp, #-88]
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L67+4
	str	r3, [sp]
	mov	r3, #169
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-80]
	bl	error
.L55:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_tryrdlock
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L67+16
	str	r3, [sp]
	mov	r3, #170
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-76]
	bl	error
.L56:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L67+20
	str	r3, [sp]
	mov	r3, #171
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-72]
	bl	error
.L57:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L67+24
	str	r3, [sp]
	mov	r3, #172
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-68]
	bl	error
.L58:
	sub	r3, fp, #40
	ldr	r1, [fp, #-88]
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L67+4
	str	r3, [sp]
	mov	r3, #174
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-64]
	bl	error
.L59:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_tryrdlock
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L60
	ldr	r3, .L67+16
	str	r3, [sp]
	mov	r3, #175
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-60]
	bl	error
.L60:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_tryrdlock
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L67+16
	str	r3, [sp]
	mov	r3, #176
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-56]
	bl	error
.L61:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L62
	ldr	r3, .L67+20
	str	r3, [sp]
	mov	r3, #177
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-52]
	bl	error
.L62:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L67+20
	str	r3, [sp]
	mov	r3, #178
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-48]
	bl	error
.L63:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L66
	ldr	r3, .L67+24
	str	r3, [sp]
	mov	r3, #179
	ldr	r2, .L67+8
	ldr	r1, .L67+12
	ldr	r0, [fp, #-44]
	bl	error
.L66:
	nop
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC23
	.word	.LC7
	.word	.LC6
	.word	__FUNCTION__.5855
	.word	.LC22
	.word	.LC9
	.word	.LC10
	.size	do_test_rwlock_rd2_rec, .-do_test_rwlock_rd2_rec
	.section	.rodata
	.align	2
.LC24:
	.ascii	"pthread_rwlock_trywrlock(lock)\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_rwlock_wr2_rec, %function
do_test_rwlock_wr2_rec:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	ldr	r1, [fp, #-88]
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L70
	ldr	r3, .L82+4
	str	r3, [sp]
	mov	r3, #186
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-80]
	bl	error
.L70:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_trywrlock
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L71
	ldr	r3, .L82+16
	str	r3, [sp]
	mov	r3, #187
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-76]
	bl	error
.L71:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L82+20
	str	r3, [sp]
	mov	r3, #188
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-72]
	bl	error
.L72:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L82+24
	str	r3, [sp]
	mov	r3, #189
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-68]
	bl	error
.L73:
	sub	r3, fp, #40
	ldr	r1, [fp, #-88]
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L82+4
	str	r3, [sp]
	mov	r3, #191
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-64]
	bl	error
.L74:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_trywrlock
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L75
	ldr	r3, .L82+16
	str	r3, [sp]
	mov	r3, #192
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-60]
	bl	error
.L75:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_trywrlock
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L76
	ldr	r3, .L82+16
	str	r3, [sp]
	mov	r3, #199
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-56]
	bl	error
.L76:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L77
	ldr	r3, .L82+20
	str	r3, [sp]
	mov	r3, #200
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-52]
	bl	error
.L77:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L78
	ldr	r3, .L82+20
	str	r3, [sp]
	mov	r3, #202
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-48]
	bl	error
.L78:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L81
	ldr	r3, .L82+24
	str	r3, [sp]
	mov	r3, #203
	ldr	r2, .L82+8
	ldr	r1, .L82+12
	ldr	r0, [fp, #-44]
	bl	error
.L81:
	nop
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC25
	.word	.LC7
	.word	.LC6
	.word	__FUNCTION__.5870
	.word	.LC24
	.word	.LC9
	.word	.LC10
	.size	do_test_rwlock_wr2_rec, .-do_test_rwlock_wr2_rec
	.section	.rodata
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_2, %function
do_test_2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	do_test_rwlock_rd2_rec
	mov	r0, #0
	bl	do_test_rwlock_wr2_rec
	sub	r3, fp, #16
	mov	r0, r3
	bl	pthread_rwlockattr_init
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L85
	ldr	r3, .L89+4
	str	r3, [sp]
	mov	r3, #215
	ldr	r2, .L89+8
	ldr	r1, .L89+12
	ldr	r0, [fp, #-24]
	bl	error
.L85:
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	set_rwlockattr_shared
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_rd2_rec
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_wr2_rec
	sub	r3, fp, #16
	mov	r1, #1
	mov	r0, r3
	bl	set_rwlockattr_shared
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_rd2_rec
	sub	r3, fp, #16
	mov	r0, r3
	bl	do_test_rwlock_wr2_rec
	sub	r3, fp, #16
	mov	r0, r3
	bl	pthread_rwlockattr_destroy
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L88
	ldr	r3, .L89+16
	str	r3, [sp]
	mov	r3, #225
	ldr	r2, .L89+8
	ldr	r1, .L89+12
	ldr	r0, [fp, #-20]
	bl	error
.L88:
	nop
	ldr	r3, .L89
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L87
	bl	__stack_chk_fail
.L87:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC26
	.word	.LC19
	.word	.LC6
	.word	__FUNCTION__.5885
	.word	.LC20
	.size	do_test_2, .-do_test_2
	.section	.rodata
	.align	2
.LC27:
	.ascii	"pthread_rwlock_tryrdlock(s->rwlock)\000"
	.align	2
.LC28:
	.ascii	"pthread_rwlock_unlock(s->rwlock)\000"
	.align	2
.LC29:
	.ascii	"pthread_rwlock_wrlock(s->rwlock)\000"
	.global	__aeabi_dcmpge
	.align	2
.LC30:
	.ascii	"(t1-s->t0) >= s->waitDelay\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_rwlock_test_rd3_t1, %function
do_rwlock_test_rd3_t1:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	pthread_rwlock_tryrdlock
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L99
	str	r3, [sp]
	ldr	r3, .L99+4
	ldr	r2, .L99+8
	ldr	r1, .L99+12
	ldr	r0, [fp, #-36]
	bl	error
.L92:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L93
	ldr	r3, .L99+16
	str	r3, [sp]
	ldr	r3, .L99+20
	ldr	r2, .L99+8
	ldr	r1, .L99+12
	ldr	r0, [fp, #-32]
	bl	error
.L93:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	pthread_rwlock_wrlock
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L94
	ldr	r3, .L99+24
	str	r3, [sp]
	ldr	r3, .L99+28
	ldr	r2, .L99+8
	ldr	r1, .L99+12
	ldr	r0, [fp, #-28]
	bl	error
.L94:
	bl	time_now
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r3, [fp, #-40]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	mov	ip, #1
	mov	r4, ip
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	mov	r3, #0
	mov	r4, r3
.L95:
	and	r3, r4, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L96
	ldr	r3, .L99+32
	ldr	r2, .L99+36
	ldr	r1, .L99+8
	ldr	r0, .L99+12
	bl	panic
.L96:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L97
	ldr	r3, .L99+16
	str	r3, [sp]
	ldr	r3, .L99+40
	ldr	r2, .L99+8
	ldr	r1, .L99+12
	ldr	r0, [fp, #-24]
	bl	error
.L97:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC27
	.word	262
	.word	.LC6
	.word	__FUNCTION__.5899
	.word	.LC28
	.word	263
	.word	.LC29
	.word	266
	.word	.LC30
	.word	270
	.word	271
	.size	do_rwlock_test_rd3_t1, .-do_rwlock_test_rd3_t1
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_rwlock_test_rd3_t2, %function
do_rwlock_test_rd3_t2:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
.L105:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_rwlock_trywrlock
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L111
	ldr	r3, [fp, #-28]
	cmp	r3, #16
	bne	.L105
	ldr	r3, [fp, #-32]
	add	r3, r3, #48
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	time_sleep
	nop
	b	.L105
.L111:
	nop
	bl	time_now
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r3, [fp, #-32]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	mov	ip, #1
	mov	r4, ip
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L106
	mov	r3, #0
	mov	r4, r3
.L106:
	and	r3, r4, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L107
	ldr	r3, .L112
	ldr	r2, .L112+4
	ldr	r1, .L112+8
	ldr	r0, .L112+12
	bl	panic
.L107:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L108
	ldr	r3, .L112+16
	str	r3, [sp]
	ldr	r3, .L112+20
	ldr	r2, .L112+8
	ldr	r1, .L112+12
	ldr	r0, [fp, #-24]
	bl	error
.L108:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L113:
	.align	2
.L112:
	.word	.LC30
	.word	290
	.word	.LC6
	.word	__FUNCTION__.5912
	.word	.LC28
	.word	291
	.size	do_rwlock_test_rd3_t2, .-do_rwlock_test_rd3_t2
	.section	.rodata
	.align	2
.LC31:
	.ascii	"pthread_rwlock_init(s->rwlock, attr)\000"
	.align	2
.LC32:
	.ascii	"pthread_rwlock_rdlock(s->rwlock)\000"
	.align	2
.LC33:
	.ascii	"pthread_join(th1, &dummy)\000"
	.align	2
.LC34:
	.ascii	"pthread_join(th2, &dummy)\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_rwlock_rd3, %function
do_test_rwlock_rd3:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-104]
	str	r2, [fp, #-116]
	str	r3, [fp, #-112]
	ldr	r3, .L122
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L115
	ldr	r3, .L122+4
	str	r3, [sp]
	ldr	r3, .L122+8
	ldr	r2, .L122+12
	ldr	r1, .L122+16
	ldr	r0, [fp, #-88]
	bl	error
.L115:
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	ldr	r3, .L122+20
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #68
	mov	r0, r3
	bl	pthread_rwlock_rdlock
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L116
	ldr	r3, .L122+24
	str	r3, [sp]
	ldr	r3, .L122+28
	ldr	r2, .L122+12
	ldr	r1, .L122+16
	ldr	r0, [fp, #-84]
	bl	error
.L116:
	sub	r3, fp, #68
	sub	r0, fp, #100
	ldr	r2, .L122+32
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #68
	sub	r0, fp, #96
	ldr	r2, .L122+36
	mov	r1, #0
	bl	pthread_create
	bl	time_now
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	bl	time_sleep
	sub	r3, fp, #68
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L117
	ldr	r3, .L122+40
	str	r3, [sp]
	ldr	r3, .L122+44
	ldr	r2, .L122+12
	ldr	r1, .L122+16
	ldr	r0, [fp, #-80]
	bl	error
.L117:
	ldr	r3, [fp, #-100]
	sub	r2, fp, #92
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L118
	ldr	r3, .L122+48
	str	r3, [sp]
	mov	r3, #316
	ldr	r2, .L122+12
	ldr	r1, .L122+16
	ldr	r0, [fp, #-76]
	bl	error
.L118:
	ldr	r3, [fp, #-96]
	sub	r2, fp, #92
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L121
	ldr	r3, .L122+52
	str	r3, [sp]
	ldr	r3, .L122+56
	ldr	r2, .L122+12
	ldr	r1, .L122+16
	ldr	r0, [fp, #-72]
	bl	error
.L121:
	nop
	ldr	r3, .L122
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	.LC35
	.word	.LC31
	.word	302
	.word	.LC6
	.word	__FUNCTION__.5923
	.word	1077149696
	.word	.LC32
	.word	306
	.word	do_rwlock_test_rd3_t1
	.word	do_rwlock_test_rd3_t2
	.word	.LC28
	.word	314
	.word	.LC33
	.word	.LC34
	.word	317
	.size	do_test_rwlock_rd3, .-do_test_rwlock_rd3
	.section	.rodata
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_test_3, %function
do_test_3:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, .L129
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, #0
	bl	do_test_rwlock_rd3
	sub	r3, fp, #16
	mov	r0, r3
	bl	pthread_rwlockattr_init
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L125
	ldr	r3, .L129+4
	str	r3, [sp]
	mov	r3, #328
	ldr	r2, .L129+8
	ldr	r1, .L129+12
	ldr	r0, [fp, #-24]
	bl	error
.L125:
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	set_rwlockattr_shared
	sub	r1, fp, #16
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r1
	bl	do_test_rwlock_rd3
	sub	r3, fp, #16
	mov	r1, #1
	mov	r0, r3
	bl	set_rwlockattr_shared
	sub	r1, fp, #16
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r1
	bl	do_test_rwlock_rd3
	sub	r3, fp, #16
	mov	r0, r3
	bl	pthread_rwlockattr_destroy
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L128
	ldr	r3, .L129+16
	str	r3, [sp]
	mov	r3, #336
	ldr	r2, .L129+8
	ldr	r1, .L129+12
	ldr	r0, [fp, #-20]
	bl	error
.L128:
	nop
	ldr	r3, .L129
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L127
	bl	__stack_chk_fail
.L127:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L130:
	.align	2
.L129:
	.word	.LC36
	.word	.LC19
	.word	.LC6
	.word	__FUNCTION__.5933
	.word	.LC20
	.size	do_test_3, .-do_test_3
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	do_test_1
	bl	do_test_2
	ldr	r0, .L133
	ldr	r1, .L133+4
	bl	do_test_3
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L134:
	.align	2
.L133:
	.word	-1717986918
	.word	1069128089
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__FUNCTION__.5818, %object
	.size	__FUNCTION__.5818, 19
__FUNCTION__.5818:
	.ascii	"do_test_rwlock_rd1\000"
	.align	2
	.type	__FUNCTION__.5828, %object
	.size	__FUNCTION__.5828, 19
__FUNCTION__.5828:
	.ascii	"do_test_rwlock_wr1\000"
	.align	2
	.type	__FUNCTION__.5838, %object
	.size	__FUNCTION__.5838, 22
__FUNCTION__.5838:
	.ascii	"set_rwlockattr_shared\000"
	.align	2
	.type	__FUNCTION__.5848, %object
	.size	__FUNCTION__.5848, 10
__FUNCTION__.5848:
	.ascii	"do_test_1\000"
	.align	2
	.type	__FUNCTION__.5855, %object
	.size	__FUNCTION__.5855, 23
__FUNCTION__.5855:
	.ascii	"do_test_rwlock_rd2_rec\000"
	.align	2
	.type	__FUNCTION__.5870, %object
	.size	__FUNCTION__.5870, 23
__FUNCTION__.5870:
	.ascii	"do_test_rwlock_wr2_rec\000"
	.align	2
	.type	__FUNCTION__.5885, %object
	.size	__FUNCTION__.5885, 10
__FUNCTION__.5885:
	.ascii	"do_test_2\000"
	.align	2
	.type	__FUNCTION__.5899, %object
	.size	__FUNCTION__.5899, 22
__FUNCTION__.5899:
	.ascii	"do_rwlock_test_rd3_t1\000"
	.align	2
	.type	__FUNCTION__.5912, %object
	.size	__FUNCTION__.5912, 22
__FUNCTION__.5912:
	.ascii	"do_rwlock_test_rd3_t2\000"
	.align	2
	.type	__FUNCTION__.5923, %object
	.size	__FUNCTION__.5923, 19
__FUNCTION__.5923:
	.ascii	"do_test_rwlock_rd3\000"
	.align	2
	.type	__FUNCTION__.5933, %object
	.size	__FUNCTION__.5933, 10
__FUNCTION__.5933:
	.ascii	"do_test_3\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
