	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_set_fw_related_for_wowlan ## -- Begin function rtl8821ae_set_fw_related_for_wowlan
	.p2align	4, 0x90
_rtl8821ae_set_fw_related_for_wowlan:   ## @rtl8821ae_set_fw_related_for_wowlan
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_rtl8821ae_download_fw
	movq	_COMP_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movl	$0, (%r12)
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movl	$1, (%r12)
	movl	$0, (%r13)
	movq	_FW_PS_STATE_ALL_ON_8821AE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	$0, 4(%r12)
	movq	$0, 16(%r12)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Re-Download Firmware failed!!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Re-Download Firmware Success !!\n"

	.comm	_FW_PS_STATE_ALL_ON_8821AE,4,2  ## @FW_PS_STATE_ALL_ON_8821AE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rtl8821ae_set_fw_related_for_wowlan
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rtl8821ae_set_fw_related_for_wowlan
	.p2align	2
_rtl8821ae_set_fw_related_for_wowlan:   ; @rtl8821ae_set_fw_related_for_wowlan
	.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	x22, x1
	mov	x23, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x19, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x21, x0
	mov	x0, x23
	mov	x1, x22
	bl	_rtl8821ae_download_fw
Lloh0:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	str	wzr, [x19]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	str	wzr, [x21]
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh12:
	adrp	x8, _FW_PS_STATE_ALL_ON_8821AE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_PS_STATE_ALL_ON_8821AE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	wzr, [x19, #8]
	str	xzr, [x19, #16]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Re-Download Firmware failed!!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Re-Download Firmware Success !!\n"

	.comm	_FW_PS_STATE_ALL_ON_8821AE,4,2  ; @FW_PS_STATE_ALL_ON_8821AE
.subsections_via_symbols
