	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rack_check_recovery_mode
_rack_check_recovery_mode:              ## @rack_check_recovery_mode
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	leaq	16(%rbx), %rdi
	callq	_RB_EMPTY
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	12(%rbx), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r12
	movq	_RACK_ACKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_rack_find_lowest_rsm
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	8(%r12), %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rack_grab_rtt
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_rack_calc_thresh_rack
	movq	%rax, %rcx
	movq	16(%r12), %rdx
	xorl	%eax, %eax
	subq	-8(%rdx,%r13,8), %r15
	jl	LBB0_2
## %bb.7:
	cmpq	%rcx, %r15
	jl	LBB0_2
## %bb.8:
	movl	24(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	_CC_NDUPACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rack_cong_signal
	movq	%r12, %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_RACK_ACKED,4,2                 ## @RACK_ACKED
	.comm	_CC_NDUPACK,4,2                 ## @CC_NDUPACK
	.no_dead_strip	_rack_check_recovery_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rack_check_recovery_mode
_rack_check_recovery_mode:              ; @rack_check_recovery_mode
	.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	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x0, x21, #16
	bl	_RB_EMPTY
	cbz	x0, LBB0_3
LBB0_1:
	mov	x20, #0
LBB0_2:
	mov	x0, x20
	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
LBB0_3:
	add	x0, x21, #12
	bl	_TAILQ_FIRST
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.4:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _RACK_ACKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RACK_ACKED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_rack_find_lowest_rsm
	mov	x20, x0
	cbz	x0, LBB0_2
LBB0_6:
	ldr	x23, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_rack_grab_rtt
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_rack_calc_thresh_rack
	ldr	x8, [x20, #16]
	add	x8, x8, x23, lsl #3
	ldur	x8, [x8, #-8]
	subs	x8, x22, x8
	ccmp	x8, x0, #8, ge
	b.lt	LBB0_1
; %bb.7:
	ldr	w8, [x20, #24]
	str	w8, [x21, #8]
	ldr	d0, [x19]
	str	d0, [x21]
Lloh3:
	adrp	x8, _CC_NDUPACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CC_NDUPACK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_rack_cong_signal
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RACK_ACKED,4,2                 ; @RACK_ACKED
	.comm	_CC_NDUPACK,4,2                 ; @CC_NDUPACK
	.no_dead_strip	_rack_check_recovery_mode
.subsections_via_symbols
