	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_alloc_srq_idx             ## -- Begin function c4iw_alloc_srq_idx
	.p2align	4, 0x90
_c4iw_alloc_srq_idx:                    ## @c4iw_alloc_srq_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$32, %rdi
	callq	_c4iw_id_alloc
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	$-1, %r14d
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rbx)
	cmpq	16(%rbx), %rcx
	jl	LBB0_4
## %bb.3:
	movq	%rax, 16(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_5
LBB0_1:
	incl	24(%rbx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_alloc_srq_idx             ; -- Begin function c4iw_alloc_srq_idx
	.p2align	2
_c4iw_alloc_srq_idx:                    ; @c4iw_alloc_srq_idx
	.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
	add	x0, x0, #32
	bl	_c4iw_id_alloc
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
	cmn	w20, #1
	b.eq	LBB0_4
; %bb.1:
	ldp	x9, x10, [x19, #8]
	add	x8, x9, #1
	str	x8, [x19, #8]
	cmp	x9, x10
	b.lt	LBB0_3
; %bb.2:
	str	x8, [x19, #16]
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
