	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serviced_tcp_callback          ## -- Begin function serviced_tcp_callback
	.p2align	4, 0x90
_serviced_tcp_callback:                 ## @serviced_tcp_callback
	.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	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, 88(%rsi)
	movq	_NETEVENT_NOERROR@GOTPCREL(%rip), %r13
	cmpl	%edx, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rdx
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_log_addr
	movl	(%r13), %eax
	cmpl	%r12d, %eax
	jne	LBB0_3
LBB0_2:
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	movl	28(%rbx), %ecx
	movl	8(%rbx), %edx
	movl	24(%rbx), %r8d
	callq	_infra_update_tcp_works
	movl	(%r13), %eax
LBB0_3:
	cmpl	%r12d, %eax
	jne	LBB0_8
## %bb.4:
	movq	(%rbx), %rax
	movq	_serviced_query_TCP_EDNS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movl	(%r14), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_RCODE_WIRE
	movq	_LDNS_RCODE_FORMERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_34
## %bb.6:
	movl	(%r14), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_RCODE_WIRE
	movq	_LDNS_RCODE_NOTIMPL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_34:
	movq	_serviced_query_TCP_EDNS_fallback@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_serviced_tcp_initiate
	jmp	LBB0_33
LBB0_7:
	movl	(%r13), %eax
LBB0_8:
	cmpl	%r12d, %eax
	jne	LBB0_17
LBB0_9:
	movq	(%rbx), %rax
	movq	_serviced_query_TCP_EDNS_fallback@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.10:
	movl	(%r14), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_RCODE_WIRE
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.11:
	movl	(%r14), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_RCODE_WIRE
	movq	_LDNS_RCODE_NXDOMAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movl	(%r14), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_RCODE_WIRE
	movq	_LDNS_RCODE_YXDOMAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_13:
	cmpl	$0, 72(%rbx)
	jne	LBB0_16
## %bb.14:
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	movl	28(%rbx), %ecx
	movl	8(%rbx), %edx
	movl	24(%rbx), %r8d
	movq	16(%rax), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	$-1, %r9d
	pushq	%rax
	callq	_infra_edns_update
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
LBB0_16:
	movq	_serviced_query_TCP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_17:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 64(%rbx)
	jne	LBB0_19
## %bb.18:
	cmpq	$0, 56(%rbx)
	je	LBB0_30
LBB0_19:
	movq	32(%rbx), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %r14
	cmpl	%r12d, (%r13)
	jne	LBB0_20
## %bb.22:
	movq	8(%rcx), %rax
	movq	40(%rbx), %rcx
	cmpq	%rcx, %r14
	jle	LBB0_24
## %bb.23:
	movq	48(%rbx), %rdx
LBB0_26:
	movl	%r14d, %esi
	subl	%ecx, %esi
	imull	$1000, %esi, %ecx               ## imm = 0x3E8
	subl	%edx, %eax
	cltq
	imulq	$274877907, %rax, %r13          ## imm = 0x10624DD3
	movq	%r13, %rax
	shrq	$63, %rax
	sarq	$38, %r13
	addl	%eax, %r13d
	addl	%ecx, %r13d
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	callq	_verbose
	movl	%r13d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_log_assert
	cmpl	$59999, %r13d                   ## imm = 0xEA5F
	jg	LBB0_30
