	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_detach              ## -- Begin function ath10k_wmi_detach
	.p2align	4, 0x90
_ath10k_wmi_detach:                     ## @ath10k_wmi_detach
	.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	%rdi, %rbx
	movq	_ATH10K_FW_FEATURE_MGMT_TX_BY_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	16(%rbx), %r15
	movq	_ath10k_wmi_mgmt_tx_clean_up_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_idr_for_each
	movq	%r15, %rdi
	callq	_idr_destroy
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_2:
	leaq	8(%rbx), %rdi
	callq	_cancel_work_sync
	movq	(%rbx), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb                  ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_FW_FEATURE_MGMT_TX_BY_REF,4,2 ## @ATH10K_FW_FEATURE_MGMT_TX_BY_REF
	.comm	_ath10k_wmi_mgmt_tx_clean_up_pending,4,2 ## @ath10k_wmi_mgmt_tx_clean_up_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_detach              ; -- Begin function ath10k_wmi_detach
	.p2align	2
_ath10k_wmi_detach:                     ; @ath10k_wmi_detach
	.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
Lloh0:
	adrp	x8, _ATH10K_FW_FEATURE_MGMT_TX_BY_REF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_FW_FEATURE_MGMT_TX_BY_REF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_bh
	add	x21, x19, #16
Lloh3:
	adrp	x8, _ath10k_wmi_mgmt_tx_clean_up_pending@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ath10k_wmi_mgmt_tx_clean_up_pending@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_idr_for_each
	mov	x0, x21
	bl	_idr_destroy
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_2:
	add	x0, x19, #8
	bl	_cancel_work_sync
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.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
	b	_dev_kfree_skb
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_FW_FEATURE_MGMT_TX_BY_REF,4,2 ; @ATH10K_FW_FEATURE_MGMT_TX_BY_REF
	.comm	_ath10k_wmi_mgmt_tx_clean_up_pending,4,2 ; @ath10k_wmi_mgmt_tx_clean_up_pending
.subsections_via_symbols
