	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nameinquery                ## -- Begin function res_nameinquery
	.p2align	4, 0x90
_res_nameinquery:                       ## @res_nameinquery
	.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	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HFIXEDSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movl	(%rcx), %edi
	callq	_ntohs
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r12,4), %r13
	incl	%r15d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r14,4), %r13
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	decl	%r15d
	cmpl	$1, %r15d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -64(%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, %r12
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_dn_expand
	movl	$-1, %ecx
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %eax
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	movq	_INT16SZ@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	leaq	(%rbx,%rax,8), %rax
	cmpq	%r14, %rax
	ja	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ns_get16
	movq	%r13, %r14
	movl	%eax, %r13d
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, %rdi
	callq	_ns_get16
	movslq	(%r14), %r14
	cmpl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ns_samename
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.7:
	movl	$1, %ecx
LBB0_8:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_10:
	xorl	%ecx, %ecx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HFIXEDSZ,4,2                   ## @HFIXEDSZ
	.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_nameinquery                ; -- Begin function res_nameinquery
	.p2align	2
_res_nameinquery:                       ; @res_nameinquery
	.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, #32
	mov	x19, x4
	mov	x20, x3
	stur	w2, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x22, x1
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
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	x8, _HFIXEDSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HFIXEDSZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x21, [x8]
	ldr	w0, [x3]
	bl	_ntohs
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	add	w28, w0, #1
Lloh6:
	adrp	x23, _INT16SZ@GOTPAGE
Lloh7:
	ldr	x23, [x23, _INT16SZ@GOTPAGEOFF]
	add	x25, x20, x21, lsl #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, x21, lsl #2
	mov	sp, x27
	sub	w28, w28, #1
	cmp	w28, #1
	b.ls	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, sp
Lloh8:
	adrp	x8, _MAXDNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAXDNAME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w4, w8, #1
	mov	x9, x4
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	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, x20
	mov	x1, x19
	mov	x2, x25
	mov	x3, x24
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_dn_expand
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, w0, uxtw #2
	ldrsw	x8, [x23]
	add	x8, x25, x8, lsl #3
	cmp	x8, x19
	b.hi	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_ns_get16
	mov	x26, x0
	ldrsw	x8, [x23]
	add	x25, x25, x8, lsl #2
	mov	x0, x25
	bl	_ns_get16
	ldrsw	x21, [x23]
	cmp	w26, w22
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	ccmp	w0, w8, #0, eq
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	bl	_ns_samename
	cmp	w0, #1
	b.ne	LBB0_2
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	mov	w0, #-1
LBB0_9:
	mov	sp, x27
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HFIXEDSZ,4,2                   ; @HFIXEDSZ
	.comm	_MAXDNAME,4,2                   ; @MAXDNAME
	.comm	_INT16SZ,4,2                    ; @INT16SZ
.subsections_via_symbols
