	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_sta_rx_packet  ## -- Begin function mwifiex_process_sta_rx_packet
	.p2align	4, 0x90
_mwifiex_process_sta_rx_packet:         ## @mwifiex_process_sta_rx_packet
	.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	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r15
	movl	36(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movl	32(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	movl	28(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, %r14
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, %r15
	leal	(%r14,%rbx), %eax
	movq	(%r12), %rcx
	cmpl	%ecx, %eax
	jle	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_29
LBB0_2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	_PKT_TYPE_MGMT@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_mwifiex_process_mgmt_packet
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_29
LBB0_6:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_IS_11N_ENABLED
	testl	%eax, %eax
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_14
LBB0_7:
	movslq	%ebx, %r14
	movl	24(%r12), %edi
	movl	4(%r13,%r14), %esi
	callq	_ether_addr_equal_unaligned
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mwifiex_queuing_ra_based
	testq	%rax, %rax
	je	LBB0_17
LBB0_9:
	movl	(%r13,%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_memcpy
	movq	_MWIFIEX_RXPD_FLAGS_TDLS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.10:
	movq	8(%r13), %rax
	movq	_MAX_NUM_TID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_23
## %bb.11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_get_sta_entry
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %r14
	movl	24(%r13), %edi
	callq	_le16_to_cpu
	movq	(%r14), %rcx
	movq	8(%r13), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_13:
	movl	16(%r13), %ecx
	movl	20(%r13), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_auto_tdls_update_peer_signal
	jmp	LBB0_23
LBB0_14:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_ISSUPP_TDLS_ENABLED
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_MWIFIEX_RXPD_FLAGS_TDLS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_7
LBB0_16:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mwifiex_process_rx_packet
	jmp	LBB0_28
LBB0_17:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_ISSUPP_TDLS_ENABLED
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_MWIFIEX_RXPD_FLAGS_TDLS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_9
LBB0_19:
	movq	_PKT_TYPE_BAR@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%ebx, (%rax)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:
	movq	8(%r13), %rax
	movq	_MAX_NUM_TID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_22
## %bb.21:
	movq	(%r12), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, (%rcx,%rax,4)
LBB0_22:
	movl	12(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_memcpy
LBB0_23:
	movq	8(%r13), %rdx
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rcx
	movl	%ebx, %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_mwifiex_11n_rx_reorder_pkt
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	movq	_PKT_TYPE_BAR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_26
LBB0_25:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
LBB0_26:
	testl	%r13d, %r13d
	je	LBB0_28
## %bb.27:
	incl	8(%r12)
	jmp	LBB0_29
LBB0_28:
	xorl	%r13d, %r13d
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong rx packet: len=%d, rx_pkt_offset=%d, rx_pkt_length=%d\n"

	.comm	_PKT_TYPE_MGMT,4,2              ## @PKT_TYPE_MGMT
	.comm	_DATA,4,2                       ## @DATA
L_.str.1:                               ## @.str.1
	.asciz	"Rx of mgmt packet failed"

	.comm	_MWIFIEX_RXPD_FLAGS_TDLS_PACKET,4,2 ## @MWIFIEX_RXPD_FLAGS_TDLS_PACKET
	.comm	_MAX_NUM_TID,8,3                ## @MAX_NUM_TID
	.comm	_PKT_TYPE_BAR,4,2               ## @PKT_TYPE_BAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_sta_rx_packet  ; -- Begin function mwifiex_process_sta_rx_packet
	.p2align	2
_mwifiex_process_sta_rx_packet:         ; @mwifiex_process_sta_rx_packet
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x24, [x0, #16]
Lloh3:
	adrp	x28, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x27, [x1, #8]
	ldr	w0, [x27, #36]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x27, #32]
	bl	_le16_to_cpu
	mov	x25, x0
	ldr	w0, [x27, #28]
	bl	_le16_to_cpu
	mov	x26, x0
	ldr	w0, [x27, #24]
	bl	_le16_to_cpu
	ldr	x8, [x19]
	add	w9, w26, w25
	cmp	w9, w8
	b.le	LBB0_2
; %bb.1:
Lloh7:
	adrp	x9, _ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	sub	sp, sp, #32
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x26, [sp, #8]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_mwifiex_dbg
	add	sp, sp, #32
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	w21, #0
	b	LBB0_27
LBB0_2:
Lloh12:
	adrp	x8, _PKT_TYPE_MGMT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PKT_TYPE_MGMT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_process_mgmt_packet
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_mwifiex_dbg
LBB0_5:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	b	LBB0_27
LBB0_6:
	mov	x23, x0
	mov	x0, x20
	bl	_IS_11N_ENABLED
	cbz	w0, LBB0_14
LBB0_7:
	add	x24, x27, w25, sxtw
	ldr	w0, [x20, #24]
	ldr	w1, [x24, #4]
	bl	_ether_addr_equal_unaligned
	cbz	w0, LBB0_16
; %bb.8:
	mov	x0, x20
	bl	_mwifiex_queuing_ra_based
Lloh20:
	adrp	x26, _MWIFIEX_RXPD_FLAGS_TDLS_PACKET@GOTPAGE
Lloh21:
	ldr	x26, [x26, _MWIFIEX_RXPD_FLAGS_TDLS_PACKET@GOTPAGEOFF]
Lloh22:
	adrp	x25, _PKT_TYPE_BAR@GOTPAGE
Lloh23:
	ldr	x25, [x25, _PKT_TYPE_BAR@GOTPAGEOFF]
	cbz	x0, LBB0_17
LBB0_9:
	ldr	w1, [x24]
	ldr	w2, [x28]
	mov	x0, x21
	bl	_memcpy
	ldr	w8, [x27]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.10:
	ldr	x8, [x27, #8]
Lloh24:
	adrp	x9, _MAX_NUM_TID@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MAX_NUM_TID@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_23
; %bb.11:
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_get_sta_entry
	cbz	x0, LBB0_13
; %bb.12:
	mov	x24, x0
	ldr	w0, [x27, #24]
	bl	_le16_to_cpu
	ldr	x8, [x24]
	ldr	x9, [x27, #8]
	str	x0, [x8, x9, lsl #3]
LBB0_13:
	ldp	w3, w2, [x27, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_auto_tdls_update_peer_signal
	b	LBB0_23
LBB0_14:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_ISSUPP_TDLS_ENABLED
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w8, [x27]
Lloh27:
	adrp	x9, _MWIFIEX_RXPD_FLAGS_TDLS_PACKET@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MWIFIEX_RXPD_FLAGS_TDLS_PACKET@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_process_rx_packet
	mov	w21, #0
	b	LBB0_27
LBB0_17:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_ISSUPP_TDLS_ENABLED
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w8, [x27]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_9
LBB0_19:
	ldr	w8, [x25]
	cmp	w8, w22
	b.eq	LBB0_22
; %bb.20:
	ldr	x8, [x27, #8]
Lloh30:
	adrp	x9, _MAX_NUM_TID@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MAX_NUM_TID@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_22
; %bb.21:
	ldr	x9, [x20]
	str	w23, [x9, x8, lsl #2]
LBB0_22:
	ldr	w1, [x20, #12]
	ldr	w2, [x28]
	mov	x0, x21
	bl	_memcpy
LBB0_23:
	ldr	x2, [x27, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	mov	x4, x22
	mov	x5, x19
	bl	_mwifiex_11n_rx_reorder_pkt
	mov	x21, x0
	ldr	w8, [x25]
	cmp	w0, #0
	ccmp	w8, w22, #4, eq
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_25:
	cbz	w21, LBB0_27
; %bb.26:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x21
	sub	sp, x29, #80
	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
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong rx packet: len=%d, rx_pkt_offset=%d, rx_pkt_length=%d\n"

	.comm	_PKT_TYPE_MGMT,4,2              ; @PKT_TYPE_MGMT
	.comm	_DATA,4,2                       ; @DATA
l_.str.1:                               ; @.str.1
	.asciz	"Rx of mgmt packet failed"

	.comm	_MWIFIEX_RXPD_FLAGS_TDLS_PACKET,4,2 ; @MWIFIEX_RXPD_FLAGS_TDLS_PACKET
	.comm	_MAX_NUM_TID,8,3                ; @MAX_NUM_TID
	.comm	_PKT_TYPE_BAR,4,2               ; @PKT_TYPE_BAR
.subsections_via_symbols
