	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_bss_info_changed
_p54_bss_info_changed:                  ## @p54_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, %r12d
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	leaq	12(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_BSS_CHANGED_BSSID@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	28(%rbx), %edi
	movl	36(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_p54_setup_mac
LBB0_2:
	movq	_BSS_CHANGED_BEACON@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%r12d, %eax
	je	LBB0_4
## %bb.3:
	movq	_P54_SCAN_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_p54_scan
	movq	%rbx, %rdi
	callq	_p54_setup_mac
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_p54_beacon_update
	movq	%rbx, %rdi
	callq	_p54_set_edcf
	movl	(%r14), %eax
LBB0_4:
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r12d, %eax
	je	LBB0_6
## %bb.5:
	movl	32(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_p54_set_edcf
LBB0_6:
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.7:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movl	(%r15), %edx
	movl	%edx, %esi
	shll	$4, %esi
	cmpq	(%rcx), %rax
	cmovnel	%edx, %esi
	movl	%esi, (%rbx)
	movq	%rbx, %rdi
	callq	_p54_setup_mac
	cmpl	$1280, 4(%rbx)                  ## imm = 0x500
	jl	LBB0_9
## %bb.8:
	movq	_P54_SCAN_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_p54_scan
LBB0_9:
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.10:
	cmpq	$0, 24(%r15)
	je	LBB0_12
## %bb.11:
	movq	16(%r15), %rax
	movq	%rax, 16(%rbx)
	movl	4(%r15), %eax
	imull	8(%r15), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_p54_setup_mac
	jmp	LBB0_13
LBB0_12:
	movl	$500, 8(%rbx)                   ## imm = 0x1F4
	movq	$0, 16(%rbx)
LBB0_13:
	movq	-56(%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,4,2         ## @BSS_CHANGED_BEACON
	.comm	_P54_SCAN_EXIT,4,2              ## @P54_SCAN_EXIT
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.no_dead_strip	_p54_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 p54_bss_info_changed
_p54_bss_info_changed:                  ; @p54_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	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
	add	x19, x20, #12
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _BSS_CHANGED_BSSID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_BSSID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20, #28]
	ldr	w1, [x21, #36]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x20
	bl	_p54_setup_mac
LBB0_2:
Lloh6:
	adrp	x25, _BSS_CHANGED_BEACON@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BSS_CHANGED_BEACON@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _P54_SCAN_EXIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P54_SCAN_EXIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_p54_scan
	mov	x0, x20
	bl	_p54_setup_mac
	mov	x0, x20
	mov	x1, x24
	bl	_p54_beacon_update
	mov	x0, x20
	bl	_p54_set_edcf
	ldr	w8, [x25]
LBB0_4:
Lloh11:
	adrp	x9, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x21, #32]
	str	w8, [x20, #24]
	mov	x0, x20
	bl	_p54_set_edcf
LBB0_6:
Lloh14:
	adrp	x8, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	w10, [x21]
	lsl	w11, w10, #4
	cmp	x8, x9
	csel	w8, w11, w10, eq
	str	w8, [x20]
	mov	x0, x20
	bl	_p54_setup_mac
	ldr	w8, [x20, #4]
	cmp	w8, #1280
	b.lt	LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _P54_SCAN_EXIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _P54_SCAN_EXIT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_p54_scan
LBB0_9:
Lloh23:
	adrp	x8, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.10:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x21, #16]
	str	x8, [x20, #16]
	ldp	w8, w9, [x21, #4]
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #2
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_p54_setup_mac
	b	LBB0_13
LBB0_12:
	mov	w8, #500
	str	w8, [x20, #8]
	str	xzr, [x20, #16]
LBB0_13:
	mov	x0, x19
	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 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 AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_BSSID,4,2          ; @BSS_CHANGED_BSSID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_BSS_CHANGED_BEACON,4,2         ; @BSS_CHANGED_BEACON
	.comm	_P54_SCAN_EXIT,4,2              ; @P54_SCAN_EXIT
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.no_dead_strip	_p54_bss_info_changed
.subsections_via_symbols
