	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_wowlan_config
_iwl_mvm_wowlan_config:                 ## @iwl_mvm_wowlan_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	movl	(%r12), %ecx
	movl	%ecx, 12(%r13)
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_5:
	movq	_WOWLAN_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	%r12, %r8
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	(%r13), %rdi
	movq	_IWL_UCODE_TLV_API_WOWLAN_TCP_SYN_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_mvm_send_patterns
	jmp	LBB0_9
LBB0_1:
	movq	%r13, %rdi
	callq	_iwl_mvm_switch_to_d3
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_iwl_mvm_d3_reprogram
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_3
LBB0_4:
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_wowlan_config_key_params
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	jne	LBB0_10
	jmp	LBB0_5
LBB0_8:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_mvm_send_patterns_v1
LBB0_9:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_send_proto_offload     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ## @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_iwlwifi_mod_params,4,2         ## @iwlwifi_mod_params
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.comm	_WOWLAN_CONFIGURATION,4,2       ## @WOWLAN_CONFIGURATION
	.comm	_IWL_UCODE_TLV_API_WOWLAN_TCP_SYN_WAKE,4,2 ## @IWL_UCODE_TLV_API_WOWLAN_TCP_SYN_WAKE
	.no_dead_strip	_iwl_mvm_wowlan_config
.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
_iwl_mvm_wowlan_config:                 ; @iwl_mvm_wowlan_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x24, x5
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	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
	ldr	w8, [x22]
	str	w8, [x20, #12]
	cbz	w0, LBB0_5
LBB0_1:
Lloh3:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
LBB0_2:
Lloh6:
	adrp	x8, _WOWLAN_CONFIGURATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WOWLAN_CONFIGURATION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #4
	mov	x4, x22
	bl	_iwl_mvm_send_cmd_pdu
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x0, [x20]
Lloh9:
	adrp	x8, _IWL_UCODE_TLV_API_WOWLAN_TCP_SYN_WAKE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_WOWLAN_TCP_SYN_WAKE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_mvm_send_patterns
	mov	x23, x0
	cbnz	w0, LBB0_9
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	bl	_iwl_mvm_switch_to_d3
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_iwl_mvm_d3_reprogram
	mov	x23, x0
	cbnz	w0, LBB0_9
	b	LBB0_1
LBB0_7:
	add	x24, x20, #8
	mov	x0, x24
	bl	_mutex_unlock
Lloh12:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_wowlan_config_key_params
	mov	x23, x0
	mov	x0, x24
	bl	_mutex_lock
	cbnz	w23, LBB0_9
	b	LBB0_2
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_mvm_send_patterns_v1
	mov	x23, x0
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_iwl_mvm_send_proto_offload
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG,4,2 ; @IWL_UCODE_TLV_CAPA_CNSLDTD_D3_D0_IMG
	.comm	_iwlwifi_mod_params,4,2         ; @iwlwifi_mod_params
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.comm	_WOWLAN_CONFIGURATION,4,2       ; @WOWLAN_CONFIGURATION
	.comm	_IWL_UCODE_TLV_API_WOWLAN_TCP_SYN_WAKE,4,2 ; @IWL_UCODE_TLV_API_WOWLAN_TCP_SYN_WAKE
	.no_dead_strip	_iwl_mvm_wowlan_config
.subsections_via_symbols
