	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function error_response_cache
_error_response_cache:                  ## @error_response_cache
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$0, 40(%rdi)
	je	LBB0_1
LBB0_16:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_error_response
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	movq	_NORR_TTL@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jle	LBB0_3
## %bb.2:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movq	32(%rbx), %rdi
	leaq	12(%rbx), %rsi
	movq	(%r13), %rdx
	movl	8(%rbx), %ecx
	callq	_dns_cache_prefetch_adjust
	testq	%rax, %rax
	jne	LBB0_10
LBB0_3:
	movq	32(%rbx), %rdi
	movq	8(%rdi), %rax
	cmpq	$0, 16(%rax)
	movl	24(%rbx), %esi
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	8(%rbx), %r9d
	movl	12(%rbx), %r8d
	je	LBB0_11
## %bb.4:
	pushq	8(%rax)
	pushq	$0
	callq	_msg_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	%rax, %r12
	movq	32(%rbx), %rcx
	movq	8(%rcx), %rdx
	cmpq	$0, 8(%rdx)
	je	LBB0_9
## %bb.6:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rcx), %rsi
	movq	(%rdx), %rcx
	addq	(%rsi), %rcx
	cmpq	(%rax), %rcx
	jle	LBB0_9
## %bb.8:
	movq	%rcx, (%rax)
	jmp	LBB0_9
LBB0_11:
	movq	(%rdi), %rax
	pushq	$0
	pushq	(%rax)
	callq	_msg_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, %r12
	movq	8(%rax), %r13
	movq	32(%r13), %rdi
	callq	_FLAGS_GET_RCODE
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.13:
	movq	32(%r13), %rdi
	callq	_FLAGS_GET_RCODE
	movq	_LDNS_RCODE_NXDOMAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_9:
	movq	%r12, %rdi
	callq	_lock_rw_unlock
LBB0_10:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_response                 ## TAILCALL
LBB0_14:
	movq	%r12, %rdi
	callq	_lock_rw_unlock
	movq	_NORR_TTL@GOTPCREL(%rip), %r13
LBB0_15:
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_BIT_QR@GOTPCREL(%rip), %rax
	movq	_BIT_RA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movslq	%ecx, %rdi
	movq	%rdi, -48(%rbp)
	movl	%r15d, %esi
	callq	_FLAGS_SET_RCODE
	movl	$1, -72(%rbp)
	movq	(%r13), %rdi
	movq	%rdi, -64(%rbp)
	callq	_PREFETCH_TTL_CALC
	movl	%eax, -56(%rbp)
	movq	(%r13), %rax
	movq	%rax, -80(%rbp)
	movq	_sec_status_indeterminate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
	movq	32(%rbx), %rdi
	leaq	12(%rbx), %rsi
	movl	8(%rbx), %eax
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_iter_dns_store
	addq	$16, %rsp
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_NORR_TTL,8,3                   ## @NORR_TTL
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error response for prefetch in cache"

	.comm	_LDNS_RCODE_NOERROR,8,3         ## @LDNS_RCODE_NOERROR
	.comm	_LDNS_RCODE_NXDOMAIN,8,3        ## @LDNS_RCODE_NXDOMAIN
	.comm	_BIT_QR,4,2                     ## @BIT_QR
	.comm	_BIT_RA,4,2                     ## @BIT_RA
	.comm	_sec_status_indeterminate,4,2   ## @sec_status_indeterminate
L_.str.1:                               ## @.str.1
	.asciz	"store error response in message cache"

	.no_dead_strip	_error_response_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function error_response_cache
_error_response_cache:                  ; @error_response_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_2
LBB0_1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_error_response
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	ldr	x8, [x21]
Lloh0:
	adrp	x23, _NORR_TTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NORR_TTL@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	ldr	x0, [x21, #32]
	add	x1, x21, #12
	ldr	x2, [x23]
	ldr	w3, [x21, #8]
	bl	_dns_cache_prefetch_adjust
	cbnz	x0, LBB0_14
LBB0_4:
	ldr	x0, [x21, #32]
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #16]
	ldp	w2, w1, [x21, #20]
	ldp	w4, w3, [x21, #12]
	ldr	w5, [x21, #8]
	cbz	x9, LBB0_10
; %bb.5:
	ldr	x7, [x8, #8]
	mov	x6, #0
	bl	_msg_cache_lookup
	cbz	x0, LBB0_16
; %bb.6:
	mov	x22, x0
	ldr	x10, [x21, #32]
	ldr	x9, [x10, #8]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_13
; %bb.7:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_13
; %bb.8:
	ldr	x10, [x10]
	ldr	x10, [x10]
	ldr	x9, [x9]
	ldr	x11, [x8]
	add	x9, x9, x10
	cmp	x9, x11
	b.le	LBB0_13
; %bb.9:
	str	x9, [x8]
	b	LBB0_13
LBB0_10:
	ldr	x8, [x0]
	ldr	x6, [x8]
	mov	x7, #0
	bl	_msg_cache_lookup
	cbz	x0, LBB0_16
; %bb.11:
	mov	x22, x0
	ldr	x24, [x0, #8]
	ldr	x0, [x24, #32]
	bl	_FLAGS_GET_RCODE
Lloh7:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.12:
	ldr	x0, [x24, #32]
	bl	_FLAGS_GET_RCODE
Lloh10:
	adrp	x8, _LDNS_RCODE_NXDOMAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_RCODE_NXDOMAIN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_13:
	mov	x0, x22
	bl	_lock_rw_unlock
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_error_response
LBB0_15:
	mov	x0, x22
	bl	_lock_rw_unlock
LBB0_16:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh13:
	adrp	x8, _BIT_QR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BIT_QR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _BIT_RA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BIT_RA@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	sxtw	x0, w8
	str	x0, [sp, #40]
	mov	x1, x19
	bl	_FLAGS_SET_RCODE
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	x0, [x23]
	str	x0, [sp, #24]
	bl	_PREFETCH_TTL_CALC
	ldr	x8, [x23]
	str	x8, [sp, #8]
Lloh19:
	adrp	x8, _sec_status_indeterminate@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sec_status_indeterminate@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w0, [sp, #32]
	str	w8, [sp, #20]
Lloh22:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
	ldr	x0, [x21, #32]
	add	x1, x21, #12
	ldr	w7, [x21, #8]
	add	x2, sp, #8
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_iter_dns_store
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NORR_TTL,8,3                   ; @NORR_TTL
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error response for prefetch in cache"

	.comm	_LDNS_RCODE_NOERROR,8,3         ; @LDNS_RCODE_NOERROR
	.comm	_LDNS_RCODE_NXDOMAIN,8,3        ; @LDNS_RCODE_NXDOMAIN
	.comm	_BIT_QR,4,2                     ; @BIT_QR
	.comm	_BIT_RA,4,2                     ; @BIT_RA
	.comm	_sec_status_indeterminate,4,2   ; @sec_status_indeterminate
l_.str.1:                               ; @.str.1
	.asciz	"store error response in message cache"

	.no_dead_strip	_error_response_cache
.subsections_via_symbols
