	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_lps_leave_core
_rtl_lps_leave_core:                    ## @rtl_lps_leave_core
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	_EACTIVE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.2:
	movq	_RT_RF_LPS_LEVEL_ASPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.3:
	movq	_RT_PS_LEVEL_ASPM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RT_IN_PS_LEVEL
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rax
	movq	_INTF_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	8(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movq	_RT_PS_LEVEL_ASPM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RT_CLEAR_PS_LEVEL
LBB0_6:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_rtl_lps_set_psmode
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EACTIVE,8,3                    ## @EACTIVE
	.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	_INTF_PCI,8,3                   ## @INTF_PCI
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Busy Traffic,Leave 802.11 power save..\n"

	.no_dead_strip	_rtl_lps_leave_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_lps_leave_core
_rtl_lps_leave_core:                    ; @rtl_lps_leave_core
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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_hal
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x23, _EACTIVE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EACTIVE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.2:
	ldr	w8, [x21, #8]
Lloh2:
	adrp	x9, _RT_RF_LPS_LEVEL_ASPM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RT_RF_LPS_LEVEL_ASPM@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh5:
	adrp	x24, _RT_PS_LEVEL_ASPM@GOTPAGE
Lloh6:
	ldr	x24, [x24, _RT_PS_LEVEL_ASPM@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_RT_IN_PS_LEVEL
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _INTF_PCI@GOTPAGE
Lloh8:
	ldr	x9, [x9, _INTF_PCI@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	ldr	w1, [x24]
	mov	x0, x21
	bl	_RT_CLEAR_PS_LEVEL
LBB0_6:
Lloh10:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x1, [x23]
	mov	x0, x20
	bl	_rtl_lps_set_psmode
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EACTIVE,8,3                    ; @EACTIVE
	.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	_INTF_PCI,8,3                   ; @INTF_PCI
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Busy Traffic,Leave 802.11 power save..\n"

	.no_dead_strip	_rtl_lps_leave_core
.subsections_via_symbols
