	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_spin_lock
_mlx5_spin_lock:                        ## @mlx5_spin_lock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_mlx5_single_threaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	$1, (%rbx)
	movq	_memory_order_acq_rel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atomic_thread_fence
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	addq	$4, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pthread_spin_lock              ## TAILCALL
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx5_single_threaded,4,2       ## @mlx5_single_threaded
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*** ERROR: multithreading vilation ***\nYou are running a multithreaded application but\nyou set MLX5_SINGLE_THREADED=1. Please unset it.\n"

	.comm	_memory_order_acq_rel,4,2       ## @memory_order_acq_rel
	.no_dead_strip	_mlx5_spin_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_spin_lock
_mlx5_spin_lock:                        ; @mlx5_spin_lock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _mlx5_single_threaded@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlx5_single_threaded@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _memory_order_acq_rel@GOTPAGE
Lloh4:
	ldr	x8, [x8, _memory_order_acq_rel@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_atomic_thread_fence
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pthread_spin_lock
LBB0_4:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx5_single_threaded,4,2       ; @mlx5_single_threaded
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*** ERROR: multithreading vilation ***\nYou are running a multithreaded application but\nyou set MLX5_SINGLE_THREADED=1. Please unset it.\n"

	.comm	_memory_order_acq_rel,4,2       ; @memory_order_acq_rel
	.no_dead_strip	_mlx5_spin_lock
.subsections_via_symbols
