	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function measure_rtt
_measure_rtt:                           ## @measure_rtt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SCTP_RTT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	(%rdi), %r14
	sarq	%cl, %r14
	movq	24(%rdi), %rax
	addq	$24, %rdi
	cmpq	%r14, %rax
	jg	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
	jmp	LBB0_4
LBB0_2:
	movq	%r14, (%rdi)
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
LBB0_4:
	cmpl	$65534, 16(%rbx)                ## imm = 0xFFFE
	jg	LBB0_11
## %bb.5:
	callq	_htcp_ccount
	cmpl	$4, %eax
	jl	LBB0_11
## %bb.6:
	movq	24(%rbx), %rax
	movq	32(%rbx), %r15
	cmpq	%rax, %r15
	jge	LBB0_8
## %bb.7:
	movq	%rax, 32(%rbx)
	movq	%rax, %r15
LBB0_8:
	cmpq	%r14, %r15
	jge	LBB0_11
## %bb.9:
	movl	$20, %edi
	callq	_MSEC_TO_TICKS
	addq	%r15, %rax
	cmpq	%rax, %r14
	jg	LBB0_11
## %bb.10:
	movq	%r14, 32(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_RTT_SHIFT,8,3             ## @SCTP_RTT_SHIFT
	.no_dead_strip	_measure_rtt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function measure_rtt
_measure_rtt:                           ; @measure_rtt
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SCTP_RTT_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCTP_RTT_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	asr	x20, x8, x9
	ldr	x8, [x0, #24]!
	cmp	x8, x20
	ccmp	x8, #0, #4, le
	b.ne	LBB0_2
; %bb.1:
	str	x20, [x0]
LBB0_2:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_10
; %bb.3:
	ldr	w8, [x19, #16]
	mov	w9, #65534
	cmp	w8, w9
	b.gt	LBB0_10
; %bb.4:
	bl	_htcp_ccount
	cmp	w0, #4
	b.lt	LBB0_10
; %bb.5:
	ldp	x8, x21, [x19, #24]
	cmp	x21, x8
	b.ge	LBB0_7
; %bb.6:
	str	x8, [x19, #32]
	mov	x21, x8
LBB0_7:
	cmp	x21, x20
	b.ge	LBB0_10
; %bb.8:
	mov	w0, #20
	bl	_MSEC_TO_TICKS
	add	x8, x0, x21
	cmp	x20, x8
	b.gt	LBB0_10
; %bb.9:
	str	x20, [x19, #32]
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_RTT_SHIFT,8,3             ; @SCTP_RTT_SHIFT
	.no_dead_strip	_measure_rtt
.subsections_via_symbols
