	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_queriesmatch               ## -- Begin function res_queriesmatch
	.p2align	4, 0x90
_res_queriesmatch:                      ## @res_queriesmatch
	.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	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HFIXEDSZ@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	callq	_ntohs
	movl	%eax, %r13d
	movslq	(%r15), %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,4), %rcx
	movl	$-1, %edx
	cmpq	%r12, %rcx
	ja	LBB0_13
## %bb.1:
	leaq	(%rbx,%rax,4), %rax
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	ja	LBB0_13
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_ns_o_update@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edx
	cmpq	%rax, (%rbx)
	je	LBB0_13
LBB0_4:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_ntohs
	xorl	%edx, %edx
	cmpl	%eax, %r13d
	jne	LBB0_13
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r14
	incl	%r13d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAXDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_dn_expand
	testl	%eax, %eax
	movq	_INT16SZ@GOTPCREL(%rip), %rcx
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %eax
	leaq	(%r14,%rax,4), %rbx
	movslq	(%rcx), %rax
	leaq	(%rbx,%rax,8), %rax
	cmpq	%r12, %rax
	ja	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%rcx, %r14
	callq	_ns_get16
	movl	%eax, %r12d
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, %rdi
	callq	_ns_get16
	movslq	(%r14), %rcx
	leaq	(%rbx,%rcx,4), %r14
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_res_nameinquery
	testl	%eax, %eax
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	jne	LBB0_6
## %bb.12:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_10:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movl	$-1, %edx
	jmp	LBB0_13
LBB0_7:
	movl	$1, %edx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%edx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HFIXEDSZ,4,2                   ## @HFIXEDSZ
	.comm	_ns_o_update,8,3                ## @ns_o_update
	.comm	_MAXDNAME,4,2                   ## @MAXDNAME
	.comm	_INT16SZ,4,2                    ## @INT16SZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_queriesmatch               ; -- Begin function res_queriesmatch
	.p2align	2
_res_queriesmatch:                      ; @res_queriesmatch
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _HFIXEDSZ@GOTPAGE
Lloh4:
	ldr	x25, [x25, _HFIXEDSZ@GOTPAGEOFF]
	ldrsw	x24, [x25]
	ldr	w0, [x0, #8]
	bl	_ntohs
	ldrsw	x8, [x25]
	lsl	x8, x8, #2
	add	x9, x20, x8
	add	x8, x22, x8
	cmp	x8, x21
	ccmp	x9, x19, #2, ls
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_13
LBB0_2:
	mov	x23, x0
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _ns_o_update@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ns_o_update@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_13
LBB0_5:
	ldr	w0, [x20, #8]
	bl	_ntohs
	cmp	w23, w0
	b.ne	LBB0_11
; %bb.6:
	add	w26, w23, #1
Lloh8:
	adrp	x28, _INT16SZ@GOTPAGE
Lloh9:
	ldr	x28, [x28, _INT16SZ@GOTPAGEOFF]
	add	x23, x22, x24, lsl #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #1
	cmp	w26, #1
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, sp
Lloh10:
	adrp	x8, _MAXDNAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAXDNAME@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w4, w8, #1
	mov	x9, x4
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x4, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_dn_expand
	tbnz	w0, #31, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, w0, uxtw #2
	ldrsw	x8, [x28]
	add	x8, x23, x8, lsl #3
	cmp	x8, x21
	b.hi	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_ns_get16
	mov	x25, x0
	ldrsw	x8, [x28]
	add	x23, x23, x8, lsl #2
	mov	x0, x23
	bl	_ns_get16
	mov	x2, x0
	ldrsw	x8, [x28]
	add	x23, x23, x8, lsl #2
	mov	x0, x24
	mov	x1, x25
	mov	x3, x20
	mov	x4, x19
	bl	_res_nameinquery
	mov	sp, x27
	cbnz	w0, LBB0_7
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	sp, x27
	mov	w0, #-1
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HFIXEDSZ,4,2                   ; @HFIXEDSZ
	.comm	_ns_o_update,8,3                ; @ns_o_update
	.comm	_MAXDNAME,4,2                   ; @MAXDNAME
	.comm	_INT16SZ,4,2                    ; @INT16SZ
.subsections_via_symbols
