	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_querydomainN
_res_querydomainN:                      ## @res_querydomainN
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movslq	%r14d, %r12
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_strlen
	addq	%r15, %rax
	incq	%rax
	cmpq	%r12, %rax
	jae	LBB0_8
## %bb.2:
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_snprintf
	jmp	LBB0_3
LBB0_4:
	cmpq	%r12, %r15
	jae	LBB0_8
## %bb.5:
	testq	%r15, %r15
	je	LBB0_12
## %bb.6:
	cmpb	$46, -1(%r13,%r15)
	jne	LBB0_12
## %bb.7:
	decq	%r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_strncpy
	movb	$0, (%r12,%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	%r13, %r12
LBB0_3:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_res_queryN
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
	.no_dead_strip	_res_querydomainN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function res_querydomainN
_res_querydomainN:                      ; @res_querydomainN
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x23, 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, #-72]
Lloh3:
	adrp	x8, _MAXDNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXDNAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sxtw	x24, w8
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_strlen
	mov	x25, x0
	cbz	x23, LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_strlen
	add	x8, x25, x0
	add	x8, x8, #1
	cmp	x8, x24
	b.hs	LBB0_7
; %bb.2:
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	mov	x3, x22
	mov	x4, x23
	bl	_snprintf
	b	LBB0_9
LBB0_3:
	cmp	x25, x24
	b.hs	LBB0_7
; %bb.4:
	cbz	x25, LBB0_8
; %bb.5:
	sub	x23, x25, #1
	ldrb	w8, [x22, x23]
	cmp	w8, #46
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_strncpy
	strb	wzr, [x21, x23]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RES_SET_H_ERRNO
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	mov	x21, x22
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_res_queryN
LBB0_10:
	ldur	x8, [x29, #-72]
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, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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
	.no_dead_strip	_res_querydomainN
.subsections_via_symbols
