	.file	"167330543.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/167330543.c"
	.align 8
.LC1:
	.string	"10 == atomic_load_explicit(&a, memory_order_relaxed)"
.LC2:
	.string	"10 == c"
.LC3:
	.string	"11 == c"
	.align 8
.LC4:
	.string	"1 == atomic_load_explicit(&a, memory_order_relaxed)"
.LC5:
	.string	"success!"
	.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -88[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -76[rbp], 0
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, -84[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -76[rbp], 1
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	lock add	DWORD PTR -88[rbp], 10
	lea	rax, -88[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, 10
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	DWORD PTR -80[rbp], 10
	mov	DWORD PTR -72[rbp], 11
	lea	rax, -88[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	mov	rcx, QWORD PTR -40[rbp]
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR [rdx]
	lock cmpxchg	DWORD PTR [rcx], esi
	sete	cl
	test	cl, cl
	jne	.L3
	mov	DWORD PTR [rdx], eax
.L3:
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 10
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 44
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L4:
	lea	rax, -88[rbp]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -84[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	xchg	edx, DWORD PTR [rax]
	mov	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 11
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 51
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L5:
	lea	rax, -88[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, 1
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 54
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L6:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"167330543.c"
	.text
	.global	__sync_fetch_and_add_4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/167330543.c\000"
	.align	2
.LC1:
	.ascii	"10 == atomic_load_explicit(&a, memory_order_relaxed"
	.ascii	")\000"
	.global	__sync_val_compare_and_swap_4
	.align	2
.LC2:
	.ascii	"10 == c\000"
	.align	2
.LC3:
	.ascii	"11 == c\000"
	.align	2
.LC4:
	.ascii	"1 == atomic_load_explicit(&a, memory_order_relaxed)"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"success!\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #76
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	mov	r2, r3
	ldr	r3, [fp, #-60]
	str	r2, [r3]
	sub	r3, fp, #72
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	sub	r3, fp, #76
	mov	r1, #10
	mov	r0, r3
	bl	__sync_fetch_and_add_4
	sub	r3, fp, #76
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #10
	beq	.L2
	ldr	r3, .L10+4
	mov	r2, #33
	ldr	r1, .L10+8
	ldr	r0, .L10+12
	bl	__assert_fail
.L2:
	mov	r3, #10
	str	r3, [fp, #-68]
	mov	r3, #11
	str	r3, [fp, #-48]
	sub	r3, fp, #76
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	sub	r4, fp, #68
	ldr	r5, [r4]
	mov	r1, r5
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, r5
	moveq	r2, #1
	movne	r2, #0
	cmp	r2, #0
	bne	.L3
	str	r3, [r4]
.L3:
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #10
	beq	.L4
	ldr	r3, .L10+4
	mov	r2, #44
	ldr	r1, .L10+8
	ldr	r0, .L10+16
	bl	__assert_fail
.L4:
	sub	r3, fp, #76
	str	r3, [fp, #-36]
	sub	r3, fp, #72
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	mov	r6, r3
	ldr	r5, [fp, #-36]
	ldr	r3, [r5]
.L5:
	mov	r4, r3
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, r4
	moveq	r2, #1
	movne	r2, #0
	cmp	r2, #0
	beq	.L5
	mov	r3, r4
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #11
	beq	.L6
	ldr	r3, .L10+4
	mov	r2, #51
	ldr	r1, .L10+8
	ldr	r0, .L10+20
	bl	__assert_fail
.L6:
	sub	r3, fp, #76
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	beq	.L7
	ldr	r3, .L10+4
	mov	r2, #54
	ldr	r1, .L10+8
	ldr	r0, .L10+24
	bl	__assert_fail
.L7:
	ldr	r0, .L10+28
	bl	puts
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.5208
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5208, %object
	.size	__PRETTY_FUNCTION__.5208, 5
__PRETTY_FUNCTION__.5208:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
