	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nquery                     ## -- Begin function res_nquery
	.p2align	4, 0x90
_res_nquery:                            ## @res_nquery
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	$132, (%r12)
	movq	_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(,%r15,4), %eax
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r13
	pushq	$0
	pushq	$0
	callq	_res_nmkquery
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	_NO_RECOVERY@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_res_nsend
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	(%r12), %eax
	cmpl	$132, %eax
	jne	LBB0_6
## %bb.4:
	movl	12(%r12), %edi
	callq	_ntohs
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	(%r12), %eax
LBB0_6:
	addl	$-128, %eax
	movl	$-1, %ebx
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.7:
	cltq
	leaq	l_switch.table.res_nquery(%rip), %rcx
	movq	(%rcx,%rax,8), %r14
	jmp	LBB0_8
LBB0_2:
	movq	_TRY_AGAIN@GOTPCREL(%rip), %r14
LBB0_8:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_RES_SET_H_ERRNO
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPACKET,4,2                  ## @MAXPACKET
	.comm	_QUERY,4,2                      ## @QUERY
	.comm	_NO_RECOVERY,4,2                ## @NO_RECOVERY
	.comm	_TRY_AGAIN,4,2                  ## @TRY_AGAIN
	.comm	_HOST_NOT_FOUND,4,2             ## @HOST_NOT_FOUND
	.comm	_NO_DATA,4,2                    ## @NO_DATA
	.comm	_NS_OPT_NSID,4,2                ## @NS_OPT_NSID
	.comm	_RES_DEBUG,4,2                  ## @RES_DEBUG
	.comm	_RES_F_EDNS0ERR,4,2             ## @RES_F_EDNS0ERR
	.comm	_RES_NSID,4,2                   ## @RES_NSID
	.comm	_RES_USE_DNSSEC,4,2             ## @RES_USE_DNSSEC
	.comm	_RES_USE_EDNS0,4,2              ## @RES_USE_EDNS0
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.res_nquery
l_switch.table.res_nquery:
	.quad	_TRY_AGAIN
	.quad	_NO_RECOVERY
	.quad	_HOST_NOT_FOUND
	.quad	_NO_RECOVERY
	.quad	_NO_DATA

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nquery                     ; -- Begin function res_nquery
	.p2align	2
_res_nquery:                            ; @res_nquery
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x22, x5
	mov	x20, x4
	mov	x4, x3
	mov	x3, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPACKET@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	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, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	w8, #132
	str	w8, [x20]
Lloh8:
	adrp	x8, _QUERY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QUERY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	lsl	w8, w12, #2
	sub	sp, sp, #16
	str	w8, [sp, #8]
	str	x23, [sp]
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_res_nmkquery
	add	sp, sp, #16
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_res_nsend
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #132
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x20, #12]
	bl	_ntohs
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	w8, [x20]
LBB0_5:
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.6:
Lloh11:
	adrp	x9, l_switch.table.res_nquery@PAGE
Lloh12:
	add	x9, x9, l_switch.table.res_nquery@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	mov	w21, #-1
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _TRY_AGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRY_AGAIN@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	w21, #-1
LBB0_9:
Lloh15:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RES_SET_H_ERRNO
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPACKET,4,2                  ; @MAXPACKET
	.comm	_QUERY,4,2                      ; @QUERY
	.comm	_NO_RECOVERY,4,2                ; @NO_RECOVERY
	.comm	_TRY_AGAIN,4,2                  ; @TRY_AGAIN
	.comm	_HOST_NOT_FOUND,4,2             ; @HOST_NOT_FOUND
	.comm	_NO_DATA,4,2                    ; @NO_DATA
	.comm	_NS_OPT_NSID,4,2                ; @NS_OPT_NSID
	.comm	_RES_DEBUG,4,2                  ; @RES_DEBUG
	.comm	_RES_F_EDNS0ERR,4,2             ; @RES_F_EDNS0ERR
	.comm	_RES_NSID,4,2                   ; @RES_NSID
	.comm	_RES_USE_DNSSEC,4,2             ; @RES_USE_DNSSEC
	.comm	_RES_USE_EDNS0,4,2              ; @RES_USE_EDNS0
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.res_nquery
l_switch.table.res_nquery:
	.quad	_TRY_AGAIN
	.quad	_NO_RECOVERY
	.quad	_HOST_NOT_FOUND
	.quad	_NO_RECOVERY
	.quad	_NO_DATA

.subsections_via_symbols
