	.file	"986329.c"
	.intel_syntax noprefix
	.text
	.globl	atomic
	.type	atomic, @function
atomic:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 1
	mov	BYTE PTR -25[rbp], 1
	mov	DWORD PTR -20[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	mov	eax, 1
	lock xadd	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 2
	neg	eax
	lock xadd	BYTE PTR -25[rbp], al
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	lea	rax, -24[rbp]
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	__sync_fetch_and_min@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rax, -24[rbp]
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	__sync_fetch_and_max@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rax, -20[rbp]
	mov	esi, 5
	mov	rdi, rax
	mov	eax, 0
	call	__sync_fetch_and_umin@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rax, -20[rbp]
	mov	esi, 6
	mov	rdi, rax
	mov	eax, 0
	call	__sync_fetch_and_umax@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 7
	xchg	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 4
	mov	edx, 1976
	lock cmpxchg	DWORD PTR -24[rbp], edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 4
	mov	edx, 1976
	lock cmpxchg	DWORD PTR -24[rbp], edx
	sete	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
.L2:
	mov	ecx, eax
	mov	edx, eax
	and	edx, 9
	lock cmpxchg	DWORD PTR -24[rbp], edx
	sete	dl
	test	dl, dl
	je	.L2
	mov	DWORD PTR -12[rbp], ecx
	mov	eax, DWORD PTR -24[rbp]
.L3:
	mov	ecx, eax
	mov	edx, eax
	or	edx, 10
	lock cmpxchg	DWORD PTR -24[rbp], edx
	sete	dl
	test	dl, dl
	je	.L3
	mov	DWORD PTR -12[rbp], ecx
	mov	eax, DWORD PTR -24[rbp]
.L4:
	mov	ecx, eax
	mov	edx, eax
	xor	edx, 11
	lock cmpxchg	DWORD PTR -24[rbp], edx
	sete	dl
	test	dl, dl
	je	.L4
	mov	DWORD PTR -12[rbp], ecx
	mov	eax, DWORD PTR -24[rbp]
.L5:
	mov	ecx, eax
	mov	edx, eax
	and	edx, 11
	not	edx
	lock cmpxchg	DWORD PTR -24[rbp], edx
	sete	dl
	test	dl, dl
	je	.L5
	mov	DWORD PTR -12[rbp], ecx
	mov	eax, 1
	lock xadd	DWORD PTR -24[rbp], eax
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 2
	neg	eax
	mov	edx, eax
	mov	eax, edx
	lock xadd	DWORD PTR -24[rbp], eax
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	movzx	eax, BYTE PTR -25[rbp]
.L6:
	mov	edx, eax
	and	edx, 3
	mov	ecx, edx
	lock cmpxchg	BYTE PTR -25[rbp], dl
	sete	dl
	test	dl, dl
	je	.L6
	mov	eax, ecx
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	movzx	eax, BYTE PTR -25[rbp]
.L7:
	mov	edx, eax
	or	edx, 4
	mov	ecx, edx
	lock cmpxchg	BYTE PTR -25[rbp], dl
	sete	dl
	test	dl, dl
	je	.L7
	mov	eax, ecx
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	movzx	eax, BYTE PTR -25[rbp]
.L8:
	mov	edx, eax
	xor	edx, 5
	mov	ecx, edx
	lock cmpxchg	BYTE PTR -25[rbp], dl
	sete	dl
	test	dl, dl
	je	.L8
	mov	eax, ecx
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	movzx	eax, BYTE PTR -25[rbp]
.L9:
	mov	edx, eax
	and	edx, 5
	not	edx
	mov	ecx, edx
	lock cmpxchg	BYTE PTR -25[rbp], dl
	sete	dl
	test	dl, dl
	je	.L9
	mov	eax, ecx
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 0
	lock cmpxchg	QWORD PTR ds:0, rax
	mov	eax, 0
	mov	DWORD PTR -24[rbp], eax
	mfence
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	atomic, .-atomic
	.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	"986329.c"
	.text
	.global	__sync_fetch_and_add_4
	.global	__sync_fetch_and_sub_1
	.global	__sync_lock_test_and_set_4
	.global	__sync_val_compare_and_swap_4
	.global	__sync_fetch_and_and_4
	.global	__sync_fetch_and_or_4
	.global	__sync_fetch_and_xor_4
	.global	__sync_fetch_and_nand_4
	.global	__sync_add_and_fetch_4
	.global	__sync_sub_and_fetch_4
	.global	__sync_and_and_fetch_1
	.global	__sync_or_and_fetch_1
	.global	__sync_xor_and_fetch_1
	.global	__sync_nand_and_fetch_1
	.global	__sync_synchronize
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	atomic
	.syntax unified
	.arm
	.fpu softvfp
	.type	atomic, %function
atomic:
	@ 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, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #1
	strb	r3, [fp, #-25]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #24
	mov	r1, #1
	mov	r0, r3
	bl	__sync_fetch_and_add_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #25
	mov	r1, #2
	mov	r0, r3
	bl	__sync_fetch_and_sub_1
	and	r3, r0, #255
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #3
	mov	r0, r3
	bl	__sync_fetch_and_min
	str	r0, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #4
	mov	r0, r3
	bl	__sync_fetch_and_max
	str	r0, [fp, #-12]
	sub	r3, fp, #20
	mov	r1, #5
	mov	r0, r3
	bl	__sync_fetch_and_umin
	str	r0, [fp, #-12]
	sub	r3, fp, #20
	mov	r1, #6
	mov	r0, r3
	bl	__sync_fetch_and_umax
	str	r0, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #7
	mov	r0, r3
	bl	__sync_lock_test_and_set_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	ldr	r2, .L4+4
	mov	r1, #4
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	ldr	r2, .L4+4
	mov	r1, #4
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #9
	mov	r0, r3
	bl	__sync_fetch_and_and_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #10
	mov	r0, r3
	bl	__sync_fetch_and_or_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #11
	mov	r0, r3
	bl	__sync_fetch_and_xor_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #11
	mov	r0, r3
	bl	__sync_fetch_and_nand_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #1
	mov	r0, r3
	bl	__sync_add_and_fetch_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, #2
	mov	r0, r3
	bl	__sync_sub_and_fetch_4
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #25
	mov	r1, #3
	mov	r0, r3
	bl	__sync_and_and_fetch_1
	and	r3, r0, #255
	str	r3, [fp, #-12]
	sub	r3, fp, #25
	mov	r1, #4
	mov	r0, r3
	bl	__sync_or_and_fetch_1
	and	r3, r0, #255
	str	r3, [fp, #-12]
	sub	r3, fp, #25
	mov	r1, #5
	mov	r0, r3
	bl	__sync_xor_and_fetch_1
	and	r3, r0, #255
	str	r3, [fp, #-12]
	sub	r3, fp, #25
	mov	r1, #5
	mov	r0, r3
	bl	__sync_nand_and_fetch_1
	and	r3, r0, #255
	str	r3, [fp, #-12]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-24]
	bl	__sync_synchronize
	ldr	r3, [fp, #-12]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	1976
	.size	atomic, .-atomic
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
