	.file	"95449832.c"
	.intel_syntax noprefix
	.text
	.globl	x
	.bss
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	cas_mutex
	.align 4
	.type	cas_mutex, @object
	.size	cas_mutex, 4
cas_mutex:
	.zero	4
	.text
	.globl	thr1
	.type	thr1, @function
thr1:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR cas_mutex[rip]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	mov	DWORD PTR x[rip], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	DWORD PTR y[rip], 1
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 14
	jle	.L3
	mov	eax, DWORD PTR cas_mutex[rip]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	mov	eax, DWORD PTR cas_mutex[rip]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	mov	DWORD PTR x[rip], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	DWORD PTR y[rip], 1
	add	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 14
	jle	.L5
	mov	eax, DWORD PTR cas_mutex[rip]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thr1, .-thr1
	.globl	thr2
	.type	thr2, @function
thr2:
.LFB1:
	.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, DWORD PTR cas_mutex[rip]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	mov	DWORD PTR x[rip], 0
	mov	eax, DWORD PTR cas_mutex[rip]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	mov	eax, DWORD PTR x[rip]
	test	eax, eax
	jle	.L7
	mov	eax, DWORD PTR y[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR y[rip], eax
	mov	DWORD PTR x[rip], 2
.L7:
	mov	eax, DWORD PTR cas_mutex[rip]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	mov	DWORD PTR x[rip], 0
	mov	eax, DWORD PTR cas_mutex[rip]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	cas_ps@PLT
	mov	eax, DWORD PTR x[rip]
	test	eax, eax
	jle	.L8
	mov	eax, DWORD PTR y[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR y[rip], eax
	mov	DWORD PTR x[rip], 2
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	thr2, .-thr2
	.globl	thr3
	.type	thr3, @function
thr3:
.LFB2:
	.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, DWORD PTR x[rip]
	cmp	eax, 1
	jle	.L10
	mov	eax, DWORD PTR y[rip]
	cmp	eax, 3
	jne	.L10
	mov	edi, 0
	mov	eax, 0
	call	assert@PLT
.L10:
	mov	eax, DWORD PTR x[rip]
	cmp	eax, 1
	jle	.L11
	mov	eax, DWORD PTR y[rip]
	cmp	eax, 3
	jne	.L11
	mov	edi, 0
	mov	eax, 0
	call	assert@PLT
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	thr3, .-thr3
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR x[rip], 0
	mov	DWORD PTR y[rip], 0
	mov	DWORD PTR cas_mutex[rip], 0
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, thr1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, thr2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thr3[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"95449832.c"
	.text
	.comm	x,4,4
	.comm	y,4,4
	.comm	cas_mutex,4,4
	.align	2
	.global	thr1
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr1, %function
thr1:
	@ 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, .L6
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	cas_ps
	ldr	r3, .L6+4
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L6+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #14
	ble	.L3
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	cas_ps
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	cas_ps
	ldr	r3, .L6+4
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r3, .L6+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #14
	ble	.L5
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	cas_ps
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	cas_mutex
	.word	x
	.word	y
	.size	thr1, .-thr1
	.align	2
	.global	thr2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr2, %function
thr2:
	@ 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, .L11
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	cas_ps
	ldr	r3, .L11+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	cas_ps
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L9
	ldr	r3, .L11+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, .L11+8
	str	r3, [r2]
	ldr	r3, .L11+4
	mov	r2, #2
	str	r2, [r3]
.L9:
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	cas_ps
	ldr	r3, .L11+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	cas_ps
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L10
	ldr	r3, .L11+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, .L11+8
	str	r3, [r2]
	ldr	r3, .L11+4
	mov	r2, #2
	str	r2, [r3]
.L10:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	cas_mutex
	.word	x
	.word	y
	.size	thr2, .-thr2
	.align	2
	.global	thr3
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr3, %function
thr3:
	@ 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, .L16
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L14
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L14
	mov	r0, #0
	bl	assert
.L14:
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L15
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L15
	mov	r0, #0
	bl	assert
.L15:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	x
	.word	y
	.size	thr3, .-thr3
	.section	.rodata
	.align	2
.LC0:
	.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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L21+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L21+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L21+12
	mov	r2, #0
	str	r2, [r3]
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L21+16
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L21+20
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L21+24
	mov	r1, #0
	bl	pthread_create
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	x
	.word	y
	.word	cas_mutex
	.word	thr1
	.word	thr2
	.word	thr3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
