	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function local_encode
_local_encode:                          ## @local_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	32(%rbp), %r14d
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r14d, %r8d
	movq	_BIT_QR@GOTPCREL(%rip), %rax
	movq	_BIT_AA@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	orl	%r14d, %eax
	orl	(%rcx), %eax
	movq	_BIT_RA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	cltq
	movq	%rax, -64(%rbp)
	movl	$1, -88(%rbp)
	cmpl	$0, 24(%rbp)
	je	LBB0_2
## %bb.1:
	movl	$1, -84(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	$1, -80(%rbp)
LBB0_3:
	movl	$1, -76(%rbp)
	leaq	16(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	16(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_EDNS_ADVERTISED_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_EDNS_ADVERTISED_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	$0, 8(%r15)
	movq	_EDNS_DO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, (%r15)
	leaq	-88(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %r14
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r15, %r9
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	%r13
	callq	_inplace_cb_reply_local_call
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sldns_buffer_begin
	movq	(%rax), %r12
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_sldns_buffer_read_u16_at
	movq	_EDNS_DO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%r15), %ebx
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%eax, %ecx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	%r15
	pushq	-96(%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
	jne	LBB0_6
LBB0_5:
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rax
	movq	_BIT_AA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movq	(%rax), %r13
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_sldns_buffer_read_u16_at
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_error_encode
LBB0_6:
	movl	$1, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_QR,4,2                     ## @BIT_QR
	.comm	_BIT_AA,4,2                     ## @BIT_AA
	.comm	_BIT_RA,4,2                     ## @BIT_RA
	.comm	_EDNS_ADVERTISED_VERSION,4,2    ## @EDNS_ADVERTISED_VERSION
	.comm	_EDNS_ADVERTISED_SIZE,8,3       ## @EDNS_ADVERTISED_SIZE
	.comm	_EDNS_DO,4,2                    ## @EDNS_DO
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ## @LDNS_RCODE_SERVFAIL
	.no_dead_strip	_local_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function local_encode
_local_encode:                          ; @local_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x26, x7
	mov	x22, x5
	mov	x20, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	ldr	w25, [x29, #16]
	str	x6, [sp, #56]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _BIT_QR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_QR@GOTPAGEOFF]
Lloh2:
	adrp	x27, _BIT_AA@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BIT_AA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x27]
Lloh5:
	adrp	x10, _BIT_RA@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BIT_RA@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w8, w8, w25
	orr	w8, w8, w9
	orr	w8, w8, w10
	sxtw	x8, w8
	str	x8, [sp, #48]
	mov	w8, #1
	str	w8, [sp, #24]
	cbz	w26, LBB0_2
; %bb.1:
	str	w8, [sp, #28]
	b	LBB0_3
LBB0_2:
	str	w8, [sp, #32]
LBB0_3:
	mov	w8, #1
	str	w8, [sp, #36]
	add	x8, sp, #56
	str	x8, [sp, #40]
	ldr	x26, [x19, #16]
Lloh8:
	adrp	x8, _EDNS_ADVERTISED_VERSION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EDNS_ADVERTISED_VERSION@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh11:
	adrp	x8, _EDNS_ADVERTISED_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDNS_ADVERTISED_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	stp	xzr, x8, [x19, #8]
Lloh14:
	adrp	x28, _EDNS_DO@GOTPAGE
Lloh15:
	ldr	x28, [x28, _EDNS_DO@GOTPAGEOFF]
	ldr	w8, [x28]
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	add	x3, sp, #24
	mov	x0, x24
	mov	x1, x21
	mov	x2, #0
	mov	x4, x25
	mov	x5, x19
	mov	x6, x23
	mov	x7, x22
	bl	_inplace_cb_reply_local_call
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_sldns_buffer_begin
	ldr	x23, [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]
	add	x1, sp, #24
	stp	x26, x19, [sp]
	mov	x0, x21
	mov	x2, x23
	mov	x4, x20
	mov	w5, #0
	mov	w6, #0
	mov	x7, x22
	bl	_reply_info_answer_encode
	cbnz	w0, LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w22, w9, w8
	mov	x0, x20
	bl	_sldns_buffer_begin
	ldr	x23, [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
	bl	_error_encode
LBB0_6:
	mov	w0, #1
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_QR,4,2                     ; @BIT_QR
	.comm	_BIT_AA,4,2                     ; @BIT_AA
	.comm	_BIT_RA,4,2                     ; @BIT_RA
	.comm	_EDNS_ADVERTISED_VERSION,4,2    ; @EDNS_ADVERTISED_VERSION
	.comm	_EDNS_ADVERTISED_SIZE,8,3       ; @EDNS_ADVERTISED_SIZE
	.comm	_EDNS_DO,4,2                    ; @EDNS_DO
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ; @LDNS_RCODE_SERVFAIL
	.no_dead_strip	_local_encode
.subsections_via_symbols
