	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_setPowerSaving        ## -- Begin function rtl8366s_setPowerSaving
	.p2align	4, 0x90
_rtl8366s_setPowerSaving:               ## @rtl8366s_setPowerSaving
	.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	_RTL8366S_PHY_NO_MAX@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpq	%rdi, (%rax)
	jl	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-28(%rbp), %rdx
	movl	$12, %esi
	callq	_rtl8366_getPhyReg
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	testq	%r15, %r15
	setne	%dl
	movl	$-4097, %eax                    ## imm = 0xEFFF
	andl	-28(%rbp), %eax
	shll	$12, %edx
	orl	%eax, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_rtl8366_setPhyReg
	xorl	%ebx, %ebx
	negq	%rax
	sbbl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8366S_PHY_NO_MAX,8,3        ## @RTL8366S_PHY_NO_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_setPowerSaving        ; -- Begin function rtl8366s_setPowerSaving
	.p2align	2
_rtl8366s_setPowerSaving:               ; @rtl8366s_setPowerSaving
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _RTL8366S_PHY_NO_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8366S_PHY_NO_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.lt	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	x2, sp, #12
	mov	w1, #12
	bl	_rtl8366_getPhyReg
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	cmp	x20, #0
	cset	w8, ne
	ldr	w2, [sp, #12]
	bfi	w2, w8, #12, #1
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #12
	bl	_rtl8366_setPhyReg
	cmp	x0, #0
	csetm	w0, ne
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8366S_PHY_NO_MAX,8,3        ; @RTL8366S_PHY_NO_MAX
.subsections_via_symbols
