	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fc_pool_acquire_counter
_mlx5_fc_pool_acquire_counter:          ## @mlx5_fc_pool_acquire_counter
	.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
	movq	%rdi, %r15
	callq	_mutex_lock
	leaq	12(%r15), %r14
	leaq	20(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mlx5_fc_pool_acquire_from_list
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	16(%r15), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_mlx5_fc_pool_acquire_from_list
	movq	%rax, %rbx
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_mlx5_fc_pool_alloc_new_bulk
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_ERR_CAST
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_mlx5_fc_bulk_acquire_fc
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_list_add
LBB0_6:
	decl	8(%r15)
	incl	4(%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx5_fc_pool_acquire_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mlx5_fc_pool_acquire_counter
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mlx5_fc_pool_acquire_counter:          ; @mlx5_fc_pool_acquire_counter
	.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	x19, x0
	bl	_mutex_lock
	add	x20, x19, #12
	add	x1, x19, #20
	mov	x0, x20
	mov	w2, #0
	bl	_mlx5_fc_pool_acquire_from_list
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #16
	mov	x1, x20
	mov	w2, #1
	bl	_mlx5_fc_pool_acquire_from_list
	mov	x21, x0
LBB0_2:
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mlx5_fc_pool_alloc_new_bulk
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_ERR_CAST
	mov	x21, x0
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_mlx5_fc_bulk_acquire_fc
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	bl	_list_add
LBB0_6:
	ldur	d0, [x19, #4]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx5_fc_pool_acquire_counter
.subsections_via_symbols
