	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_get_min_avg_rssi          ## -- Begin function mt76_get_min_avg_rssi
	.p2align	4, 0x90
_mt76_get_min_avg_rssi:                 ## @mt76_get_min_avg_rssi
	.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
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_local_bh_disable
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r12
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	(%rdi,%rbx,8), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	imull	%ebx, %eax
	movslq	%eax, %r15
	shlq	$2, %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r13d
	cmovll	%r13d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rax
	shrq	%rax
	addq	$4, %r15
	cmpq	$1, %r14
	movq	%rax, %r14
	jbe	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %r14b
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax,%r15), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_spin_lock
	movl	4(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rbx)
	xorl	%r13d, %r13d
	cmpl	$4, %eax
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_ewma_signal_read
	movl	%eax, %r13d
	negl	%r13d
	jmp	LBB0_8
LBB0_12:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	xorl	%eax, %eax
	callq	_local_bh_enable
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_get_min_avg_rssi          ; -- Begin function mt76_get_min_avg_rssi
	.p2align	2
_mt76_get_min_avg_rssi:                 ; @mt76_get_min_avg_rssi
	.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, x0
	bl	_local_bh_disable
	bl	_rcu_read_lock
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x23, #0
	mov	w20, #0
	add	x21, x19, #8
Lloh0:
	adrp	x24, _BITS_PER_LONG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BITS_PER_LONG@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x0, [x19]
	ldr	x25, [x0, x23, lsl #3]
	cbz	x25, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	mul	w8, w8, w23
	sbfiz	x26, x8, #2, #32
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x22
	bl	_ewma_signal_read
	neg	w22, w0
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_spin_unlock
	cmp	w22, w20
	csel	w20, w22, w20, lt
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	lsr	x8, x25, #1
	add	x26, x26, #4
	cmp	x25, #1
	mov	x25, x8
	b.ls	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w25, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x26]
	bl	_rcu_dereference
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x22, x0
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x22, #4]
	add	w9, w8, #1
	str	w9, [x22, #4]
	cmp	w8, #4
	b.le	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w22, #0
	b	LBB0_7
LBB0_13:
	mov	w20, #0
LBB0_14:
	bl	_rcu_read_unlock
	bl	_local_bh_enable
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
.subsections_via_symbols
