	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_add_ds
_find_add_ds:                           ## @find_add_ds
	.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
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	8(%r12), %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r14
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_packed_rrset_copy_region
	movq	(%r12), %rcx
	movq	(%rcx), %rdx
	movq	16(%rcx), %rsi
	movl	%eax, (%rsi,%rdx,4)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	incl	8(%rcx)
	incq	%rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	8(%r12), %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r14
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r13
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_nsec_has_type
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lock_rw_unlock                 ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DS,4,2            ## @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ## @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_find_add_ds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_add_ds
_find_add_ds:                           ; @find_add_ds
	.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	x20, x4
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x24, x0
	ldr	w0, [x0]
	ldp	w2, w1, [x3]
Lloh0:
	adrp	x25, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
	ldr	w3, [x25]
	ldr	w4, [x19, #8]
	mov	w5, #0
	mov	x6, x20
	mov	w7, #0
	bl	_rrset_cache_lookup
	mov	x22, x0
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_packed_rrset_copy_region
	ldr	x8, [x19]
	ldr	x10, [x8, #16]
	ldr	x9, [x8]
	str	w0, [x10, x9, lsl #2]
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w10, [x8, #8]
	add	w10, w10, #1
	str	w10, [x8, #8]
	add	x9, x9, #1
	str	x9, [x8]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x24]
	ldp	w2, w1, [x23]
Lloh2:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	ldr	w4, [x19, #8]
	mov	w5, #0
	mov	x6, x20
	mov	w7, #0
	bl	_rrset_cache_lookup
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	ldr	w1, [x25]
	bl	_nsec_has_type
	cbz	x0, LBB0_1
LBB0_5:
	mov	x0, x22
	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
	b	_lock_rw_unlock
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DS,4,2            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ; @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_find_add_ds
.subsections_via_symbols
