	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_hpts_thread
_tcp_hpts_thread:                       ## @tcp_hpts_thread
	.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	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	leaq	36(%rbx), %r15
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_callout_stop
LBB0_5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 40(%rbx)
	movl	$1, (%rbx)
	callq	_NET_EPOCH_ENTER
	movq	%rbx, %rdi
	callq	_tcp_hptsi
	callq	_NET_EPOCH_EXIT
	movq	%rbx, %rdi
	callq	_HPTS_MTX_ASSERT
	movq	_HPTS_TICKS_PER_USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	4(%rbx), %edi
	movq	_tcp_min_hptsi_time@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	setne	%cl
	cmpl	%eax, %edi
	setl	%dl
	xorl	%esi, %esi
	andb	%cl, %dl
	cmovnel	%edi, %esi
	cmovnel	%eax, %edi
	movzbl	%dl, %eax
	movl	%esi, 8(%rbx)
	movl	%eax, 12(%rbx)
	movl	$0, (%rbx)
	xorl	%esi, %esi
	callq	_tvtosbt
	movl	%eax, %r12d
	movq	_tcp_hpts_callout_skip_swi@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	_hpts_timeout_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	32(%rbx), %r14d
	movq	_tcp_hpts_precision@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_C_PREL
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	movl	%r14d, %r9d
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %rdi
	callq	_callout_pending
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	%r15, %rdi
	callq	_callout_active
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_callout_deactivate
	jmp	LBB0_5
LBB0_6:
	movq	_hpts_timeout_swi@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	32(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_C_DIRECT_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_tcp_hpts_precision@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_C_PREL
	orl	%r14d, %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
LBB0_8:
	callq	_callout_reset_sbt_on
	movq	$0, 24(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPTS_TICKS_PER_USEC,4,2        ## @HPTS_TICKS_PER_USEC
	.comm	_tcp_min_hptsi_time,4,2         ## @tcp_min_hptsi_time
	.comm	_tcp_hpts_callout_skip_swi,8,3  ## @tcp_hpts_callout_skip_swi
	.comm	_hpts_timeout_swi,4,2           ## @hpts_timeout_swi
	.comm	_C_DIRECT_EXEC,4,2              ## @C_DIRECT_EXEC
	.comm	_tcp_hpts_precision,4,2         ## @tcp_hpts_precision
	.comm	_hpts_timeout_dir,4,2           ## @hpts_timeout_dir
	.no_dead_strip	_tcp_hpts_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_hpts_thread
_tcp_hpts_thread:                       ; @tcp_hpts_thread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mtx_lock
	ldr	x8, [x20, #24]
	add	x21, x20, #36
	mov	x0, x21
	cbz	x8, LBB0_4
; %bb.1:
	bl	_callout_stop
LBB0_2:
	str	xzr, [x20, #40]
	mov	w8, #1
	str	w8, [x20]
	mov	x0, #0
	bl	_NET_EPOCH_ENTER
	mov	x0, x20
	bl	_tcp_hptsi
	mov	x0, #0
	bl	_NET_EPOCH_EXIT
	mov	x0, x20
	bl	_HPTS_MTX_ASSERT
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _HPTS_TICKS_PER_USEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HPTS_TICKS_PER_USEC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _tcp_min_hptsi_time@GOTPAGE
Lloh4:
	ldr	x10, [x10, _tcp_min_hptsi_time@GOTPAGEOFF]
	mul	w8, w9, w8
Lloh5:
	ldr	w9, [x10]
	cmp	w9, #0
	cset	w10, ne
	cmp	w8, w9
	cset	w11, lt
	ands	w10, w10, w11
	csel	w11, w8, wzr, ne
	csel	w0, w9, w8, ne
	stp	w11, w10, [x20, #8]
	str	wzr, [x20]
	mov	x1, #0
	bl	_tvtosbt
	mov	x22, x0
Lloh6:
	adrp	x8, _tcp_hpts_callout_skip_swi@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tcp_hpts_callout_skip_swi@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _hpts_timeout_dir@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hpts_timeout_dir@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	ldr	w24, [x20, #32]
Lloh12:
	adrp	x8, _tcp_hpts_precision@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tcp_hpts_precision@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_C_PREL
	mov	x6, x0
	b	LBB0_8
LBB0_4:
	bl	_callout_pending
	cbnz	x0, LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_callout_active
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_callout_deactivate
	b	LBB0_2
LBB0_7:
Lloh15:
	adrp	x8, _hpts_timeout_swi@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hpts_timeout_swi@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
	ldr	w24, [x20, #32]
Lloh18:
	adrp	x8, _C_DIRECT_EXEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _C_DIRECT_EXEC@GOTPAGEOFF]
Lloh20:
	ldr	w25, [x8]
Lloh21:
	adrp	x8, _tcp_hpts_precision@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tcp_hpts_precision@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_C_PREL
	orr	w6, w0, w25
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x3, x23
	mov	x4, x20
	mov	x5, x24
	bl	_callout_reset_sbt_on
	str	xzr, [x20, #24]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HPTS_TICKS_PER_USEC,4,2        ; @HPTS_TICKS_PER_USEC
	.comm	_tcp_min_hptsi_time,4,2         ; @tcp_min_hptsi_time
	.comm	_tcp_hpts_callout_skip_swi,8,3  ; @tcp_hpts_callout_skip_swi
	.comm	_hpts_timeout_swi,4,2           ; @hpts_timeout_swi
	.comm	_C_DIRECT_EXEC,4,2              ; @C_DIRECT_EXEC
	.comm	_tcp_hpts_precision,4,2         ; @tcp_hpts_precision
	.comm	_hpts_timeout_dir,4,2           ; @hpts_timeout_dir
	.no_dead_strip	_tcp_hpts_thread
.subsections_via_symbols
