	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auth_answer_encode
_auth_answer_encode:                    ## @auth_answer_encode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	16(%rbp), %rdx
	movl	16(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_EDNS_ADVERTISED_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_EDNS_ADVERTISED_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_EDNS_DO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, (%rbx)
	movq	%r9, %r15
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r12
	movl	(%r12), %edi
	callq	_FLAGS_GET_RCODE
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	movq	%rbx, %r9
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	pushq	%r15
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	callq	_inplace_cb_reply_local_call
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_sldns_buffer_read_u16_at
	movq	_EDNS_DO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	andl	(%rbx), %r10d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r10
	pushq	%rbx
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_reply_info_answer_encode
	addq	$48, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rax
	movq	_BIT_AA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_sldns_buffer_read_u16_at
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_encode                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EDNS_ADVERTISED_VERSION,4,2    ## @EDNS_ADVERTISED_VERSION
	.comm	_EDNS_ADVERTISED_SIZE,4,2       ## @EDNS_ADVERTISED_SIZE
	.comm	_EDNS_DO,4,2                    ## @EDNS_DO
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ## @LDNS_RCODE_SERVFAIL
	.comm	_BIT_AA,4,2                     ## @BIT_AA
	.no_dead_strip	_auth_answer_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auth_answer_encode
_auth_answer_encode:                    ; @auth_answer_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x6
	mov	x22, x5
	mov	x20, x4
	mov	x24, x3
	mov	x19, x2
	mov	x25, x1
	mov	x21, x0
	ldr	w27, [x2, #16]
Lloh0:
	adrp	x8, _EDNS_ADVERTISED_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDNS_ADVERTISED_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EDNS_ADVERTISED_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EDNS_ADVERTISED_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #16]
	str	xzr, [x2, #8]
Lloh6:
	adrp	x28, _EDNS_DO@GOTPAGE
Lloh7:
	ldr	x28, [x28, _EDNS_DO@GOTPAGEOFF]
	ldr	w8, [x28]
	ldr	w9, [x2]
	and	w8, w9, w8
	str	w8, [x2]
	ldr	x26, [x6]
	ldr	w0, [x26]
	bl	_FLAGS_GET_RCODE
	mov	x4, x0
	mov	x0, x25
	mov	x1, x21
	mov	x2, #0
	mov	x3, x26
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, x19
	mov	x6, x24
	mov	x7, x22
	bl	_inplace_cb_reply_local_call
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x23, [x23]
	mov	x0, x20
	bl	_sldns_buffer_begin
	ldr	w24, [x0]
	mov	x0, x20
	mov	w1, #2
	bl	_sldns_buffer_read_u16_at
	mov	x3, x0
	ldr	w8, [x19]
	ldr	w9, [x28]
	and	w8, w9, w8
	stp	w8, wzr, [sp, #16]
	str	x19, [sp, #8]
	str	w27, [sp]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x4, x20
	mov	w5, #0
	mov	w6, #0
	mov	x7, x22
	bl	_reply_info_answer_encode
	cbz	w0, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
Lloh8:
	adrp	x8, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _BIT_AA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BIT_AA@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x20
	bl	_sldns_buffer_begin
	ldr	w23, [x0]
	mov	x0, x20
	mov	w1, #2
	bl	_sldns_buffer_read_u16_at
	mov	x4, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x5, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_error_encode
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EDNS_ADVERTISED_VERSION,4,2    ; @EDNS_ADVERTISED_VERSION
	.comm	_EDNS_ADVERTISED_SIZE,4,2       ; @EDNS_ADVERTISED_SIZE
	.comm	_EDNS_DO,4,2                    ; @EDNS_DO
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ; @LDNS_RCODE_SERVFAIL
	.comm	_BIT_AA,4,2                     ; @BIT_AA
	.no_dead_strip	_auth_answer_encode
.subsections_via_symbols
