	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_d3_update_keys
_iwl_mvm_d3_update_keys:                ## @iwl_mvm_d3_update_keys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%r8)
	je	LBB0_1
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %rbx
	movl	(%rcx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_15
## %bb.2:
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.4:
	incl	40(%r8)
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.5:
	movq	$0, -24(%rbp)
	cmpq	$0, 32(%r8)
	jne	LBB0_15
## %bb.6:
	movq	8(%r8), %rcx
	movq	8(%rcx), %r14
	cmpl	$130, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$131, %eax
	jne	LBB0_15
## %bb.8:
	movl	16(%r8), %edi
	movl	4(%r14), %esi
	movq	%rbx, %rcx
	callq	_iwl_mvm_set_aes_rx_seq
	addq	$4, %rbx
	movl	(%r14), %edi
	callq	_le64_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atomic64_set
	jmp	LBB0_15
LBB0_3:
	movl	$1, (%r8)
	jmp	LBB0_15
LBB0_11:
	cmpq	$0, 32(%r8)
	je	LBB0_13
## %bb.12:
	movq	%rbx, 24(%r8)
	movl	%eax, 4(%r8)
	jmp	LBB0_15
LBB0_13:
	movq	8(%r8), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_14
## %bb.16:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ieee80211_remove_key           ## TAILCALL
LBB0_9:
	leaq	4(%r14), %rdi
	leaq	-24(%rbp), %rsi
	callq	_iwl_mvm_tkip_sc_to_seq
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_iwl_mvm_set_tkip_rx_seq
	addq	$4, %rbx
	movl	-24(%rbp), %esi
	shll	$16, %esi
	orl	-20(%rbp), %esi
	movq	%rbx, %rdi
	callq	_atomic64_set
	jmp	LBB0_15
LBB0_14:
	cmpq	%rbx, 24(%r8)
	jne	LBB0_15
## %bb.17:
	movl	16(%r8), %edi
	movq	%rbx, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_mvm_set_key_rx_seq         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iwl_mvm_d3_update_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_d3_update_keys
_iwl_mvm_d3_update_keys:                ; @iwl_mvm_d3_update_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x4]
	cbz	w8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	mov	x19, x3
	ldr	w8, [x3]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_1
; %bb.3:
	sub	w9, w8, #130
	cmp	w9, #2
	b.hs	LBB0_9
; %bb.4:
	ldr	w9, [x4, #40]
	add	w9, w9, #1
	str	w9, [x4, #40]
	cbz	x2, LBB0_10
; %bb.5:
	str	xzr, [sp, #8]
	ldr	x9, [x4, #32]
	cbnz	x9, LBB0_1
; %bb.6:
	ldr	x9, [x4, #8]
	ldr	x20, [x9, #8]
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.7:
	cmp	w8, #131
	b.ne	LBB0_1
; %bb.8:
	ldr	w0, [x4, #16]
	ldr	w1, [x20, #4]
	mov	x3, x19
	bl	_iwl_mvm_set_aes_rx_seq
	add	x19, x19, #4
	ldr	w0, [x20]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_atomic64_set
	b	LBB0_1
LBB0_9:
	mov	w8, #1
	str	w8, [x4]
	b	LBB0_1
LBB0_10:
	ldr	x9, [x4, #32]
	cbz	x9, LBB0_12
; %bb.11:
	str	x19, [x4, #24]
	str	w8, [x4, #4]
	b	LBB0_1
LBB0_12:
	ldr	x2, [x4, #8]
	ldr	x8, [x2]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ieee80211_remove_key
LBB0_14:
	add	x0, x20, #4
	add	x1, sp, #8
	bl	_iwl_mvm_tkip_sc_to_seq
	ldr	w0, [x20]
	mov	x1, x19
	bl	_iwl_mvm_set_tkip_rx_seq
	add	x0, x19, #4
	ldp	w9, w8, [sp, #8]
	orr	w1, w8, w9, lsl #16
	bl	_atomic64_set
	b	LBB0_1
LBB0_15:
	ldr	x8, [x4, #24]
	cmp	x8, x19
	b.ne	LBB0_1
; %bb.16:
	ldr	w0, [x4, #16]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_iwl_mvm_set_key_rx_seq
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_iwl_mvm_d3_update_keys
.subsections_via_symbols
