	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_txq_schedule_list
_mt76_txq_schedule_list:                ## @mt76_txq_schedule_list
	.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
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	%esi, %r14d
	shlq	$4, %r14
	movq	8(%rbx,%r14), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$3, (%rbx,%r14)
	jg	LBB0_15
## %bb.1:
	addq	%r14, %rbx
	leaq	4(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -48(%rbp)
	movl	$1, %eax
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%r13d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	movq	%r14, %rsi
	callq	_ieee80211_return_txq
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -48(%rbp)
	cmpl	$4, (%rbx)
	jge	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MT76_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_ieee80211_next_txq
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	24(%rax), %r15
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MT_WCID_FLAG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%r15)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_mtxq_to_txq
	movq	16(%rax), %rbx
	movq	8(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$0, (%r15)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %esi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_ieee80211_send_bar
	movq	%r13, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	callq	_spin_lock_bh
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	leaq	-48(%rbp), %rcx
	callq	_mt76_txq_send_burst
	movq	%rax, %r13
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	jmp	LBB0_13
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_15:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT76_RESET,4,2                 ## @MT76_RESET
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MT_WCID_FLAG_PS,4,2            ## @MT_WCID_FLAG_PS
	.no_dead_strip	_mt76_txq_schedule_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_txq_schedule_list
_mt76_txq_schedule_list:                ; @mt76_txq_schedule_list
	.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	x19, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	add	x21, x8, w1, uxtw #4
	ldr	x0, [x21, #8]
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	bl	_spin_lock_bh
	mov	w20, #0
	str	wzr, [sp, #44]
	ldr	w8, [x21]
	cmp	w8, #3
	b.gt	LBB0_15
; %bb.1:
	mov	w20, #0
	add	x8, x22, #4
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x24, _MT76_RESET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MT76_RESET@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MT_WCID_FLAG_PS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MT_WCID_FLAG_PS@GOTPAGEOFF]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	str	w8, [sp, #44]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, w27
	ldr	w0, [x22]
	cmp	w8, #0
	cset	w2, eq
	mov	x1, x25
	bl	_ieee80211_return_txq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [sp, #44]
	ldr	w8, [x21]
	cmp	w8, #4
	b.ge	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	bl	_test_bit
	cbnz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_ieee80211_next_txq
	cbz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	ldr	x26, [x0, #24]
	ldr	x1, [x26, #24]
	cbz	x1, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	bl	_test_bit
	cbnz	x0, LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	cbz	w8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_mtxq_to_txq
	mov	x28, x24
	ldp	x27, x24, [x0, #8]
	ldr	w8, [x26, #8]
	stp	w8, w20, [sp, #16]              ; 8-byte Folded Spill
	mov	x20, x19
	ldr	w19, [x0]
	str	wzr, [x26]
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	w1, [x24]
	mov	x24, x28
	mov	x0, x27
	mov	x2, x19
	mov	x19, x20
	ldp	w3, w20, [sp, #16]              ; 8-byte Folded Reload
	bl	_ieee80211_send_bar
	mov	x0, x21
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	bl	_spin_lock_bh
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x3, sp, #44
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	bl	_mt76_txq_send_burst
	mov	x27, x0
	add	x0, x26, #4
	bl	_skb_queue_empty
	cbnz	x0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #44]
	b	LBB0_3
LBB0_14:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_spin_unlock_bh
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MT76_RESET,4,2                 ; @MT76_RESET
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MT_WCID_FLAG_PS,4,2            ; @MT_WCID_FLAG_PS
	.no_dead_strip	_mt76_txq_schedule_list
.subsections_via_symbols
