	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rssadapt_lower_rate
_rssadapt_lower_rate:                   ## @rssadapt_lower_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movl	%esi, %edi
	callq	_bucket
	leaq	(%r15,%rax,8), %r12
	movq	(%rbx), %r13
	movl	(%r12,%r13,4), %r15d
	movq	_master_expavgctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %edx
	shll	$8, %edx
	movl	%r15d, %esi
	callq	_interpolate
	movl	%eax, (%r12,%r13,4)
	movq	8(%rbx), %rdx
	movq	16(%rbx), %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(%rdx,%r13,4), %ecx
	movl	%r14d, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_IEEE80211_DPRINTF
	addq	$8, %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 lower threshold for rate %d (last_thr %d new thr %d rssi %d)\n"

	.comm	_IEEE80211_RATE_VAL,4,2         ## @IEEE80211_RATE_VAL
	.no_dead_strip	_rssadapt_lower_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rssadapt_lower_rate
_rssadapt_lower_rate:                   ; @rssadapt_lower_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	x19, x2
	mov	x20, x0
	ldr	x21, [x0, #24]
	mov	x0, x1
	bl	_bucket
	add	x22, x21, x0, lsl #3
	ldr	x8, [x20]
	lsl	x23, x8, #2
	ldr	w21, [x22, x23]
Lloh0:
	adrp	x8, _master_expavgctl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _master_expavgctl@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	lsl	w2, w19, #8
	mov	x1, x21
	bl	_interpolate
	mov	x5, x0
	str	w0, [x22, x23]
	ldp	x9, x8, [x20, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _IEEE80211_MSG_RATECTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_MSG_RATECTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x8, x23, x9
Lloh6:
	adrp	x9, _IEEE80211_RATE_VAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_RATE_VAL@GOTPAGEOFF]
	ldr	w8, [x8, #4]
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	x6, 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	_IEEE80211_DPRINTF
	.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 lower threshold for rate %d (last_thr %d new thr %d rssi %d)\n"

	.comm	_IEEE80211_RATE_VAL,4,2         ; @IEEE80211_RATE_VAL
	.no_dead_strip	_rssadapt_lower_rate
.subsections_via_symbols
