	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_find_free_queue
_iwl_mvm_find_free_queue:               ## @iwl_mvm_find_free_queue
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rdi, %r15
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	%r15, %rdi
	callq	_iwl_mvm_has_new_tx_api
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	cmpl	%r14d, %ebx
	jle	LBB0_2
LBB0_6:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rcx
	movq	_IWL_MVM_QUEUE_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	incl	%r14d
	shlq	$4, %rdx
	addq	%rdx, %rcx
	addq	$8, %rcx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	addq	$16, %rcx
	cmpl	%ebx, %r14d
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rcx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, (%rcx)
	jne	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_IWL_MVM_QUEUE_FREE,8,3         ## @IWL_MVM_QUEUE_FREE
	.no_dead_strip	_iwl_mvm_find_free_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_find_free_queue
_iwl_mvm_find_free_queue:               ; @iwl_mvm_find_free_queue
	.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, x3
	mov	x19, x2
	mov	x21, x0
	add	x0, x0, #8
	bl	_lockdep_assert_held
	mov	x0, x21
	bl	_iwl_mvm_has_new_tx_api
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	w19, w20
	b.le	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
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
	ret
LBB0_4:
	ldr	x10, [x21]
Lloh3:
	adrp	x8, _IWL_MVM_QUEUE_FREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_QUEUE_FREE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	w9, w20, #1
	add	x10, x10, w19, sxtw #4
	add	x10, x10, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w19, w19, #1
	add	x10, x10, #16
	cmp	w9, w19
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cbnz	x11, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x10]
	cmp	x11, x8
	b.ne	LBB0_5
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_IWL_MVM_QUEUE_FREE,8,3         ; @IWL_MVM_QUEUE_FREE
	.no_dead_strip	_iwl_mvm_find_free_queue
.subsections_via_symbols
