	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_bss_info_changed
_ath9k_bss_info_changed:                ## @ath9k_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, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	(%rdi), %r13
	movq	24(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_ath9k_hw_common
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r14
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ath9k_ps_wakeup
	leaq	8(%r13), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r12), %ecx
	movl	24(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	16(%r14), %edi
	movl	20(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	16(%r12), %eax
	movl	%eax, 12(%r14)
	movl	24(%r12), %eax
	movl	%eax, 8(%r14)
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_ath9k_calculate_summary_state
LBB0_2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_BSS_CHANGED_IBSS@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	jne	LBB0_4
## %bb.3:
	movq	_BSS_CHANGED_OCB@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	20(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	16(%r12), %eax
	movq	_BSS_CHANGED_IBSS@GOTPCREL(%rip), %r12
	movl	%eax, (%rbx)
	movq	24(%r13), %rdi
	callq	_ath9k_hw_write_associd
LBB0_5:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_BSS_CHANGED_BEACON_INFO@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
LBB0_8:
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_ath9k_calculate_summary_state
LBB0_9:
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_14
## %bb.10:
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_14
## %bb.11:
	cmpq	$0, 8(%rbx)
	movl	$20, %ecx
	movl	$9, %eax
	cmovel	%ecx, %eax
	movq	(%r14), %rcx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	movl	%eax, 12(%r13)
	movq	_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	jmp	LBB0_14
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	callq	_ath9k_hw_init_global_settings
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_14:
	movq	_BSS_CHANGED_P2P_PS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ath9k_p2p_bss_info_changed
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_16:
	movl	(%r12), %eax
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	callq	_ath_check_ani
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	movq	_BSS_CHANGED_TXPOWER@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ath9k_set_txpower
LBB0_20:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_ps_restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BSSID %pM Changed ASSOC %d\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_BSS_CHANGED_IBSS,4,2           ## @BSS_CHANGED_IBSS
	.comm	_BSS_CHANGED_OCB,4,2            ## @BSS_CHANGED_OCB
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_BEACON_INFO,4,2    ## @BSS_CHANGED_BEACON_INFO
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_UPDATE,4,2                     ## @UPDATE
	.comm	_BSS_CHANGED_P2P_PS,4,2         ## @BSS_CHANGED_P2P_PS
	.comm	_BSS_CHANGED_TXPOWER,4,2        ## @BSS_CHANGED_TXPOWER
L_.str.1:                               ## @.str.1
	.asciz	"vif %pM power %d dbm power_type %d\n"

	.comm	_CHECK_ANI,4,2                  ## @CHECK_ANI
	.no_dead_strip	_ath9k_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 ath9k_bss_info_changed
_ath9k_bss_info_changed:                ; @ath9k_bss_info_changed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x22, x2
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x25, [x19, #24]
	mov	x0, x25
	bl	_ath9k_hw_common
	mov	x23, x0
	ldr	x28, [x20, #16]
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x27, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CONFIG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONFIG@GOTPAGEOFF]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x9]
	ldp	w3, w4, [x22, #20]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_ath_dbg
	ldr	w0, [x28, #16]
	ldr	w1, [x22, #20]
	ldr	w2, [x27]
	bl	_memcpy
	ldr	w8, [x22, #16]
	ldr	w9, [x22, #24]
	stp	w9, w8, [x28, #8]
	ldr	x1, [x28]
	mov	x0, x19
	bl	_ath9k_calculate_summary_state
LBB0_2:
Lloh9:
	adrp	x26, _BSS_CHANGED_IBSS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BSS_CHANGED_IBSS@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w24
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _BSS_CHANGED_OCB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BSS_CHANGED_OCB@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_5
LBB0_4:
	ldr	w0, [x23, #4]
	ldr	w1, [x22, #20]
	ldr	w2, [x27]
	bl	_memcpy
	ldr	w8, [x22, #16]
	str	w8, [x23]
	ldr	x0, [x19, #24]
	bl	_ath9k_hw_write_associd
LBB0_5:
Lloh14:
	adrp	x27, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh15:
	ldr	x27, [x27, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w24
	b.ne	LBB0_8
; %bb.6:
Lloh16:
	adrp	x8, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w24
	b.ne	LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _BSS_CHANGED_BEACON_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_9
LBB0_8:
	ldr	x1, [x28]
	mov	x0, x19
	bl	_ath9k_calculate_summary_state
LBB0_9:
	ldr	x8, [x28]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
Lloh22:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x22, #8]
	cmp	x8, #0
	mov	w8, #9
	mov	w9, #20
	csel	w8, w9, w8, eq
	ldr	x9, [x20]
Lloh25:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh26:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
Lloh28:
	adrp	x9, _UPDATE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _UPDATE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #12]
	b	LBB0_14
LBB0_13:
	str	w8, [x25]
	mov	x0, x25
	bl	_ath9k_hw_init_global_settings
LBB0_14:
Lloh31:
	adrp	x8, _BSS_CHANGED_P2P_PS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BSS_CHANGED_P2P_PS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_p2p_bss_info_changed
LBB0_16:
Lloh34:
	adrp	x8, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	tst	w8, w24
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_ath_check_ani
LBB0_18:
Lloh37:
	adrp	x8, _BSS_CHANGED_TXPOWER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BSS_CHANGED_TXPOWER@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w24
Lloh40:
	adrp	x8, _CONFIG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
	b.eq	LBB0_20
; %bb.19:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
	ldp	w8, w4, [x22]
Lloh42:
	adrp	x2, l_.str.1@PAGE
Lloh43:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x0, x23
	bl	_ath_dbg
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_set_txpower
LBB0_20:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ath9k_ps_restore
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BSSID %pM Changed ASSOC %d\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_BSS_CHANGED_IBSS,4,2           ; @BSS_CHANGED_IBSS
	.comm	_BSS_CHANGED_OCB,4,2            ; @BSS_CHANGED_OCB
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_BEACON_INFO,4,2    ; @BSS_CHANGED_BEACON_INFO
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_UPDATE,4,2                     ; @UPDATE
	.comm	_BSS_CHANGED_P2P_PS,4,2         ; @BSS_CHANGED_P2P_PS
	.comm	_BSS_CHANGED_TXPOWER,4,2        ; @BSS_CHANGED_TXPOWER
l_.str.1:                               ; @.str.1
	.asciz	"vif %pM power %d dbm power_type %d\n"

	.comm	_CHECK_ANI,4,2                  ; @CHECK_ANI
	.no_dead_strip	_ath9k_bss_info_changed
.subsections_via_symbols
