	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_set_fw_pwrmode_cmd    ## -- Begin function rtl8723e_set_fw_pwrmode_cmd
	.p2align	4, 0x90
_rtl8723e_set_fw_pwrmode_cmd:           ## @rtl8723e_set_fw_pwrmode_cmd
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_rtl_priv
	movq	%rax, %r15
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %r12
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	callq	_RT_TRACE
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	callq	_SET_H2CCMD_PWRMODE_PARM_MODE
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	jmp	LBB0_3
LBB0_1:
	movl	$1, %esi
LBB0_3:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_SET_H2CCMD_PWRMODE_PARM_SMART_PS
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %r8
	movl	$3, %r9d
	callq	_RT_PRINT_DATA
	movq	_H2C_SETPWRMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	movq	%rbx, %rcx
	callq	_rtl8723e_fill_h2c_cmd
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW LPS mode = %d\n"

	.comm	_COMP_CMD,4,2                   ## @COMP_CMD
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
L_.str.1:                               ## @.str.1
	.asciz	"rtl8723e_set_fw_rsvdpagepkt(): u1_h2c_set_pwrmode\n"

	.comm	_H2C_SETPWRMODE,4,2             ## @H2C_SETPWRMODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_set_fw_pwrmode_cmd    ; -- Begin function rtl8723e_set_fw_pwrmode_cmd
	.p2align	2
_rtl8723e_set_fw_pwrmode_cmd:           ; @rtl8723e_set_fw_pwrmode_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_rtl_priv
	mov	x20, x0
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x21, x0
Lloh3:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x22
	bl	_RT_TRACE
	add	x0, sp, #8
	mov	x1, x22
	bl	_SET_H2CCMD_PWRMODE_PARM_MODE
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	b	LBB0_3
LBB0_2:
	mov	w1, #1
LBB0_3:
	add	x0, sp, #8
	bl	_SET_H2CCMD_PWRMODE_PARM_SMART_PS
	ldr	w1, [x21, #4]
	add	x0, sp, #8
	bl	_SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME
Lloh11:
	adrp	x8, _COMP_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMP_CMD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #8
	mov	x0, x20
	mov	w5, #3
	bl	_RT_PRINT_DATA
Lloh19:
	adrp	x8, _H2C_SETPWRMODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _H2C_SETPWRMODE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #3
	bl	_rtl8723e_fill_h2c_cmd
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW LPS mode = %d\n"

	.comm	_COMP_CMD,4,2                   ; @COMP_CMD
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
l_.str.1:                               ; @.str.1
	.asciz	"rtl8723e_set_fw_rsvdpagepkt(): u1_h2c_set_pwrmode\n"

	.comm	_H2C_SETPWRMODE,4,2             ; @H2C_SETPWRMODE
.subsections_via_symbols
