	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rrset_cache_update             ## -- Begin function rrset_cache_update
	.p2align	4, 0x90
_rrset_cache_update:                    ## @rrset_cache_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rsi), %r15
	movl	16(%r15), %ebx
	movl	32(%r15), %edi
	callq	_ntohs
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, (%r13)
	movl	$0, %edi
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
LBB0_2:
	leaq	8(%r15), %r12
	callq	_log_assert
	xorl	%edi, %edi
	cmpq	$0, 24(%r15)
	setne	%dil
	callq	_log_assert
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movq	%r12, %rbx
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_slabhash_lookup
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	16(%r14), %rax
	movq	%rax, 8(%r13)
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	(%rbx), %rdi
	movq	8(%r14), %rsi
	callq	_rrsetdata_equal
	movl	%eax, %ecx
	movq	(%rbx), %rdi
	movq	8(%r14), %rsi
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rax), %rdx
	sete	%r8b
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_need_to_update_rrset
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_lock_rw_unlock
	testl	%r12d, %r12d
	je	LBB0_4
LBB0_5:
	movq	8(%r13), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_log_assert
	movq	(%rbx), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_slabhash_insert
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	je	LBB0_11
## %bb.8:
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	je	LBB0_11
## %bb.9:
	movl	$1, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.10:
	movq	_LDNS_RR_TYPE_DNAME@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx), %rdx
	je	LBB0_12
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ub_packed_rrset_parsedelete
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$2, %eax
	sbbl	$0, %eax
	jmp	LBB0_13
LBB0_11:
	movl	$1, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
LBB0_12:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_rrset_update_id
	movl	$1, %eax
LBB0_13:
	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	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ## @LDNS_RR_TYPE_DNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rrset_cache_update             ; -- Begin function rrset_cache_update
	.p2align	2
_rrset_cache_update:                    ; @rrset_cache_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	x26, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x24, [x1, #8]
	ldr	w23, [x24, #16]
	ldr	w0, [x24, #32]
	bl	_ntohs
	mov	x21, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	add	x25, x24, #8
	bl	_log_assert
	ldr	x8, [x24, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_log_assert
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	bl	_slabhash_lookup
	mov	x28, x0
	cbz	x0, LBB0_6
; %bb.4:
	ldp	x1, x8, [x28, #8]
	ldr	x9, [x8]
	stp	x9, x8, [x20]
	ldr	x0, [x25]
	bl	_rrsetdata_equal
	mov	x27, x0
	ldr	x0, [x25]
	ldr	x1, [x28, #8]
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	cset	w4, eq
	mov	x2, x26
	mov	x3, x27
	bl	_need_to_update_rrset
	mov	x26, x0
	mov	x0, x28
	bl	_lock_rw_unlock
	cbnz	w26, LBB0_7
; %bb.5:
	mov	x0, x24
	mov	x1, x19
	bl	_ub_packed_rrset_parsedelete
	cmp	w27, #0
	mov	w8, #1
	cinc	w0, w8, ne
	b	LBB0_15
LBB0_6:
	mov	w27, #0
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_log_assert
	ldr	x3, [x25]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	mov	x4, x19
	bl	_slabhash_insert
	cbz	x28, LBB0_10
; %bb.8:
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x21, x8
	ccmp	x21, x9, #4, ne
	b.ne	LBB0_11
; %bb.9:
	cbnz	w27, LBB0_14
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	b	LBB0_15
LBB0_11:
	mov	w0, #1
	cbnz	w27, LBB0_15
; %bb.12:
Lloh9:
	adrp	x8, _LDNS_RR_TYPE_DNAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNAME@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_15
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_rrset_update_id
LBB0_14:
	mov	w0, #1
LBB0_15:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ; @LDNS_RR_TYPE_DNAME
.subsections_via_symbols
