	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_tx_process
_ath9k_htc_tx_process:                  ## @ath9k_htc_tx_process
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	callq	_strip_drv_header
	testl	%eax, %eax
	js	LBB0_25
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_HTC_SKB_CB
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testq	%r13, %r13
	je	LBB0_19
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.3:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.4:
	movl	(%r13), %eax
	movq	_ATH9K_HTC_TXSTAT_ACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rdx
	movl	(%r12), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, (%r12)
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_IEEE80211_TX_STAT_AMPDU@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r12)
LBB0_7:
	movq	_ATH9K_HTC_TXSTAT_FILT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	_IEEE80211_TX_STAT_TX_FILTERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r12)
LBB0_9:
	movq	_ATH9K_HTC_TXSTAT_RTC_CTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_11:
	movl	$1, (%rbx)
	movl	4(%r13), %edi
	movq	_ATH9K_HTC_TXSTAT_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MS
	movl	%eax, 4(%rbx)
	movl	(%r13), %ecx
	movq	_ATH9K_HTC_TXSTAT_MCS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_16
## %bb.12:
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rdx
	movl	8(%rbx), %eax
	orl	(%rdx), %eax
	movl	%eax, 8(%rbx)
	movq	_ATH9K_HTC_TXSTAT_CW40@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 8(%rbx)
LBB0_14:
	movq	_ATH9K_HTC_TXSTAT_SGI@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_18
## %bb.15:
	movq	_IEEE80211_TX_RC_SHORT_GI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_18
LBB0_25:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb_any              ## TAILCALL
LBB0_16:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.17:
	addl	$4, %eax
	movl	%eax, 4(%rbx)
LBB0_18:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_ath9k_htc_check_tx_aggr
LBB0_19:
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	8(%r15), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 8(%r15)
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	$0, 8(%r15)
LBB0_21:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ath9k_htc_tx_clear_slot
	movq	%r14, %rdi
	callq	_ieee80211_get_hdrlen_from_skb
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ebx
	andl	$3, %ebx
	je	LBB0_24
## %bb.22:
	leal	(%rbx,%rax), %ecx
	cmpl	%ecx, (%r14)
	jle	LBB0_24
## %bb.23:
	movl	4(%r14), %esi
	leal	(%rsi,%rbx), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	callq	_memmove
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_pull
LBB0_24:
	movq	(%r15), %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_tx_status            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_HTC_TXSTAT_ACK,4,2       ## @ATH9K_HTC_TXSTAT_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ## @IEEE80211_TX_STAT_AMPDU
	.comm	_ATH9K_HTC_TXSTAT_FILT,4,2      ## @ATH9K_HTC_TXSTAT_FILT
	.comm	_IEEE80211_TX_STAT_TX_FILTERED,4,2 ## @IEEE80211_TX_STAT_TX_FILTERED
	.comm	_ATH9K_HTC_TXSTAT_RTC_CTS,4,2   ## @ATH9K_HTC_TXSTAT_RTC_CTS
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ## @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_ATH9K_HTC_TXSTAT_RATE,4,2      ## @ATH9K_HTC_TXSTAT_RATE
	.comm	_ATH9K_HTC_TXSTAT_MCS,4,2       ## @ATH9K_HTC_TXSTAT_MCS
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_ATH9K_HTC_TXSTAT_CW40,4,2      ## @ATH9K_HTC_TXSTAT_CW40
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_ATH9K_HTC_TXSTAT_SGI,4,2       ## @ATH9K_HTC_TXSTAT_SGI
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ## @IEEE80211_TX_RC_SHORT_GI
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_ath9k_htc_tx_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_tx_process
_ath9k_htc_tx_process:                  ; @ath9k_htc_tx_process
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x26, [x0]
	bl	_strip_drv_header
	tbnz	w0, #31, LBB0_16
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_HTC_SKB_CB
	ldr	w27, [x0]
	mov	x0, x19
	bl	_IEEE80211_SKB_CB
	mov	x24, x0
	ldr	x22, [x0, #16]
	ldr	x25, [x0, #8]!
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbz	x23, LBB0_20
; %bb.2:
	cbz	w27, LBB0_20
; %bb.3:
	cbz	x22, LBB0_20
; %bb.4:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _ATH9K_HTC_TXSTAT_ACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH9K_HTC_TXSTAT_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh3:
	adrp	x9, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x24]
	orr	w9, w10, w9
	str	w9, [x24]
Lloh6:
	adrp	x10, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
Lloh9:
	adrp	x10, _IEEE80211_TX_STAT_AMPDU@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_TX_STAT_AMPDU@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x24]
