	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_bss_info_changed
_mt7603_bss_info_changed:               ## @mt7603_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
	pushq	%rax
	.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	(%rdi), %r13
	movq	(%rsi), %r14
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_BSS_CHANGED_ASSOC@GOTPCREL(%rip), %rax
	movq	_BSS_CHANGED_BSSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_6
## %bb.1:
	cmpq	$0, 32(%r15)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 24(%r15)
	je	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	callq	_MT_BSSID0
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	callq	_get_unaligned_le32
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mt76_wr
	movl	(%r14), %edi
	callq	_MT_BSSID1
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	addq	$4, %rdi
	callq	_get_unaligned_le16
	movq	_MT_BSSID1_VALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
LBB0_5:
	callq	_mt76_wr
LBB0_6:
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.7:
	cmpq	$0, 8(%r15)
	movl	$20, %ecx
	movl	$9, %eax
	cmovel	%ecx, %eax
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_mt7603_mac_set_timing
LBB0_9:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_13
## %bb.10:
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	movl	(%r15), %ebx
LBB0_12:
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_tasklet_disable
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_mt7603_beacon_set_timer
	movq	%r15, %rdi
	callq	_tasklet_enable
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_4:
	movl	(%r14), %edi
	callq	_MT_BSSID0
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mt76_wr
	movl	(%r14), %edi
	callq	_MT_BSSID1
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ## @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_BSSID,4,2          ## @BSS_CHANGED_BSSID
	.comm	_MT_BSSID1_VALID,4,2            ## @MT_BSSID1_VALID
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.no_dead_strip	_mt7603_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 mt7603_bss_info_changed
_mt7603_bss_info_changed:               ; @mt7603_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	x22, x3
	mov	x21, x2
	ldr	x20, [x0]
	ldr	x24, [x1]
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _BSS_CHANGED_ASSOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_ASSOC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BSS_CHANGED_BSSID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BSS_CHANGED_BSSID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_11
LBB0_3:
	ldr	w0, [x24]
	bl	_MT_BSSID0
	mov	x23, x0
	ldr	x0, [x21, #16]
	bl	_get_unaligned_le32
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_mt76_wr
	ldr	w0, [x24]
	bl	_MT_BSSID1
	mov	x23, x0
	ldr	x8, [x21, #16]
	add	x0, x8, #4
	bl	_get_unaligned_le16
Lloh6:
	adrp	x8, _MT_BSSID1_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_BSSID1_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x20
	mov	x1, x23
LBB0_4:
	bl	_mt76_wr
LBB0_5:
Lloh9:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	mov	w8, #9
	mov	w9, #20
	csel	w8, w9, w8, eq
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:
	str	w8, [x20]
	mov	x0, x20
	bl	_mt7603_mac_set_timing
LBB0_8:
Lloh12:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
	ldp	w9, w8, [x21]
	cmp	w8, #0
	csel	w21, wzr, w9, eq
	add	x22, x20, #8
	mov	x0, x22
	bl	_tasklet_disable
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_mt7603_beacon_set_timer
	mov	x0, x22
	bl	_tasklet_enable
LBB0_10:
	mov	x0, 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	_mutex_unlock
LBB0_11:
	ldr	w0, [x24]
	bl	_MT_BSSID0
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_mt76_wr
	ldr	w0, [x24]
	bl	_MT_BSSID1
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_ASSOC,4,2          ; @BSS_CHANGED_ASSOC
	.comm	_BSS_CHANGED_BSSID,4,2          ; @BSS_CHANGED_BSSID
	.comm	_MT_BSSID1_VALID,4,2            ; @MT_BSSID1_VALID
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.no_dead_strip	_mt7603_bss_info_changed
.subsections_via_symbols
