	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rack_timeout_rack
_rack_timeout_rack:                     ## @rack_timeout_rack
	.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	16(%rdi), %rax
	movq	_TT_STOPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r15d
	testl	%ecx, (%rax)
	jne	LBB0_14
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	36(%rsi), %esi
	movl	%edx, %edi
	callq	_TSTMP_LT
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movl	8(%rbx), %edi
	callq	_IN_RECOVERY
	movq	%rax, %r13
	movq	_rack_to_tot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rack_set_state
LBB0_5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_rack_check_recovery_mode
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %r12
	movq	(%rax), %rdx
	subq	8(%rax), %rdx
	movq	_RACK_TO_FRM_RACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rack_log_to_event
	testq	%r13, %r13
	jne	LBB0_9
## %bb.7:
	movq	16(%r14), %r13
	movq	%rbx, %rdi
	callq	_ctf_fixed_maxseg
	cmpq	%rax, %r13
	jge	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_ctf_fixed_maxseg
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_rack_log_to_prr
	jmp	LBB0_13
LBB0_9:
	movq	(%r12), %rax
	subq	8(%r12), %rax
	cmpq	%rax, 16(%r14)
	jge	LBB0_13
## %bb.10:
	cmpq	$0, 40(%r14)
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_ctf_fixed_maxseg
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_rack_log_to_prr
	jmp	LBB0_13
LBB0_12:
	movq	_RACK_TO_FRM_RACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rack_log_to_event
	movq	_rack_tlp_does_nada@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	leaq	28(%r14), %rdi
	callq	_TAILQ_FIRST
	movl	%eax, 32(%r14)
LBB0_13:
	movq	_PACE_TMR_RACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r14)
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TT_STOPPED,4,2                 ## @TT_STOPPED
	.comm	_rack_to_tot,4,2                ## @rack_to_tot
	.comm	_RACK_TO_FRM_RACK,4,2           ## @RACK_TO_FRM_RACK
	.comm	_rack_tlp_does_nada,4,2         ## @rack_tlp_does_nada
	.comm	_PACE_TMR_RACK,4,2              ## @PACE_TMR_RACK
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.no_dead_strip	_rack_timeout_rack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rack_timeout_rack
_rack_timeout_rack:                     ; @rack_timeout_rack
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _TT_STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TT_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_16
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1, #36]
	mov	x0, x2
	bl	_TSTMP_LT
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_16
LBB0_4:
	ldr	w0, [x20, #8]
	bl	_IN_RECOVERY
	mov	x22, x0
Lloh3:
	adrp	x8, _rack_to_tot@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rack_to_tot@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_rack_set_state
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_rack_check_recovery_mode
	cbz	x0, LBB0_14
; %bb.8:
	mov	x21, x0
	ldp	x8, x9, [x0]
	sub	x2, x8, x9
Lloh6:
	adrp	x8, _RACK_TO_FRM_RACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RACK_TO_FRM_RACK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rack_log_to_event
	cbnz	x22, LBB0_11
; %bb.9:
	ldr	x22, [x19, #16]
	mov	x0, x20
	bl	_ctf_fixed_maxseg
	cmp	x22, x0
	b.ge	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_ctf_fixed_maxseg
	str	x0, [x19, #16]
	mov	x0, x19
	mov	w1, #3
	bl	_rack_log_to_prr
	b	LBB0_15
LBB0_11:
	ldr	x8, [x19, #16]
	ldp	x9, x10, [x21]
	sub	x9, x9, x10
	cmp	x8, x9
	b.ge	LBB0_15
; %bb.12:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_ctf_fixed_maxseg
	str	x0, [x19, #16]
	mov	x0, x19
	mov	w1, #4
	bl	_rack_log_to_prr
	b	LBB0_15
LBB0_14:
Lloh9:
	adrp	x8, _RACK_TO_FRM_RACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RACK_TO_FRM_RACK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_rack_log_to_event
Lloh12:
	adrp	x8, _rack_tlp_does_nada@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rack_tlp_does_nada@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	add	x0, x19, #28
	bl	_TAILQ_FIRST
	str	w0, [x19, #32]
LBB0_15:
	mov	w0, #0
Lloh15:
	adrp	x8, _PACE_TMR_RACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PACE_TMR_RACK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TT_STOPPED,4,2                 ; @TT_STOPPED
	.comm	_rack_to_tot,4,2                ; @rack_to_tot
	.comm	_RACK_TO_FRM_RACK,4,2           ; @RACK_TO_FRM_RACK
	.comm	_rack_tlp_does_nada,4,2         ; @rack_tlp_does_nada
	.comm	_PACE_TMR_RACK,4,2              ; @PACE_TMR_RACK
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.no_dead_strip	_rack_timeout_rack
.subsections_via_symbols
