	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_txrx_tx_unref           ## -- Begin function ath10k_txrx_tx_unref
	.p2align	4, 0x90
_ath10k_txrx_tx_unref:                  ## @ath10k_txrx_tx_unref
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	16(%rbx), %r15
	movq	_ATH10K_DBG_HTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rcx
	movq	8(%r12), %r8
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ath10k_dbg
	movq	(%r12), %rdx
	cmpq	(%r14), %rdx
	jge	LBB0_1
## %bb.3:
	leaq	24(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	leaq	32(%r14), %rdi
	movq	(%r12), %rsi
	callq	_idr_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ATH10K_SKB_CB
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rax
	decl	(%rax)
LBB0_7:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_ath10k_htt_tx_free_msdu_id
	movq	%r14, %rdi
	callq	_ath10k_htt_tx_dec_pending
	cmpq	$0, 8(%r14)
	jne	LBB0_9
## %bb.8:
	leaq	28(%r14), %rdi
	callq	_wake_up
LBB0_9:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	testq	%r15, %r15
	je	LBB0_13
## %bb.10:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.12:
	movl	(%r15), %esi
	xorl	%ecx, %ecx
	callq	_ieee80211_sta_register_airtime
LBB0_13:
	movq	8(%rbx), %rax
	movq	_ATH10K_DEV_TYPE_HL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_single
LBB0_15:
	movq	16(%r14), %rdi
	movq	%r15, %rsi
	callq	_ath10k_report_offchan_tx
	movq	%r15, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r13
	leaq	8(%rax), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_trace_ath10k_txrx_tx_unref
	movl	(%r13), %eax
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_17
## %bb.16:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
LBB0_17:
	movq	8(%r12), %rcx
	movq	_HTT_TX_COMPL_STATE_NOACK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_19
## %bb.18:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	notl	%esi
	andl	%esi, %eax
	movl	%eax, (%r13)
LBB0_19:
	movq	_HTT_TX_COMPL_STATE_ACK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_22
## %bb.20:
	testl	%eax, (%rdx)
	je	LBB0_22
## %bb.21:
	movq	_IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPCREL(%rip), %rdi
	orl	(%rdi), %eax
	movl	%eax, (%r13)
LBB0_22:
	movq	_HTT_TX_COMPL_STATE_DISCARD@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_27
## %bb.23:
	movl	(%rdx), %edx
	andl	%eax, %edx
	jne	LBB0_24
## %bb.25:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rdx
	jmp	LBB0_26
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ath10k_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ath10k_warn
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_31
LBB0_24:
	movq	_IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPCREL(%rip), %rdx
LBB0_26:
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r13)
LBB0_27:
	cmpq	%rsi, %rcx
	jne	LBB0_30
## %bb.28:
	movq	16(%r12), %rax
	movq	_ATH10K_INVALID_RSSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_30
## %bb.29:
	movq	_ATH10K_DEFAULT_NOISE_FLOOR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 8(%r13)
	movl	$1, 16(%r13)
LBB0_30:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_ieee80211_tx_status
	xorl	%eax, %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_HTT,4,2             ## @ATH10K_DBG_HTT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htt tx completion msdu_id %u status %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"warning: msdu_id %d too big, ignoring\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"received tx completion for invalid msdu_id: %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ATH10K_DEV_TYPE_HL,8,3         ## @ATH10K_DEV_TYPE_HL
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_HTT_TX_COMPL_STATE_NOACK,8,3   ## @HTT_TX_COMPL_STATE_NOACK
	.comm	_HTT_TX_COMPL_STATE_ACK,8,3     ## @HTT_TX_COMPL_STATE_ACK
	.comm	_IEEE80211_TX_STAT_NOACK_TRANSMITTED,4,2 ## @IEEE80211_TX_STAT_NOACK_TRANSMITTED
	.comm	_HTT_TX_COMPL_STATE_DISCARD,8,3 ## @HTT_TX_COMPL_STATE_DISCARD
	.comm	_ATH10K_INVALID_RSSI,8,3        ## @ATH10K_INVALID_RSSI
	.comm	_ATH10K_DEFAULT_NOISE_FLOOR,8,3 ## @ATH10K_DEFAULT_NOISE_FLOOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_txrx_tx_unref           ; -- Begin function ath10k_txrx_tx_unref
	.p2align	2
