	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az_generate_referral_answer
_az_generate_referral_answer:           ## @az_generate_referral_answer
	.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	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	callq	_log_assert
	movq	_BIT_AA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%r15), %rcx
	andl	%eax, (%rcx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rbx
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r8
	callq	_msg_add_rrset_ns
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_az_domain_rrset
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_az_domain_rrset
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_msg_add_rrset_ns
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_az_add_additionals_from
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movl	(%r15), %eax
	movl	4(%r15), %r9d
	subq	$8, %rsp
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	pushq	$0
	pushq	$0
	pushq	$1
	pushq	$1
	pushq	%rax
	callq	_az_add_nsec3_proof
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_AA,4,2                     ## @BIT_AA
	.comm	_LDNS_RR_TYPE_DS,4,2            ## @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ## @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_az_generate_referral_answer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function az_generate_referral_answer
_az_generate_referral_answer:           ; @az_generate_referral_answer
	.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	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	bl	_log_assert
Lloh0:
	adrp	x8, _BIT_AA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_AA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x19
	bl	_msg_add_rrset_ns
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_az_domain_rrset
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_az_domain_rrset
	cbz	x0, LBB0_6
LBB0_3:
	mov	x4, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_msg_add_rrset_ns
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	bl	_az_add_additionals_from
	cmp	w0, #0
	cset	w0, ne
LBB0_5:
	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_6:
	ldp	w4, w3, [x23]
	ldp	w6, w5, [x20]
	str	wzr, [sp, #8]
	mov	w8, #1
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w7, #1
	bl	_az_add_nsec3_proof
	cbnz	w0, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_AA,4,2                     ; @BIT_AA
	.comm	_LDNS_RR_TYPE_DS,4,2            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ; @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_az_generate_referral_answer
.subsections_via_symbols
