	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_lookup_new_query       ## -- Begin function context_lookup_new_query
	.p2align	4, 0x90
_context_lookup_new_query:              ## @context_lookup_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$17, %edx
	jb	LBB0_4
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_sldns_read_uint32
	movq	_UB_LIBCMD_NEWQUERY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_sldns_read_uint32
	movl	%eax, -20(%rbp)
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rbtree_search
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_log_assert
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	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_lookup_new_query       ; -- Begin function context_lookup_new_query
	.p2align	2
_context_lookup_new_query:              ; @context_lookup_new_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	w2, #17
	b.hs	LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	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, x20, #16
	bl	_sldns_read_uint32
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_rbtree_search
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_log_assert
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_LIBCMD_NEWQUERY,8,3         ; @UB_LIBCMD_NEWQUERY
.subsections_via_symbols
