	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_find_DS                    ## -- Begin function val_find_DS
	.p2align	4, 0x90
_val_find_DS:                           ## @val_find_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	20(%rdi), %edi
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	8(%r15), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_packed_rrset_copy_region
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_lock_rw_unlock
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	$1, %r9d
	callq	_dns_msg_create
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%rax), %rcx
	movq	8(%rcx), %rcx
	movq	%r15, (%rcx)
	movq	(%rax), %rcx
	incl	4(%rcx)
	incl	(%rcx)
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, -64(%rbp)
	movq	%r13, -88(%rbp)
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	%r12d, -72(%rbp)
	movq	$0, -80(%rbp)
	movl	24(%r15), %edi
	movl	20(%r15), %ecx
	movl	16(%r15), %r8d
	movq	8(%r15), %rax
	movl	(%rax), %r9d
	movl	(%r15), %eax
	subq	$8, %rsp
	leaq	-88(%rbp), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_val_neg_getmsg
	addq	$32, %rsp
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$56, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_find_DS                    ; -- Begin function val_find_DS
	.p2align	2
_val_find_DS:                           ; @val_find_DS
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w0, [x0, #20]
Lloh0:
	adrp	x26, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
	ldr	w3, [x26]
	ldr	x8, [x24, #8]
	ldr	w6, [x8]
	mov	x4, x20
	mov	w5, #0
	mov	w7, #0
	bl	_rrset_cache_lookup
	cbz	x0, LBB0_4
; %bb.1:
	mov	x25, x0
	ldr	x8, [x24, #8]
	ldr	w2, [x8]
	mov	x1, x19
	bl	_packed_rrset_copy_region
	mov	x21, x0
	mov	x0, x25
	bl	_lock_rw_unlock
	cbz	x21, LBB0_5
; %bb.2:
	ldr	w2, [x26]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x20
	mov	x4, x19
	mov	w5, #1
	bl	_dns_msg_create
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	str	x21, [x8]
	ldr	x8, [x0]
	ldr	d0, [x8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x8]
	b	LBB0_6
LBB0_4:
	str	x23, [sp, #40]
	ldr	w8, [x26]
	stp	w20, w8, [sp, #32]
	stp	x22, xzr, [sp, #16]
	ldp	w3, w0, [x24, #20]
	ldr	w4, [x24, #16]
	ldr	x8, [x24, #8]
	ldr	w5, [x8]
	ldr	w8, [x24]
	str	w8, [sp]
	add	x1, sp, #16
	mov	x2, x19
	mov	w6, #0
	mov	x7, x21
	bl	_val_neg_getmsg
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DS,4,2            ; @LDNS_RR_TYPE_DS
.subsections_via_symbols
