	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aggr_process_recv_frm
_aggr_process_recv_frm:                 ## @aggr_process_recv_frm
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	24(%rdi), %r14
	movq	%rsi, %r15
	leaq	(%rsi,%rsi,4), %r13
	incl	16(%r12,%r13,4)
	shlq	$5, %r15
	leaq	(%r14,%r15), %r10
	cmpl	$0, 28(%r14,%r15)
	je	LBB0_1
## %bb.6:
	movl	%edx, %eax
	movq	%rsi, %r9
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%r10), %edx
	leaq	4(%r14,%r15), %rbx
	movl	4(%r14,%r15), %esi
	leal	(%rsi,%rdx), %ecx
	decl	%ecx
	movq	_ATH6KL_MAX_SEQ_NO@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	andl	%r8d, %ecx
	cmpl	%ecx, %edx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jge	LBB0_9
## %bb.7:
	cmpl	%eax, %edx
	jg	LBB0_13
## %bb.8:
	cmpl	%eax, %ecx
	jl	LBB0_13
LBB0_9:
	cmpl	%eax, %edx
	jle	LBB0_10
## %bb.11:
	cmpl	%ecx, %edx
	jle	LBB0_10
## %bb.12:
	cmpl	%eax, %ecx
	jge	LBB0_10
LBB0_13:
	leal	-1(%rsi), %edx
	leal	(%rdx,%rcx), %edi
	andl	%r8d, %edi
	cmpl	%edi, %ecx
	jge	LBB0_16
## %bb.14:
	cmpl	%eax, %ecx
	jg	LBB0_19
## %bb.15:
	cmpl	%eax, %edi
	jl	LBB0_19
LBB0_16:
	cmpl	%eax, %ecx
	jle	LBB0_23
## %bb.17:
	cmpl	%edi, %ecx
	jle	LBB0_23
## %bb.18:
	cmpl	%eax, %edi
	jge	LBB0_23
LBB0_19:
	movq	%r10, %r12
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r9, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r13d
	callq	_aggr_deque_frms
	leaq	(%r14,%r15), %rdi
	addq	$12, %rdi
	movq	%rdi, %r15
	callq	_spin_lock_bh
	movl	%r13d, %edx
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	cmpl	%r13d, %ecx
	jle	LBB0_20
## %bb.21:
	movq	_ATH6KL_MAX_SEQ_NO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
                                        ## kill: def $edx killed $edx def $rdx
	subl	%eax, %edx
	leal	(%rdx,%rcx), %eax
	addl	$2, %eax
	jmp	LBB0_22
LBB0_1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	movl	12(%rbx), %edi
	movq	%r10, %rsi
	movq	%r8, %rdx
	callq	_aggr_slice_amsdu
	incl	4(%r12,%r13,4)
	addq	%r15, %r14
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_skb_dequeue
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_32
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rbx), %edi
	movq	%rax, %rsi
	callq	_ath6kl_deliver_frames_to_nw_stack
	movq	%r14, %rdi
	callq	_skb_dequeue
	jmp	LBB0_5
LBB0_10:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_23:
	movl	%eax, %ecx
	subl	%esi, %ecx
	movl	%eax, %r13d
	subl	%edx, %eax
	leal	2(%rcx,%r8), %edx
	cmovgel	%eax, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r9, %rsi
	xorl	%ecx, %ecx
	callq	_aggr_deque_frms
	jmp	LBB0_24
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_32
LBB0_20:
	movl	%edx, %eax
	subl	%ecx, %eax
LBB0_22:
	movq	%r15, %rdi
	movl	%eax, (%r12)
	callq	_spin_unlock_bh
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_24:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	incl	12(%r12,%r15,4)
	movl	(%rbx), %esi
	movl	%r13d, %eax
LBB0_25:
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_AGGR_WIN_IDX
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%r14,%rcx), %r13
	movslq	%eax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	%rcx, %r14
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	shlq	$4, %rbx
	movq	8(%r13,%rbx), %rdi
	callq	_dev_kfree_skb
	incl	8(%r12,%r15,4)
	leaq	(%r12,%r15,4), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%r13,%rbx)
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r13,%rbx)
	testl	%ecx, %ecx
	leaq	4(%r12,%r15,4), %rcx
	cmoveq	%rax, %rcx
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13,%rbx)
	incl	(%rcx)
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	$1, %r12d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_aggr_deque_frms
	cmpl	$0, (%rbx)
	jne	LBB0_32
## %bb.26:
	movq	%r14, %r15
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_31
## %bb.27:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%r14, %rcx
	addq	$16, %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rcx,%rdx)
	jne	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_29 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_29
	jmp	LBB0_31
LBB0_30:
	movl	$1, (%rbx)
	addq	$4, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	_AGGR_RX_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rcx), %edx
	movslq	%edx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_mod_timer
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 8(%r14,%rax)
LBB0_31:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
LBB0_32:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_MAX_SEQ_NO,4,2          ## @ATH6KL_MAX_SEQ_NO
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_AGGR_RX_TIMEOUT,4,2            ## @AGGR_RX_TIMEOUT
	.no_dead_strip	_aggr_process_recv_frm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aggr_process_recv_frm
