	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_unreserve_agg_queue
_iwl_mvm_unreserve_agg_queue:           ## @iwl_mvm_unreserve_agg_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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdx), %r15
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	_IWL_MVM_QUEUE_RESERVED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_IWL_MVM_QUEUE_FREE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%r15,8)
	movq	_IWL_MVM_INVALID_QUEUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_QUEUE_RESERVED,8,3     ## @IWL_MVM_QUEUE_RESERVED
	.comm	_IWL_MVM_QUEUE_FREE,8,3         ## @IWL_MVM_QUEUE_FREE
	.comm	_IWL_MVM_INVALID_QUEUE,8,3      ## @IWL_MVM_INVALID_QUEUE
	.no_dead_strip	_iwl_mvm_unreserve_agg_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_unreserve_agg_queue
_iwl_mvm_unreserve_agg_queue:           ; @iwl_mvm_unreserve_agg_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	x19, x2
	mov	x20, x0
	ldr	x21, [x2]
	add	x0, x0, #8
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_iwl_mvm_has_new_tx_api
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x8, x21, lsl #3]
Lloh0:
	adrp	x10, _IWL_MVM_QUEUE_RESERVED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IWL_MVM_QUEUE_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _IWL_MVM_QUEUE_FREE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_MVM_QUEUE_FREE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x9, [x8, x21, lsl #3]
Lloh6:
	adrp	x8, _IWL_MVM_INVALID_QUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_MVM_INVALID_QUEUE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_QUEUE_RESERVED,8,3     ; @IWL_MVM_QUEUE_RESERVED
	.comm	_IWL_MVM_QUEUE_FREE,8,3         ; @IWL_MVM_QUEUE_FREE
	.comm	_IWL_MVM_INVALID_QUEUE,8,3      ; @IWL_MVM_INVALID_QUEUE
	.no_dead_strip	_iwl_mvm_unreserve_agg_queue
.subsections_via_symbols
