	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dns_cache_store                ## -- Begin function dns_cache_store
	.p2align	4, 0x90
_dns_cache_store:                       ## @dns_cache_store
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %esi
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%edx, %edx
	callq	_reply_info_copy
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.2:
	movq	%r15, %r14
	cmpq	$0, (%r15)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovneq	%r12, %rcx
	addq	%rbx, %rcx
	movl	%r13d, %edi
	leaq	-80(%rbp), %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_rrset_cache_update
	incq	%r15
	cmpq	(%r14), %r15
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movq	8(%rax), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	callq	_packed_rrset_ttl_add
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rcx
	movq	%rcx, -80(%rbp)
	movq	(%rax,%r15,8), %rax
	movl	4(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	16(%rbx), %r13d
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movq	(%rax), %rbx
	movl	(%rcx), %edi
	callq	_ntohs
	movq	%r12, %rcx
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_free
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_8:
	movups	(%r12), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%r12), %rdi
	movl	8(%r12), %esi
	callq	_memdup
	movq	%rax, %r13
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_BIT_RA@GOTPCREL(%rip), %rax
	movq	_BIT_QR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	24(%rbp), %rsi
	orl	8(%r15), %ecx
	movq	_BIT_AA@GOTPCREL(%rip), %rax
	movq	_BIT_CD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	16(%rbp), %r12
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, 8(%r15)
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_query_info_hash
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r12
	pushq	24(%rbp)
	pushq	%rbx
	callq	_dns_cache_store_msg
	addq	$32, %rsp
	movq	-80(%rbp), %rdi
	callq	_free
	jmp	LBB0_11
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_reply_info_parsedelete
LBB0_11:
	xorl	%r14d, %r14d
	testq	%r13, %r13
	setne	%r14b
LBB0_12:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_BIT_RA,4,2                     ## @BIT_RA
	.comm	_BIT_QR,4,2                     ## @BIT_QR
	.comm	_BIT_AA,4,2                     ## @BIT_AA
	.comm	_BIT_CD,4,2                     ## @BIT_CD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dns_cache_store                ; -- Begin function dns_cache_store
	.p2align	2
_dns_cache_store:                       ; @dns_cache_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x7
	mov	x25, x6
	mov	x19, x5
	mov	x20, x4
	mov	x27, x3
	mov	x24, x2
	mov	x26, x1
	mov	x21, x0
	ldr	w1, [x0]
	mov	x0, x2
	mov	x2, #0
	bl	_reply_info_copy
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
	cbz	w27, LBB0_6
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x25, #0
Lloh0:
	adrp	x26, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	lsl	x23, x25, #3
	ldr	x8, [x8, x23]
	ldr	x0, [x8, #8]
	ldr	x8, [x21, #8]
	ldr	x1, [x8]
	bl	_packed_rrset_ttl_add
	ldr	x8, [x22, #16]
	ldr	x9, [x8, x23]
	str	x9, [sp, #16]
	ldr	x8, [x8, x23]
	ldr	w8, [x8, #4]
	str	w8, [sp, #24]
	ldr	w23, [x21, #16]
	ldr	w24, [x21]
	ldr	x8, [x21, #8]
	ldr	x27, [x8]
	ldr	w0, [x9]
	bl	_ntohs
	ldr	x8, [x26]
	cmp	x0, x8
	ccmp	w19, #0, #0, eq
	csel	x8, x20, xzr, ne
	add	x3, x8, x27
	add	x1, sp, #16
	mov	x0, x23
	mov	x2, x24
	bl	_rrset_cache_update
	add	x25, x25, #1
	ldr	x8, [x22]
	cmp	x25, x8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x22
	bl	_free
	mov	w0, #1
	b	LBB0_10
LBB0_6:
	ldr	q0, [x26]
	str	q0, [sp, #16]
	ldr	x0, [x26]
	ldr	w1, [x26, #8]
	bl	_memdup
	mov	x26, x0
	str	x0, [sp, #16]
	cbz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _BIT_RA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT_RA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BIT_QR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BIT_QR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x22, #8]
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _BIT_AA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BIT_AA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _BIT_CD@GOTPAGE
Lloh12:
	ldr	x10, [x10, _BIT_CD@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x22, #8]
	add	x0, sp, #16
	mov	x1, x23
	bl	_query_info_hash
	mov	x2, x0
	str	x25, [sp]
	add	x1, sp, #16
	mov	x0, x21
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	mov	x6, x24
	mov	x7, x23
	bl	_dns_cache_store_msg
	ldr	x0, [sp, #16]
	bl	_free
	b	LBB0_9
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x22
	bl	_reply_info_parsedelete
LBB0_9:
	cmp	x26, #0
	cset	w0, ne
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_BIT_RA,4,2                     ; @BIT_RA
	.comm	_BIT_QR,4,2                     ; @BIT_QR
	.comm	_BIT_AA,4,2                     ; @BIT_AA
	.comm	_BIT_CD,4,2                     ; @BIT_CD
.subsections_via_symbols
