	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_op_bss_info_changed
_wl1271_op_bss_info_changed:            ## @wl1271_op_bss_info_changed
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	(%rdi), %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	(%rax), %r14
	movq	_BSS_TYPE_AP_BSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_wl1271_debug
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r14
	jne	LBB0_1
## %bb.3:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movl	%r13d, %r14d
	je	LBB0_6
## %bb.4:
	cmpl	$0, 8(%r15)
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_wl1271_tx_flush
	jmp	LBB0_6
LBB0_1:
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movl	%r13d, %r14d
	je	LBB0_6
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	20(%rax), %rdi
	callq	_cancel_delayed_work_sync
LBB0_6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
## %bb.7:
	movq	_WLVIF_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:
	movl	12(%r12), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	_BSS_CHANGED_TXPOWER@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax), %rdx
	je	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wl1271_acx_tx_power
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
LBB0_14:
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_wl1271_bss_info_changed_ap
	jmp	LBB0_17
LBB0_9:
	movl	12(%r12), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_18
LBB0_16:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_wl1271_bss_info_changed_sta
LBB0_17:
	movl	12(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r12), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_18:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_AP_BSS,8,3            ## @BSS_TYPE_AP_BSS
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 bss info role %d changed 0x%x"

	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ## @WLVIF_FLAG_INITIALIZED
	.comm	_BSS_CHANGED_TXPOWER,4,2        ## @BSS_CHANGED_TXPOWER
	.no_dead_strip	_wl1271_op_bss_info_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_op_bss_info_changed
_wl1271_op_bss_info_changed:            ; @wl1271_op_bss_info_changed
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x19, [x0]
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x23, x0
Lloh0:
	adrp	x8, _BSS_TYPE_AP_BSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_TYPE_AP_BSS@GOTPAGEOFF]
	ldr	x25, [x0]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x23, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_wl1271_debug
	cmp	x25, x26
	b.ne	LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.2:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_wl1271_tx_flush
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	add	x0, x23, #20
	bl	_cancel_delayed_work_sync
LBB0_6:
	add	x24, x19, #8
	mov	x0, x24
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.7:
Lloh17:
	adrp	x8, _WLVIF_FLAG_INITIALIZED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WLVIF_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x23, #16
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.8:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_15
; %bb.9:
Lloh20:
	adrp	x8, _BSS_CHANGED_TXPOWER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BSS_CHANGED_TXPOWER@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.10:
	ldr	x2, [x21]
	ldr	x8, [x23, #8]
	cmp	x2, x8
	b.eq	LBB0_13
; %bb.11:
	mov	x0, x19
	mov	x1, x23
	bl	_wl1271_acx_tx_power
	tbnz	w0, #31, LBB0_18
; %bb.12:
	ldr	x8, [x21]
	str	x8, [x23, #8]
LBB0_13:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	cmp	x25, x26
	b.ne	LBB0_16
; %bb.14:
	bl	_wl1271_bss_info_changed_ap
	b	LBB0_17
LBB0_15:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_noidle
	b	LBB0_18
LBB0_16:
	bl	_wl1271_bss_info_changed_sta
LBB0_17:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_autosuspend
LBB0_18:
	mov	x0, x24
	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
	b	_mutex_unlock
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_AP_BSS,8,3            ; @BSS_TYPE_AP_BSS
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 bss info role %d changed 0x%x"

	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ; @WLVIF_FLAG_INITIALIZED
	.comm	_BSS_CHANGED_TXPOWER,4,2        ; @BSS_CHANGED_TXPOWER
	.no_dead_strip	_wl1271_op_bss_info_changed
.subsections_via_symbols
