	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_txq_send_burst
_mt76_txq_send_burst:                   ## @mt76_txq_send_burst
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_mtxq_to_txq
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mt76_txq_get_qid
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %r14
	movq	8(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_MT_WCID_FLAG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	$1, (%r12)
	xorl	%r12d, %r12d
LBB0_2:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mt76_txq_dequeue
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %r13
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movq	_MT_WCID_TX_INFO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	testl	%eax, (%r15)
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	8(%rbx), %rcx
	movq	%r13, %rdx
	movl	$1, %r8d
	callq	_ieee80211_get_tx_rates
LBB0_6:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	$3, %ecx
	movl	$16, %edx
	andl	(%rax), %r14d
	cmovel	%ecx, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_mt76_check_agg_ssn
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	*(%rax)
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.9:
	leaq	16(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$1, %r15d
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_MT76_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_mt76_txq_dequeue
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IEEE80211_SKB_CB
	movl	(%rax), %ecx
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	cmpl	%edx, %r14d
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rax), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_mt76_check_agg_ssn
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx), %r8d
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	*(%rax)
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r15d
	cmpl	%r15d, -52(%rbp)                ## 4-byte Folded Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_10
## %bb.19:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_26
LBB0_20:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_2
LBB0_21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	jmp	LBB0_25
LBB0_22:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %r12d
	jmp	LBB0_27
LBB0_23:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_2
LBB0_24:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_25:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movslq	(%rbx), %rax
	shlq	$4, %rax
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	%rsi, %rcx
	subq	%rax, %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	%r12d, %edx
	shlq	$4, %rdx
	movq	%rcx, 8(%rax,%rdx)
	movl	$1, (%rax,%rdx)
	incl	(%rsi)
	movl	%r15d, %r12d
	movq	%rdi, %rsi
LBB0_27:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_WCID_FLAG_PS,4,2            ## @MT_WCID_FLAG_PS
	.comm	_MT_WCID_TX_INFO_SET,4,2        ## @MT_WCID_TX_INFO_SET
	.comm	_IEEE80211_TX_CTL_RATE_CTRL_PROBE,4,2 ## @IEEE80211_TX_CTL_RATE_CTRL_PROBE
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.comm	_MT76_RESET,4,2                 ## @MT76_RESET
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_mt76_txq_send_burst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_txq_send_burst
_mt76_txq_send_burst:                   ; @mt76_txq_send_burst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_mtxq_to_txq
	mov	x24, x0
	bl	_mt76_txq_get_qid
	mov	x25, x0
	ldr	x26, [x23, #8]
	ldr	x21, [x20, #8]
Lloh0:
	adrp	x8, _MT_WCID_FLAG_PS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_WCID_FLAG_PS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x26, #4
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.1:
	mov	w27, #0
LBB0_2:
	mov	w8, #1
	str	w8, [x22]
LBB0_3:
	mov	x0, x27
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_mt76_txq_dequeue
	mov	x27, x0
	cbz	x0, LBB0_2
; %bb.5:
	stp	x22, x21, [sp, #8]              ; 16-byte Folded Spill
	mov	x0, x27
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	ldr	w8, [x26]
Lloh3:
	adrp	x9, _MT_WCID_TX_INFO_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT_WCID_TX_INFO_SET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	ldp	w1, w0, [x24]
	ldr	x3, [x21, #8]
	mov	x2, x27
	mov	w4, #1
	bl	_ieee80211_get_tx_rates
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	ldr	w21, [x21]
Lloh6:
	adrp	x8, _IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x27
	bl	_IEEE80211_SKB_CB
Lloh9:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
	ldr	w8, [x0]
Lloh11:
	ldr	w9, [x9]
	ands	w28, w9, w8
	mov	w8, #16
	mov	w9, #3
	csel	w8, w9, w8, eq
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	cbz	w28, LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x27
	bl	_mt76_check_agg_ssn
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	mov	x3, x26
	blr	x8
	mov	x27, x0
	tbnz	w0, #31, LBB0_3
; %bb.10:
	and	w8, w22, w21
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	add	x8, x19, #16
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	w22, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh12:
	adrp	x8, _MT76_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT76_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_test_bit
	cbnz	x0, LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_mt76_txq_dequeue
	cbz	x0, LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, x0
	bl	_IEEE80211_SKB_CB
	ldr	w8, [x0]
Lloh15:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w28, w9
	b.ne	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh18:
	adrp	x9, _IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x0, #8]
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	str	w9, [x8]
	cbz	w28, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_mt76_check_agg_ssn
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x21
	mov	x3, x26
	blr	x8
	mov	x27, x0
	tbnz	w0, #31, LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, w22
	b.ne	LBB0_11
; %bb.20:
	ldr	w22, [sp, #36]                  ; 4-byte Folded Reload
	b	LBB0_25
LBB0_21:
	mov	x0, x23
	mov	x1, x21
	bl	_skb_queue_tail
	b	LBB0_25
LBB0_22:
	mov	w22, #1
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	b	LBB0_26
LBB0_23:
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_3
LBB0_24:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_25:
	ldrsw	x8, [x19]
	sub	x8, x20, x8, lsl #4
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x1]
	add	x9, x9, w27, uxtw #4
	str	x8, [x9, #8]
	mov	w8, #1
	str	w8, [x9]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_26:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x27, x22
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_WCID_FLAG_PS,4,2            ; @MT_WCID_FLAG_PS
	.comm	_MT_WCID_TX_INFO_SET,4,2        ; @MT_WCID_TX_INFO_SET
	.comm	_IEEE80211_TX_CTL_RATE_CTRL_PROBE,4,2 ; @IEEE80211_TX_CTL_RATE_CTRL_PROBE
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.comm	_MT76_RESET,4,2                 ; @MT76_RESET
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_mt76_txq_send_burst
.subsections_via_symbols
