	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_uap_rx_packet  ## -- Begin function mwifiex_process_uap_rx_packet
	.p2align	4, 0x90
_mwifiex_process_uap_rx_packet:         ## @mwifiex_process_uap_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	8(%r14), %r12
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, %r15
	movl	20(%r12), %edi
	callq	_le16_to_cpu
	movl	(%r12,%rax), %esi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ether_addr_copy
	movl	20(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	addq	%rbx, %rax
	movq	(%r14), %r13
	cmpq	%r13, %rax
	jle	LBB0_4
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	20(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, %r14
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	incl	(%rdi)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_mwifiex_get_sta_entry
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incl	8(%rax)
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_any
	jmp	LBB0_23
LBB0_4:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	_PKT_TYPE_MGMT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_process_mgmt_packet
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_23
LBB0_8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_PKT_TYPE_BAR@GOTPCREL(%rip), %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %r15
	movq	%rbx, %r14
	je	LBB0_13
## %bb.9:
	movq	(%r12), %rax
	movq	_MAX_NUM_TID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_13
## %bb.10:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_mwifiex_get_sta_entry
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %r14
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movq	(%r14), %rcx
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_12:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %r14
LBB0_13:
	cmpl	$0, 4(%r14)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
## %bb.14:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_mwifiex_11n_get_rx_reorder_tbl
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movq	_PKT_TYPE_AMSDU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_17:
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rcx
	movq	%r13, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_mwifiex_11n_rx_reorder_pkt
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	_PKT_TYPE_BAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_any
LBB0_20:
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.22:
	incl	(%r14)
	jmp	LBB0_23
LBB0_16:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mwifiex_handle_uap_rx_forward
	movl	%eax, %r12d
	jmp	LBB0_23
LBB0_21:
	xorl	%r12d, %r12d
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	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, offset=%d, length=%d\n"

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

	.comm	_PKT_TYPE_BAR,8,3               ## @PKT_TYPE_BAR
	.comm	_MAX_NUM_TID,8,3                ## @MAX_NUM_TID
	.comm	_PKT_TYPE_AMSDU,8,3             ## @PKT_TYPE_AMSDU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_process_uap_rx_packet  ; -- Begin function mwifiex_process_uap_rx_packet
	.p2align	2
_mwifiex_process_uap_rx_packet:         ; @mwifiex_process_uap_rx_packet
	.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
	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, #-72]
	ldr	x23, [x0, #16]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x25, [x1, #8]
	ldr	w0, [x25, #12]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x25, #20]
	bl	_le16_to_cpu
	ldr	w1, [x25, x0]
	mov	x0, x21
	bl	_ether_addr_copy
	ldr	w0, [x25, #20]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [x25, #16]
	bl	_le16_to_cpu
	ldr	x26, [x19]
	add	x8, x0, x24
	cmp	x8, x26
	b.le	LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	w0, [x25, #20]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [x25, #16]
	bl	_le16_to_cpu
	sub	sp, sp, #32
	stp	x24, x0, [sp, #8]
	str	x26, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	bl	_mwifiex_dbg
	add	sp, sp, #32
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_get_sta_entry
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
LBB0_3:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	w21, #0
	b	LBB0_21
LBB0_4:
Lloh13:
	adrp	x8, _PKT_TYPE_MGMT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PKT_TYPE_MGMT@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_process_mgmt_packet
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_mwifiex_dbg
LBB0_7:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	b	LBB0_21
LBB0_8:
Lloh21:
	adrp	x26, _PKT_TYPE_BAR@GOTPAGE
Lloh22:
	ldr	x26, [x26, _PKT_TYPE_BAR@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x22, x8
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x25]
Lloh23:
	adrp	x9, _MAX_NUM_TID@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MAX_NUM_TID@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_13
; %bb.10:
	add	x23, x20, #8
	mov	x0, x23
	bl	_spin_lock_bh
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_get_sta_entry
	cbz	x0, LBB0_12
; %bb.11:
	mov	x24, x0
	ldr	w0, [x25, #8]
	bl	_le16_to_cpu
	ldr	x8, [x24]
	ldr	x9, [x25]
	str	x0, [x8, x9, lsl #3]
LBB0_12:
	mov	x0, x23
	bl	_spin_unlock_bh
LBB0_13:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_20
; %bb.14:
	ldr	x1, [x25]
	mov	x0, x20
	mov	x2, x21
	bl	_mwifiex_11n_get_rx_reorder_tbl
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	w0, [x25, #12]
	bl	_le16_to_cpu
Lloh26:
	adrp	x8, _PKT_TYPE_AMSDU@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PKT_TYPE_AMSDU@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
LBB0_16:
	ldr	w0, [x25, #12]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x25, #8]
	bl	_le16_to_cpu
	mov	x1, x0
	ldr	x2, [x25]
	mov	x0, x20
	mov	x3, x21
	mov	x4, x23
	mov	x5, x19
	bl	_mwifiex_11n_rx_reorder_pkt
	mov	x21, x0
	ldr	x8, [x26]
	cmp	w0, #0
	ccmp	x22, x8, #4, eq
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_18:
	cbz	w21, LBB0_21
; %bb.19:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_21
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_handle_uap_rx_forward
	mov	x21, x0
LBB0_21:
	ldur	x8, [x29, #-72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x21
	sub	sp, x29, #64
	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_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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, offset=%d, length=%d\n"

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

	.comm	_PKT_TYPE_BAR,8,3               ; @PKT_TYPE_BAR
	.comm	_MAX_NUM_TID,8,3                ; @MAX_NUM_TID
	.comm	_PKT_TYPE_AMSDU,8,3             ; @PKT_TYPE_AMSDU
.subsections_via_symbols