_ath10k_txrx_tx_unref:                  ; @ath10k_txrx_tx_unref
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	x23, [x22, #16]
Lloh0:
	adrp	x8, _ATH10K_DBG_HTT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_HTT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	x3, x4, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_ath10k_dbg
	ldr	x2, [x20]
	ldr	x8, [x19]
	cmp	x2, x8
	b.ge	LBB0_25
; %bb.1:
	add	x25, x19, #24
	mov	x0, x25
	bl	_spin_lock_bh
	add	x0, x19, #32
	ldr	x1, [x20]
	bl	_idr_find
	cbz	x0, LBB0_26
; %bb.2:
	mov	x21, x0
	bl	_ATH10K_SKB_CB
	mov	x24, x0
	ldr	x26, [x0, #16]
	cbz	x26, LBB0_4
; %bb.3:
	ldr	x8, [x26, #16]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_ath10k_htt_tx_free_msdu_id
	mov	x0, x19
	bl	_ath10k_htt_tx_dec_pending
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_6
; %bb.5:
	add	x0, x19, #28
	bl	_wake_up
LBB0_6:
	mov	x0, x25
	bl	_spin_unlock_bh
	cbz	x26, LBB0_10
; %bb.7:
	ldr	x0, [x26, #8]
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x2, [x24, #8]
	cbz	x2, LBB0_10
; %bb.9:
	ldr	w1, [x26]
	mov	w3, #0
	bl	_ieee80211_sta_register_airtime
LBB0_10:
	ldr	x8, [x22, #8]
Lloh5:
	adrp	x9, _ATH10K_DEV_TYPE_HL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATH10K_DEV_TYPE_HL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x24]
	ldr	w2, [x21]
Lloh8:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x23
	bl	_dma_unmap_single
LBB0_12:
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_ath10k_report_offchan_tx
	mov	x0, x21
	bl	_IEEE80211_SKB_CB
	mov	x23, x0
	add	x0, x0, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x1, [x20]
	mov	x0, x22
	bl	_trace_ath10k_txrx_tx_unref
	ldr	w8, [x23]
Lloh11:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
	ldr	w11, [x9]
Lloh13:
	adrp	x10, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
	tst	w11, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	w11, [x10]
	orr	w8, w11, w8
	str	w8, [x23]
LBB0_14:
	ldr	x11, [x20, #8]
Lloh15:
	adrp	x12, _HTT_TX_COMPL_STATE_NOACK@GOTPAGE
Lloh16:
	ldr	x12, [x12, _HTT_TX_COMPL_STATE_NOACK@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_16
; %bb.15:
	ldr	w12, [x10]
	bic	w8, w8, w12
	str	w8, [x23]
LBB0_16:
Lloh18:
	adrp	x12, _HTT_TX_COMPL_STATE_ACK@GOTPAGE
Lloh19:
	ldr	x12, [x12, _HTT_TX_COMPL_STATE_ACK@GOTPAGEOFF]
Lloh20:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_19
; %bb.17:
	ldr	w13, [x9]
	tst	w13, w8
	b.eq	LBB0_19
; %bb.18:
Lloh21:
	adrp	x13, _IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPAGE
Lloh22:
	ldr	x13, [x13, _IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPAGEOFF]
Lloh23:
	ldr	w13, [x13]
	orr	w8, w13, w8
	str	w8, [x23]
LBB0_19:
Lloh24:
	adrp	x13, _HTT_TX_COMPL_STATE_DISCARD@GOTPAGE
Lloh25:
	ldr	x13, [x13, _HTT_TX_COMPL_STATE_DISCARD@GOTPAGEOFF]
Lloh26:
	ldr	x13, [x13]
	cmp	x11, x13
	b.ne	LBB0_21
; %bb.20:
Lloh27:
	adrp	x13, _IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPAGE
Lloh28:
	ldr	x13, [x13, _IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPAGEOFF]
	ldr	w9, [x9]
	tst	w9, w8
	csel	x9, x10, x13, eq
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x23]
LBB0_21:
	cmp	x11, x12
	b.ne	LBB0_24
; %bb.22:
	ldr	x8, [x20, #16]
Lloh29:
	adrp	x9, _ATH10K_INVALID_RSSI@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ATH10K_INVALID_RSSI@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.23:
Lloh32:
	adrp	x9, _ATH10K_DEFAULT_NOISE_FLOOR@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ATH10K_DEFAULT_NOISE_FLOOR@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x23, #8]
	mov	w8, #1
	str	w8, [x23, #16]
LBB0_24:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ieee80211_tx_status
	mov	w0, #0
	b	LBB0_28
LBB0_25:
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_ath10k_warn
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
	ldr	x2, [x20]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_ath10k_warn
	mov	x0, x25
	bl	_spin_unlock_bh
Lloh41:
	adrp	x8, _ENOENT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_HTT,4,2             ; @ATH10K_DBG_HTT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htt tx completion msdu_id %u status %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"warning: msdu_id %d too big, ignoring\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"received tx completion for invalid msdu_id: %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ATH10K_DEV_TYPE_HL,8,3         ; @ATH10K_DEV_TYPE_HL
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_HTT_TX_COMPL_STATE_NOACK,8,3   ; @HTT_TX_COMPL_STATE_NOACK
	.comm	_HTT_TX_COMPL_STATE_ACK,8,3     ; @HTT_TX_COMPL_STATE_ACK
	.comm	_IEEE80211_TX_STAT_NOACK_TRANSMITTED,4,2 ; @IEEE80211_TX_STAT_NOACK_TRANSMITTED
	.comm	_HTT_TX_COMPL_STATE_DISCARD,8,3 ; @HTT_TX_COMPL_STATE_DISCARD
	.comm	_ATH10K_INVALID_RSSI,8,3        ; @ATH10K_INVALID_RSSI
	.comm	_ATH10K_DEFAULT_NOISE_FLOOR,8,3 ; @ATH10K_DEFAULT_NOISE_FLOOR
.subsections_via_symbols
