	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_infra_rtt_update               ## -- Begin function infra_rtt_update
	.p2align	4, 0x90
_infra_rtt_update:                      ## @infra_rtt_update
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	$1, %r9d
	callq	_infra_lookup_nottl
	movq	%rax, %r13
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.3:
	movq	8(%r13), %rax
	movl	32(%rbp), %edx
	cmpl	%edx, 40(%rax)
	jge	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_data_entry_init
LBB0_5:
	movq	%r13, %r15
	jmp	LBB0_6
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	32(%rbp), %r9d
	callq	_new_entry
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	movl	16(%rbp), %r14d
	movq	8(%r15), %r12
	leaq	24(%r12), %rbx
	cmpl	$-1, %r14d
	je	LBB0_7
## %bb.15:
	movq	%rbx, %rdi
	callq	_rtt_unclamped
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_rtt_init
LBB0_17:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rtt_update
	movq	$0, 32(%r12)
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	$0, (%r12)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_7:
	movl	24(%rbp), %esi
	movq	%rbx, %rdi
	callq	_rtt_lost
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	(%r12), %rax
	movq	_TIMEOUT_COUNT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_22
## %bb.9:
	incq	%rax
	movq	%rax, (%r12)
	jmp	LBB0_22
LBB0_19:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_21
## %bb.20:
	movq	$0, 8(%r12)
	jmp	LBB0_22
LBB0_10:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_13
## %bb.11:
	movq	8(%r12), %rax
	movq	_TIMEOUT_COUNT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_22
## %bb.12:
	incq	%rax
	movq	%rax, 8(%r12)
	jmp	LBB0_22
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_21:
	movq	$0, 16(%r12)
	jmp	LBB0_22
LBB0_13:
	movq	16(%r12), %rax
	movq	_TIMEOUT_COUNT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_22
## %bb.14:
	incq	%rax
	movq	%rax, 16(%r12)
LBB0_22:
	movl	24(%r12), %eax
	cmpl	$2, %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	testq	%r13, %r13
	je	LBB0_23
## %bb.24:
	movq	%r15, %rdi
	callq	_lock_rw_unlock
	jmp	LBB0_25
LBB0_23:
	movl	(%rcx), %edi
	movl	16(%r15), %esi
	movq	8(%r15), %rcx
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_slabhash_insert
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_TIMEOUT_COUNT_MAX,8,3          ## @TIMEOUT_COUNT_MAX
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ## @LDNS_RR_TYPE_AAAA
	.comm	_USEFUL_SERVER_TOP_TIMEOUT,8,3  ## @USEFUL_SERVER_TOP_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_infra_rtt_update               ; -- Begin function infra_rtt_update
	.p2align	2
_infra_rtt_update:                      ; @infra_rtt_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x7
	mov	x23, x6
	mov	x22, x5
	mov	x21, x4
	mov	x26, x3
	mov	x27, x2
	mov	x28, x1
	mov	x19, x0
	ldr	w25, [x29, #16]
	mov	w5, #1
	bl	_infra_lookup_nottl
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #40]
	mov	x21, x20
	cmp	w8, w25
	b.ge	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_data_entry_init
	mov	x21, x20
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x28
	mov	x2, x27
	mov	x3, x26
	mov	x4, x21
	mov	x5, x25
	bl	_new_entry
	mov	x21, x0
	cbz	x0, LBB0_17
LBB0_4:
	ldr	x26, [x21, #8]
	add	x25, x26, #24
	cmn	w23, #1
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x25
	bl	_rtt_unclamped
Lloh0:
	adrp	x8, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x25
	bl	_rtt_init
LBB0_7:
	mov	x0, x25
	mov	x1, x23
	bl	_rtt_update
	str	xzr, [x26, #32]
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.8:
	str	xzr, [x26]
	b	LBB0_21
LBB0_9:
	mov	x0, x25
	mov	x1, x24
	bl	_rtt_lost
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_14
; %bb.10:
	ldr	x8, [x26]
Lloh9:
	adrp	x9, _TIMEOUT_COUNT_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TIMEOUT_COUNT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_21
; %bb.11:
	add	x8, x8, #1
	str	x8, [x26]
	b	LBB0_21
LBB0_12:
Lloh12:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_18
; %bb.13:
	str	xzr, [x26, #8]
	b	LBB0_21
LBB0_14:
Lloh15:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_19
; %bb.15:
	ldr	x8, [x26, #8]
Lloh18:
	adrp	x9, _TIMEOUT_COUNT_MAX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TIMEOUT_COUNT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_21
; %bb.16:
	add	x8, x8, #1
	str	x8, [x26, #8]
	b	LBB0_21
LBB0_17:
	mov	w22, #0
	b	LBB0_24
LBB0_18:
	str	xzr, [x26, #16]
	b	LBB0_21
LBB0_19:
	ldr	x8, [x26, #16]
Lloh21:
	adrp	x9, _TIMEOUT_COUNT_MAX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TIMEOUT_COUNT_MAX@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_21
; %bb.20:
	add	x8, x8, #1
	str	x8, [x26, #16]
LBB0_21:
	ldr	w8, [x26, #24]
	cmp	w8, #1
	csinc	w22, w8, wzr, gt
	cbz	x20, LBB0_23
; %bb.22:
	mov	x0, x21
	bl	_lock_rw_unlock
	b	LBB0_24
LBB0_23:
	ldr	w0, [x19]
	ldr	w1, [x21, #16]
	ldr	x3, [x21, #8]
	mov	x2, x21
	mov	x4, #0
	bl	_slabhash_insert
LBB0_24:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_TIMEOUT_COUNT_MAX,8,3          ; @TIMEOUT_COUNT_MAX
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ; @LDNS_RR_TYPE_AAAA
	.comm	_USEFUL_SERVER_TOP_TIMEOUT,8,3  ; @USEFUL_SERVER_TOP_TIMEOUT
.subsections_via_symbols
