	.file	"369771.c"
	.intel_syntax noprefix
	.text
	.type	barrier_init, @function
barrier_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	barrier_init, .-barrier_init
	.type	barrier_wait, @function
barrier_wait:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
#APP
# 34 "the_stack_data/369771.c" 1
	sync
	0:
	ll edi,DWORD PTR [rax]
	addiu r8d,edi,-1
	sc r8d,DWORD PTR [rax]
	beq r8d,$0,0b
	addiu edi,edi,-1
	sync
	bne edi,$0,1f
	sw esi,DWORD PTR [rax]
	sync
	li edi,1
	subu ecx,edi,ecx
	sw ecx,DWORD PTR 4[rdx]
	b 2f
	1:
	lw edi,DWORD PTR 4[rdx]
	beq edi,ecx,1b
	2:
	sync
	
# 0 "" 2
#NO_APP
	mov	eax, r8d
	mov	edx, edi
	mov	DWORD PTR -8[rbp], edx
	mov	DWORD PTR -4[rbp], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	barrier_wait, .-barrier_wait
	.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	"369771.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	barrier_init, %function
barrier_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r3, [r2]
	ldr	r2, [fp, #-8]
	str	r3, [r2, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	barrier_init, .-barrier_init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	barrier_wait, %function
barrier_wait:
	@ 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]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-16]
	.syntax divided
@ 34 "the_stack_data/369771.c" 1
	sync
	0:
	ll ip,[r3]
	addiu lr,ip,-1
	sc lr,[r3]
	beq lr,$0,0b
	addiu ip,ip,-1
	sync
	bne ip,$0,1f
	sw r0,[r3]
	sync
	li ip,1
	subu r1,ip,r1
	sw r1,[r2, #4]
	b 2f
	1:
	lw ip,[r2, #4]
	beq ip,r1,1b
	2:
	sync
	
@ 0 "" 2
	.arm
	.syntax unified
	mov	r3, lr
	mov	r2, ip
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	barrier_wait, .-barrier_wait
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
