	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_neg_addreply               ## -- Begin function val_neg_addreply
	.p2align	4, 0x90
_val_neg_addreply:                      ## @val_neg_addreply
	.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	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_reply_has_nsec
	testl	%eax, %eax
	je	LBB0_17
## %bb.1:
	movq	%r13, %rdi
	callq	_reply_find_soa
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rcx
	movq	16(%rax), %r15
	movq	%rcx, -56(%rbp)
	movl	8(%rax), %edi
	callq	_ntohs
	movq	%rax, %r8
	movq	%rax, -48(%rbp)
	jmp	LBB0_5
LBB0_3:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_reply_nsec_signer
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%rax, %r15
	movq	-48(%rbp), %r8
LBB0_5:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_log_nametypeclass
	movq	%r13, %rdi
	callq	_calc_data_need
	movq	%rax, %r12
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_calc_zone_need
	addq	%rax, %r12
	movq	%r14, %rdi
	callq	_lock_basic_lock
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_neg_make_space
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_neg_find_zone
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_neg_create_zone
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_val_neg_zone_take_inuse
	movq	(%r13), %rbx
	movq	8(%r13), %rax
	addq	%rbx, %rax
	cmpq	%rax, %rbx
	jae	LBB0_14
## %bb.9:
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	8(%r13), %rax
	addq	(%r13), %rax
	cmpq	%rax, %rbx
	jae	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	cmpq	(%r15), %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	_dname_subdomain_c
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_neg_insert_data
	jmp	LBB0_13
LBB0_14:
	cmpq	$0, (%r12)
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_neg_delete_zone
LBB0_16:
	movq	%r14, %rdi
	callq	_lock_basic_unlock
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_lock_basic_unlock
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"negcache insert for zone"

	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
L_.str.1:                               ## @.str.1
	.asciz	"out of memory adding negative zone"

	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_neg_addreply               ; -- Begin function val_neg_addreply
	.p2align	2
_val_neg_addreply:                      ; @val_neg_addreply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_reply_has_nsec
	cbz	w0, LBB0_16
; %bb.1:
	mov	x0, x20
	bl	_reply_find_soa
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x21, [x0, #16]
	ldr	x8, [x0]
	str	x8, [sp, #8]
	ldr	w0, [x0, #8]
	bl	_ntohs
	mov	x4, x0
	str	x0, [sp]
	b	LBB0_5
LBB0_3:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_reply_nsec_signer
	cbz	x0, LBB0_16
; %bb.4:
	mov	x21, x0
	ldr	x4, [sp]
LBB0_5:
Lloh0:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_log_nametypeclass
	mov	x0, x20
	bl	_calc_data_need
	mov	x22, x0
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_calc_zone_need
	add	x22, x0, x22
	mov	x0, x19
	bl	_lock_basic_lock
	mov	x0, x19
	mov	x1, x22
	bl	_neg_make_space
	ldp	x3, x2, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_neg_find_zone
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.6:
	ldp	x3, x2, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_neg_create_zone
	mov	x22, x0
	cbz	x0, LBB0_17
LBB0_7:
	mov	x0, x22
	bl	_val_neg_zone_take_inuse
	ldp	x21, x8, [x20]
	add	x8, x8, x21
	cmp	x21, x8
	b.hs	LBB0_13
; %bb.8:
Lloh8:
	adrp	x23, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh9:
	ldr	x23, [x23, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldp	x8, x9, [x20]
	add	x8, x9, x8
	cmp	x21, x8
	b.hs	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8, #4]
	bl	_ntohs
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	ldr	w1, [x22, #8]
	bl	_dname_subdomain_c
	cbz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
	ldr	x2, [x8, x21, lsl #3]
	mov	x0, x19
	mov	x1, x22
	bl	_neg_insert_data
	b	LBB0_9
LBB0_13:
	ldr	x8, [x22]
	cbnz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	x1, x22
	bl	_neg_delete_zone
LBB0_15:
	mov	x0, x19
	bl	_lock_basic_unlock
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
	mov	x0, x19
	bl	_lock_basic_unlock
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	b	LBB0_16
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"negcache insert for zone"

	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
l_.str.1:                               ; @.str.1
	.asciz	"out of memory adding negative zone"

	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
.subsections_via_symbols
