	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_card_disable         ## -- Begin function rtl8821ae_card_disable
	.p2align	4, 0x90
_rtl8821ae_card_disable:                ## @rtl8821ae_card_disable
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_rtl_psc
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_rtl_mac
	movq	%rax, %r14
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_HAL_DEF_WOWLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	*16(%rax)
	movq	_RT_RF_OFF_LEVL_HALT_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RT_SET_PS_LEVEL
	cmpl	$0, -44(%rbp)
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_REG_MCUTST_WOWLAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movq	%r15, %rdi
	movl	$224, %esi
	movl	$3, %edx
	movl	$-2134766323, %ecx              ## imm = 0x80C20D0D
	callq	__rtl8821ae_dynamic_rqpn
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, (%r12)
LBB0_6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rtl8821ae_set_fw_global_info_cmd
	movq	%r15, %rdi
	movl	$1, %esi
	callq	__rtl8821ae_download_rsvd_page
	movq	8(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_printk
	movq	8(%r14), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_AID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*8(%rax)
	movq	_RT_MEDIA_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rtl8821ae_set_fw_media_status_rpt_cmd
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rtl8821ae_set_fw_wowlan_mode
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rtl8821ae_set_fw_keep_alive_cmd
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rtl8821ae_set_fw_disconnect_decision_ctrl_cmd
LBB0_9:
	movq	_REG_RXDMA_CONTROL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r14
	movl	$2, %edi
	callq	_BIT
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_rtl_write_byte
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_14
## %bb.10:
	movq	%rbx, %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$100, %r12d
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r12d
	movl	$10, %edi
	callq	_udelay
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_11
	jmp	LBB0_14
LBB0_3:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_MAC80211_NOLINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	__rtl8821ae_set_media_status
	movq	%r15, %rdi
	callq	__rtl8821ae_poweroff_adapter
	cmpq	$0, 16(%r13)
	jne	LBB0_17
LBB0_16:
	movq	(%rbx), %rax
	movq	_RF_CHANGE_BY_PS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_17
## %bb.18:
	cmpl	$0, -44(%rbp)
	jne	LBB0_19
	jmp	LBB0_25
LBB0_12:
	movl	$101, %r12d
LBB0_14:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r13, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	24(%r13), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movq	_REG_APS_FSMCO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movq	%r15, %rdi
	callq	__rtl8821ae_clear_pci_pme_status
	movq	_REG_SYS_CLKR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movq	(%r14), %r14
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	_REG_RSV_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	movl	$32, %edx
	callq	_rtl_write_byte
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	movl	$96, %edx
	callq	_rtl_write_byte
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 16(%r13)
	je	LBB0_16
LBB0_17:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_LED_CTL_POWER_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	callq	*(%rax)
	cmpl	$0, -44(%rbp)
	je	LBB0_25
LBB0_19:
	cmpq	$0, 16(%r12)
	je	LBB0_25
## %bb.20:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rtl8821ae_set_fw_remote_wake_ctrl_cmd
	movq	_REG_PCIE_CTRL_REG@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	incq	%rsi
	movq	%r13, %rdi
	movl	$255, %edx
	callq	_rtl_write_byte
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	movl	$10, %edi
	callq	_udelay
	leal	1(%rbx), %r8d
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$99, %ebx
	movl	%r8d, %ebx
	jb	LBB0_21
LBB0_23:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_25
## %bb.24:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	_REG_HSISR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	$3, %rsi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r14d
	movq	(%rbx), %rbx
	addq	$3, %rbx
	movl	$1, %edi
	callq	_BIT
	orl	%eax, %r14d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_rtl_write_byte
LBB0_25:
	movl	$0, (%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAL_DEF_WOWLAN,4,2             ## @HAL_DEF_WOWLAN
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ## @RT_RF_OFF_LEVL_HALT_NIC
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Normal Power off\n"

	.comm	_MAC80211_NOLINK,8,3            ## @MAC80211_NOLINK
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
L_.str.1:                               ## @.str.1
	.asciz	"Wowlan Supported.\n"

	.comm	_REG_MCUTST_WOWLAN,8,3          ## @REG_MCUTST_WOWLAN
L_.str.2:                               ## @.str.2
	.asciz	"mac->link_state = %d\n"

	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_HW_VAR_AID,4,2                 ## @HW_VAR_AID
	.comm	_RT_MEDIA_CONNECT,4,2           ## @RT_MEDIA_CONNECT
	.comm	_REG_RXDMA_CONTROL,8,3          ## @REG_RXDMA_CONTROL
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.3:                               ## @.str.3
	.asciz	"Wait Rx DMA Finished before host sleep. count=%d\n"

	.comm	_REG_APS_FSMCO,8,3              ## @REG_APS_FSMCO
	.comm	_REG_SYS_CLKR,8,3               ## @REG_SYS_CLKR
	.comm	_REG_RSV_CTRL,8,3               ## @REG_RSV_CTRL
	.comm	_RF_CHANGE_BY_PS,8,3            ## @RF_CHANGE_BY_PS
	.comm	_LED_CTL_POWER_OFF,4,2          ## @LED_CTL_POWER_OFF
	.comm	_REG_PCIE_CTRL_REG,8,3          ## @REG_PCIE_CTRL_REG
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
L_.str.4:                               ## @.str.4
	.asciz	"Stop PCIE Tx DMA.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Wait Tx DMA Finished before host sleep. count=%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"hw_rof_enable\n"

	.comm	_REG_HSISR,8,3                  ## @REG_HSISR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_card_disable         ; -- Begin function rtl8821ae_card_disable
	.p2align	2
_rtl8821ae_card_disable:                ; @rtl8821ae_card_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	bl	_rtl_priv
	mov	x19, x0
	bl	_rtl_hal
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_psc
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_mac
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
Lloh0:
	adrp	x9, _HAL_DEF_WOWLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HAL_DEF_WOWLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x21
	blr	x8
Lloh3:
	adrp	x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_RT_SET_PS_LEVEL
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.1:
	ldr	x8, [x23]
Lloh6:
	adrp	x25, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.3:
Lloh8:
	adrp	x24, _COMP_INIT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _COMP_INIT@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh10:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh15:
	adrp	x8, _REG_MCUTST_WOWLAN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_MCUTST_WOWLAN@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_byte
	mov	x0, x21
	mov	w1, #224
	mov	w2, #3
	mov	w3, #3341
	movk	w3, #32962, lsl #16
	bl	__rtl8821ae_dynamic_rqpn
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
LBB0_5:
	mov	x0, x21
	bl	_rtl8821ae_set_fw_global_info_cmd
	mov	x0, x21
	mov	w1, #1
	bl	__rtl8821ae_download_rsvd_page
	ldr	x8, [x23, #8]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	ldr	x8, [x23, #8]
Lloh20:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.6:
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
Lloh23:
	adrp	x9, _HW_VAR_AID@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HW_VAR_AID@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
	mov	x0, x21
	mov	x2, #0
	blr	x8
Lloh26:
	adrp	x8, _RT_MEDIA_CONNECT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RT_MEDIA_CONNECT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rtl8821ae_set_fw_media_status_rpt_cmd
	mov	x0, x21
	mov	w1, #1
	bl	_rtl8821ae_set_fw_wowlan_mode
	mov	x0, x21
	mov	w1, #1
	bl	_rtl8821ae_set_fw_keep_alive_cmd
	mov	x0, x21
	mov	w1, #1
	bl	_rtl8821ae_set_fw_disconnect_decision_ctrl_cmd
LBB0_8:
Lloh29:
	adrp	x25, _REG_RXDMA_CONTROL@GOTPAGE
Lloh30:
	ldr	x25, [x25, _REG_RXDMA_CONTROL@GOTPAGEOFF]
	ldr	x23, [x25]
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_rtl_write_byte
	ldr	x1, [x25]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x23, x0
	mov	w0, #1
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_13
; %bb.9:
	mov	w26, #0
	b	LBB0_17
LBB0_10:
Lloh31:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x3, l_.str@PAGE
Lloh38:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh39:
	adrp	x8, _MAC80211_NOLINK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MAC80211_NOLINK@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	str	x8, [x23, #8]
Lloh42:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x21
	bl	__rtl8821ae_set_media_status
	mov	x0, x21
	bl	__rtl8821ae_poweroff_adapter
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_18
LBB0_11:
	ldr	x8, [x22]
Lloh45:
	adrp	x9, _RF_CHANGE_BY_PS@GOTPAGE
Lloh46:
	ldr	x9, [x9, _RF_CHANGE_BY_PS@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_18
; %bb.12:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_19
	b	LBB0_25
LBB0_13:
	mov	w26, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	cmp	w26, #100
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w26, w26, #1
	mov	w0, #10
	bl	_udelay
	ldr	x1, [x25]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x23, x0
	mov	w0, #1
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_14
	b	LBB0_17
LBB0_16:
	mov	w26, #101
LBB0_17:
	ldr	w1, [x24]
Lloh48:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	str	x26, [sp]
Lloh51:
	adrp	x3, l_.str.3@PAGE
Lloh52:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
Lloh53:
	adrp	x8, _REG_APS_FSMCO@GOTPAGE
Lloh54:
	ldr	x8, [x8, _REG_APS_FSMCO@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_byte
	mov	x0, x21
	bl	__rtl8821ae_clear_pci_pme_status
Lloh56:
	adrp	x24, _REG_SYS_CLKR@GOTPAGE
Lloh57:
	ldr	x24, [x24, _REG_SYS_CLKR@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x23, x0
	ldr	x24, [x24]
	mov	w0, #3
	bl	_BIT
	orr	w2, w0, w23
	mov	x0, x19
	mov	x1, x24
	bl	_rtl_write_byte
Lloh58:
	adrp	x23, _REG_RSV_CTRL@GOTPAGE
Lloh59:
	ldr	x23, [x23, _REG_RSV_CTRL@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #32
	bl	_rtl_write_byte
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #96
	bl	_rtl_write_byte
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
LBB0_18:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh60:
	adrp	x9, _LED_CTL_POWER_OFF@GOTPAGE
Lloh61:
	ldr	x9, [x9, _LED_CTL_POWER_OFF@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_25
LBB0_19:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_25
; %bb.20:
	mov	x0, x21
	mov	w1, #1
	bl	_rtl8821ae_set_fw_remote_wake_ctrl_cmd
Lloh63:
	adrp	x22, _REG_PCIE_CTRL_REG@GOTPAGE
Lloh64:
	ldr	x22, [x22, _REG_PCIE_CTRL_REG@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #255
	bl	_rtl_write_byte
Lloh65:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh66:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
Lloh68:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh69:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh70:
	adrp	x3, l_.str.4@PAGE
Lloh71:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w24, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x21, x0
	mov	w0, #10
	bl	_udelay
	add	w8, w24, #1
	cbz	w21, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w24, #99
	mov	x24, x8
	b.lo	LBB0_21
LBB0_23:
Lloh72:
	adrp	x9, _COMP_INIT@GOTPAGE
Lloh73:
	ldr	x9, [x9, _COMP_INIT@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x9]
	ldr	w2, [x23]
	str	x8, [sp]
Lloh75:
	adrp	x3, l_.str.5@PAGE
Lloh76:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_25
; %bb.24:
Lloh77:
	adrp	x0, l_.str.6@PAGE
Lloh78:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printk
Lloh79:
	adrp	x21, _REG_HSISR@GOTPAGE
Lloh80:
	ldr	x21, [x21, _REG_HSISR@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, #3
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	ldr	x8, [x21]
	add	x21, x8, #3
	mov	w0, #1
	bl	_BIT
	orr	w2, w0, w20
	mov	x0, x19
	mov	x1, x21
	bl	_rtl_write_byte
LBB0_25:
	str	wzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_HAL_DEF_WOWLAN,4,2             ; @HAL_DEF_WOWLAN
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ; @RT_RF_OFF_LEVL_HALT_NIC
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Normal Power off\n"

	.comm	_MAC80211_NOLINK,8,3            ; @MAC80211_NOLINK
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
l_.str.1:                               ; @.str.1
	.asciz	"Wowlan Supported.\n"

	.comm	_REG_MCUTST_WOWLAN,8,3          ; @REG_MCUTST_WOWLAN
l_.str.2:                               ; @.str.2
	.asciz	"mac->link_state = %d\n"

	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_HW_VAR_AID,4,2                 ; @HW_VAR_AID
	.comm	_RT_MEDIA_CONNECT,4,2           ; @RT_MEDIA_CONNECT
	.comm	_REG_RXDMA_CONTROL,8,3          ; @REG_RXDMA_CONTROL
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.3:                               ; @.str.3
	.asciz	"Wait Rx DMA Finished before host sleep. count=%d\n"

	.comm	_REG_APS_FSMCO,8,3              ; @REG_APS_FSMCO
	.comm	_REG_SYS_CLKR,8,3               ; @REG_SYS_CLKR
	.comm	_REG_RSV_CTRL,8,3               ; @REG_RSV_CTRL
	.comm	_RF_CHANGE_BY_PS,8,3            ; @RF_CHANGE_BY_PS
	.comm	_LED_CTL_POWER_OFF,4,2          ; @LED_CTL_POWER_OFF
	.comm	_REG_PCIE_CTRL_REG,8,3          ; @REG_PCIE_CTRL_REG
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
l_.str.4:                               ; @.str.4
	.asciz	"Stop PCIE Tx DMA.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Wait Tx DMA Finished before host sleep. count=%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"hw_rof_enable\n"

	.comm	_REG_HSISR,8,3                  ; @REG_HSISR
.subsections_via_symbols