## %bb.27:
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	movl	28(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	20(%rbx), %r9d
	movl	8(%rbx), %edx
	movl	16(%rbx), %eax
	subq	$8, %rsp
	pushq	%r14
	pushq	%rax
	pushq	%r13
	callq	_infra_rtt_update
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_30
## %bb.28:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_29
LBB0_20:
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	movl	28(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	20(%rbx), %r9d
	movl	8(%rbx), %edx
	movl	16(%rbx), %eax
	subq	$8, %rsp
	pushq	%r14
	pushq	%rax
	pushq	$-1
	callq	_infra_rtt_update
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_30
## %bb.21:
	leaq	L_.str.2(%rip), %rdi
LBB0_29:
	callq	_log_err
	jmp	LBB0_30
LBB0_24:
	jne	LBB0_30
## %bb.25:
	movq	48(%rbx), %rdx
	cmpq	%rdx, %rax
	jg	LBB0_26
LBB0_30:
	testq	%r15, %r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_32
## %bb.31:
	movq	%r14, -56(%rbp)
	leaq	-64(%rbp), %r15
LBB0_32:
	leaq	4(%r15), %rdi
	leaq	12(%rbx), %rsi
	movl	8(%rbx), %edx
	callq	_memcpy
	movl	8(%rbx), %eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_serviced_callbacks
LBB0_33:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETEVENT_NOERROR,4,2           ## @NETEVENT_NOERROR
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp error for address"

	.comm	_serviced_query_TCP_EDNS,8,3    ## @serviced_query_TCP_EDNS
	.comm	_LDNS_RCODE_FORMERR,8,3         ## @LDNS_RCODE_FORMERR
	.comm	_LDNS_RCODE_NOTIMPL,8,3         ## @LDNS_RCODE_NOTIMPL
	.comm	_serviced_query_TCP_EDNS_fallback,8,3 ## @serviced_query_TCP_EDNS_fallback
	.comm	_LDNS_RCODE_NOERROR,8,3         ## @LDNS_RCODE_NOERROR
	.comm	_LDNS_RCODE_NXDOMAIN,8,3        ## @LDNS_RCODE_NXDOMAIN
	.comm	_LDNS_RCODE_YXDOMAIN,8,3        ## @LDNS_RCODE_YXDOMAIN
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory caching no edns for host"

	.comm	_serviced_query_TCP,8,3         ## @serviced_query_TCP
L_.str.2:                               ## @.str.2
	.asciz	"out of memory in TCP exponential backoff."

	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.3:                               ## @.str.3
	.asciz	"measured TCP-time at %d msec"

L_.str.4:                               ## @.str.4
	.asciz	"out of memory noting rtt."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serviced_tcp_callback          ; -- Begin function serviced_tcp_callback
	.p2align	2
_serviced_tcp_callback:                 ; @serviced_tcp_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x1, #88]
Lloh0:
	adrp	x23, _NETEVENT_NOERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NETEVENT_NOERROR@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x2, x19, #12
	ldr	w3, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_addr
	ldr	w8, [x23]
	cmp	w8, w22
	b.ne	LBB0_3
LBB0_2:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	add	x1, x19, #12
	ldr	w2, [x19, #8]
	ldp	w4, w3, [x19, #24]
	bl	_infra_update_tcp_works
	ldr	w8, [x23]
LBB0_3:
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _serviced_query_TCP_EDNS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _serviced_query_TCP_EDNS@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	w0, [x20]
	bl	_sldns_buffer_begin
	bl	_LDNS_RCODE_WIRE
Lloh10:
	adrp	x8, _LDNS_RCODE_FORMERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_RCODE_FORMERR@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x20]
	bl	_sldns_buffer_begin
	bl	_LDNS_RCODE_WIRE
Lloh13:
	adrp	x8, _LDNS_RCODE_NOTIMPL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LDNS_RCODE_NOTIMPL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _serviced_query_TCP_EDNS_fallback@GOTPAGE
Lloh17:
	ldr	x8, [x8, _serviced_query_TCP_EDNS_fallback@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_serviced_tcp_initiate
	b	LBB0_34
LBB0_8:
	ldr	w8, [x23]
LBB0_9:
	cmp	w8, w22
	b.ne	LBB0_18
LBB0_10:
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _serviced_query_TCP_EDNS_fallback@GOTPAGE
Lloh20:
	ldr	x9, [x9, _serviced_query_TCP_EDNS_fallback@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.11:
	ldr	w0, [x20]
	bl	_sldns_buffer_begin
	bl	_LDNS_RCODE_WIRE
Lloh22:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.12:
	ldr	w0, [x20]
	bl	_sldns_buffer_begin
	bl	_LDNS_RCODE_WIRE
Lloh25:
	adrp	x8, _LDNS_RCODE_NXDOMAIN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LDNS_RCODE_NXDOMAIN@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x20]
	bl	_sldns_buffer_begin
	bl	_LDNS_RCODE_WIRE
Lloh28:
	adrp	x8, _LDNS_RCODE_YXDOMAIN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LDNS_RCODE_YXDOMAIN@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
LBB0_14:
	ldr	w8, [x19, #72]
	cbnz	w8, LBB0_17
; %bb.15:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	add	x1, x19, #12
	ldr	w2, [x19, #8]
	ldp	w4, w3, [x19, #24]
	ldr	x8, [x8, #16]
	ldr	w6, [x8]
	mov	w5, #-1
	bl	_infra_edns_update
	cbnz	w0, LBB0_17
; %bb.16:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
LBB0_17:
Lloh33:
	adrp	x8, _serviced_query_TCP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _serviced_query_TCP@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_18:
	ldr	x8, [x19, #64]
	cbnz	x8, LBB0_20
; %bb.19:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_31
LBB0_20:
	ldr	x8, [x19, #32]
	ldr	x9, [x8, #8]
	ldr	x24, [x9]
	ldr	w10, [x23]
	cmp	w10, w22
	b.ne	LBB0_26
; %bb.21:
	ldr	x8, [x9, #8]
	ldr	x9, [x19, #40]
	cmp	x24, x9
	b.le	LBB0_29
; %bb.22:
	ldr	x10, [x19, #48]
LBB0_23:
	sub	w9, w24, w9
	mov	w11, #1000
	sub	w8, w8, w10
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w10
	madd	w23, w9, w11, w8
Lloh36:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x23
	bl	_verbose
	mvn	w8, w23
	lsr	w0, w8, #31
	bl	_log_assert
	mov	w8, #59999
	cmp	w23, w8
	b.gt	LBB0_31
; %bb.24:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	add	x1, x19, #12
	ldr	w2, [x19, #8]
	ldp	w4, w3, [x19, #24]
	ldp	w7, w5, [x19, #16]
	str	w24, [sp]
	mov	x6, x23
	bl	_infra_rtt_update
	cbnz	w0, LBB0_31
; %bb.25:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_28
LBB0_26:
	ldr	w0, [x8]
	add	x1, x19, #12
	ldr	w2, [x19, #8]
	ldp	w4, w3, [x19, #24]
	ldp	w7, w5, [x19, #16]
	str	w24, [sp]
	mov	w6, #-1
	bl	_infra_rtt_update
	cbnz	w0, LBB0_31
; %bb.27:
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_28:
	bl	_log_err
	b	LBB0_31
LBB0_29:
	b.ne	LBB0_31
; %bb.30:
	ldr	x10, [x19, #48]
	cmp	x8, x10
	b.gt	LBB0_23
LBB0_31:
	cbnz	x21, LBB0_33
; %bb.32:
	str	x20, [sp, #24]
	add	x21, sp, #16
LBB0_33:
	add	x0, x21, #4
	add	x1, x19, #12
	ldr	w2, [x19, #8]
	bl	_memcpy
	ldr	w8, [x19, #8]
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_serviced_callbacks
LBB0_34:
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_NETEVENT_NOERROR,4,2           ; @NETEVENT_NOERROR
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp error for address"

	.comm	_serviced_query_TCP_EDNS,8,3    ; @serviced_query_TCP_EDNS
	.comm	_LDNS_RCODE_FORMERR,8,3         ; @LDNS_RCODE_FORMERR
	.comm	_LDNS_RCODE_NOTIMPL,8,3         ; @LDNS_RCODE_NOTIMPL
	.comm	_serviced_query_TCP_EDNS_fallback,8,3 ; @serviced_query_TCP_EDNS_fallback
	.comm	_LDNS_RCODE_NOERROR,8,3         ; @LDNS_RCODE_NOERROR
	.comm	_LDNS_RCODE_NXDOMAIN,8,3        ; @LDNS_RCODE_NXDOMAIN
	.comm	_LDNS_RCODE_YXDOMAIN,8,3        ; @LDNS_RCODE_YXDOMAIN
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory caching no edns for host"

	.comm	_serviced_query_TCP,8,3         ; @serviced_query_TCP
l_.str.2:                               ; @.str.2
	.asciz	"out of memory in TCP exponential backoff."

	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.3:                               ; @.str.3
	.asciz	"measured TCP-time at %d msec"

l_.str.4:                               ; @.str.4
	.asciz	"out of memory noting rtt."

.subsections_via_symbols
