	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_release_buffered_frames   ## -- Begin function mt76_release_buffered_frames
	.p2align	4, 0x90
_mt76_release_buffered_frames:          ## @mt76_release_buffered_frames
	.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
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	8(%r12), %rax
	movq	_MT_TXQ_PSD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.2:
	movl	%r14d, %ecx
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movl	%ecx, %eax
	sarl	%eax
	cmpl	$1, %ecx
	movl	%eax, %ecx
	jbe	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testb	$1, %cl
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %rax
	movq	(%rax), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %r15
	testl	%ebx, %ebx
	je	LBB0_15
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_mt76_txq_dequeue
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %r14
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mt76_check_agg_ssn
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	decl	%ebx
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_mt76_queue_ps_skb
	jmp	LBB0_14
LBB0_8:
	movq	%r15, %r14
	testq	%r15, %r15
	je	LBB0_9
LBB0_15:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_mt76_queue_ps_skb
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	*(%rax)
	jmp	LBB0_16
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ieee80211_sta_eosp
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	%rbx, %rdi
	addq	$40, %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,8,3                 ## @MT_TXQ_PSD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_release_buffered_frames   ; -- Begin function mt76_release_buffered_frames
	.p2align	2
_mt76_release_buffered_frames:          ; @mt76_release_buffered_frames
	.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	x22, x3
	mov	x23, x2
	mov	x21, x1
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _MT_TXQ_PSD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MT_TXQ_PSD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x19, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_spin_lock_bh
	cbz	w23, LBB0_14
; %bb.1:
	cbz	w22, LBB0_14
; %bb.2:
	mov	x27, #0
	mov	x24, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	asr	w8, w23, #1
	cmp	w23, #1
	mov	x23, x8
	b.ls	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	tbz	w23, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x25, [x8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x24, x26
	cbz	w22, LBB0_13
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x25
	mov	w2, #1
	bl	_mt76_txq_dequeue
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x26, x0
	ldr	x8, [x25]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x25
	mov	x1, x26
	bl	_mt76_check_agg_ssn
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	w22, w22, #1
	cbz	x24, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	w3, #0
	bl	_mt76_queue_ps_skb
	b	LBB0_6
LBB0_12:
	mov	x26, x24
	cbz	x24, LBB0_14
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	mov	w3, #1
	bl	_mt76_queue_ps_skb
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	b	LBB0_15
LBB0_14:
	mov	x0, x21
	bl	_ieee80211_sta_eosp
LBB0_15:
	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	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TXQ_PSD,8,3                 ; @MT_TXQ_PSD
.subsections_via_symbols
