	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_set_aes_rx_seq
_iwl_mvm_set_aes_rx_seq:                ## @iwl_mvm_set_aes_rx_seq
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_IWL_NUM_RSC@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_IEEE80211_NUM_TIDS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_BUILD_BUG_ON
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_rx_api
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %ebx
	leaq	8(%r12), %rdi
	callq	_lockdep_is_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_12
## %bb.3:
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_12
## %bb.4:
	xorl	%ebx, %ebx
	movq	_IEEE80211_CCMP_PN_LEN@GOTPCREL(%rip), %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jge	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	$0, -48(%rbp)
	leaq	(%rax,%rbx,4), %rdi
	leaq	-48(%rbp), %rsi
	callq	_iwl_mvm_aes_sc_to_seq
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-48(%rbp), %rdx
	callq	_ieee80211_set_key_rx_seq
	movq	(%r12), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %edi
	movl	-48(%rbp), %esi
	movl	(%r14), %edx
	callq	_memcpy
	incq	%r15
	movq	(%r12), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, (%r13)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -64(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_aes_sc_to_seq
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ieee80211_set_key_rx_seq
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_NUM_RSC,4,2                ## @IWL_NUM_RSC
	.comm	_IEEE80211_NUM_TIDS,4,2         ## @IEEE80211_NUM_TIDS
	.comm	_IWL_MAX_TID_COUNT,4,2          ## @IWL_MAX_TID_COUNT
	.comm	_IEEE80211_CCMP_PN_LEN,4,2      ## @IEEE80211_CCMP_PN_LEN
	.no_dead_strip	_iwl_mvm_set_aes_rx_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_set_aes_rx_seq
_iwl_mvm_set_aes_rx_seq:                ; @iwl_mvm_set_aes_rx_seq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _IWL_NUM_RSC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IWL_NUM_RSC@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _IEEE80211_NUM_TIDS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEEE80211_NUM_TIDS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	cbz	x22, LBB0_8
; %bb.1:
	mov	x0, x21
	bl	_iwl_mvm_has_new_rx_api
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x22
	bl	_iwl_mvm_sta_from_mac80211
	ldr	x8, [x0]
	ldr	x9, [x19]
	ldr	w22, [x8, x9, lsl #2]
	add	x0, x21, #8
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh5:
	adrp	x24, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	x0, #0
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_11
; %bb.3:
	mov	x23, #0
Lloh7:
	adrp	x25, _IEEE80211_CCMP_PN_LEN@GOTPAGE
Lloh8:
	ldr	x25, [x25, _IEEE80211_CCMP_PN_LEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	str	wzr, [sp, #8]
	add	x0, x20, x23, lsl #2
	add	x1, sp, #8
	bl	_iwl_mvm_aes_sc_to_seq
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x23
	bl	_ieee80211_set_key_rx_seq
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #1
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [sp, #8]
	ldr	w2, [x25]
	bl	_memcpy
	add	x26, x26, #1
	ldr	x8, [x21]
	ldrsw	x8, [x8]
	cmp	x26, x8
	b.lt	LBB0_7
	b	LBB0_4
LBB0_8:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp]
	mov	x1, sp
	mov	x0, x20
	bl	_iwl_mvm_aes_sc_to_seq
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_ieee80211_set_key_rx_seq
	add	x21, x21, #1
	ldrsw	x8, [x23]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_NUM_RSC,4,2                ; @IWL_NUM_RSC
	.comm	_IEEE80211_NUM_TIDS,4,2         ; @IEEE80211_NUM_TIDS
	.comm	_IWL_MAX_TID_COUNT,4,2          ; @IWL_MAX_TID_COUNT
	.comm	_IEEE80211_CCMP_PN_LEN,4,2      ; @IEEE80211_CCMP_PN_LEN
	.no_dead_strip	_iwl_mvm_set_aes_rx_seq
.subsections_via_symbols
