	.file	"extr_ck_barrier_centralized.c_ck_barrier_centralized.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ck_barrier_centralized
	.type	ck_barrier_centralized, @function
ck_barrier_centralized:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	ebx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ebp, DWORD PTR [rsi]
	not	ebp
	mov	DWORD PTR [rsi], ebp
	mov	esi, 1
	call	ck_pr_faa_uint@PLT
	cmp	ebx, eax
	je	.L7
	xor	eax, eax
	call	ck_pr_fence_atomic_load@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	call	ck_pr_stall@PLT
.L3:
	mov	rdi, r12
	call	ck_pr_load_uint@PLT
	cmp	ebp, eax
	mov	eax, 0
	jne	.L4
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ck_pr_fence_acquire@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r13
	xor	esi, esi
	call	ck_pr_store_uint@PLT
	xor	eax, eax
	call	ck_pr_fence_memory@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	esi, ebp
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ck_pr_store_uint@PLT
	.cfi_endproc
.LFE0:
	.size	ck_barrier_centralized, .-ck_barrier_centralized
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ck_barrier_centralized.c_ck_barrier_centralized.c"
	.text
	.align	2
	.global	ck_barrier_centralized
	.syntax unified
	.arm
	.fpu softvfp
	.type	ck_barrier_centralized, %function
ck_barrier_centralized:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r1]
	add	r7, r0, #4
	mvn	r4, r4
	mov	r6, r2
	str	r4, [r1]
	mov	r5, r0
	mov	r1, #1
	mov	r0, r7
	bl	ck_pr_faa_uint
	sub	r6, r6, #1
	cmp	r6, r0
	beq	.L7
	bl	ck_pr_fence_atomic_load
	b	.L3
.L4:
	bl	ck_pr_stall
.L3:
	mov	r0, r5
	bl	ck_pr_load_uint
	cmp	r4, r0
	bne	.L4
	pop	{r4, r5, r6, r7, r8, lr}
	b	ck_pr_fence_acquire
.L7:
	mov	r1, #0
	mov	r0, r7
	bl	ck_pr_store_uint
	bl	ck_pr_fence_memory
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	ck_pr_store_uint
	.size	ck_barrier_centralized, .-ck_barrier_centralized
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
