	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_setup_connection_keep
_iwl_mvm_setup_connection_keep:         ## @iwl_mvm_setup_connection_keep
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	%rbx, -72(%rbp)
	movq	%r13, -64(%rbp)
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_15
## %bb.2:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON@GOTPCREL(%rip), %rax
	movq	_IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	testl	%r14d, %eax
	jne	LBB0_15
## %bb.3:
	movl	$1, -96(%rbp)
	movl	(%r13), %edi
	movq	_iwl_mvm_d3_update_keys@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-96(%rbp), %rcx
	movq	%r15, %rsi
	callq	_ieee80211_iter_keys
	cmpq	$0, -80(%rbp)
	jne	LBB0_15
## %bb.4:
	cmpl	$0, -84(%rbp)
	je	LBB0_14
## %bb.5:
	cmpl	$0, -88(%rbp)
	je	LBB0_15
## %bb.6:
	movl	$0, -96(%rbp)
	movl	(%r13), %edi
	movl	(%r14), %edx
	leaq	-96(%rbp), %rcx
	movq	%r15, %rsi
	callq	_ieee80211_iter_keys
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -120(%rbp)
	movups	%xmm0, -132(%rbp)
	movups	%xmm0, -148(%rbp)
	movups	%xmm0, -164(%rbp)
	movups	%xmm0, -180(%rbp)
	movups	%xmm0, -196(%rbp)
	movups	%xmm0, -212(%rbp)
	movups	%xmm0, -228(%rbp)
	movups	%xmm0, -244(%rbp)
	movl	-92(%rbp), %eax
	movl	%eax, -248(%rbp)
	movq	8(%rbx), %rdi
	callq	_iwlmvm_wowlan_gtk_idx
	movl	%eax, -236(%rbp)
	movl	-92(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.9:
	movq	_WLAN_KEY_LEN_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -244(%rbp)
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_10:
	movq	_WLAN_KEY_LEN_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -244(%rbp)
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	xorl	%edi, %edi
	movl	$16, %edx
	callq	_memcpy
	movq	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	$8, %edx
LBB0_11:
	callq	_memcpy
LBB0_12:
	leaq	-248(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ieee80211_gtk_rekey_add
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_iwl_mvm_set_key_rx_seq
	movl	4(%rbx), %edi
	callq	_le64_to_cpu
	movl	%eax, %edi
	callq	_cpu_to_be64
	movl	%eax, -44(%rbp)
	movl	(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ieee80211_gtk_rekey_notify
LBB0_14:
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	$1, (%r14)
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	addq	$16, %rax
	movq	%rax, 8(%r14)
	movl	$1, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON,4,2 ## @IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON
	.comm	_IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH,4,2 ## @IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH
	.comm	_iwl_mvm_d3_update_keys,4,2     ## @iwl_mvm_d3_update_keys
	.comm	_WLAN_KEY_LEN_CCMP,4,2          ## @WLAN_KEY_LEN_CCMP
	.comm	_WLAN_KEY_LEN_TKIP,4,2          ## @WLAN_KEY_LEN_TKIP
	.comm	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,4,2 ## @NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_iwl_mvm_setup_connection_keep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_setup_connection_keep
_iwl_mvm_setup_connection_keep:         ; @iwl_mvm_setup_connection_keep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	add	x23, sp, #8
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	stp	xzr, xzr, [x23, #144]
	stp	xzr, x19, [x23, #160]
	str	x22, [x23, #176]
	cbz	x19, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w24, w9, w8
	ldr	w0, [x19, #24]
	bl	_le32_to_cpu
	tst	w0, w24
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	stur	w8, [x29, #-104]
	ldr	w0, [x22]
Lloh6:
	adrp	x24, _iwl_mvm_d3_update_keys@GOTPAGE
Lloh7:
	ldr	x24, [x24, _iwl_mvm_d3_update_keys@GOTPAGEOFF]
	ldr	w2, [x24]
	sub	x3, x29, #104
	mov	x1, x21
	bl	_ieee80211_iter_keys
	ldr	x8, [x23, #160]
	cbz	x8, LBB0_6
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_6:
	ldur	w8, [x29, #-92]
	cbz	w8, LBB0_16
; %bb.7:
	ldur	w8, [x29, #-96]
	cbz	w8, LBB0_4
; %bb.8:
	stur	wzr, [x29, #-104]
	ldr	w0, [x22]
	ldr	w2, [x24]
	sub	x3, x29, #104
	mov	x1, x21
	bl	_ieee80211_iter_keys
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.9:
	movi.2d	v0, #0000000000000000
	str	q0, [x23, #128]
	stur	q0, [sp, #124]
	stur	q0, [sp, #108]
	stur	q0, [sp, #92]
	stur	q0, [sp, #76]
	stur	q0, [sp, #60]
	stur	q0, [sp, #44]
	stur	q0, [sp, #28]
	stur	q0, [sp, #12]
	ldur	w8, [x29, #-100]
	str	w8, [sp, #8]
	ldr	x0, [x19, #8]
	bl	_iwlmvm_wowlan_gtk_idx
	str	w0, [sp, #20]
	ldur	w8, [x29, #-100]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.11:
Lloh8:
	adrp	x8, _WLAN_KEY_LEN_CCMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_KEY_LEN_CCMP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	str	w2, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh11:
	adrp	x8, _WLAN_KEY_LEN_TKIP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_KEY_LEN_TKIP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	w0, #0
	mov	w2, #16
	bl	_memcpy
Lloh14:
	adrp	x8, _NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	w2, #8
LBB0_13:
	bl	_memcpy
LBB0_14:
	add	x1, sp, #8
	mov	x0, x21
	bl	_ieee80211_gtk_rekey_add
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.15:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	bl	_iwl_mvm_set_key_rx_seq
	ldr	w0, [x19, #4]
	bl	_le64_to_cpu
	bl	_cpu_to_be64
	str	w0, [sp, #4]
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x2, sp, #4
	mov	x0, x21
	bl	_ieee80211_gtk_rekey_notify
LBB0_16:
	mov	w21, #1
	str	w21, [x20]
	ldr	w0, [x19]
	bl	_le16_to_cpu
	add	x8, x0, #16
	str	x8, [x20, #8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON,4,2 ; @IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON
	.comm	_IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH,4,2 ; @IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH
	.comm	_iwl_mvm_d3_update_keys,4,2     ; @iwl_mvm_d3_update_keys
	.comm	_WLAN_KEY_LEN_CCMP,4,2          ; @WLAN_KEY_LEN_CCMP
	.comm	_WLAN_KEY_LEN_TKIP,4,2          ; @WLAN_KEY_LEN_TKIP
	.comm	_NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,4,2 ; @NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_iwl_mvm_setup_connection_keep
.subsections_via_symbols
