	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_bss_info_changed     ## -- Begin function rt2x00mac_bss_info_changed
	.p2align	4, 0x90
_rt2x00mac_bss_info_changed:            ## @rt2x00mac_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, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_vif_to_intf
	movq	%rax, %r14
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movq	_BSS_CHANGED_BSSID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r13), %edx
	movl	16(%r12), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_rt2x00lib_config_intf
LBB0_3:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.4:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r12)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	je	LBB0_5
## %bb.9:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	incl	(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	%r15, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_rt2x00queue_update_beacon
LBB0_12:
	cmpl	$1, (%r15)
	jne	LBB0_14
## %bb.13:
	movl	16(%r15), %edi
	callq	_rt2x00queue_start_queue
	jmp	LBB0_14
LBB0_5:
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	decl	(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movl	16(%r15), %edi
	callq	_rt2x00queue_stop_queue
LBB0_8:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_rt2x00queue_clear_beacon
LBB0_14:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_15:
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.16:
	movq	$0, 8(%r15)
	xorl	%eax, %eax
	cmpq	$1, (%r12)
	sbbl	%eax, %eax
	orl	$1, %eax
	xorl	%esi, %esi
	addl	%eax, 4(%r15)
	setne	%sil
	movq	%r15, %rdi
	callq	_rt2x00leds_led_assoc
LBB0_17:
	movq	_BSS_CHANGED_ERP_CTS_PROT@GOTPCREL(%rip), %rax
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BSS_CHANGED_HT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_18
## %bb.19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00lib_config_erp           ## TAILCALL
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_STATE_PRESENT,4,2       ## @DEVICE_STATE_PRESENT
	.comm	_BSS_CHANGED_BSSID,4,2          ## @BSS_CHANGED_BSSID
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ## @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ## @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_HT,4,2             ## @BSS_CHANGED_HT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_bss_info_changed     ; -- Begin function rt2x00mac_bss_info_changed
	.p2align	2
_rt2x00mac_bss_info_changed:            ; @rt2x00mac_bss_info_changed
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	ldr	x21, [x0]
	mov	x0, x1
	bl	_vif_to_intf
	mov	x22, x0
Lloh0:
	adrp	x8, _DEVICE_STATE_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVICE_STATE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #20
	bl	_test_bit
	cbz	w0, LBB0_19
; %bb.1:
Lloh3:
	adrp	x8, _BSS_CHANGED_BSSID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSS_CHANGED_BSSID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.2:
	ldr	w2, [x23]
	ldr	w4, [x20, #16]
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_rt2x00lib_config_intf
LBB0_3:
Lloh6:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_15
; %bb.4:
	add	x24, x22, #4
	mov	x0, x24
	bl	_mutex_lock
	ldr	x9, [x20, #8]
	ldr	w8, [x22]
	cbz	x9, LBB0_10
; %bb.5:
	cbnz	w8, LBB0_14
; %bb.6:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x21
	bl	_rt2x00_is_usb
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x23
	bl	_rt2x00queue_update_beacon
LBB0_8:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.9:
	ldr	w0, [x21, #16]
	bl	_rt2x00queue_start_queue
	b	LBB0_14
LBB0_10:
	cbz	w8, LBB0_14
; %bb.11:
	ldr	w8, [x21]
	str	wzr, [x22]
	subs	w8, w8, #1
	str	w8, [x21]
	b.ne	LBB0_13
; %bb.12:
	ldr	w0, [x21, #16]
	bl	_rt2x00queue_stop_queue
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	bl	_rt2x00queue_clear_beacon
LBB0_14:
	mov	x0, x24
	bl	_mutex_unlock
LBB0_15:
Lloh9:
	adrp	x8, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_17
; %bb.16:
	str	xzr, [x21, #8]
	ldr	x8, [x20]
	ldr	w9, [x21, #4]
	sub	w10, w9, #1
	cmp	x8, #0
	csinc	w8, w10, w9, eq
	str	w8, [x21, #4]
	cmp	w8, #0
	cset	w1, ne
	mov	x0, x21
	bl	_rt2x00leds_led_assoc
LBB0_17:
Lloh12:
	adrp	x8, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh23:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _BSS_CHANGED_HT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BSS_CHANGED_HT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w19
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rt2x00lib_config_erp
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_STATE_PRESENT,4,2       ; @DEVICE_STATE_PRESENT
	.comm	_BSS_CHANGED_BSSID,4,2          ; @BSS_CHANGED_BSSID
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ; @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ; @BSS_CHANGED_ERP_PREAMBLE
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_BSS_CHANGED_HT,4,2             ; @BSS_CHANGED_HT
.subsections_via_symbols
