	.file	"49927.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"pthread_rwlock_init(&lock_1, 0)"
.LC1:
	.string	"the_stack_data/49927.c"
.LC2:
	.string	"  %s:%d %s = %d\n"
.LC3:
	.string	"== 0"
.LC4:
	.string	"    FAILED: expected %s %s\n"
	.align 8
.LC5:
	.string	"pthread_rwlock_init(&lock_2, 0)"
	.align 8
.LC6:
	.string	"pthread_rwlock_rdlock(&lock_1)"
	.align 8
.LC7:
	.string	"pthread_rwlock_unlock(&lock_1)"
	.align 8
.LC8:
	.string	"pthread_rwlock_wrlock(&lock_1)"
.LC9:
	.string	"== EDEADLK"
	.align 8
.LC10:
	.string	"pthread_rwlock_destroy(&lock_1)"
	.align 8
.LC11:
	.string	"pthread_rwlock_destroy(&lock_2)"
.LC12:
	.string	"\n%s OK\n"
	.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -172[rbp]
	mov	r9d, edx
	lea	r8, .LC0[rip]
	mov	ecx, 22
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -172[rbp], 0
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC0[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L2:
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_rwlock_init@PLT
	mov	DWORD PTR -168[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -168[rbp]
	mov	r9d, edx
	lea	r8, .LC5[rip]
	mov	ecx, 23
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -168[rbp], 0
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC5[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L3:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_rdlock@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -164[rbp]
	mov	r9d, edx
	lea	r8, .LC6[rip]
	mov	ecx, 26
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -164[rbp], 0
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC6[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L4:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_rdlock@PLT
	mov	DWORD PTR -160[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -160[rbp]
	mov	r9d, edx
	lea	r8, .LC6[rip]
	mov	ecx, 30
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -160[rbp], 0
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC6[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L5:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -156[rbp]
	mov	r9d, edx
	lea	r8, .LC7[rip]
	mov	ecx, 32
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -156[rbp], 0
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC7[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L6:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -152[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -152[rbp]
	mov	r9d, edx
	lea	r8, .LC7[rip]
	mov	ecx, 35
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -152[rbp], 0
	je	.L7
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC7[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L7:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_wrlock@PLT
	mov	DWORD PTR -148[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -148[rbp]
	mov	r9d, edx
	lea	r8, .LC8[rip]
	mov	ecx, 39
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -148[rbp], 0
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L8:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_wrlock@PLT
	mov	DWORD PTR -144[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -144[rbp]
	mov	r9d, edx
	lea	r8, .LC8[rip]
	mov	ecx, 43
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -144[rbp], 35
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC9[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L9:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_unlock@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -140[rbp]
	mov	r9d, edx
	lea	r8, .LC7[rip]
	mov	ecx, 48
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -140[rbp], 0
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC7[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L10:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -136[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -136[rbp]
	mov	r9d, edx
	lea	r8, .LC10[rip]
	mov	ecx, 51
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -136[rbp], 0
	je	.L11
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC10[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L11:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_rwlock_destroy@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -132[rbp]
	mov	r9d, edx
	lea	r8, .LC11[rip]
	mov	ecx, 52
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -132[rbp], 0
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	lea	rdx, .LC11[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L12:
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"49927.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/49927.c\000"
	.align	2
.LC1:
	.ascii	"  %s:%d %s = %d\012\000"
	.align	2
.LC2:
	.ascii	"pthread_rwlock_init(&lock_1, 0)\000"
	.align	2
.LC3:
	.ascii	"== 0\000"
	.align	2
.LC4:
	.ascii	"    FAILED: expected %s %s\012\000"
	.align	2
.LC5:
	.ascii	"pthread_rwlock_init(&lock_2, 0)\000"
	.align	2
.LC6:
	.ascii	"pthread_rwlock_rdlock(&lock_1)\000"
	.align	2
.LC7:
	.ascii	"pthread_rwlock_unlock(&lock_1)\000"
	.align	2
.LC8:
	.ascii	"pthread_rwlock_wrlock(&lock_1)\000"
	.align	2
.LC9:
	.ascii	"== EDEADLK\000"
	.align	2
.LC10:
	.ascii	"pthread_rwlock_destroy(&lock_1)\000"
	.align	2
.LC11:
	.ascii	"pthread_rwlock_destroy(&lock_2)\000"
	.align	2
.LC12:
	.ascii	"\012%s OK\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #72
	mov	r1, #0
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-116]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-116]
	str	r3, [sp, #4]
	ldr	r3, .L15+8
	str	r3, [sp]
	mov	r3, #22
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+8
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L2:
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	pthread_rwlock_init
	str	r0, [fp, #-112]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-112]
	str	r3, [sp, #4]
	ldr	r3, .L15+28
	str	r3, [sp]
	mov	r3, #23
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+28
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L3:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_rdlock
	str	r0, [fp, #-108]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-108]
	str	r3, [sp, #4]
	ldr	r3, .L15+32
	str	r3, [sp]
	mov	r3, #26
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+32
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L4:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_rdlock
	str	r0, [fp, #-104]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-104]
	str	r3, [sp, #4]
	ldr	r3, .L15+32
	str	r3, [sp]
	mov	r3, #30
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+32
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L5:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-100]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-100]
	str	r3, [sp, #4]
	ldr	r3, .L15+36
	str	r3, [sp]
	mov	r3, #32
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+36
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L6:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-96]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-96]
	str	r3, [sp, #4]
	ldr	r3, .L15+36
	str	r3, [sp]
	mov	r3, #35
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+36
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L7:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_wrlock
	str	r0, [fp, #-92]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	str	r3, [sp, #4]
	ldr	r3, .L15+40
	str	r3, [sp]
	mov	r3, #39
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+40
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L8:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_wrlock
	str	r0, [fp, #-88]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-88]
	str	r3, [sp, #4]
	ldr	r3, .L15+40
	str	r3, [sp]
	mov	r3, #43
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-88]
	cmp	r3, #35
	beq	.L9
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+44
	ldr	r2, .L15+40
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L9:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_unlock
	str	r0, [fp, #-84]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-84]
	str	r3, [sp, #4]
	ldr	r3, .L15+36
	str	r3, [sp]
	mov	r3, #48
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+36
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L10:
	sub	r3, fp, #72
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-80]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-80]
	str	r3, [sp, #4]
	ldr	r3, .L15+48
	str	r3, [sp]
	mov	r3, #51
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+48
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L11:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pthread_rwlock_destroy
	str	r0, [fp, #-76]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	str	r3, [sp, #4]
	ldr	r3, .L15+52
	str	r3, [sp]
	mov	r3, #52
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, .L15+20
	ldr	r2, .L15+52
	ldr	r1, .L15+24
	bl	fprintf
	bl	abort
.L12:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+56
	bl	fprintf
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC13
	.word	stderr
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
