	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rack_timeout_keepalive
_rack_timeout_keepalive:                ## @rack_timeout_keepalive
	.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
	movq	40(%rdi), %rax
	movq	_TT_STOPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_10
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_PACE_TMR_KEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rsi)
	movq	32(%rdi), %r12
	movq	_RACK_TO_FRM_KEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rack_log_to_event
	movq	_tcps_keeptimeo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
	movq	(%rbx), %rax
	movq	_TCPS_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
LBB0_9:
	movq	_tcps_keepdrops@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
	movl	(%r15), %edi
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tcp_set_inp_to_drop
	jmp	LBB0_10
LBB0_2:
	movq	_tcp_always_keepalive@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %rcx
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_8
LBB0_4:
	movq	_TCPS_CLOSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_8
## %bb.5:
	movq	_ticks@GOTPCREL(%rip), %rax
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	subq	8(%rbx), %r12
	movq	%rbx, %rdi
	callq	_TP_KEEPIDLE
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_TP_MAXIDLE
	addq	%r13, %rax
	cmpq	%rax, %r12
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_9
## %bb.6:
	movq	_tcps_keepprobe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
	movq	%r12, %rdi
	callq	_tcpip_maketemplate
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r12
	movl	4(%rax), %esi
	movl	24(%rbx), %r8d
	movq	16(%rbx), %r9
	decq	%r9
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_tcp_respond
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_rack_start_hpts_timer
LBB0_10:
	movl	$1, %eax
	addq	$24, %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	_PACE_TMR_KEEP,4,2              ## @PACE_TMR_KEEP
	.comm	_RACK_TO_FRM_KEEP,4,2           ## @RACK_TO_FRM_KEEP
	.comm	_tcps_keeptimeo,4,2             ## @tcps_keeptimeo
	.comm	_TCPS_ESTABLISHED,8,3           ## @TCPS_ESTABLISHED
	.comm	_tcp_always_keepalive,8,3       ## @tcp_always_keepalive
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_TCPS_CLOSING,8,3               ## @TCPS_CLOSING
	.comm	_ticks,8,3                      ## @ticks
	.comm	_tcps_keepprobe,4,2             ## @tcps_keepprobe
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_tcps_keepdrops,4,2             ## @tcps_keepdrops
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_rack_timeout_keepalive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rack_timeout_keepalive
_rack_timeout_keepalive:                ; @rack_timeout_keepalive
	.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
	ldr	x8, [x0, #40]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _TT_STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TT_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _PACE_TMR_KEEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACE_TMR_KEEP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x1, #4]
	bic	w8, w9, w8
	str	w8, [x1, #4]
	ldr	x22, [x0, #32]
Lloh6:
	adrp	x8, _RACK_TO_FRM_KEEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RACK_TO_FRM_KEEP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rack_log_to_event
Lloh9:
	adrp	x8, _tcps_keeptimeo@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tcps_keeptimeo@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _TCPS_ESTABLISHED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCPS_ESTABLISHED@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _tcps_keepdrops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tcps_keepdrops@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_tcp_set_inp_to_drop
	b	LBB0_10
LBB0_3:
Lloh21:
	adrp	x9, _tcp_always_keepalive@GOTPAGE
Lloh22:
	ldr	x9, [x9, _tcp_always_keepalive@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.4:
Lloh24:
	adrp	x9, _TCPS_CLOSING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TCPS_CLOSING@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
	b	LBB0_9
LBB0_5:
	ldr	x9, [x22]
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _SO_KEEPALIVE@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh30:
	adrp	x10, _TCPS_CLOSING@GOTPAGE
Lloh31:
	ldr	x10, [x10, _TCPS_CLOSING@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	cmp	w9, #0
	ccmp	x8, x10, #0, ne
	b.gt	LBB0_9
LBB0_6:
Lloh33:
	adrp	x8, _ticks@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	sub	x24, x8, x9
	mov	x0, x21
	bl	_TP_KEEPIDLE
	mov	x23, x0
	mov	x0, x21
	bl	_TP_MAXIDLE
	add	x8, x0, x23
	cmp	x24, x8
	b.ge	LBB0_2
; %bb.7:
Lloh36:
	adrp	x8, _tcps_keepprobe@GOTPAGE
Lloh37:
	ldr	x8, [x8, _tcps_keepprobe@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
	mov	x0, x22
	bl	_tcpip_maketemplate
	cbz	x0, LBB0_9
; %bb.8:
	mov	x22, x0
	ldr	w1, [x0, #4]
	ldr	w4, [x21, #24]
	ldr	x8, [x21, #16]
	sub	x5, x8, #1
	mov	x0, x21
	mov	x2, x22
	mov	x3, #0
	mov	w6, #0
	bl	_tcp_respond
Lloh39:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_free
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_rack_start_hpts_timer
LBB0_10:
	mov	w0, #1
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_TT_STOPPED,4,2                 ; @TT_STOPPED
	.comm	_PACE_TMR_KEEP,4,2              ; @PACE_TMR_KEEP
	.comm	_RACK_TO_FRM_KEEP,4,2           ; @RACK_TO_FRM_KEEP
	.comm	_tcps_keeptimeo,4,2             ; @tcps_keeptimeo
	.comm	_TCPS_ESTABLISHED,8,3           ; @TCPS_ESTABLISHED
	.comm	_tcp_always_keepalive,8,3       ; @tcp_always_keepalive
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_TCPS_CLOSING,8,3               ; @TCPS_CLOSING
	.comm	_ticks,8,3                      ; @ticks
	.comm	_tcps_keepprobe,4,2             ; @tcps_keepprobe
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_tcps_keepdrops,4,2             ; @tcps_keepdrops
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_rack_timeout_keepalive
.subsections_via_symbols
