	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rssadapt_raise_rate
_rssadapt_raise_rate:                   ## @rssadapt_raise_rate
	.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	%edx, %r13d
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movl	%esi, %edi
	callq	_bucket
	leaq	(%rbx,%rax,8), %r14
	movslq	8(%r12), %rbx
	movl	(%r14,%rbx,4), %eax
	movl	4(%r14,%rbx,4), %r15d
	cmpl	%eax, %r15d
	jle	LBB0_2
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	shll	$8, %r13d
	testl	%eax, %eax
	cmovnel	%eax, %r13d
	movq	_master_expavgctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_interpolate
	movl	%eax, 4(%r14,%rbx,4)
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rcx), %edi
	movq	_IEEE80211_MSG_RATECTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax,%rbx,4), %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	callq	_IEEE80211_DPRINTF
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_RATE_SIZE,4,2        ## @IEEE80211_RATE_SIZE
	.comm	_master_expavgctl,4,2           ## @master_expavgctl
	.comm	_IEEE80211_MSG_RATECTL,4,2      ## @IEEE80211_MSG_RATECTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSSADAPT raise threshold for rate %d (oldthr %d newthr %d rssi %d)\n"

	.comm	_IEEE80211_RATE_VAL,4,2         ## @IEEE80211_RATE_VAL
	.comm	_ticks,4,2                      ## @ticks
	.no_dead_strip	_rssadapt_raise_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rssadapt_raise_rate
_rssadapt_raise_rate:                   ; @rssadapt_raise_rate
	.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	x20, x2
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x1
	bl	_bucket
	add	x23, x21, x0, lsl #3
	ldrsw	x8, [x19, #8]
	add	x24, x8, #1
	ldr	w21, [x23, x24, lsl #2]
	ldr	w8, [x23, x8, lsl #2]
	cmp	w21, w8
	b.le	LBB0_2
; %bb.1:
	lsl	w9, w20, #8
	cmp	w8, #0
	csel	w22, w9, w8, eq
Lloh0:
	adrp	x8, _master_expavgctl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _master_expavgctl@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_interpolate
	lsl	x8, x24, #2
	str	w0, [x23, x8]
	ldp	x10, x9, [x19, #16]
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _IEEE80211_MSG_RATECTL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_MSG_RATECTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w8, [x10, x8]
Lloh6:
	adrp	x9, _IEEE80211_RATE_VAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_RATE_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w3, w9, w8
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x21
	mov	x5, x22
	mov	x6, x20
	bl	_IEEE80211_DPRINTF
Lloh11:
	adrp	x8, _ticks@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_2:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_RATE_SIZE,4,2        ; @IEEE80211_RATE_SIZE
	.comm	_master_expavgctl,4,2           ; @master_expavgctl
	.comm	_IEEE80211_MSG_RATECTL,4,2      ; @IEEE80211_MSG_RATECTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSSADAPT raise threshold for rate %d (oldthr %d newthr %d rssi %d)\n"

	.comm	_IEEE80211_RATE_VAL,4,2         ; @IEEE80211_RATE_VAL
	.comm	_ticks,4,2                      ; @ticks
	.no_dead_strip	_rssadapt_raise_rate
.subsections_via_symbols
