	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_ps_link_end             ## -- Begin function wl12xx_ps_link_end
	.p2align	4, 0x90
_wl12xx_ps_link_end:                    ## @wl12xx_ps_link_end
	.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	%rdx, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wl12xx_wlvif_to_vif
	movq	%rax, %r15
	leaq	8(%r14), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_DEBUG_PSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_wl1271_debug
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___clear_bit
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r15, %rdi
	callq	_ieee80211_find_sta
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_sta_ps_transition_ni
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_error
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_PSM,4,2                  ## @DEBUG_PSM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"end mac80211 PSM on hlid %d"

L_.str.1:                               ## @.str.1
	.asciz	"could not find sta %pM for ending ps"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_ps_link_end             ; -- Begin function wl12xx_ps_link_end
	.p2align	2
_wl12xx_ps_link_end:                    ; @wl12xx_ps_link_end
	.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, x2
	mov	x20, x0
	mov	x0, x1
	bl	_wl12xx_wlvif_to_vif
	mov	x21, x0
	add	x22, x20, #8
	mov	x0, x19
	mov	x1, x22
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _DEBUG_PSM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_PSM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wl1271_debug
	mov	x0, x19
	mov	x1, x22
	bl	___clear_bit
	bl	_rcu_read_lock
	ldr	x8, [x20]
	ldr	w1, [x8, x19, lsl #2]
	mov	x0, x21
	bl	_ieee80211_find_sta
	cbz	x0, LBB0_4
; %bb.2:
	mov	w1, #0
	bl	_ieee80211_sta_ps_transition_ni
	b	LBB0_5
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x20]
	ldr	w1, [x8, x19, lsl #2]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_error
LBB0_5:
	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	_rcu_read_unlock
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_PSM,4,2                  ; @DEBUG_PSM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"end mac80211 PSM on hlid %d"

l_.str.1:                               ; @.str.1
	.asciz	"could not find sta %pM for ending ps"

.subsections_via_symbols
