	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_check_pn
_iwl_mvm_check_pn:                      ## @iwl_mvm_check_pn
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_iwl_mvm_skb_get_hdr
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_CCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r12), %edi
	callq	_ieee80211_is_data
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movl	4(%r12), %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_2
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.3:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	andl	(%rcx), %eax
	je	LBB0_15
## %bb.4:
	movq	%r14, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_ERR
	movl	$-1, %r13d
	jmp	LBB0_15
LBB0_6:
	movq	%r14, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_ieee80211_hdrlen
	movslq	%eax, %r15
	movl	12(%r12,%r15,4), %eax
	sarl	$6, %eax
	movq	(%r14), %rcx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_rcu_dereference
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	callq	_ieee80211_get_tid
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_15
## %bb.11:
	movl	28(%r12,%r15,4), %ecx
	movq	%rbx, %rdi
	movl	%ecx, (%rbx)
	movl	24(%r12,%r15,4), %ecx
	movl	%ecx, 4(%rbx)
	movl	20(%r12,%r15,4), %ecx
	movl	%ecx, 8(%rbx)
	movl	16(%r12,%r15,4), %ecx
	movl	%ecx, 12(%rbx)
	movl	4(%r12,%r15,4), %ecx
	movl	%ecx, 16(%rbx)
	movl	(%r12,%r15,4), %ecx
	movl	%ecx, 20(%rbx)
	movq	(%r14), %rcx
	movslq	-52(%rbp), %r15                 ## 4-byte Folded Reload
	movq	(%rcx,%r15,8), %rcx
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %esi
	movq	_IEEE80211_CCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:
	jne	LBB0_14
## %bb.13:
	movq	_RX_FLAG_ALLOW_SAME_PN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_15
LBB0_14:
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%r12,4), %edi
	movq	_IEEE80211_CCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	_RX_FLAG_PN_VALIDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CCMP_PN_LEN,4,2      ## @IEEE80211_CCMP_PN_LEN
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected hw-decrypted unicast frame for station\n"

	.comm	_IWL_MAX_TID_COUNT,4,2          ## @IWL_MAX_TID_COUNT
	.comm	_RX_FLAG_ALLOW_SAME_PN,4,2      ## @RX_FLAG_ALLOW_SAME_PN
	.comm	_RX_FLAG_PN_VALIDATED,4,2       ## @RX_FLAG_PN_VALIDATED
	.no_dead_strip	_iwl_mvm_check_pn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_check_pn
_iwl_mvm_check_pn:                      ; @iwl_mvm_check_pn
	.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	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x1
	bl	_iwl_mvm_skb_get_hdr
	mov	x22, x0
	mov	x0, x19
	bl	_IEEE80211_SKB_RXCB
	mov	x19, x0
Lloh3:
	adrp	x25, _IEEE80211_CCMP_PN_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IEEE80211_CCMP_PN_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	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	w0, [x22]
	bl	_ieee80211_is_data
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x22, #4]
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_5
; %bb.2:
	mov	w0, #0
LBB0_3:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.4:
	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_5:
	cbz	w20, LBB0_3
; %bb.6:
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_3
; %bb.7:
	mov	x0, x23
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_IWL_ERR
	mov	w0, #-1
	b	LBB0_3
LBB0_9:
	mov	x0, x23
	bl	_iwl_mvm_sta_from_mac80211
	mov	x23, x0
	ldr	w0, [x22]
	bl	_ieee80211_hdrlen
	add	x24, x22, w0, sxtw #2
	ldr	w8, [x24, #12]
	asr	w8, w8, #6
	ldr	x9, [x23]
	ldr	w0, [x9, w8, sxtw #2]
	bl	_rcu_dereference
	cbz	x0, LBB0_15
; %bb.10:
	mov	x23, x0
	ldr	w0, [x22]
	bl	_ieee80211_is_data_qos
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_ieee80211_get_tid
	mov	x22, x0
	b	LBB0_13
LBB0_12:
	mov	w22, #0
LBB0_13:
Lloh15:
	adrp	x8, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ge	LBB0_15
; %bb.14:
	ldr	w8, [x24, #28]
	str	w8, [x21]
	ldr	w8, [x24, #24]
	str	w8, [x21, #4]
	ldr	w8, [x24, #20]
	str	w8, [x21, #8]
	ldr	w8, [x24, #16]
	str	w8, [x21, #12]
	ldr	w8, [x24, #4]
	str	w8, [x21, #16]
	ldr	w8, [x24]
	str	w8, [x21, #20]
	ldr	x8, [x23]
	ldr	x8, [x8, w20, sxtw #3]
	ldr	w1, [x8, w22, sxtw #2]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_memcmp
	tbz	w0, #31, LBB0_16
LBB0_15:
	mov	w0, #-1
	b	LBB0_3
LBB0_16:
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _RX_FLAG_ALLOW_SAME_PN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RX_FLAG_ALLOW_SAME_PN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_18:
	sxtw	x8, w20
	sxtw	x9, w22
	ldr	x10, [x23]
	ldr	x8, [x10, x8, lsl #3]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w2, [x25]
	mov	x1, x21
	bl	_memcpy
	mov	w0, #0
Lloh21:
	adrp	x8, _RX_FLAG_PN_VALIDATED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RX_FLAG_PN_VALIDATED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CCMP_PN_LEN,4,2      ; @IEEE80211_CCMP_PN_LEN
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected hw-decrypted unicast frame for station\n"

	.comm	_IWL_MAX_TID_COUNT,4,2          ; @IWL_MAX_TID_COUNT
	.comm	_RX_FLAG_ALLOW_SAME_PN,4,2      ; @RX_FLAG_ALLOW_SAME_PN
	.comm	_RX_FLAG_PN_VALIDATED,4,2       ; @RX_FLAG_PN_VALIDATED
	.no_dead_strip	_iwl_mvm_check_pn
.subsections_via_symbols
