	.file	"582063.c"
	.intel_syntax noprefix
	.text
	.globl	assume_abort_if_not
	.type	assume_abort_if_not, @function
assume_abort_if_not:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	call	abort@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	assume_abort_if_not, .-assume_abort_if_not
	.section	.rodata
.LC0:
	.string	"the_stack_data/582063.c"
.LC1:
	.string	"0"
	.text
	.globl	reach_error
	.type	reach_error, @function
reach_error:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 7
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
	.cfi_endproc
.LFE1:
	.size	reach_error, .-reach_error
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.text
	.globl	__VERIFIER_atomic_take_write_lock
	.type	__VERIFIER_atomic_take_write_lock, @function
__VERIFIER_atomic_take_write_lock:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR w[rip]
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR r[rip]
	test	eax, eax
	jne	.L6
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	mov	edi, eax
	call	assume_abort_if_not
	mov	DWORD PTR w[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	__VERIFIER_atomic_take_write_lock, .-__VERIFIER_atomic_take_write_lock
	.globl	__VERIFIER_atomic_take_read_lock
	.type	__VERIFIER_atomic_take_read_lock, @function
__VERIFIER_atomic_take_read_lock:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR w[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	assume_abort_if_not
	mov	eax, DWORD PTR r[rip]
	add	eax, 1
	mov	DWORD PTR r[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	__VERIFIER_atomic_take_read_lock, .-__VERIFIER_atomic_take_read_lock
	.globl	__VERIFIER_atomic_release_read_lock
	.type	__VERIFIER_atomic_release_read_lock, @function
__VERIFIER_atomic_release_read_lock:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR r[rip]
	sub	eax, 1
	mov	DWORD PTR r[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	__VERIFIER_atomic_release_read_lock, .-__VERIFIER_atomic_release_read_lock
	.globl	writer
	.type	writer, @function
writer:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	call	__VERIFIER_atomic_take_write_lock
	mov	DWORD PTR x[rip], 3
	mov	DWORD PTR w[rip], 0
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	writer, .-writer
	.globl	reader
	.type	reader, @function
reader:
.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	eax, 0
	call	__VERIFIER_atomic_take_read_lock
	mov	eax, DWORD PTR x[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR y[rip], eax
	mov	edx, DWORD PTR y[rip]
	mov	eax, DWORD PTR x[rip]
	cmp	edx, eax
	je	.L13
	nop
.L14:
	mov	eax, 0
	call	reach_error
.L13:
	mov	eax, 0
	call	__VERIFIER_atomic_release_read_lock
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reader, .-reader
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -40[rbp]
	mov	ecx, 0
	lea	rdx, writer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, reader[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, writer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, reader[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 12
__PRETTY_FUNCTION__.0:
	.string	"reach_error"
	.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	"582063.c"
	.text
	.align	2
	.global	assume_abort_if_not
	.syntax unified
	.arm
	.fpu softvfp
	.type	assume_abort_if_not, %function
assume_abort_if_not:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	bl	abort
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	assume_abort_if_not, .-assume_abort_if_not
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/582063.c\000"
	.align	2
.LC1:
	.ascii	"0\000"
	.text
	.align	2
	.global	reach_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	reach_error, %function
reach_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	mov	r2, #7
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	__assert_fail
.L6:
	.align	2
.L5:
	.word	__PRETTY_FUNCTION__.4217
	.word	.LC0
	.word	.LC1
	.size	reach_error, .-reach_error
	.global	w
	.bss
	.align	2
	.type	w, %object
	.size	w, 4
w:
	.space	4
	.global	r
	.align	2
	.type	r, %object
	.size	r, 4
r:
	.space	4
	.comm	x,4,4
	.comm	y,4,4
	.text
	.align	2
	.global	__VERIFIER_atomic_take_write_lock
	.syntax unified
	.arm
	.fpu softvfp
	.type	__VERIFIER_atomic_take_write_lock, %function
__VERIFIER_atomic_take_write_lock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	mov	r0, r3
	bl	assume_abort_if_not
	ldr	r3, .L10
	mov	r2, #1
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	w
	.word	r
	.size	__VERIFIER_atomic_take_write_lock, .-__VERIFIER_atomic_take_write_lock
	.align	2
	.global	__VERIFIER_atomic_take_read_lock
	.syntax unified
	.arm
	.fpu softvfp
	.type	__VERIFIER_atomic_take_read_lock, %function
__VERIFIER_atomic_take_read_lock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assume_abort_if_not
	ldr	r3, .L13+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+4
	str	r3, [r2]
	nop
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	w
	.word	r
	.size	__VERIFIER_atomic_take_read_lock, .-__VERIFIER_atomic_take_read_lock
	.align	2
	.global	__VERIFIER_atomic_release_read_lock
	.syntax unified
	.arm
	.fpu softvfp
	.type	__VERIFIER_atomic_release_read_lock, %function
__VERIFIER_atomic_release_read_lock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L16
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	r
	.size	__VERIFIER_atomic_release_read_lock, .-__VERIFIER_atomic_release_read_lock
	.align	2
	.global	writer
	.syntax unified
	.arm
	.fpu softvfp
	.type	writer, %function
writer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	__VERIFIER_atomic_take_write_lock
	ldr	r3, .L20
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L20+4
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	x
	.word	w
	.size	writer, .-writer
	.align	2
	.global	reader
	.syntax unified
	.arm
	.fpu softvfp
	.type	reader, %function
reader:
	@ 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]
	bl	__VERIFIER_atomic_take_read_lock
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, .L26+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L26+4
	ldr	r2, [r3]
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L23
	nop
.L24:
	bl	reach_error
.L23:
	bl	__VERIFIER_atomic_release_read_lock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	x
	.word	y
	.size	reader, .-reader
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #24
	mov	r3, #0
	ldr	r2, .L31+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L31+8
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L31+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L31+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC2
	.word	writer
	.word	reader
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4217, %object
	.size	__PRETTY_FUNCTION__.4217, 12
__PRETTY_FUNCTION__.4217:
	.ascii	"reach_error\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
