	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00link_tuner_sta
_rt2x00link_tuner_sta:                  ## @rt2x00link_tuner_sta
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%r14, %rsi
	callq	*8(%rax)
	movl	24(%rbx), %eax
	addl	%eax, 8(%rbx)
	cmpl	$0, 20(%rbx)
	je	LBB0_1
## %bb.2:
	leaq	4(%r15), %rdi
	callq	_rt2x00link_get_avg_rssi
	jmp	LBB0_3
LBB0_1:
	movq	_DEFAULT_RSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_rt2x00_has_cap_link_tuning
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
LBB0_5:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_rt2x00leds_led_quality
	movq	%rbx, %rdi
	callq	_rt2x00lib_antenna_diversity
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00link_reset_qual          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_RSSI,4,2               ## @DEFAULT_RSSI
	.no_dead_strip	_rt2x00link_tuner_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00link_tuner_sta
_rt2x00link_tuner_sta:                  ; @rt2x00link_tuner_sta
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #16
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x1, x20
	blr	x8
	ldr	w8, [x19, #8]
	ldp	w10, w9, [x19, #20]
	add	w8, w8, w9
	str	w8, [x19, #8]
	cbz	w10, LBB0_2
; %bb.1:
	add	x0, x21, #4
	bl	_rt2x00link_get_avg_rssi
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _DEFAULT_RSSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_RSSI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	str	w0, [x19, #16]
	mov	x0, x19
	bl	_rt2x00_has_cap_link_tuning
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_5:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_rt2x00leds_led_quality
	mov	x0, x19
	bl	_rt2x00lib_antenna_diversity
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rt2x00link_reset_qual
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_RSSI,4,2               ; @DEFAULT_RSSI
	.no_dead_strip	_rt2x00link_tuner_sta
.subsections_via_symbols
