	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92de_card_disable           ## -- Begin function rtl92de_card_disable
	.p2align	4, 0x90
_rtl92de_card_disable:                  ## @rtl92de_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	_MAC80211_NOLINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__rtl92de_set_media_status
	cmpq	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_RF_CHANGE_BY_PS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
LBB0_2:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_LED_CTL_POWER_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_3:
	movq	_RT_RF_OFF_LEVL_HALT_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RT_SET_PS_LEVEL
	movq	_REG_PCIE_CTRL_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movl	$254, %edx
	callq	_rtl_write_byte
	movl	$50, %edi
	callq	_udelay
	movq	_RFPGA0_ANALOGPARAMETER4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15728640, %edx                 ## imm = 0xF00000
	movl	$15, %ecx
	callq	_rtl_set_bbreg
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RFREG_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_rtl_set_rfreg
	movq	_REG_APSD_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_rtl_write_byte
	movq	_ROFDM0_TRXPATHENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	_ROFDM1_TRXPATHENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movl	$226, %edx
	callq	_rtl_write_byte
	cmpl	$1, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movl	$224, %edx
	callq	_rtl_write_byte
LBB0_5:
	movl	$50, %edi
	callq	_udelay
	movq	(%r15), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_rtl_write_byte
	movl	$50, %edi
	callq	_udelay
	movq	_REG_CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	%rbx, %rdi
	callq	_rtl92d_phy_check_poweroff
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__rtl92de_poweroff_adapter      ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC80211_NOLINK,4,2            ## @MAC80211_NOLINK
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
	.comm	_RF_CHANGE_BY_PS,8,3            ## @RF_CHANGE_BY_PS
	.comm	_LED_CTL_POWER_OFF,4,2          ## @LED_CTL_POWER_OFF
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ## @RT_RF_OFF_LEVL_HALT_NIC
	.comm	_REG_PCIE_CTRL_REG,8,3          ## @REG_PCIE_CTRL_REG
	.comm	_RFPGA0_ANALOGPARAMETER4,4,2    ## @RFPGA0_ANALOGPARAMETER4
	.comm	_RF90_PATH_A,4,2                ## @RF90_PATH_A
	.comm	_RFREG_OFFSET_MASK,4,2          ## @RFREG_OFFSET_MASK
	.comm	_REG_APSD_CTRL,8,3              ## @REG_APSD_CTRL
	.comm	_ROFDM0_TRXPATHENABLE,4,2       ## @ROFDM0_TRXPATHENABLE
	.comm	_MASKBYTE0,4,2                  ## @MASKBYTE0
	.comm	_ROFDM1_TRXPATHENABLE,4,2       ## @ROFDM1_TRXPATHENABLE
	.comm	_BDWORD,4,2                     ## @BDWORD
	.comm	_REG_SYS_FUNC_EN,8,3            ## @REG_SYS_FUNC_EN
	.comm	_REG_CR,8,3                     ## @REG_CR
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"==> Do power off.......\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92de_card_disable           ; -- Begin function rtl92de_card_disable
	.p2align	2
_rtl92de_card_disable:                  ; @rtl92de_card_disable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
Lloh0:
	adrp	x8, _MAC80211_NOLINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC80211_NOLINK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__rtl92de_set_media_status
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _RF_CHANGE_BY_PS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RF_CHANGE_BY_PS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _LED_CTL_POWER_OFF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LED_CTL_POWER_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_3:
Lloh12:
	adrp	x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RT_SET_PS_LEVEL
Lloh15:
	adrp	x21, _REG_PCIE_CTRL_REG@GOTPAGE
Lloh16:
	ldr	x21, [x21, _REG_PCIE_CTRL_REG@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x20
	mov	w2, #254
	bl	_rtl_write_byte
	mov	w0, #50
	bl	_udelay
Lloh17:
	adrp	x8, _RFPGA0_ANALOGPARAMETER4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RFPGA0_ANALOGPARAMETER4@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15728640
	mov	w3, #15
	bl	_rtl_set_bbreg
Lloh20:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _RFREG_OFFSET_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RFREG_OFFSET_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	bl	_rtl_set_rfreg
Lloh26:
	adrp	x8, _REG_APSD_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_APSD_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #64
	bl	_rtl_write_byte
Lloh29:
	adrp	x8, _ROFDM0_TRXPATHENABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ROFDM0_TRXPATHENABLE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _MASKBYTE0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MASKBYTE0@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh35:
	adrp	x8, _ROFDM1_TRXPATHENABLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ROFDM1_TRXPATHENABLE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _BDWORD@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BDWORD@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh41:
	adrp	x22, _REG_SYS_FUNC_EN@GOTPAGE
Lloh42:
	ldr	x22, [x22, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x20
	mov	w2, #226
	bl	_rtl_write_byte
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	x1, [x22]
	mov	x0, x20
	mov	w2, #224
	bl	_rtl_write_byte
LBB0_5:
	mov	w0, #50
	bl	_udelay
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x20
	mov	w2, #255
	bl	_rtl_write_byte
	mov	w0, #50
	bl	_udelay
Lloh43:
	adrp	x8, _REG_CR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _REG_CR@GOTPAGEOFF]
Lloh45:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_rtl_write_byte
Lloh46:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x3, l_.str@PAGE
Lloh53:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_rtl92d_phy_check_poweroff
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__rtl92de_poweroff_adapter
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC80211_NOLINK,4,2            ; @MAC80211_NOLINK
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
	.comm	_RF_CHANGE_BY_PS,8,3            ; @RF_CHANGE_BY_PS
	.comm	_LED_CTL_POWER_OFF,4,2          ; @LED_CTL_POWER_OFF
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ; @RT_RF_OFF_LEVL_HALT_NIC
	.comm	_REG_PCIE_CTRL_REG,8,3          ; @REG_PCIE_CTRL_REG
	.comm	_RFPGA0_ANALOGPARAMETER4,4,2    ; @RFPGA0_ANALOGPARAMETER4
	.comm	_RF90_PATH_A,4,2                ; @RF90_PATH_A
	.comm	_RFREG_OFFSET_MASK,4,2          ; @RFREG_OFFSET_MASK
	.comm	_REG_APSD_CTRL,8,3              ; @REG_APSD_CTRL
	.comm	_ROFDM0_TRXPATHENABLE,4,2       ; @ROFDM0_TRXPATHENABLE
	.comm	_MASKBYTE0,4,2                  ; @MASKBYTE0
	.comm	_ROFDM1_TRXPATHENABLE,4,2       ; @ROFDM1_TRXPATHENABLE
	.comm	_BDWORD,4,2                     ; @BDWORD
	.comm	_REG_SYS_FUNC_EN,8,3            ; @REG_SYS_FUNC_EN
	.comm	_REG_CR,8,3                     ; @REG_CR
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"==> Do power off.......\n"

.subsections_via_symbols
