	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_soa
_add_soa:                               ## @add_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	(%r8), %rdx
	movq	16(%r8), %rsi
	movq	%rdx, -56(%rbp)
	movl	8(%r8), %r8d
	movl	%r8d, -44(%rbp)
	jmp	LBB0_4
LBB0_2:
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_reply_nsec_signer
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rsi
	movq	-56(%rbp), %rdx
	movl	-44(%rbp), %r8d
LBB0_4:
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PACKED_RRSET_SOA_NEG@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	pushq	$0
	pushq	%r12
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	callq	_dns_msg_authadd
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %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	_PACKED_RRSET_SOA_NEG,4,2       ## @PACKED_RRSET_SOA_NEG
	.no_dead_strip	_add_soa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_soa
_add_soa:                               ; @add_soa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	cbz	x4, LBB0_2
; %bb.1:
	ldr	x1, [x4, #16]
	ldr	x2, [x4]
	str	x2, [sp, #8]
	ldr	w4, [x4, #8]
	str	w4, [sp, #4]
	b	LBB0_4
LBB0_2:
	ldr	w0, [x21]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_reply_nsec_signer
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x0
	ldr	x2, [sp, #8]
	ldr	w4, [sp, #4]
LBB0_4:
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _PACKED_RRSET_SOA_NEG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKED_RRSET_SOA_NEG@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x6, x19
	mov	w7, #0
	bl	_rrset_cache_lookup
	cbz	x0, LBB0_6
; %bb.5:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	_dns_msg_authadd
	cmp	w0, #0
	cset	w19, ne
	mov	x0, x22
	bl	_lock_rw_unlock
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.comm	_PACKED_RRSET_SOA_NEG,4,2       ; @PACKED_RRSET_SOA_NEG
	.no_dead_strip	_add_soa
.subsections_via_symbols
