	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_11n_rx_reorder_pkt     ## -- Begin function mwifiex_11n_rx_reorder_pkt
	.p2align	4, 0x90
_mwifiex_11n_rx_reorder_pkt:            ## @mwifiex_11n_rx_reorder_pkt
	.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	%r9, %r15
	movq	%r8, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	%edx, %esi
	movq	%rcx, %rdx
	callq	_mwifiex_11n_get_rx_reorder_tbl
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_PKT_TYPE_AMSDU@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 32(%r14)
	je	LBB0_5
LBB0_6:
	movq	%r15, %r9
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	movl	4(%r14), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	-1(%rax,%rcx), %r15d
	movq	_MAX_TID_VALUE@GOTPCREL(%rip), %r11
	movl	(%r11), %eax
	leal	-1(%rax), %r10d
	movl	8(%r14), %edx
	movq	_RXREOR_INIT_WINDOW_SHIFT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%edx, %edi
	testl	%edx, %esi
	je	LBB0_8
## %bb.7:
	movl	%esi, %edi
	notl	%edi
	andl	%edx, %edi
	movl	%edi, 8(%r14)
LBB0_8:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	decl	%ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	andl	%r10d, %r15d
	movq	_RXREOR_FORCE_NO_DROP@GOTPCREL(%rip), %r13
	testl	%edi, (%r13)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.9:
	movl	(%r12), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	movq	%r11, %r12
	callq	_mwifiex_dbg
	movq	%r12, %r11
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movl	%ecx, %r12d
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_20:
	movq	_PKT_TYPE_BAR@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addl	%r8d, %edx
	movq	%r11, %rbx
	movl	(%r11), %ebx
	decl	%ebx
	andl	%edx, %ebx
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	cmovnel	%r8d, %ebx
	cmpl	%r12d, %r15d
	jge	LBB0_23
## %bb.21:
	cmpl	%r12d, %ebx
	jge	LBB0_23
## %bb.22:
	cmpl	%r15d, %ebx
	jg	LBB0_25
LBB0_23:
	cmpl	%r15d, %ebx
	setg	%dl
	cmpl	%r12d, %ebx
	setl	%sil
	cmpl	%r12d, %r15d
	jle	LBB0_28
## %bb.24:
	orb	%sil, %dl
	je	LBB0_28
LBB0_25:
	movl	%ebx, %eax
	subl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	xorl	%ecx, %ecx
	cmpl	$-1, %eax
	jge	LBB0_27
## %bb.26:
	movq	_MAX_TID_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_27:
	leal	(%rax,%rcx), %r12d
	incl	%r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_mwifiex_11n_dispatch_pkt_until_start_win
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_28:
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_33
## %bb.29:
	xorl	%eax, %eax
	subl	%r12d, %ebx
	jge	LBB0_31
## %bb.30:
	movq	_MAX_TID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_31:
	leal	(%rbx,%rax), %edx
	movq	24(%r14), %rax
	movslq	%edx, %rsi
	movl	$-1, %r13d
	cmpq	$0, (%rax,%rsi,8)
	jne	LBB0_34
## %bb.32:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rsi,8)
LBB0_33:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_mwifiex_11n_scan_and_dispatch
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r13d, %r13d
LBB0_34:
	cmpl	$0, 16(%r14)
	je	LBB0_36
## %bb.35:
	cmpl	(%r14), %ecx
	je	LBB0_37
LBB0_36:
	movq	%r14, %rdi
	callq	_mwifiex_11n_rxreorder_timer_restart
	jmp	LBB0_37
LBB0_1:
	movq	_PKT_TYPE_BAR@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	%rbx, (%rax)
	je	LBB0_37
## %bb.2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_11n_dispatch_pkt
	jmp	LBB0_37
LBB0_10:
	testl	%edx, %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_14
## %bb.11:
	cmpl	%r8d, %ecx
	jle	LBB0_14
## %bb.12:
	movl	12(%r14), %ebx
	cmpl	%r8d, %ebx
	jle	LBB0_13
LBB0_14:
	movq	_TWOPOW11@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%ecx, %edx
	cmpl	%eax, %edx
	jge	LBB0_15
## %bb.18:
	movl	$-1, %r13d
	cmpl	%r8d, %ecx
	jg	LBB0_34