_aggr_process_recv_frm:                 ; @aggr_process_recv_frm
	.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
	mov	x22, x3
	mov	x20, x1
	mov	x19, x0
	ldp	x28, x21, [x0, #16]
	add	x27, x21, x1, lsl #5
	mov	x24, x27
	mov	w8, #20
	madd	x8, x1, x8, x28
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	ldr	w8, [x27, #28]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x23, x2
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w11, [x24]
	ldr	w1, [x27, #4]!
	sub	w8, w1, #1
Lloh0:
	adrp	x26, _ATH6KL_MAX_SEQ_NO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ATH6KL_MAX_SEQ_NO@GOTPAGEOFF]
	ldr	w9, [x26]
	add	w10, w8, w11
	and	w10, w10, w9
	cmp	w11, w10
	b.ge	LBB0_3
; %bb.2:
	cmp	w11, w23
	ccmp	w10, w23, #8, le
	b.lt	LBB0_4
LBB0_3:
	cmp	w11, w23
	ccmp	w11, w10, #4, gt
	ccmp	w10, w23, #0, gt
	b.ge	LBB0_18
LBB0_4:
	add	w11, w8, w10
	and	w11, w11, w9
	cmp	w10, w11
	b.ge	LBB0_6
; %bb.5:
	cmp	w10, w23
	ccmp	w11, w23, #8, le
	b.lt	LBB0_12
LBB0_6:
	cmp	w10, w23
	ccmp	w10, w11, #4, gt
	ccmp	w11, w23, #0, gt
	b.lt	LBB0_12
; %bb.7:
	subs	w8, w23, w8
	sub	w10, w23, w1
	add	w9, w10, w9
	add	w9, w9, #2
	csel	w2, w9, w8, lt
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_aggr_deque_frms
	b	LBB0_17
LBB0_8:
	cbz	w22, LBB0_14
; %bb.9:
	ldr	w0, [x19, #12]
	mov	x1, x24
	mov	x2, x4
	bl	_aggr_slice_amsdu
	mov	w8, #20
	madd	x8, x20, x8, x28
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	add	x8, x21, x20, lsl #5
	add	x20, x8, #24
	mov	x0, x20
	bl	_skb_dequeue
	cbz	x0, LBB0_25
; %bb.10:
	mov	x1, x0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_ath6kl_deliver_frames_to_nw_stack
	mov	x0, x20
	bl	_skb_dequeue
	mov	x1, x0
	cbnz	x0, LBB0_11
	b	LBB0_25
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_aggr_deque_frms
	add	x8, x21, x20, lsl #5
	add	x25, x8, #12
	mov	x0, x25
	bl	_spin_lock_bh
	ldr	w8, [x27]
	sub	w9, w8, #1
	cmp	w9, w23
	b.le	LBB0_15
; %bb.13:
	ldr	w9, [x26]
	sub	w8, w23, w8
	add	w8, w8, w9
	add	w8, w8, #2
	b	LBB0_16
LBB0_14:
	mov	w21, #0
	b	LBB0_26
LBB0_15:
	sub	w8, w23, w9
LBB0_16:
	str	w8, [x24]
	mov	x0, x25
	bl	_spin_unlock_bh
LBB0_17:
	mov	w8, #20
	madd	x8, x20, x8, x28
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
	ldr	w1, [x27]
LBB0_18:
	mov	x0, x23
	bl	_AGGR_WIN_IDX
	mov	x25, x0
	add	x26, x21, x20, lsl #5
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldr	x21, [x26, #16]!
	sub	x24, x26, #4
	mov	x0, x24
	bl	_spin_lock_bh
	add	x21, x21, w25, sxtw #4
	ldr	x0, [x21, #8]
	bl	_dev_kfree_skb
	mov	w8, #20
	madd	x8, x20, x8, x28
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x9, [x21, #8]
	stp	w22, w23, [x21]
	add	x9, x8, #4
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x24
	bl	_spin_unlock_bh
	mov	w21, #1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	bl	_aggr_deque_frms
	ldr	w8, [x19]
	cbnz	w8, LBB0_26
; %bb.19:
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.20:
	ldr	x9, [x26]
	add	x9, x9, #8
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_21
	b	LBB0_24
LBB0_23:
	mov	w21, #1
	str	w21, [x19], #4
Lloh2:
	adrp	x8, _jiffies@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh4:
	adrp	x9, _HZ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _AGGR_RX_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AGGR_RX_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	mov	x0, x19
	bl	_mod_timer
	add	x8, x22, x20, lsl #5
	str	w21, [x8, #8]
LBB0_24:
	mov	x0, x24
	bl	_spin_unlock_bh
LBB0_25:
	mov	w21, #1
LBB0_26:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_MAX_SEQ_NO,4,2          ; @ATH6KL_MAX_SEQ_NO
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_AGGR_RX_TIMEOUT,4,2            ; @AGGR_RX_TIMEOUT
	.no_dead_strip	_aggr_process_recv_frm
.subsections_via_symbols
