	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_deserialize_new_query  ## -- Begin function context_deserialize_new_query
	.p2align	4, 0x90
_context_deserialize_new_query:         ## @context_deserialize_new_query
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	cmpl	$16, %r12d
	jbe	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	callq	_sldns_read_uint32
	movq	_UB_LIBCMD_NEWQUERY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	leaq	16(%r15), %rdi
	callq	_sldns_read_uint32
	movl	%eax, (%rbx)
	movq	%rbx, 16(%rbx)
	movl	$1, 4(%rbx)
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	32(%r15), %rdi
	callq	_sldns_read_uint32
	movq	24(%rbx), %rcx
	movl	%eax, 8(%rcx)
	leaq	48(%r15), %rdi
	callq	_sldns_read_uint32
	movq	24(%rbx), %rcx
	movl	%eax, 12(%rcx)
	addq	$64, %r15
	movq	%r15, %rdi
	callq	_strdup
	movq	24(%rbx), %rdi
	movl	%eax, 32(%rdi)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rsi
	addq	$16, %rsi
	incl	4(%r14)
	movq	%r14, %rdi
	callq	_rbtree_insert
	jmp	LBB0_9
LBB0_6:
	callq	_free
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UB_LIBCMD_NEWQUERY,8,3         ## @UB_LIBCMD_NEWQUERY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_deserialize_new_query  ; -- Begin function context_deserialize_new_query
	.p2align	2
_context_deserialize_new_query:         ; @context_deserialize_new_query
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	cmp	w22, #16
	b.ls	LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_sldns_read_uint32
Lloh0:
	adrp	x8, _UB_LIBCMD_NEWQUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UB_LIBCMD_NEWQUERY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_log_assert
	add	x0, x21, #16
	bl	_sldns_read_uint32
	str	x19, [x19, #16]
	mov	w8, #1
	stp	w0, w8, [x19]
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.3:
	add	x0, x21, #32
	bl	_sldns_read_uint32
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
	add	x0, x21, #48
	bl	_sldns_read_uint32
	ldr	x8, [x19, #24]
	str	w0, [x8, #12]
	add	x0, x21, #64
	bl	_strdup
	mov	x8, x0
	ldr	x0, [x19, #24]
	str	w8, [x0, #32]
	cbz	w8, LBB0_5
; %bb.4:
	add	x1, x19, #16
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_rbtree_insert
	b	LBB0_7
LBB0_5:
	bl	_free
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_LIBCMD_NEWQUERY,8,3         ; @UB_LIBCMD_NEWQUERY
.subsections_via_symbols
