	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_set_fw_pwrmode_cmd      ## -- Begin function rtl92s_set_fw_pwrmode_cmd
	.p2align	4, 0x90
_rtl92s_set_fw_pwrmode_cmd:             ## @rtl92s_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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_rtl_priv
	movl	%eax, %edi
	callq	_rtl_mac
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_rtl_priv
	movl	%eax, %edi
	callq	_rtl_psc
	movq	%rax, %rbx
	movq	%r12, -112(%rbp)
	leaq	-48(%rbp), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movups	%xmm0, -64(%rbp)
	movups	%xmm0, -48(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_SET_BITS_TO_LE_2BYTE
	movq	$0, -88(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -92(%rbp)
	movabsq	$42949672961, %rax              ## imm = 0xA00000001
	movq	%rax, -104(%rbp)
	movq	-112(%rbp), %rax
	movq	_FW_PS_MIN_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_FW_PS_MAX_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	(%r15), %rcx
	movl	4(%rcx), %eax
	imull	(%rcx), %eax
LBB0_4:
	movl	$1, %ecx
	cmpl	$499, %eax                      ## imm = 0x1F3
	jg	LBB0_9
## %bb.5:
	movl	$2, %ecx
	cmpl	$299, %eax                      ## imm = 0x12B
	jg	LBB0_9
## %bb.6:
	movl	$3, %ecx
	cmpl	$199, %eax
	jg	LBB0_9
## %bb.7:
	movl	$5, %ecx
	cmpl	$19, %eax
	jg	LBB0_9
LBB0_8:
	movl	$1, %ecx
LBB0_9:
	movl	%ecx, -96(%rbp)
	movq	_FW_H2C_SETPWRMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdx
	movq	%r14, %rdi
	callq	__rtl92s_firmware_set_h2c_cmd
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PS_MIN_MODE,8,3             ## @FW_PS_MIN_MODE
	.comm	_FW_PS_MAX_MODE,8,3             ## @FW_PS_MAX_MODE
	.comm	_FW_H2C_SETPWRMODE,4,2          ## @FW_H2C_SETPWRMODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rtl92s_set_fw_pwrmode_cmd
lCPI0_0:
	.long	1                               ; 0x1
	.long	10                              ; 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rtl92s_set_fw_pwrmode_cmd
	.p2align	2
_rtl92s_set_fw_pwrmode_cmd:             ; @rtl92s_set_fw_pwrmode_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x22, x0
	str	x21, [sp]
	mov	x8, sp
	add	x0, x8, #64
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #64]
	ldr	x8, [x20]
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #16
	bl	_SET_BITS_TO_LE_2BYTE
	str	xzr, [sp, #24]
	ldr	w8, [x22]
	str	w8, [sp, #20]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	ldr	x8, [sp]
Lloh2:
	adrp	x9, _FW_PS_MIN_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FW_PS_MIN_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #499
	b.le	LBB0_4
	b	LBB0_10
LBB0_2:
Lloh5:
	adrp	x9, _FW_PS_MAX_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FW_PS_MAX_MODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x20]
	ldp	w9, w8, [x8]
	mul	w8, w8, w9
	cmp	w8, #499
	b.gt	LBB0_10
LBB0_4:
	cmp	w8, #299
	b.le	LBB0_6
; %bb.5:
	mov	w8, #2
	b	LBB0_11
LBB0_6:
	cmp	w8, #199
	b.le	LBB0_8
; %bb.7:
	mov	w8, #3
	b	LBB0_11
LBB0_8:
	cmp	w8, #19
	b.le	LBB0_10
; %bb.9:
	mov	w8, #5
	b	LBB0_11
LBB0_10:
	mov	w8, #1
LBB0_11:
	str	w8, [sp, #16]
Lloh8:
	adrp	x8, _FW_H2C_SETPWRMODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FW_H2C_SETPWRMODE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	__rtl92s_firmware_set_h2c_cmd
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PS_MIN_MODE,8,3             ; @FW_PS_MIN_MODE
	.comm	_FW_PS_MAX_MODE,8,3             ; @FW_PS_MAX_MODE
	.comm	_FW_H2C_SETPWRMODE,4,2          ; @FW_H2C_SETPWRMODE
.subsections_via_symbols
