	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az_add_negative_soa
_az_add_negative_soa:                   ## @az_add_negative_soa
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	callq	_az_find_name
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_az_domain_rrset
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_log_assert
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_msg_add_rrset_ns
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	(%r15), %rax
	movq	32(%rax), %rcx
	movslq	(%rax), %rax
	movq	-8(%rcx,%rax,8), %rax
	movq	(%rax), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$6, %eax
	jl	LBB0_6
## %bb.5:
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %edi
	addl	$-4, %edi
	callq	_sldns_read_uint32
	movq	%rax, 32(%rbx)
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	32(%rax), %rax
	movq	(%rax), %rdi
	callq	_get_rrset_ttl
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	%rax, %rdi
	callq	_PREFETCH_TTL_CALC
	movq	(%r15), %rcx
	movl	%eax, 24(%rcx)
	movq	_SERVE_EXPIRED_TTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%rcx), %rax
	movq	%rax, 16(%rcx)
	movl	$1, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.comm	_SERVE_EXPIRED_TTL,8,3          ## @SERVE_EXPIRED_TTL
	.no_dead_strip	_az_add_negative_soa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function az_add_negative_soa
_az_add_negative_soa:                   ; @az_add_negative_soa
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w2, w1, [x0]
	bl	_az_find_name
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_az_domain_rrset
	cbz	x0, LBB0_7
; %bb.2:
	mov	x23, x0
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_log_assert
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	bl	_msg_add_rrset_ns
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x8, #32]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x20, [x8]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #6
	b.ge	LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w0, w8, #4
	bl	_sldns_read_uint32
	str	x0, [x20, #32]
	ldr	x8, [x20, #24]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #32]
	ldr	x0, [x8]
	bl	_get_rrset_ttl
	ldr	x8, [x19]
	str	x0, [x8, #8]
	bl	_PREFETCH_TTL_CALC
	ldr	x8, [x19]
	str	w0, [x8, #24]
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x10, _SERVE_EXPIRED_TTL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SERVE_EXPIRED_TTL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x9, x10, x9
	str	x9, [x8, #16]
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.comm	_SERVE_EXPIRED_TTL,8,3          ; @SERVE_EXPIRED_TTL
	.no_dead_strip	_az_add_negative_soa
.subsections_via_symbols
