	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_wowlan_config_key_params
_iwl_mvm_wowlan_config_key_params:      ## @iwl_mvm_wowlan_config_key_params
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	$0, -96(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movq	$0, -144(%rbp)
	movq	(%rdi), %rdi
	movq	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, -80(%rbp)
	movq	$0, -76(%rbp)
	movq	$0, -56(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%r12), %edi
	movq	_iwl_mvm_wowlan_program_keys@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_ieee80211_iter_keys
	cmpq	$0, -56(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	-64(%rbp), %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, -76(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_WOWLAN_TSC_RSC_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %r8
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	$40, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_6:
	cmpl	$0, -72(%rbp)
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rdi
	movq	_IWL_UCODE_TLV_API_TKIP_MIC_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_WOWLAN_TKIP_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-176(%rbp), %r8
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	$40, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_9:
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.10:
	leaq	-128(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	-96(%rbp), %edi
	movl	8(%r15), %esi
	movq	_NL80211_KCK_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	movl	(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -104(%rbp)
	movl	-112(%rbp), %edi
	movl	4(%r15), %esi
	movq	_NL80211_KEK_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	movl	(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -120(%rbp)
	movl	(%r15), %eax
	movl	%eax, -128(%rbp)
	movq	_WOWLAN_KEK_KCK_MATERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	$40, %ecx
	movq	%r13, %r8
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ## @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_iwl_mvm_wowlan_program_keys,4,2 ## @iwl_mvm_wowlan_program_keys
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WOWLAN_TSC_RSC_PARAM,4,2       ## @WOWLAN_TSC_RSC_PARAM
	.comm	_IWL_UCODE_TLV_API_TKIP_MIC_KEYS,4,2 ## @IWL_UCODE_TLV_API_TKIP_MIC_KEYS
	.comm	_WOWLAN_TKIP_PARAM,4,2          ## @WOWLAN_TKIP_PARAM
	.comm	_NL80211_KCK_LEN,4,2            ## @NL80211_KCK_LEN
	.comm	_NL80211_KEK_LEN,4,2            ## @NL80211_KEK_LEN
	.comm	_WOWLAN_KEK_KCK_MATERIAL,4,2    ## @WOWLAN_KEK_KCK_MATERIAL
	.no_dead_strip	_iwl_mvm_wowlan_config_key_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_wowlan_config_key_params
_iwl_mvm_wowlan_config_key_params:      ; @iwl_mvm_wowlan_config_key_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	stur	xzr, [x29, #-48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x29, #-80]
	str	xzr, [sp, #80]
	stp	q0, q0, [sp, #48]
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_capa
	stp	wzr, wzr, [sp, #12]
	cmp	w0, #0
	cset	w8, eq
	str	w8, [sp, #8]
	add	x8, sp, #48
	stp	xzr, x8, [sp, #32]
	mov	x0, x22
	bl	_iwl_mvm_vif_from_mac80211
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _iwl_mvm_wowlan_program_keys@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iwl_mvm_wowlan_program_keys@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x22
	bl	_ieee80211_iter_keys
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	ldr	x0, [sp, #24]
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_6:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _WOWLAN_TSC_RSC_PARAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WOWLAN_TSC_RSC_PARAM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x4, [sp, #24]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #40
	bl	_iwl_mvm_send_cmd_pdu
	mov	x22, x0
	cbnz	w0, LBB0_3
LBB0_8:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_11
; %bb.9:
	ldr	x0, [x20]
Lloh18:
	adrp	x8, _IWL_UCODE_TLV_API_TKIP_MIC_KEYS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_TKIP_MIC_KEYS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbnz	w0, LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _WOWLAN_TKIP_PARAM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WOWLAN_TKIP_PARAM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x4, sp, #48
	mov	x0, x20
	mov	x2, x19
	mov	w3, #40
	bl	_iwl_mvm_send_cmd_pdu
	mov	x22, x0
	cbnz	w0, LBB0_3
LBB0_11:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_13
; %bb.12:
	sub	x0, x29, #80
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldur	w0, [x29, #-48]
	ldr	w1, [x21, #8]
Lloh24:
	adrp	x22, _NL80211_KCK_LEN@GOTPAGE
Lloh25:
	ldr	x22, [x22, _NL80211_KCK_LEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	w0, [x22]
	bl	_cpu_to_le16
	stur	x0, [x29, #-56]
	ldur	w0, [x29, #-64]
	ldr	w1, [x21, #4]
Lloh26:
	adrp	x22, _NL80211_KEK_LEN@GOTPAGE
Lloh27:
	ldr	x22, [x22, _NL80211_KEK_LEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	w0, [x22]
	bl	_cpu_to_le16
	stur	x0, [x29, #-72]
	ldr	w8, [x21]
	stur	w8, [x29, #-80]
Lloh28:
	adrp	x8, _WOWLAN_KEK_KCK_MATERIAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WOWLAN_KEK_KCK_MATERIAL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	sub	x4, x29, #80
	mov	x0, x20
	mov	x2, x19
	mov	w3, #40
	bl	_iwl_mvm_send_cmd_pdu
	mov	x22, x0
	cbnz	w0, LBB0_3
LBB0_13:
	mov	w22, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ; @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_iwl_mvm_wowlan_program_keys,4,2 ; @iwl_mvm_wowlan_program_keys
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WOWLAN_TSC_RSC_PARAM,4,2       ; @WOWLAN_TSC_RSC_PARAM
	.comm	_IWL_UCODE_TLV_API_TKIP_MIC_KEYS,4,2 ; @IWL_UCODE_TLV_API_TKIP_MIC_KEYS
	.comm	_WOWLAN_TKIP_PARAM,4,2          ; @WOWLAN_TKIP_PARAM
	.comm	_NL80211_KCK_LEN,4,2            ; @NL80211_KCK_LEN
	.comm	_NL80211_KEK_LEN,4,2            ; @NL80211_KEK_LEN
	.comm	_WOWLAN_KEK_KCK_MATERIAL,4,2    ; @WOWLAN_KEK_KCK_MATERIAL
	.no_dead_strip	_iwl_mvm_wowlan_config_key_params
.subsections_via_symbols
