	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_fill_reply                 ## -- Begin function val_fill_reply
	.p2align	4, 0x90
_val_fill_reply:                        ## @val_fill_reply
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movups	%xmm0, (%rdi)
	movq	8(%rsi), %rax
	cmpq	%rdx, %rax
	jbe	LBB0_11
## %bb.1:
	xorl	%r14d, %r14d
	movq	%r12, %rbx
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%r13), %rcx
	movq	32(%r13), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%r13)
	movq	%rax, (%rdx,%rcx,8)
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	8(%r15), %rax
	cmpq	%rax, %rbx
	jae	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_rrset_has_signer
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%r13), %rcx
	movq	32(%r13), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%r13)
	movq	%rax, (%rdx,%rcx,8)
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_DNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, %eax
	cmovel	%eax, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_query_dname_compare
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%r13), %rcx
	movq	32(%r13), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%r13)
	movq	%rax, (%rdx,%rcx,8)
	jmp	LBB0_10
LBB0_11:
	cmpq	%r12, %rax
	movq	%r12, %rbx
	cmovaq	%rax, %rbx
	addq	16(%r15), %rax
	cmpq	%rax, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jb	LBB0_12
LBB0_17:
	cmpq	%r12, %rax
	cmovaq	%rax, %r12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%r15), %rax
	movq	32(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	24(%r13), %rdx
	movq	32(%r13), %rsi
	addq	8(%r13), %rax
	leaq	1(%rdx), %rdi
	movq	%rdi, 24(%r13)
	addq	%rdx, %rax
	movq	%rcx, (%rsi,%rax,8)
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r12
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r15), %r12
	jae	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%r14, %r14
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_rrset_has_signer
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rdi), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_query_dname_compare
	testq	%rax, %rax
	jne	LBB0_23
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	16(%r13), %rcx
	movq	32(%r13), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, 16(%r13)
	addq	8(%r13), %rcx
	movq	%rax, (%rdx,%rcx,8)
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	16(%r15), %rax
	addq	8(%r15), %rax
	cmpq	%rax, %rbx
	jae	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%r14, %r14
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_rrset_has_signer
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rdi), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_query_dname_compare
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_24:
	movq	16(%r13), %rax
	addq	8(%r13), %rax
	addq	24(%r13), %rax
	movq	%rax, (%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ## @LDNS_RR_TYPE_CNAME
	.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	_val_fill_reply                 ; -- Begin function val_fill_reply
	.p2align	2
_val_fill_reply:                        ; @val_fill_reply
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0]
	ldr	x8, [x1, #8]
	cmp	x8, x2
	b.ls	LBB0_11
; %bb.1:
	mov	w25, #0
Lloh0:
	adrp	x26, _LDNS_RR_TYPE_DNAME@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LDNS_RR_TYPE_DNAME@GOTPAGEOFF]
Lloh2:
	adrp	x27, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
	mov	x28, x24
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w25, #0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x9, [x19, #32]
	ldr	x10, [x19, #8]
	add	x11, x10, #1
	str	x11, [x19, #8]
	str	x8, [x9, x10, lsl #3]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldr	x8, [x23, #8]
	cmp	x28, x8
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w25, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w0, [x8, #4]
	bl	_ntohs
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #32]
	ldr	x0, [x8, x28, lsl #3]
	mov	x1, x22
	mov	x2, x21
	bl	_rrset_has_signer
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #32]
	lsl	x9, x28, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x19, #32]
	ldr	x11, [x19, #8]
	add	x12, x11, #1
	str	x12, [x19, #8]
	str	x8, [x10, x11, lsl #3]
	ldr	x8, [x23, #32]
	ldr	x8, [x8, x9]
	ldr	w0, [x8, #4]
	bl	_ntohs
	ldr	x8, [x26]
	cmp	x0, x8
	csinc	w25, w25, wzr, ne
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_query_dname_compare
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_11:
	cmp	x8, x24
	csel	x25, x8, x24, hi
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x9, [x19, #32]
	ldp	x10, x11, [x19, #8]
	add	x12, x11, #1
	str	x12, [x19, #16]
	add	x10, x11, x10
	str	x8, [x9, x10, lsl #3]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x25, x25, #1
	ldr	x8, [x23, #8]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #16]
	add	x8, x9, x8
	cmp	x25, x8
	b.hs	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23, #32]
	ldr	x0, [x8, x25, lsl #3]
	cbz	x20, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x22
	mov	x2, x21
	bl	_rrset_has_signer
	cbnz	x0, LBB0_12
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x0]
	mov	x0, x22
	bl	_query_dname_compare
	cbnz	x0, LBB0_13
	b	LBB0_12
LBB0_18:
	cmp	x8, x24
	csel	x24, x8, x24, hi
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x19, #8]
	ldr	x10, [x23, #16]
	ldp	x12, x11, [x19, #24]
	add	x13, x12, #1
	str	x13, [x19, #24]
	add	x9, x10, x9
	add	x9, x9, x12
	str	x8, [x11, x9, lsl #3]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x24, x24, #1
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cmp	x24, x8
	b.hs	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x23, #32]
	ldr	x0, [x8, x24, lsl #3]
	cbz	x20, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x1, x22
	mov	x2, x21
	bl	_rrset_has_signer
	cbnz	x0, LBB0_19
	b	LBB0_20
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w1, [x0]
	mov	x0, x22
	bl	_query_dname_compare
	cbnz	x0, LBB0_20
	b	LBB0_19
LBB0_25:
	ldp	x8, x9, [x19, #8]
	ldr	x10, [x19, #24]
	add	x8, x9, x8
	add	x8, x8, x10
	str	x8, [x19]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ; @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ; @LDNS_RR_TYPE_DNAME
.subsections_via_symbols
