	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_clear_xsrq                ## -- Begin function mlx4_clear_xsrq
	.p2align	4, 0x90
_mlx4_clear_xsrq:                       ## @mlx4_clear_xsrq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %ebx
	decl	%ebx
	andl	%esi, %ebx
	movb	4(%rdi), %cl
	sarl	%cl, %ebx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	16(%r12), %rax
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	decq	8(%rax,%rcx)
	movq	(%rax,%rcx), %rdi
	je	LBB0_2
## %bb.1:
	andl	8(%r12), %r15d
	movslq	%r15d, %rax
	movq	$0, (%rdi,%rax,8)
	jmp	LBB0_3
LBB0_2:
	callq	_free
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_clear_xsrq                ; -- Begin function mlx4_clear_xsrq
	.p2align	2
_mlx4_clear_xsrq:                       ; @mlx4_clear_xsrq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	ldp	w8, w9, [x0]
	sub	w8, w8, #1
	and	w8, w8, w1
	asr	w22, w8, w9
	add	x19, x0, #12
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	x8, [x21, #16]
	add	x8, x8, w22, sxtw #4
	ldp	x0, x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8, #8]
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x21, #8]
	and	w8, w8, w20
	str	xzr, [x0, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	bl	_free
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
