	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nquerydomain               ## -- Begin function res_nquerydomain
	.p2align	4, 0x90
_res_nquerydomain:                      ## @res_nquerydomain
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDNAME@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r12d
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r12d, %eax
	incl	%eax
	cmpl	(%r13), %eax
	jge	LBB0_8
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_sprintf
	jmp	LBB0_3
LBB0_4:
	cmpl	(%r13), %r12d
	jge	LBB0_8
## %bb.5:
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.6:
	decl	%r12d
	movl	%r12d, %r15d
	cmpb	$46, (%rbx,%r15)
	jne	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_strncpy
	movb	$0, (%r14,%r15)
	jmp	LBB0_3
LBB0_8:
	movq	_NO_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RES_SET_H_ERRNO
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_12:
	movq	%rbx, %r14
LBB0_3:
	movl	16(%rbp), %r9d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_res_nquery
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.10:
	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	_MAXDNAME,4,2                   ## @MAXDNAME
	.comm	_NO_RECOVERY,4,2                ## @NO_RECOVERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.%s"

	.comm	_RES_DEBUG,4,2                  ## @RES_DEBUG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nquerydomain               ; -- Begin function res_nquerydomain
	.p2align	2
_res_nquerydomain:                      ; @res_nquerydomain
	.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, x6
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x26, x2
	mov	x25, x1
	mov	x21, 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	x28, _MAXDNAME@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAXDNAME@GOTPAGEOFF]
	ldr	w8, [x28]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x0, x1
	bl	_strlen
	mov	x27, x0
	cbz	x26, LBB0_3
; %bb.1:
	mov	x0, x26
	bl	_strlen
	add	w8, w27, w0
	add	w8, w8, #1
	ldr	w9, [x28]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.2:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x25
	mov	x3, x26
	bl	_sprintf
	b	LBB0_9
LBB0_3:
	ldr	w8, [x28]
	cmp	w27, w8
	b.ge	LBB0_7
; %bb.4:
	subs	w26, w27, #1
	b.lt	LBB0_8
; %bb.5:
	ldrb	w8, [x25, x26]
	cmp	w8, #46
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_strncpy
	strb	wzr, [x24, x26]
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RES_SET_H_ERRNO
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	mov	x24, x25
LBB0_9:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	bl	_res_nquery
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDNAME,4,2                   ; @MAXDNAME
	.comm	_NO_RECOVERY,4,2                ; @NO_RECOVERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.%s"

	.comm	_RES_DEBUG,4,2                  ; @RES_DEBUG
.subsections_via_symbols
