	.file	"810546.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/810546.c"
	.align 8
.LC1:
	.string	"__sync_fetch_and_add(&count,10) == 0"
.LC2:
	.string	"count == 10"
	.align 8
.LC3:
	.string	"__sync_fetch_and_sub(&count,10) == 10"
.LC4:
	.string	"count == 0"
	.align 8
.LC5:
	.string	"__sync_add_and_fetch(&count,10) == 10"
	.align 8
.LC6:
	.string	"__sync_sub_and_fetch(&count,10) == 0"
	.align 8
.LC7:
	.string	"__sync_bool_compare_and_swap(&count,0,10) == true"
	.align 8
.LC8:
	.string	"__sync_val_compare_and_swap(&count,10,0) == 10"
	.align 8
.LC9:
	.string	"__sync_val_compare_and_swap(&count,0,0) == 11"
.LC10:
	.string	"count == 11"
	.align 8
.LC11:
	.string	"__sync_lock_test_and_set(&count,10) == 11"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, 10
	lock xadd	DWORD PTR -12[rbp], eax
	test	eax, eax
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 10
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 10
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 11
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	mov	eax, 10
	neg	eax
	lock xadd	DWORD PTR -12[rbp], eax
	cmp	eax, 10
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 13
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L4:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 14
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L5:
	mov	eax, 10
	lock xadd	DWORD PTR -12[rbp], eax
	add	eax, 10
	cmp	eax, 10
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 17
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 10
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 18
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L7:
	mov	eax, 10
	neg	eax
	mov	edx, eax
	mov	eax, edx
	lock xadd	DWORD PTR -12[rbp], eax
	add	eax, edx
	test	eax, eax
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 20
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L8:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 21
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L9:
	mov	eax, 0
	mov	edx, 10
	lock cmpxchg	DWORD PTR -12[rbp], edx
	sete	al
	test	al, al
	jne	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 25
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 10
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 26
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L11:
	mov	eax, 10
	mov	edx, 0
	lock cmpxchg	DWORD PTR -12[rbp], edx
	cmp	eax, 10
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 29
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L12:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 30
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L13:
	mov	DWORD PTR -12[rbp], 11
	mov	eax, 0
	lock cmpxchg	DWORD PTR -12[rbp], eax
	cmp	eax, 11
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L14:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 11
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 34
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L15:
	mov	eax, 10
	xchg	eax, DWORD PTR -12[rbp]
	cmp	eax, 11
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 37
	lea	rsi, .LC0[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 10
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 38
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L17:
	mov	eax, 0
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 42
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L18:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"810546.c"
	.text
	.global	__sync_fetch_and_add_4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/810546.c\000"
	.align	2
.LC1:
	.ascii	"__sync_fetch_and_add(&count,10) == 0\000"
	.align	2
.LC2:
	.ascii	"count == 10\000"
	.global	__sync_fetch_and_sub_4
	.align	2
.LC3:
	.ascii	"__sync_fetch_and_sub(&count,10) == 10\000"
	.align	2
.LC4:
	.ascii	"count == 0\000"
	.global	__sync_add_and_fetch_4
	.align	2
.LC5:
	.ascii	"__sync_add_and_fetch(&count,10) == 10\000"
	.global	__sync_sub_and_fetch_4
	.align	2
.LC6:
	.ascii	"__sync_sub_and_fetch(&count,10) == 0\000"
	.global	__sync_val_compare_and_swap_4
	.align	2
.LC7:
	.ascii	"__sync_bool_compare_and_swap(&count,0,10) == true\000"
	.align	2
.LC8:
	.ascii	"__sync_val_compare_and_swap(&count,10,0) == 10\000"
	.align	2
.LC9:
	.ascii	"__sync_val_compare_and_swap(&count,0,0) == 11\000"
	.align	2
.LC10:
	.ascii	"count == 11\000"
	.global	__sync_lock_test_and_set_4
	.align	2
.LC11:
	.ascii	"__sync_lock_test_and_set(&count,10) == 11\000"
	.global	__sync_synchronize
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r1, #10
	mov	r0, r3
	bl	__sync_fetch_and_add_4
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L21+4
	mov	r2, #10
	ldr	r1, .L21+8
	ldr	r0, .L21+12
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L3
	ldr	r3, .L21+4
	mov	r2, #11
	ldr	r1, .L21+8
	ldr	r0, .L21+16
	bl	__assert_fail
.L3:
	sub	r3, fp, #12
	mov	r1, #10
	mov	r0, r3
	bl	__sync_fetch_and_sub_4
	mov	r3, r0
	cmp	r3, #10
	beq	.L4
	ldr	r3, .L21+4
	mov	r2, #13
	ldr	r1, .L21+8
	ldr	r0, .L21+20
	bl	__assert_fail
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L21+4
	mov	r2, #14
	ldr	r1, .L21+8
	ldr	r0, .L21+24
	bl	__assert_fail
.L5:
	sub	r3, fp, #12
	mov	r1, #10
	mov	r0, r3
	bl	__sync_add_and_fetch_4
	mov	r3, r0
	cmp	r3, #10
	beq	.L6
	ldr	r3, .L21+4
	mov	r2, #17
	ldr	r1, .L21+8
	ldr	r0, .L21+28
	bl	__assert_fail
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L7
	ldr	r3, .L21+4
	mov	r2, #18
	ldr	r1, .L21+8
	ldr	r0, .L21+16
	bl	__assert_fail
.L7:
	sub	r3, fp, #12
	mov	r1, #10
	mov	r0, r3
	bl	__sync_sub_and_fetch_4
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L21+4
	mov	r2, #20
	ldr	r1, .L21+8
	ldr	r0, .L21+32
	bl	__assert_fail
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L21+4
	mov	r2, #21
	ldr	r1, .L21+8
	ldr	r0, .L21+24
	bl	__assert_fail
.L9:
	sub	r3, fp, #12
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L21+4
	mov	r2, #25
	ldr	r1, .L21+8
	ldr	r0, .L21+36
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L11
	ldr	r3, .L21+4
	mov	r2, #26
	ldr	r1, .L21+8
	ldr	r0, .L21+16
	bl	__assert_fail
.L11:
	sub	r3, fp, #12
	mov	r2, #0
	mov	r1, #10
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, #10
	beq	.L12
	ldr	r3, .L21+4
	mov	r2, #29
	ldr	r1, .L21+8
	ldr	r0, .L21+40
	bl	__assert_fail
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L21+4
	mov	r2, #30
	ldr	r1, .L21+8
	ldr	r0, .L21+24
	bl	__assert_fail
.L13:
	mov	r3, #11
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, #11
	beq	.L14
	ldr	r3, .L21+4
	mov	r2, #33
	ldr	r1, .L21+8
	ldr	r0, .L21+44
	bl	__assert_fail
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #11
	beq	.L15
	ldr	r3, .L21+4
	mov	r2, #34
	ldr	r1, .L21+8
	ldr	r0, .L21+48
	bl	__assert_fail
.L15:
	sub	r3, fp, #12
	mov	r1, #10
	mov	r0, r3
	bl	__sync_lock_test_and_set_4
	mov	r3, r0
	cmp	r3, #11
	beq	.L16
	ldr	r3, .L21+4
	mov	r2, #37
	ldr	r1, .L21+8
	ldr	r0, .L21+52
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L17
	ldr	r3, .L21+4
	mov	r2, #38
	ldr	r1, .L21+8
	ldr	r0, .L21+16
	bl	__assert_fail
.L17:
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L21+4
	mov	r2, #42
	ldr	r1, .L21+8
	ldr	r0, .L21+24
	bl	__assert_fail
.L18:
	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	.LC12
	.word	__PRETTY_FUNCTION__.4615
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4615, %object
	.size	__PRETTY_FUNCTION__.4615, 5
__PRETTY_FUNCTION__.4615:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
