	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_lps_enter_core
_rtl_lps_enter_core:                    ## @rtl_lps_enter_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rtl_priv
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, 16(%rax)
	jne	LBB0_6
## %bb.2:
	cmpq	$0, 8(%r14)
	jne	LBB0_6
## %bb.3:
	cmpl	$5, (%r15)
	jl	LBB0_6
## %bb.4:
	movq	8(%r15), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	16(%r15), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_mutex_lock
	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	_EAUTOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_lps_set_psmode
	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	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter 802.11 power save mode...\n"

	.comm	_EAUTOPS,4,2                    ## @EAUTOPS
	.no_dead_strip	_rtl_lps_enter_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_enter_core
_rtl_lps_enter_core:                    ; @rtl_lps_enter_core
	.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	x19, x0
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	ldr	w8, [x22]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #5
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x21, #16]
Lloh3:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_mutex_lock
Lloh6:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh14:
	adrp	x8, _EAUTOPS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAUTOPS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_lps_set_psmode
	mov	x0, x20
	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_7:
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter 802.11 power save mode...\n"

	.comm	_EAUTOPS,4,2                    ; @EAUTOPS
	.no_dead_strip	_rtl_lps_enter_core
.subsections_via_symbols