LBB0_7:
Lloh12:
	adrp	x9, _ATH9K_HTC_TXSTAT_FILT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATH9K_HTC_TXSTAT_FILT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh15:
	adrp	x9, _IEEE80211_TX_STAT_TX_FILTERED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_TX_STAT_TX_FILTERED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x24]
	orr	w9, w10, w9
	str	w9, [x24]
LBB0_9:
Lloh18:
	adrp	x9, _ATH9K_HTC_TXSTAT_RTC_CTS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ATH9K_HTC_TXSTAT_RTC_CTS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x25, #8]
	orr	w8, w9, w8
	str	w8, [x25, #8]
LBB0_11:
	mov	w8, #1
	str	w8, [x25]
	ldr	w0, [x23, #4]
Lloh24:
	adrp	x8, _ATH9K_HTC_TXSTAT_RATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ATH9K_HTC_TXSTAT_RATE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_MS
	str	w0, [x25, #4]
	ldr	w8, [x23]
Lloh27:
	adrp	x9, _ATH9K_HTC_TXSTAT_MCS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ATH9K_HTC_TXSTAT_MCS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.12:
Lloh30:
	adrp	x9, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	ldr	w10, [x25, #8]
	orr	w9, w10, w9
	str	w9, [x25, #8]
Lloh33:
	adrp	x10, _ATH9K_HTC_TXSTAT_CW40@GOTPAGE
Lloh34:
	ldr	x10, [x10, _ATH9K_HTC_TXSTAT_CW40@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_14
; %bb.13:
Lloh36:
	adrp	x10, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGE
Lloh37:
	ldr	x10, [x10, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x25, #8]
LBB0_14:
Lloh39:
	adrp	x10, _ATH9K_HTC_TXSTAT_SGI@GOTPAGE
Lloh40:
	ldr	x10, [x10, _ATH9K_HTC_TXSTAT_SGI@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_19
; %bb.15:
Lloh42:
	adrp	x8, _IEEE80211_TX_RC_SHORT_GI@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IEEE80211_TX_RC_SHORT_GI@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x25, #8]
	b	LBB0_19
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dev_kfree_skb_any
LBB0_17:
	ldr	x8, [x26]
	ldr	x8, [x8]
Lloh45:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh46:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	add	w8, w0, #4
	str	w8, [x25, #4]
LBB0_19:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_ath9k_htc_check_tx_aggr
LBB0_20:
	add	x22, x20, #16
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	subs	x8, x8, #1
	str	x8, [x20, #8]
	cset	w0, lt
	bl	_WARN_ON
	cbz	x0, LBB0_22
; %bb.21:
	str	xzr, [x20, #8]
LBB0_22:
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	x0, x20
	mov	x1, x21
	bl	_ath9k_htc_tx_clear_slot
	mov	x0, x19
	bl	_ieee80211_get_hdrlen_from_skb
	ands	w21, w0, #0x3
	b.eq	LBB0_25
; %bb.23:
	mov	x2, x0
	ldr	w8, [x19]
	add	w9, w21, w0
	cmp	w8, w9
	b.le	LBB0_25
; %bb.24:
	ldr	w1, [x19, #4]
	add	w0, w1, w21
	bl	_memmove
	mov	x0, x19
	mov	x1, x21
	bl	_skb_pull
LBB0_25:
	ldr	x0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ieee80211_tx_status
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_HTC_TXSTAT_ACK,4,2       ; @ATH9K_HTC_TXSTAT_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ; @IEEE80211_TX_STAT_AMPDU
	.comm	_ATH9K_HTC_TXSTAT_FILT,4,2      ; @ATH9K_HTC_TXSTAT_FILT
	.comm	_IEEE80211_TX_STAT_TX_FILTERED,4,2 ; @IEEE80211_TX_STAT_TX_FILTERED
	.comm	_ATH9K_HTC_TXSTAT_RTC_CTS,4,2   ; @ATH9K_HTC_TXSTAT_RTC_CTS
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ; @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_ATH9K_HTC_TXSTAT_RATE,4,2      ; @ATH9K_HTC_TXSTAT_RATE
	.comm	_ATH9K_HTC_TXSTAT_MCS,4,2       ; @ATH9K_HTC_TXSTAT_MCS
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_ATH9K_HTC_TXSTAT_CW40,4,2      ; @ATH9K_HTC_TXSTAT_CW40
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_ATH9K_HTC_TXSTAT_SGI,4,2       ; @ATH9K_HTC_TXSTAT_SGI
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ; @IEEE80211_TX_RC_SHORT_GI
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_ath9k_htc_tx_process
.subsections_via_symbols
