	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_card_disable           ## -- Begin function rtl88ee_card_disable
	.p2align	4, 0x90
_rtl88ee_card_disable:                  ## @rtl88ee_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_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r12
	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	_MAC80211_NOLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__rtl88ee_set_media_status
	cmpq	$0, 16(%r14)
	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	%rbx, %rdi
	callq	__rtl88ee_poweroff_adapter
	movl	$0, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTL8188ee card disable\n"

	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88ee_card_disable           ; -- Begin function rtl88ee_card_disable
	.p2align	2
_rtl88ee_card_disable:                  ; @rtl88ee_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_priv
	bl	_rtl_mac
	mov	x22, x0
Lloh0:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh8:
	adrp	x8, _MAC80211_NOLINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC80211_NOLINK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh11:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__rtl88ee_set_media_status
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _RF_CHANGE_BY_PS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RF_CHANGE_BY_PS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _LED_CTL_POWER_OFF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LED_CTL_POWER_OFF@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_3:
Lloh20:
	adrp	x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RT_SET_PS_LEVEL
	mov	x0, x19
	bl	__rtl88ee_poweroff_adapter
	str	wzr, [x20]
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTL8188ee card disable\n"

	.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
.subsections_via_symbols
