	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8192eu_power_off
_rtl8192eu_power_off:                   ## @rtl8192eu_power_off
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl8xxxu_flush_fifo
	movq	_REG_TX_REPORT_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read8
	movq	_TX_REPORT_CTRL_TIMER_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_write8
	movq	_REG_RF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	callq	_rtl8192eu_active_to_lps
	movq	_REG_MCU_FW_DL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read8
	movq	_MCU_FW_RAM_SEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rtl8xxxu_firmware_self_reset
LBB0_2:
	movq	_REG_SYS_FUNC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read16
	movq	_SYS_FUNC_CPU_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	callq	_rtl8xxxu_reset_8051
	movq	%rbx, %rdi
	callq	_rtl8192eu_active_to_emu
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8192eu_emu_to_disabled      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_TX_REPORT_CTRL,4,2         ## @REG_TX_REPORT_CTRL
	.comm	_TX_REPORT_CTRL_TIMER_ENABLE,4,2 ## @TX_REPORT_CTRL_TIMER_ENABLE
	.comm	_REG_RF_CTRL,4,2                ## @REG_RF_CTRL
	.comm	_REG_MCU_FW_DL,4,2              ## @REG_MCU_FW_DL
	.comm	_MCU_FW_RAM_SEL,4,2             ## @MCU_FW_RAM_SEL
	.comm	_REG_SYS_FUNC,4,2               ## @REG_SYS_FUNC
	.comm	_SYS_FUNC_CPU_ENABLE,4,2        ## @SYS_FUNC_CPU_ENABLE
	.no_dead_strip	_rtl8192eu_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8192eu_power_off
_rtl8192eu_power_off:                   ; @rtl8192eu_power_off
	.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	_rtl8xxxu_flush_fifo
Lloh0:
	adrp	x20, _REG_TX_REPORT_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_TX_REPORT_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl8xxxu_read8
Lloh2:
	adrp	x8, _TX_REPORT_CTRL_TIMER_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_REPORT_CTRL_TIMER_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl8xxxu_write8
Lloh5:
	adrp	x8, _REG_RF_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_RF_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl8xxxu_write8
	mov	x0, x19
	bl	_rtl8192eu_active_to_lps
Lloh8:
	adrp	x20, _REG_MCU_FW_DL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _REG_MCU_FW_DL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl8xxxu_read8
Lloh10:
	adrp	x8, _MCU_FW_RAM_SEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCU_FW_RAM_SEL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rtl8xxxu_firmware_self_reset
LBB0_2:
Lloh13:
	adrp	x21, _REG_SYS_FUNC@GOTPAGE
Lloh14:
	ldr	x21, [x21, _REG_SYS_FUNC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl8xxxu_read16
Lloh15:
	adrp	x8, _SYS_FUNC_CPU_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SYS_FUNC_CPU_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl8xxxu_write16
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl8xxxu_write8
	mov	x0, x19
	bl	_rtl8xxxu_reset_8051
	mov	x0, x19
	bl	_rtl8192eu_active_to_emu
	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	_rtl8192eu_emu_to_disabled
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_TX_REPORT_CTRL,4,2         ; @REG_TX_REPORT_CTRL
	.comm	_TX_REPORT_CTRL_TIMER_ENABLE,4,2 ; @TX_REPORT_CTRL_TIMER_ENABLE
	.comm	_REG_RF_CTRL,4,2                ; @REG_RF_CTRL
	.comm	_REG_MCU_FW_DL,4,2              ; @REG_MCU_FW_DL
	.comm	_MCU_FW_RAM_SEL,4,2             ; @MCU_FW_RAM_SEL
	.comm	_REG_SYS_FUNC,4,2               ; @REG_SYS_FUNC
	.comm	_SYS_FUNC_CPU_ENABLE,4,2        ; @SYS_FUNC_CPU_ENABLE
	.no_dead_strip	_rtl8192eu_power_off
.subsections_via_symbols
