	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723be_fwlps_leave
__rtl8723be_fwlps_leave:                ## @_rtl8723be_fwlps_leave
	.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
	subq	$16, %rsp
	.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, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r15
	movl	$0, -44(%rbp)
	movq	_FW_PS_ACTIVE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	cmpq	$0, (%r12)
	movq	_FW_PS_STATE_ALL_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	je	LBB0_2
## %bb.1:
	movq	_FW_PS_ACK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	__rtl8723be_set_fw_clock_on
	movl	$0, (%r15)
	jmp	LBB0_3
LBB0_2:
	movl	%esi, -40(%rbp)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_SET_RPWM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_3:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_H2C_FW_PWRMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_FW_PSMODE_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PS_ACTIVE_MODE,4,2          ## @FW_PS_ACTIVE_MODE
	.comm	_FW_PS_STATE_ALL_ON,4,2         ## @FW_PS_STATE_ALL_ON
	.comm	_FW_PS_ACK,4,2                  ## @FW_PS_ACK
	.comm	_HW_VAR_H2C_FW_PWRMODE,4,2      ## @HW_VAR_H2C_FW_PWRMODE
	.comm	_HW_VAR_FW_PSMODE_STATUS,4,2    ## @HW_VAR_FW_PSMODE_STATUS
	.comm	_HW_VAR_SET_RPWM,4,2            ## @HW_VAR_SET_RPWM
	.no_dead_strip	__rtl8723be_fwlps_leave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8723be_fwlps_leave
__rtl8723be_fwlps_leave:                ; @_rtl8723be_fwlps_leave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _FW_PS_ACTIVE_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_PS_ACTIVE_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	ldr	x9, [x22]
Lloh3:
	adrp	x8, _FW_PS_STATE_ALL_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_PS_STATE_ALL_ON@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x9, _FW_PS_ACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_PS_ACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	__rtl8723be_set_fw_clock_on
	str	wzr, [x21]
	b	LBB0_3
LBB0_2:
	str	w8, [sp, #8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _HW_VAR_SET_RPWM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HW_VAR_SET_RPWM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _HW_VAR_H2C_FW_PWRMODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HW_VAR_H2C_FW_PWRMODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _HW_VAR_FW_PSMODE_STATUS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HW_VAR_FW_PSMODE_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PS_ACTIVE_MODE,4,2          ; @FW_PS_ACTIVE_MODE
	.comm	_FW_PS_STATE_ALL_ON,4,2         ; @FW_PS_STATE_ALL_ON
	.comm	_FW_PS_ACK,4,2                  ; @FW_PS_ACK
	.comm	_HW_VAR_H2C_FW_PWRMODE,4,2      ; @HW_VAR_H2C_FW_PWRMODE
	.comm	_HW_VAR_FW_PSMODE_STATUS,4,2    ; @HW_VAR_FW_PSMODE_STATUS
	.comm	_HW_VAR_SET_RPWM,4,2            ; @HW_VAR_SET_RPWM
	.no_dead_strip	__rtl8723be_fwlps_leave
.subsections_via_symbols
