	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_tx                        ## -- Begin function mt76_tx
	.p2align	4, 0x90
_mt76_tx:                               ## @mt76_tx
	.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	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rcx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	movq	8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %r13d
	movq	_MT_TXQ_PSD@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r13d
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MT_TXQ_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_set_queue_mapping
LBB0_2:
	movq	_MT_WCID_TX_INFO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movl	(%r12), %ecx
	movl	4(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	_ieee80211_get_tx_rates
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
LBB0_5:
	movl	(%r15), %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_IEEE80211_QOS_CTL_TID_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rsi
	callq	_mt76_check_agg_ssn
LBB0_8:
	movq	16(%r14), %rax
	movslq	%r13d, %r15
	movq	(%rax,%r15,8), %r12
	leaq	12(%r12), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	8(%r14), %rax
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	*8(%rax)
	movq	8(%r14), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
	movl	4(%r12), %eax
	addl	$-8, %eax
	cmpl	%eax, (%r12)
	jle	LBB0_11
## %bb.9:
	cmpl	$0, 8(%r12)
	jne	LBB0_11
## %bb.10:
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ieee80211_stop_queue
	movl	$1, 8(%r12)
LBB0_11:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TXQ_PSD,4,2                 ## @MT_TXQ_PSD
	.comm	_MT_TXQ_BE,4,2                  ## @MT_TXQ_BE
	.comm	_MT_WCID_TX_INFO_SET,4,2        ## @MT_WCID_TX_INFO_SET
	.comm	_IEEE80211_QOS_CTL_TID_MASK,8,3 ## @IEEE80211_QOS_CTL_TID_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_tx                        ; -- Begin function mt76_tx
	.p2align	2
_mt76_tx:                               ; @mt76_tx
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x3
	bl	_IEEE80211_SKB_CB
	mov	x24, x0
	ldr	x25, [x19, #8]
	mov	x0, x19
	bl	_skb_get_queue_mapping
	mov	x23, x0
Lloh0:
	adrp	x8, _MT_TXQ_PSD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TXQ_PSD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, ge
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MT_TXQ_BE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TXQ_BE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_skb_set_queue_mapping
LBB0_2:
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _MT_WCID_TX_INFO_SET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT_WCID_TX_INFO_SET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	cbnz	x21, LBB0_5
	b	LBB0_8
LBB0_4:
	ldp	w3, w0, [x24]
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_ieee80211_get_tx_rates
	cbz	x21, LBB0_8
LBB0_5:
	ldr	w0, [x25]
	bl	_ieee80211_is_data_qos
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _IEEE80211_QOS_CTL_TID_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_TID_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	and	x8, x9, x8
	ldr	x9, [x21]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x0, [x8]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x1, x19
	bl	_mt76_check_agg_ssn
LBB0_8:
	ldr	x8, [x20, #16]
	ldr	x25, [x8, w23, sxtw #3]
	add	x24, x25, #12
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	blr	x8
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x25
	blr	x8
	ldp	w8, w9, [x25]
	sub	w9, w9, #8
	cmp	w8, w9
	b.le	LBB0_11
; %bb.9:
	ldr	w8, [x25, #8]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_skb_get_queue_mapping
	mov	x1, x0
	mov	x0, x20
	bl	_ieee80211_stop_queue
	mov	w8, #1
	str	w8, [x25, #8]
LBB0_11:
	mov	x0, x24
	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
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TXQ_PSD,4,2                 ; @MT_TXQ_PSD
	.comm	_MT_TXQ_BE,4,2                  ; @MT_TXQ_BE
	.comm	_MT_WCID_TX_INFO_SET,4,2        ; @MT_WCID_TX_INFO_SET
	.comm	_IEEE80211_QOS_CTL_TID_MASK,8,3 ; @IEEE80211_QOS_CTL_TID_MASK
.subsections_via_symbols
