	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8187_bss_info_changed
_rtl8187_bss_info_changed:              ## @rtl8187_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, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	_BSS_CHANGED_BSSID@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	8(%rax), %rsi
	addq	%r14, %rsi
	movq	16(%r12), %rax
	movl	(%rax,%r14), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	xorl	%r13d, %r13d
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_RTL818X_MSR_ENEDCA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:
	movq	16(%r12), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.8:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_9
## %bb.10:
	movq	_RTL818X_MSR_ADHOC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_RTL818X_MSR_NO_LINK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	_RTL818X_MSR_INFRA@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%rax), %r13d
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite8
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_12:
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rax
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_14
## %bb.13:
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	movq	%rbx, %rdi
	callq	_rtl8187_conf_erp
LBB0_14:
	addq	$8, %r14
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_16
## %bb.15:
	movq	(%r12), %rcx
	movq	%rcx, 8(%r14)
LBB0_16:
	movq	_BSS_CHANGED_BEACON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_cancel_delayed_work_sync
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.19:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_BSSID,4,2          ## @BSS_CHANGED_BSSID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_RTL818X_MSR_ENEDCA,4,2         ## @RTL818X_MSR_ENEDCA
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_RTL818X_MSR_ADHOC,4,2          ## @RTL818X_MSR_ADHOC
	.comm	_RTL818X_MSR_INFRA,4,2          ## @RTL818X_MSR_INFRA
	.comm	_RTL818X_MSR_NO_LINK,4,2        ## @RTL818X_MSR_NO_LINK
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ## @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_BEACON,4,2         ## @BSS_CHANGED_BEACON
	.no_dead_strip	_rtl8187_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 rtl8187_bss_info_changed
_rtl8187_bss_info_changed:              ; @rtl8187_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	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _BSS_CHANGED_BSSID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_BSSID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_8
; %bb.1:
	mov	x0, x22
	bl	_mutex_lock
Lloh3:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	x25, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	add	x1, x8, x24
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x24]
	mov	x0, x22
	bl	_rtl818x_iowrite8
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	x8, [x22, #16]
Lloh5:
	adrp	x9, _RTL818X_MSR_ENEDCA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RTL818X_MSR_ENEDCA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w23, wzr, w9, eq
	ldr	x0, [x20, #16]
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _RTL818X_MSR_INFRA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RTL818X_MSR_INFRA@GOTPAGEOFF]
Lloh13:
	adrp	x11, _RTL818X_MSR_ADHOC@GOTPAGE
Lloh14:
	ldr	x11, [x11, _RTL818X_MSR_ADHOC@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _RTL818X_MSR_NO_LINK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTL818X_MSR_NO_LINK@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	orr	w2, w8, w23
	ldr	x1, [x22, #8]
	mov	x0, x22
	bl	_rtl818x_iowrite8
	mov	x0, x22
	bl	_mutex_unlock
LBB0_8:
Lloh17:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_10
; %bb.9:
	ldp	w2, w1, [x20, #8]
	mov	x0, x22
	bl	_rtl8187_conf_erp
LBB0_10:
	add	x21, x21, #8
Lloh23:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_12
; %bb.11:
	ldr	x9, [x20]
	str	x9, [x21, #8]
LBB0_12:
Lloh26:
	adrp	x9, _BSS_CHANGED_BEACON@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BSS_CHANGED_BEACON@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x21
	bl	_cancel_delayed_work_sync
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x21
	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	_schedule_work
LBB0_15:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_BSSID,4,2          ; @BSS_CHANGED_BSSID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_RTL818X_MSR_ENEDCA,4,2         ; @RTL818X_MSR_ENEDCA
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_RTL818X_MSR_ADHOC,4,2          ; @RTL818X_MSR_ADHOC
	.comm	_RTL818X_MSR_INFRA,4,2          ; @RTL818X_MSR_INFRA
	.comm	_RTL818X_MSR_NO_LINK,4,2        ; @RTL818X_MSR_NO_LINK
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ; @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_BEACON,4,2         ; @BSS_CHANGED_BEACON
	.no_dead_strip	_rtl8187_bss_info_changed
.subsections_via_symbols
