	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_bss_info_changed
_ath5k_bss_info_changed:                ## @ath5k_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ath5k_hw_common
	movq	%rax, %r15
	leaq	16(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_BSS_CHANGED_BSSID@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	movl	32(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	$0, (%r15)
	movq	%rbx, %rdi
	callq	_ath5k_hw_set_bssid
LBB0_2:
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	28(%r12), %eax
	movl	%eax, 44(%rbx)
LBB0_4:
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	24(%r12), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_ath5k_hw_get_default_slottime
	movl	(%rbx), %ecx
	leal	(%rcx,%rcx,2), %esi
	addl	%eax, %esi
	movq	%rbx, %rdi
	callq	_ath5k_hw_set_ifs_intervals
LBB0_6:
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
## %bb.7:
	movq	16(%r12), %rsi
	movq	%rsi, (%r13)
	testq	%rsi, %rsi
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_ath5k_any_vif_assoc
	movq	%rax, %rsi
LBB0_9:
	movq	%rsi, 32(%rbx)
	movq	8(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath5k_set_beacon_filter
	movq	32(%rbx), %rsi
LBB0_11:
	testq	%rsi, %rsi
	jne	LBB0_12
## %bb.13:
	movq	_AR5K_LED_INIT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_AR5K_LED_ASSOC@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ath5k_hw_set_ledstate
	cmpq	$0, 16(%r12)
	je	LBB0_16
## %bb.15:
	movq	_ATH5K_DEBUG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r12), %rcx
	movl	8(%r15), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ATH5K_DBG
	movq	8(%r12), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_ath5k_hw_set_bssid
LBB0_16:
	movq	_BSS_CHANGED_BEACON@GOTPCREL(%rip), %r13
	testl	%r14d, (%r13)
	je	LBB0_18
## %bb.17:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath5k_beacon_update
	movq	%r15, %rdi
	callq	_spin_unlock_bh
LBB0_18:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	je	LBB0_20
## %bb.19:
	movl	(%r12), %ecx
	movl	%ecx, 20(%rbx)
LBB0_20:
	orl	(%r13), %eax
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r14d, %eax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_ath5k_beacon_config
LBB0_22:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_BSSID,4,2          ## @BSS_CHANGED_BSSID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_AR5K_LED_ASSOC,4,2             ## @AR5K_LED_ASSOC
	.comm	_AR5K_LED_INIT,4,2              ## @AR5K_LED_INIT
	.comm	_ATH5K_DEBUG_ANY,4,2            ## @ATH5K_DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bss Info ASSOC %d, bssid: %pM\n"

	.comm	_BSS_CHANGED_BEACON,4,2         ## @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.no_dead_strip	_ath5k_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 ath5k_bss_info_changed
_ath5k_bss_info_changed:                ; @ath5k_bss_info_changed
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x27, [x1]
	ldr	x19, [x0]
	mov	x0, x19
	bl	_ath5k_hw_common
	mov	x25, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _BSS_CHANGED_BSSID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_BSSID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x25, #8]
	ldr	w1, [x22, #32]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	str	xzr, [x25]
	mov	x0, x19
	bl	_ath5k_hw_set_bssid
LBB0_2:
Lloh6:
	adrp	x26, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x22, #28]
	str	w8, [x19, #44]
LBB0_4:
Lloh8:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x22, #24]
	str	w8, [x19, #40]
	mov	x0, x19
	bl	_ath5k_hw_get_default_slottime
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	add	w1, w8, w0
	mov	x0, x19
	bl	_ath5k_hw_set_ifs_intervals
LBB0_6:
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_13
; %bb.7:
	ldr	x1, [x22, #16]
	str	x1, [x27]
	cbnz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ath5k_any_vif_assoc
	mov	x1, x0
LBB0_9:
	str	x1, [x19, #32]
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x24
	bl	_ath5k_set_beacon_filter
	ldr	x1, [x19, #32]
LBB0_11:
Lloh17:
	adrp	x8, _AR5K_LED_ASSOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR5K_LED_ASSOC@GOTPAGEOFF]
Lloh19:
	adrp	x9, _AR5K_LED_INIT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AR5K_LED_INIT@GOTPAGEOFF]
	cmp	x1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath5k_hw_set_ledstate
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_13
; %bb.12:
Lloh21:
	adrp	x8, _ATH5K_DEBUG_ANY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATH5K_DEBUG_ANY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x3, [x22, #8]
	ldr	w4, [x25, #8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_DBG
	ldr	x8, [x22, #8]
	str	x8, [x25]
	mov	x0, x19
	bl	_ath5k_hw_set_bssid
LBB0_13:
Lloh26:
	adrp	x27, _BSS_CHANGED_BEACON@GOTPAGE
Lloh27:
	ldr	x27, [x27, _BSS_CHANGED_BEACON@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
	add	x25, x19, #24
	mov	x0, x25
	bl	_spin_lock_bh
	mov	x0, x24
	mov	x1, x23
	bl	_ath5k_beacon_update
	mov	x0, x25
	bl	_spin_unlock_bh
LBB0_15:
Lloh28:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.16:
	ldr	w9, [x22]
	str	w9, [x19, #20]
LBB0_17:
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_ath5k_beacon_config
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_BSSID,4,2          ; @BSS_CHANGED_BSSID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_AR5K_LED_ASSOC,4,2             ; @AR5K_LED_ASSOC
	.comm	_AR5K_LED_INIT,4,2              ; @AR5K_LED_INIT
	.comm	_ATH5K_DEBUG_ANY,4,2            ; @ATH5K_DEBUG_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bss Info ASSOC %d, bssid: %pM\n"

	.comm	_BSS_CHANGED_BEACON,4,2         ; @BSS_CHANGED_BEACON
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.no_dead_strip	_ath5k_bss_info_changed
.subsections_via_symbols
