	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmi_process_mgmt_tx_comp
_wmi_process_mgmt_tx_comp:              ## @wmi_process_mgmt_tx_comp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_spin_lock_bh
	leaq	12(%r13), %r15
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_idr_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %r12
	movl	8(%r13), %edi
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	%r12, %rdi
	callq	_IEEE80211_SKB_CB
	cmpq	$0, 16(%r14)
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_4
## %bb.3:
	notl	%ecx
	andl	%ecx, 16(%rax)
	jmp	LBB0_5
LBB0_1:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_ath10k_warn
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	orl	%ecx, 16(%rax)
	movq	_ATH10K_DEFAULT_NOISE_FLOOR@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rdx
	addq	(%rcx), %rdx
	movq	%rdx, 8(%rax)
	movl	$1, (%rax)
LBB0_5:
	movl	4(%r13), %edi
	movq	%r12, %rsi
	callq	_ieee80211_tx_status_irqsafe
	xorl	%ebx, %ebx
LBB0_6:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_idr_remove
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received mgmt tx completion for invalid msdu_id: %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_ATH10K_DEFAULT_NOISE_FLOOR,8,3 ## @ATH10K_DEFAULT_NOISE_FLOOR
	.no_dead_strip	_wmi_process_mgmt_tx_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmi_process_mgmt_tx_comp
_wmi_process_mgmt_tx_comp:              ; @wmi_process_mgmt_tx_comp
	.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, x1
	mov	x19, x0
	bl	_spin_lock_bh
	add	x21, x19, #12
	ldr	w1, [x20]
	mov	x0, x21
	bl	_idr_find
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x22, [x0, #8]
	ldr	w8, [x19, #8]
	ldr	w1, [x0]
	ldr	w2, [x22]
Lloh0:
	adrp	x9, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x8
	bl	_dma_unmap_single
	mov	x0, x22
	bl	_IEEE80211_SKB_CB
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	w9, [x0, #16]
	bic	w8, w9, w8
	str	w8, [x0, #16]
	b	LBB0_5
LBB0_3:
	ldr	w2, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_4:
	ldr	w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x0, #16]
Lloh11:
	adrp	x8, _ATH10K_DEFAULT_NOISE_FLOOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH10K_DEFAULT_NOISE_FLOOR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	add	x8, x9, x8
	str	x8, [x0, #8]
	mov	w8, #1
	str	w8, [x0]
LBB0_5:
	ldr	w0, [x19, #4]
	mov	x1, x22
	bl	_ieee80211_tx_status_irqsafe
	mov	w22, #0
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_idr_remove
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received mgmt tx completion for invalid msdu_id: %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_ATH10K_DEFAULT_NOISE_FLOOR,8,3 ; @ATH10K_DEFAULT_NOISE_FLOOR
	.no_dead_strip	_wmi_process_mgmt_tx_comp
.subsections_via_symbols
