	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_op_sta_state
_wl12xx_op_sta_state:                   ## @wl12xx_op_sta_state
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %r8d
	callq	_wl1271_debug
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_2:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%r15), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %r8d
	callq	_wl12xx_update_sta_state
	movl	%eax, %r14d
	movl	12(%r15), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r15), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	cmpl	%ebx, %r13d
	cmovael	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %r14d
	movl	12(%r15), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 sta %d state=%d->%d"

	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_wl12xx_op_sta_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_op_sta_state
_wl12xx_op_sta_state:                   ; @wl12xx_op_sta_state
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	ldr	x22, [x0]
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x24, x0
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x19
	bl	_wl1271_debug
	add	x21, x22, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_5
LBB0_2:
	ldr	w0, [x22, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_wl12xx_update_sta_state
	mov	x25, x0
	ldr	w0, [x22, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x22, #12]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_5
LBB0_4:
	mov	x25, x0
	ldr	w0, [x22, #12]
	bl	_pm_runtime_put_noidle
LBB0_5:
	mov	x0, x21
	bl	_mutex_unlock
	cmp	w19, w20
	csel	w0, wzr, w25, lo
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 sta %d state=%d->%d"

	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_wl12xx_op_sta_state
.subsections_via_symbols
