	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rssadapt_tx_complete
_rssadapt_tx_complete:                  ## @rssadapt_tx_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rax
	movl	(%rsi), %ecx
	movq	_IEEE80211_RATECTL_STATUS_PKTLEN@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_RATECTL_STATUS_RSSI@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	notl	%ecx
	testl	%ecx, %esi
	jne	LBB0_7
## %bb.2:
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movq	16(%rax), %rax
	movq	_IEEE80211_RATECTL_TX_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	incl	40(%rdi)
	movq	(%rdi), %rax
	incq	%rax
	cmpq	32(%rdi), %rax
	jge	LBB0_7
## %bb.4:
	movq	_ticks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jge	LBB0_5
LBB0_7:
	popq	%rbp
	retq
LBB0_6:
	incl	24(%rdi)
	popq	%rbp
	jmp	_rssadapt_lower_rate            ## TAILCALL
LBB0_5:
	popq	%rbp
	jmp	_rssadapt_raise_rate            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_RATECTL_STATUS_PKTLEN,4,2 ## @IEEE80211_RATECTL_STATUS_PKTLEN
	.comm	_IEEE80211_RATECTL_STATUS_RSSI,4,2 ## @IEEE80211_RATECTL_STATUS_RSSI
	.comm	_IEEE80211_RATECTL_TX_SUCCESS,8,3 ## @IEEE80211_RATECTL_TX_SUCCESS
	.comm	_ticks,8,3                      ## @ticks
	.no_dead_strip	_rssadapt_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rssadapt_tx_complete
_rssadapt_tx_complete:                  ; @rssadapt_tx_complete
	.cfi_startproc
; %bb.0:
	ldr	x0, [x0]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x8, x1
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _IEEE80211_RATECTL_STATUS_PKTLEN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEEE80211_RATECTL_STATUS_PKTLEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _IEEE80211_RATECTL_STATUS_RSSI@GOTPAGE
Lloh4:
	ldr	x11, [x11, _IEEE80211_RATECTL_STATUS_RSSI@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w10, w11, w10
	bics	wzr, w10, w9
	b.ne	LBB0_5
; %bb.2:
	ldp	w1, w2, [x8, #4]
	ldr	x8, [x8, #16]
Lloh6:
	adrp	x9, _IEEE80211_RATECTL_TX_SUCCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_RATECTL_TX_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x0, #40]
	add	w8, w8, #1
	str	w8, [x0, #40]
	ldr	x8, [x0]
	add	x8, x8, #1
	ldr	x9, [x0, #32]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _ticks@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldp	x9, x10, [x0, #8]
	sub	x8, x8, x9
	cmp	x8, x10
	b.ge	LBB0_7
LBB0_5:
	ret
LBB0_6:
	ldr	w8, [x0, #24]
	add	w8, w8, #1
	str	w8, [x0, #24]
	b	_rssadapt_lower_rate
LBB0_7:
	b	_rssadapt_raise_rate
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_RATECTL_STATUS_PKTLEN,4,2 ; @IEEE80211_RATECTL_STATUS_PKTLEN
	.comm	_IEEE80211_RATECTL_STATUS_RSSI,4,2 ; @IEEE80211_RATECTL_STATUS_RSSI
	.comm	_IEEE80211_RATECTL_TX_SUCCESS,8,3 ; @IEEE80211_RATECTL_TX_SUCCESS
	.comm	_ticks,8,3                      ; @ticks
	.no_dead_strip	_rssadapt_tx_complete
.subsections_via_symbols
