	.file	"612172.c"
	.intel_syntax noprefix
	.text
	.globl	spinLock
	.bss
	.align 4
	.type	spinLock, @object
	.size	spinLock, 4
spinLock:
	.zero	4
	.text
	.globl	init_spinlock
	.type	init_spinlock, @function
init_spinlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	lea	rdi, spinLock[rip]
	call	pthread_spin_init@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init_spinlock, .-init_spinlock
	.globl	increment_with_spinlock
	.type	increment_with_spinlock, @function
increment_with_spinlock:
.LFB1:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L3
.L5:
	nop
.L4:
	lea	rdi, spinLock[rip]
	call	pthread_spin_trylock@PLT
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR glob[rip]
	add	eax, 1
	mov	DWORD PTR glob[rip], eax
	lea	rdi, spinLock[rip]
	call	pthread_spin_unlock@PLT
.L3:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -4[rbp], edx
	test	eax, eax
	jg	.L5
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	increment_with_spinlock, .-increment_with_spinlock
	.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	"612172.c"
	.text
	.comm	spinLock,4,4
	.align	2
	.global	init_spinlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_spinlock, %function
init_spinlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	ldr	r0, .L2
	bl	pthread_spin_init
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	spinLock
	.size	init_spinlock, .-init_spinlock
	.align	2
	.global	increment_with_spinlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	increment_with_spinlock, %function
increment_with_spinlock:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L5
.L7:
	nop
.L6:
	ldr	r0, .L9
	bl	pthread_spin_trylock
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
	ldr	r0, .L9
	bl	pthread_spin_unlock
.L5:
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	str	r2, [fp, #-8]
	cmp	r3, #0
	bgt	.L7
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	spinLock
	.word	glob
	.size	increment_with_spinlock, .-increment_with_spinlock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
