	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7615_sta_rate_tbl_update
_mt7615_sta_rate_tbl_update:            ## @mt7615_sta_rate_tbl_update
	.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
	movq	(%rdi), %r14
	movq	8(%rdx), %r12
	movl	(%rdx), %edi
	callq	_rcu_dereference
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	8(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	$12, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	-12(%rcx,%rbx), %rdx
	movq	8(%r12), %rdi
	movq	%rdx, -12(%rdi,%rbx)
	movl	(%rcx,%rbx), %eax
	movl	%eax, -4(%rdi,%rbx)
	movl	-4(%rcx,%rbx), %ecx
	movl	%ecx, (%rdi,%rbx)
	testq	%rdx, %rdx
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
LBB0_6:
	movl	%r13d, (%r12)
	movq	8(%r12), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_mt7615_mac_set_rates
	movl	$0, 4(%r12)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mt7615_sta_rate_tbl_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7615_sta_rate_tbl_update
_mt7615_sta_rate_tbl_update:            ; @mt7615_sta_rate_tbl_update
	.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
	ldr	x19, [x0]
	ldr	x20, [x2, #8]
	ldr	w0, [x2]
	bl	_rcu_dereference
	mov	x21, x0
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x9, x8, x23
	ldr	x10, [x9]
	ldr	x0, [x20, #8]
	add	x11, x0, x23
	str	x10, [x11]
	ldp	w9, w8, [x9, #8]
	stp	w8, w9, [x11, #8]
	tbnz	x10, #63, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	str	w22, [x20]
	ldr	x3, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_mt7615_mac_set_rates
	str	wzr, [x20, #4]
	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	_spin_unlock_bh
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mt7615_sta_rate_tbl_update
.subsections_via_symbols
