	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_update_tkip_key         ## -- Begin function il4965_update_tkip_key
	.p2align	4, 0x90
_il4965_update_tkip_key:                ## @il4965_update_tkip_key
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r12
	callq	_il_scan_cancel
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_il_sta_id_or_broadcast
	movq	%rax, %rbx
	movq	_IL_INVALID_STATION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rax
	shlq	$3, %rbx
	leaq	(%rbx,%rbx,2), %rbx
	movq	%r15, 8(%rax,%rbx)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	8(%r12), %rcx
	movq	16(%rcx,%rbx), %rcx
	movl	%eax, (%rcx)
	movl	4(%r14), %edi
	callq	_cpu_to_le16
	movq	8(%r12), %rcx
	movq	16(%rcx,%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	8(%r14), %edi
	callq	_cpu_to_le16
	movq	8(%r12), %rcx
	movq	16(%rcx,%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	12(%r14), %edi
	callq	_cpu_to_le16
	movq	8(%r12), %rcx
	movq	16(%rcx,%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	16(%r14), %edi
	callq	_cpu_to_le16
	movq	8(%r12), %rcx
	leaq	(%rcx,%rbx), %rsi
	movq	16(%rcx,%rbx), %rdx
	movl	%eax, 16(%rdx)
	movq	_STA_MODIFY_KEY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx,%rbx)
	movq	_STA_CONTROL_MODIFY_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx,%rbx)
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_il_send_add_sta
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_INVALID_STATION,8,3         ## @IL_INVALID_STATION
	.comm	_STA_MODIFY_KEY_MASK,4,2        ## @STA_MODIFY_KEY_MASK
	.comm	_STA_CONTROL_MODIFY_MSK,4,2     ## @STA_CONTROL_MODIFY_MSK
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_update_tkip_key         ; -- Begin function il4965_update_tkip_key
	.p2align	2
_il4965_update_tkip_key:                ; @il4965_update_tkip_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	bl	_il_scan_cancel
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_il_sta_id_or_broadcast
Lloh0:
	adrp	x8, _IL_INVALID_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL_INVALID_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	add	x9, x22, x22, lsl #1
	lsl	x22, x9, #3
	add	x8, x8, x22
	str	x21, [x8, #8]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldr	x8, [x8, #16]
	str	w0, [x8]
	ldr	w0, [x20, #4]
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldr	x8, [x8, #16]
	str	w0, [x8, #4]
	ldr	w0, [x20, #8]
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldr	x8, [x8, #16]
	str	w0, [x8, #8]
	ldr	w0, [x20, #12]
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldr	x8, [x8, #16]
	str	w0, [x8, #12]
	ldr	w0, [x20, #16]
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	add	x1, x8, x22
	ldr	x8, [x1, #16]
	str	w0, [x8, #16]
Lloh3:
	adrp	x8, _STA_MODIFY_KEY_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STA_MODIFY_KEY_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _STA_CONTROL_MODIFY_MSK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STA_CONTROL_MODIFY_MSK@GOTPAGEOFF]
	str	w8, [x1, #4]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x1]
Lloh9:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_il_send_add_sta
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_INVALID_STATION,8,3         ; @IL_INVALID_STATION
	.comm	_STA_MODIFY_KEY_MASK,4,2        ; @STA_MODIFY_KEY_MASK
	.comm	_STA_CONTROL_MODIFY_MSK,4,2     ; @STA_CONTROL_MODIFY_MSK
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
.subsections_via_symbols
