	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_infra_get_lame_rtt             ## -- Begin function infra_get_lame_rtt
	.p2align	4, 0x90
_infra_get_lame_rtt:                    ## @infra_get_lame_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	%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	%r9, %r14
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	callq	_infra_lookup_nottl
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	48(%rbp), %r15
	movq	40(%rbp), %r14
	movq	8(%rax), %rbx
	leaq	72(%rbx), %r12
	movq	%r12, %rdi
	callq	_rtt_unclamped
	movl	%eax, (%r14)
	movq	%r15, %r14
	movl	72(%rbx), %eax
	movq	_PROBE_MAXRTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_10
## %bb.2:
	cmpq	%r14, (%rbx)
	jle	LBB0_10
## %bb.3:
	movq	%r12, %rdi
	callq	_rtt_notimeout
	shll	$2, %eax
	cmpl	(%r12), %eax
	jg	LBB0_10
## %bb.4:
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rcx
	jmp	LBB0_9
LBB0_6:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	16(%rbx), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	24(%rbx), %rcx
LBB0_9:
	movq	_TIMEOUT_COUNT_MAX@GOTPCREL(%rip), %rdx
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1000(%rsi), %eax
	cmpq	(%rdx), %rcx
	cmovgel	%esi, %eax
	movq	40(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	movq	24(%rbp), %r15
	movq	16(%rbp), %rdx
	cmpq	%r14, 32(%rbx)
	jge	LBB0_13
## %bb.11:
	movq	%rdx, %r15
	movl	(%r12), %r12d
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	cmpl	%ebx, %r12d
	movl	$0, %ebx
	jl	LBB0_20
## %bb.12:
	movl	$-1000, %eax                    ## imm = 0xFC18
	addl	(%r14), %eax
	movq	40(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	$0, (%r15)
	movq	24(%rbp), %rax
	movl	$0, (%rax)
	jmp	LBB0_18
LBB0_13:
	cmpq	$0, 64(%rbx)
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	cmpq	%rcx, %rax
	je	LBB0_17
LBB0_15:
	cmpq	$0, 56(%rbx)
	je	LBB0_21
## %bb.16:
	cmpq	%rcx, %rax
	je	LBB0_21
LBB0_17:
	movq	%r13, %rdi
	movq	%rdx, %rbx
	callq	_lock_rw_unlock
	movl	$1, (%rbx)
	movl	$0, (%r15)
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movq	32(%rbp), %rax
	movl	%r14d, (%rax)
	movl	$1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%rdx, %r12
	cmpq	$0, 48(%rbx)
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	movl	$0, (%r12)
	movl	$1, (%r15)
	jmp	LBB0_18
LBB0_23:
	xorl	%r14d, %r14d
	cmpq	$0, 40(%rbx)
	setne	%r14b
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	movl	$0, (%r12)
	movl	$0, (%r15)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_PROBE_MAXRTO,4,2               ## @PROBE_MAXRTO
	.comm	_LDNS_RR_TYPE_A,8,3             ## @LDNS_RR_TYPE_A
	.comm	_TIMEOUT_COUNT_MAX,8,3          ## @TIMEOUT_COUNT_MAX
	.comm	_USEFUL_SERVER_TOP_TIMEOUT,4,2  ## @USEFUL_SERVER_TOP_TIMEOUT
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_infra_get_lame_rtt             ; -- Begin function infra_get_lame_rtt
	.p2align	2
_infra_get_lame_rtt:                    ; @infra_get_lame_rtt
	.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	x19, x7
	mov	x20, x6
	mov	x22, x5
	mov	w5, #0
	bl	_infra_lookup_nottl
	cbz	x0, LBB0_22
; %bb.1:
	mov	x21, x0
	ldp	x25, x26, [x29, #24]
	ldr	x24, [x0, #8]
	add	x23, x24, #72
	mov	x0, x23
	bl	_rtt_unclamped
	str	w0, [x25]
	ldr	w8, [x24, #72]
Lloh0:
	adrp	x9, _PROBE_MAXRTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PROBE_MAXRTO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_10
; %bb.2:
	ldr	x8, [x24]
	cmp	x8, x26
	b.le	LBB0_10
; %bb.3:
	mov	x0, x23
	bl	_rtt_notimeout
	ldr	w8, [x23]
	cmp	w8, w0, lsl #2
	b.lt	LBB0_10
; %bb.4:
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x24, #8]
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x24, #16]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x24, #24]
LBB0_9:
Lloh9:
	adrp	x9, _TIMEOUT_COUNT_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TIMEOUT_COUNT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	sub	w11, w10, #1000
	cmp	x8, x9
	csel	w8, w11, w10, lt
	str	w8, [x25]
LBB0_10:
	ldr	x8, [x24, #32]
	cmp	x8, x26
	b.ge	LBB0_13
; %bb.11:
	ldr	w22, [x23]
Lloh15:
	adrp	x23, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x23, [x23, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
	ldr	w24, [x23]
	mov	x0, x21
	bl	_lock_rw_unlock
	cmp	w22, w24
	b.ge	LBB0_18
; %bb.12:
	mov	w0, #0
	b	LBB0_22
LBB0_13:
	ldr	x9, [x24, #64]
Lloh17:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x9, #0
	ccmp	x8, x22, #0, ne
	b.eq	LBB0_17
; %bb.14:
	ldr	x9, [x24, #56]
	cmp	x9, #0
	ccmp	x8, x22, #4, ne
	b.ne	LBB0_17
; %bb.15:
	ldr	x8, [x24, #48]
	cbz	x8, LBB0_23
; %bb.16:
	mov	x0, x21
	bl	_lock_rw_unlock
	mov	w22, #0
	str	wzr, [x20]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_21
LBB0_17:
	mov	x0, x21
	bl	_lock_rw_unlock
	mov	w22, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_20
LBB0_18:
	mov	w22, #0
	ldr	w8, [x23]
	sub	w8, w8, #1000
	str	w8, [x25]
LBB0_19:
	str	wzr, [x20]
LBB0_20:
	str	wzr, [x19]
LBB0_21:
	ldr	x8, [x29, #16]
	str	w22, [x8]
	mov	w0, #1
LBB0_22:
	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
	ret
LBB0_23:
	ldr	x8, [x24, #40]
	cmp	x8, #0
	cset	w22, ne
	mov	x0, x21
	bl	_lock_rw_unlock
	b	LBB0_19
	.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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PROBE_MAXRTO,4,2               ; @PROBE_MAXRTO
	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_TIMEOUT_COUNT_MAX,8,3          ; @TIMEOUT_COUNT_MAX
	.comm	_USEFUL_SERVER_TOP_TIMEOUT,4,2  ; @USEFUL_SERVER_TOP_TIMEOUT
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
.subsections_via_symbols