## %bb.19:
	movl	%ecx, %r12d
	cmpl	%r8d, %edx
	jg	LBB0_20
	jmp	LBB0_34
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_11n_dispatch_pkt
	xorl	%r13d, %r13d
LBB0_37:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	andl	%r10d, %edx
	cmpl	%r8d, %edx
	jg	LBB0_16
## %bb.17:
	movl	$-1, %r13d
	movl	%ecx, %r12d
	cmpl	%r8d, %ecx
	jg	LBB0_34
	jmp	LBB0_20
LBB0_13:
	movl	(%r12), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%ebx, %r9d
	xorl	%eax, %eax
	movq	%r11, %r15
	callq	_mwifiex_dbg
	movq	%r15, %r11
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r8d, (%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r8d, %eax
	movl	(%r15), %r15d
	decl	%r15d
	andl	%eax, %r15d
	movl	%r8d, %r12d
	jmp	LBB0_20
LBB0_16:
	movl	%ecx, %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_TYPE_BAR,8,3               ## @PKT_TYPE_BAR
	.comm	_PKT_TYPE_AMSDU,8,3             ## @PKT_TYPE_AMSDU
	.comm	_MAX_TID_VALUE,4,2              ## @MAX_TID_VALUE
	.comm	_RXREOR_INIT_WINDOW_SHIFT,4,2   ## @RXREOR_INIT_WINDOW_SHIFT
	.comm	_RXREOR_FORCE_NO_DROP,4,2       ## @RXREOR_FORCE_NO_DROP
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RXREOR_FORCE_NO_DROP when HS is activated\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sender TID sequence number reset %d->%d for SSN %d\n"

	.comm	_TWOPOW11,4,2                   ## @TWOPOW11
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_11n_rx_reorder_pkt     ; -- Begin function mwifiex_11n_rx_reorder_pkt
	.p2align	2
_mwifiex_11n_rx_reorder_pkt:            ; @mwifiex_11n_rx_reorder_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x25, x5
	mov	x22, x4
	mov	x23, x1
	mov	x21, x0
	mov	x1, x2
	mov	x2, x3
	bl	_mwifiex_11n_get_rx_reorder_tbl
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _PKT_TYPE_AMSDU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKT_TYPE_AMSDU@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_15
LBB0_3:
	ldp	w26, w28, [x19]
	sub	w27, w28, #1
Lloh3:
	adrp	x13, _MAX_TID_VALUE@GOTPAGE
Lloh4:
	ldr	x13, [x13, _MAX_TID_VALUE@GOTPAGEOFF]
	ldr	w9, [x13]
	sub	w8, w9, #1
	add	w10, w27, w26
	and	w20, w10, w8
	ldr	w11, [x19, #8]
Lloh5:
	adrp	x10, _RXREOR_INIT_WINDOW_SHIFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RXREOR_INIT_WINDOW_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x10]
	ands	w10, w12, w11
	b.eq	LBB0_5
; %bb.4:
	bic	w11, w11, w12
	str	w11, [x19, #8]
LBB0_5:
Lloh8:
	adrp	x24, _RXREOR_FORCE_NO_DROP@GOTPAGE
Lloh9:
	ldr	x24, [x24, _RXREOR_FORCE_NO_DROP@GOTPAGEOFF]
	ldr	w12, [x24]
	tst	w12, w11
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	b.eq	LBB0_16
; %bb.6:
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh15:
	adrp	x13, _MAX_TID_VALUE@GOTPAGE
Lloh16:
	ldr	x13, [x13, _MAX_TID_VALUE@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	x24, x26
LBB0_7:
Lloh17:
	adrp	x25, _PKT_TYPE_BAR@GOTPAGE
Lloh18:
	ldr	x25, [x25, _PKT_TYPE_BAR@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w9, [x13]
	sub	w9, w9, #1
	add	w10, w27, w23
	and	w9, w9, w10
	cmp	x8, x22
	csel	w23, w9, w23, eq
	cmp	w20, w24
	ccmp	w23, w24, #0, lt
	ccmp	w23, w20, #4, lt
	b.gt	LBB0_9
; %bb.8:
	cmp	w23, w20
	ccmp	w23, w24, #8, le
	cset	w9, lt
	cmp	w20, w24
	ccmp	w9, #0, #4, gt
	b.eq	LBB0_10
LBB0_9:
	ldr	w8, [x13]
	sub	w9, w23, w28
	cmn	w9, #2
	csel	w8, wzr, w8, gt
	add	w8, w9, w8
	add	w24, w8, #1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_mwifiex_11n_dispatch_pkt_until_start_win
Lloh19:
	adrp	x13, _MAX_TID_VALUE@GOTPAGE
Lloh20:
	ldr	x13, [x13, _MAX_TID_VALUE@GOTPAGEOFF]
	ldr	x8, [x25]
LBB0_10:
	cmp	x8, x22
	b.eq	LBB0_22
; %bb.11:
	ldr	w8, [x13]
	subs	w9, w23, w24
	csel	w8, w8, wzr, lt
	add	w9, w9, w8
	ldr	x8, [x19, #24]
	ldr	x10, [x8, w9, sxtw #3]
	cbz	x10, LBB0_21
LBB0_12:
	mov	w25, #-1
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_24
	b	LBB0_25
LBB0_13:
Lloh21:
	adrp	x8, _PKT_TYPE_BAR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PKT_TYPE_BAR@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_15
; %bb.14:
	mov	w25, #0
	b	LBB0_26
LBB0_15:
	mov	x0, x21
	mov	x1, x25
	bl	_mwifiex_11n_dispatch_pkt
	mov	w25, #0
	b	LBB0_26
LBB0_16:
	cmp	w10, #0
	ccmp	w26, w23, #4, ne
	b.le	LBB0_18
; %bb.17:
	ldr	w10, [x19, #12]
	cmp	w10, w23
	b.le	LBB0_28
LBB0_18:
Lloh24:
	adrp	x10, _TWOPOW11@GOTPAGE
Lloh25:
	ldr	x10, [x10, _TWOPOW11@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	add	w10, w10, w26
	cmp	w10, w9
	b.ge	LBB0_27
; %bb.19:
	mov	w25, #-1
	cmp	w26, w23
	b.gt	LBB0_23
; %bb.20:
	mov	x24, x26
	cmp	w10, w23
	b.gt	LBB0_7
	b	LBB0_23
LBB0_21:
	sxtw	x9, w9
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	str	x10, [x8, x9, lsl #3]
LBB0_22:
	mov	x0, x21
	mov	x1, x19
	bl	_mwifiex_11n_scan_and_dispatch
	mov	w25, #0
LBB0_23:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_25
LBB0_24:
	ldr	w8, [x19]
	cmp	w26, w8
	b.eq	LBB0_26
LBB0_25:
	mov	x0, x19
	bl	_mwifiex_11n_rxreorder_timer_restart
LBB0_26:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_27:
	and	w8, w10, w8
	cmp	w8, w23
	ccmp	w26, w23, #4, le
	mov	x24, x26
	b.le	LBB0_7
	b	LBB0_12
LBB0_28:
	ldr	w0, [x21]
Lloh27:
	adrp	x8, _INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	stp	x23, x10, [sp, #8]
	str	x26, [sp]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
Lloh32:
	adrp	x13, _MAX_TID_VALUE@GOTPAGE
Lloh33:
	ldr	x13, [x13, _MAX_TID_VALUE@GOTPAGEOFF]
	str	w23, [x19]
	ldr	w8, [x13]
	sub	w8, w8, #1
	add	w9, w27, w23
	and	w20, w8, w9
	mov	x24, x23
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_TYPE_BAR,8,3               ; @PKT_TYPE_BAR
	.comm	_PKT_TYPE_AMSDU,8,3             ; @PKT_TYPE_AMSDU
	.comm	_MAX_TID_VALUE,4,2              ; @MAX_TID_VALUE
	.comm	_RXREOR_INIT_WINDOW_SHIFT,4,2   ; @RXREOR_INIT_WINDOW_SHIFT
	.comm	_RXREOR_FORCE_NO_DROP,4,2       ; @RXREOR_FORCE_NO_DROP
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RXREOR_FORCE_NO_DROP when HS is activated\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sender TID sequence number reset %d->%d for SSN %d\n"

	.comm	_TWOPOW11,4,2                   ; @TWOPOW11
.subsections_via_symbols
