	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76u_tx_tasklet
_mt76u_tx_tasklet:                      ## @mt76u_tx_tasklet
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_23
## %bb.1:
	movq	%rdi, %rbx
	leaq	12(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	24(%rbx), %rax
	movq	%r13, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %r12
	cmpq	$0, (%r12)
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	xorl	%edx, %edx
	divq	%rcx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%rdx, 8(%r12)
	incq	%r15
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	-96(%rbp), %rdx
	callq	*(%rax)
	cmpq	%r15, (%r12)
	jle	LBB0_12
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rax
	movq	32(%r12), %rcx
	cmpl	$0, (%rcx,%rax,8)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$0, 4(%rcx,%rax,8)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	$0, 4(%rcx,%rax,8)
	incq	%r14
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, -96(%rbp)
	movl	$0, (%rcx,%rax,8)
	incq	%rax
	movslq	16(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	24(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subl	%r14d, (%rax,%rcx)
	movq	(%r12), %rax
	movq	%rax, %rcx
	subq	%r15, %rcx
	movq	%rcx, (%r12)
	cmpl	$0, 20(%r12)
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	16(%r12), %rdx
	addq	$-8, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 20(%r12)
	movb	$1, %r12b
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r15, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_wake_up
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_mt76_txq_schedule
	movq	_MT76_READING_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	%r12b, %r12b
	je	LBB0_22
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %r14d
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movl	%r14d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_ieee80211_queue_delayed_work
	testb	%r12b, %r12b
	je	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_ieee80211_wake_queue
	jmp	LBB0_22
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_MT76_READING_STATS,4,2         ## @MT76_READING_STATS
	.no_dead_strip	_mt76u_tx_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76u_tx_tasklet
_mt76u_tx_tasklet:                      ; @mt76u_tx_tasklet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _IEEE80211_NUM_ACS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_NUM_ACS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	add	x21, x0, #12
	add	x22, x0, #8
	add	x8, x0, #4
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh3:
	adrp	x26, _MT76_READING_STATS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MT76_READING_STATS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
Lloh5:
	adrp	x8, _IEEE80211_NUM_ACS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_NUM_ACS@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_19
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x23, [x19, #24]
	add	x8, x23, x20, lsl #4
	ldr	x28, [x8, #8]
	ldr	x8, [x28]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	mov	x27, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x10, [x10, x8, lsl #3]
	str	x10, [sp, #8]
	str	wzr, [x9]
	add	x8, x8, #1
	ldrsw	x9, [x28, #16]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x28, #8]
	add	x27, x27, #1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x28]
	cmp	x8, x27
	b.le	LBB0_10
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x28, #32]
	ldr	x8, [x28, #8]
	add	x9, x10, x8, lsl #3
	ldr	w11, [x9]
	cbz	w11, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x11, x9
	ldr	w12, [x11, #4]!
	cbz	w12, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	str	wzr, [x11]
	add	x25, x25, #1
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	mov	x25, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x28, #24
	mov	x0, x24
	bl	_spin_lock_bh
	lsl	x8, x20, #4
	ldr	w9, [x23, x8]
	sub	w9, w9, w25
	str	w9, [x23, x8]
	ldr	x8, [x28]
	sub	x9, x8, x27
	str	x9, [x28]
	ldr	w10, [x28, #20]
	cbz	w10, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x10, [x28, #16]
	sub	x10, x10, #8
	cmp	x9, x10
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x28, #20]
	mov	w23, #1
	cmp	x8, x27
	b.eq	LBB0_14
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
	cmp	x8, x27
	b.ne	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_wake_up
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_spin_unlock_bh
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_txq_schedule
	ldr	w0, [x26]
	mov	x1, x22
	bl	_test_and_set_bit
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w23, LBB0_2
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x19]
	mov	w0, #10
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x24
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_ieee80211_queue_delayed_work
	cbz	w23, LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ieee80211_wake_queue
	b	LBB0_2
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_MT76_READING_STATS,4,2         ; @MT76_READING_STATS
	.no_dead_strip	_mt76u_tx_tasklet
.subsections_via_symbols
