	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_serialize_answer       ## -- Begin function context_serialize_answer
	.p2align	4, 0x90
_context_serialize_answer:              ## @context_serialize_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r12
	testq	%rdx, %rdx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_sldns_buffer_remaining
	movq	%rax, %r15
	movq	(%r12), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.2:
	callq	_strlen
	incl	%eax
	movslq	%eax, %r13
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	xorl	%r13d, %r13d
LBB0_5:
	leaq	(%r15,%r13), %rdi
	addq	$48, %rdi
	movq	%rdi, (%rbx)
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movq	_UB_LIBCMD_ANSWER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_sldns_write_uint32
	leaq	32(%rbx), %rdi
	movq	16(%r12), %rsi
	callq	_sldns_write_uint32
	leaq	64(%rbx), %rdi
	movslq	-44(%rbp), %rsi                 ## 4-byte Folded Reload
	callq	_sldns_write_uint32
	leaq	96(%rbx), %rdi
	movq	8(%r12), %rsi
	callq	_sldns_write_uint32
	leaq	128(%rbx), %rdi
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	callq	_sldns_write_uint32
	leaq	160(%rbx), %rdi
	movq	%r13, %rsi
	callq	_sldns_write_uint32
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	leaq	192(%rbx), %rdi
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_memmove
LBB0_8:
	testq	%r15, %r15
	je	LBB0_11
## %bb.9:
	leaq	(%rbx,%r13,4), %r12
	addq	$192, %r12
	movq	%r14, %rdi
	callq	_sldns_buffer_begin
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_memmove
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UB_LIBCMD_ANSWER,8,3           ## @UB_LIBCMD_ANSWER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_serialize_answer       ; -- Begin function context_serialize_answer
	.p2align	2
_context_serialize_answer:              ; @context_serialize_answer
	.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	x22, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	cbz	x2, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_sldns_buffer_remaining
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	cbz	w0, LBB0_4
; %bb.2:
	bl	_strlen
	add	w8, w0, #1
	sxtw	x23, w8
	b	LBB0_5
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x23, #0
LBB0_5:
	add	x8, x20, x23
	add	x0, x8, #48
	str	x0, [x22]
	bl	_malloc
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.6:
Lloh0:
	adrp	x8, _UB_LIBCMD_ANSWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UB_LIBCMD_ANSWER@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_sldns_write_uint32
	add	x0, x22, #32
	ldr	x1, [x21, #16]
	bl	_sldns_write_uint32
	add	x0, x22, #64
	sxtw	x1, w24
	bl	_sldns_write_uint32
	add	x0, x22, #96
	ldr	x1, [x21, #8]
	bl	_sldns_write_uint32
	add	x0, x22, #128
	ldr	x8, [x21]
	ldr	x1, [x8, #8]
	bl	_sldns_write_uint32
	add	x0, x22, #160
	mov	x1, x23
	bl	_sldns_write_uint32
	cbz	x23, LBB0_8
; %bb.7:
	add	x0, x22, #192
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x2, x23
	bl	_memmove
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	add	x8, x22, x23, lsl #2
	add	x21, x8, #192
	mov	x0, x19
	bl	_sldns_buffer_begin
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_memmove
LBB0_10:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_LIBCMD_ANSWER,8,3           ; @UB_LIBCMD_ANSWER
.subsections_via_symbols
