	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_swlps_rf_awake             ## -- Begin function rtl_swlps_rf_awake
	.p2align	4, 0x90
_rtl_swlps_rf_awake:                    ## @rtl_swlps_rf_awake
	.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
	.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, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	cmpl	$0, 16(%r14)
	je	LBB0_6
## %bb.1:
	movq	(%rax), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	_RT_RF_LPS_LEVEL_ASPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.3:
	movq	_RT_PS_LEVEL_ASPM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_RT_IN_PS_LEVEL
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_RT_CLEAR_PS_LEVEL
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_ERFON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_CHANGE_BY_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl_ps_set_rf_state
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_RT_RF_LPS_LEVEL_ASPM,4,2       ## @RT_RF_LPS_LEVEL_ASPM
	.comm	_RT_PS_LEVEL_ASPM,4,2           ## @RT_PS_LEVEL_ASPM
	.comm	_ERFON,4,2                      ## @ERFON
	.comm	_RF_CHANGE_BY_PS,4,2            ## @RF_CHANGE_BY_PS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_swlps_rf_awake             ; -- Begin function rtl_swlps_rf_awake
	.p2align	2
_rtl_swlps_rf_awake:                    ; @rtl_swlps_rf_awake
	.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	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _RT_RF_LPS_LEVEL_ASPM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RT_RF_LPS_LEVEL_ASPM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x22, _RT_PS_LEVEL_ASPM@GOTPAGE
Lloh7:
	ldr	x22, [x22, _RT_PS_LEVEL_ASPM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_RT_IN_PS_LEVEL
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	ldr	w1, [x22]
	mov	x0, x21
	bl	_RT_CLEAR_PS_LEVEL
LBB0_5:
	mov	x0, x19
	bl	_mutex_lock
Lloh8:
	adrp	x8, _ERFON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERFON@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _RF_CHANGE_BY_PS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RF_CHANGE_BY_PS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_rtl_ps_set_rf_state
	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	_mutex_unlock
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_RT_RF_LPS_LEVEL_ASPM,4,2       ; @RT_RF_LPS_LEVEL_ASPM
	.comm	_RT_PS_LEVEL_ASPM,4,2           ; @RT_PS_LEVEL_ASPM
	.comm	_ERFON,4,2                      ; @ERFON
	.comm	_RF_CHANGE_BY_PS,4,2            ; @RF_CHANGE_BY_PS
.subsections_via_symbols
