	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_rx_aggr_check_release
_mt76_rx_aggr_check_release:            ## @mt76_rx_aggr_check_release
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_mt76_rx_aggr_release_head
	movl	4(%r12), %ecx
	movl	8(%r12), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%edx, %r15d
	incl	%ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%r15d, %edx
	je	LBB0_9
## %bb.2:
	movl	(%r12), %r13d
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.3:
	movl	%edx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%r13d
	movq	(%rax), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REORDER_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mt76_rx_aggr_release_frames
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	8(%r12)
	cmpl	%r15d, %edx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %ebx
	testl	%r13d, %r13d
	jne	LBB0_4
LBB0_9:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_rx_aggr_release_head      ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_REORDER_TIMEOUT,8,3            ## @REORDER_TIMEOUT
	.no_dead_strip	_mt76_rx_aggr_check_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_rx_aggr_check_release
_mt76_rx_aggr_check_release:            ; @mt76_rx_aggr_check_release
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_mt76_rx_aggr_release_head
	ldp	w9, w8, [x20, #4]
	ldr	w21, [x20]
	sdiv	w10, w9, w8
	msub	w22, w10, w8, w9
	add	w9, w9, #1
	sdiv	w10, w9, w8
	msub	w23, w10, w8, w9
	cmp	w23, w22
	ccmp	w21, #0, #4, ne
	b.ne	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	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	_mt76_rx_aggr_release_head
LBB0_3:
	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
	ret
LBB0_4:
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
Lloh2:
	adrp	x25, _REORDER_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _REORDER_TIMEOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #1
	ldr	w9, [x20, #8]
	sdiv	w10, w8, w9
	msub	w23, w10, w9, w8
	cmp	w23, w22
	ccmp	w21, #0, #4, ne
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, w23, sxtw #3]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w21, w21, #1
	ldr	x26, [x8]
	ldr	w0, [x24]
	ldr	x8, [x26, #8]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_time_after
	cbz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x19
	bl	_mt76_rx_aggr_release_frames
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_REORDER_TIMEOUT,8,3            ; @REORDER_TIMEOUT
	.no_dead_strip	_mt76_rx_aggr_check_release
.subsections_via_symbols
