	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nmkquery                   ## -- Begin function res_nmkquery
	.p2align	4, 0x90
_res_nmkquery:                          ## @res_nmkquery
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movq	%rdx, -232(%rbp)                ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	24(%rbp), %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_UNUSED
	movl	$-1, %ecx
	cmpq	$0, 32(%rbp)
	je	LBB0_2
## %bb.1:
	movl	%r13d, -216(%rbp)               ## 4-byte Spill
	movl	%ebx, -212(%rbp)                ## 4-byte Spill
	movl	40(%rbp), %ebx
	movq	_HFIXEDSZ@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	cmpl	%ebx, %edx
	jg	LBB0_2
## %bb.4:
	movq	%r15, -224(%rbp)                ## 8-byte Spill
	movq	32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r12, %rdi
	callq	_res_nrandomid
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_htons
	movq	%rax, 40(%r15)
	movl	%r14d, (%r15)
	movq	_RES_RECURSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r12), %eax
	setne	%cl
	movl	%ecx, 4(%r15)
	movq	_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movslq	(%r13), %rax
	leaq	(%r15,%rax,4), %r13
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %r12
	movq	%r15, -208(%rbp)
	movq	$0, -200(%rbp)
	leaq	-208(%rbp), %rdi
	callq	_nitems
	leal	-128(%r14), %ecx
	cmpl	$2, %ecx
	jae	LBB0_7
## %bb.5:
	movq	%r12, %rdx
	subq	%r13, %rdx
	sarq	$2, %rdx
	movq	_QFIXEDSZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_6
## %bb.11:
	cltq
	leaq	-208(,%rax,8), %r15
	addq	%rbp, %r15
	subl	%ecx, %edx
	leaq	-208(%rbp), %rcx
	movq	-232(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %r8
	callq	_dn_comp
	testl	%eax, %eax
	js	LBB0_6
## %bb.12:
	movl	%eax, %eax
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	movl	-216(%rbp), %edi                ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_ns_put16
	movq	_INT16SZ@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	leaq	(%rbx,%rax,4), %rbx
	movl	-212(%rbp), %edi                ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_ns_put16
	movslq	(%r13), %rax
	leaq	(%rbx,%rax,4), %r13
	movl	$1, %edi
	callq	_htons
	movq	32(%rbp), %rcx
	movq	%rax, 24(%rcx)
	cmpl	$128, %r14d
	je	LBB0_18
## %bb.13:
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.14:
	subq	%r13, %r12
	sarq	$2, %r12
	movq	_RRFIXEDSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_19
LBB0_6:
	movl	$-1, %ecx
	jmp	LBB0_2
LBB0_7:
	cmpl	$130, %r14d
	movl	$-1, %ecx
	jne	LBB0_2
## %bb.8:
	movl	16(%rbp), %r14d
	subq	%r13, %r12
	sarq	$2, %r12
	movq	_RRFIXEDSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	incl	%eax
	cltq
	cmpq	%rax, %r12
	jl	LBB0_2
## %bb.9:
	leaq	4(%r13), %rsi
	movl	$0, (%r13)
	movl	-216(%rbp), %edi                ## 4-byte Reload
	callq	_ns_put16
	movq	_INT16SZ@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	leaq	4(,%rax,4), %rbx
	addq	%r13, %rbx
	movl	-212(%rbp), %edi                ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_ns_put16
	movslq	(%r15), %rax
	leaq	(%rbx,%rax,4), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_ns_put32
	movq	_INT32SZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_ns_put16
	movslq	(%r15), %rax
	leaq	(%rbx,%rax,4), %r13
	movl	$2, %r15d
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.10:
	movq	%r13, %rdi
	movq	-224(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	leaq	(%r13,%rax,4), %r13
	jmp	LBB0_21
LBB0_18:
	movq	32(%rbp), %rbx
	jmp	LBB0_22
LBB0_19:
	subl	%eax, %r12d
	leaq	-208(%rbp), %rcx
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %r8
	callq	_dn_comp
	testl	%eax, %eax
	movl	$-1, %ecx
	js	LBB0_2
## %bb.20:
	movl	%eax, %eax
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	movq	_T_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ns_put16
	movq	_INT16SZ@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	movl	-212(%rbp), %edi                ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_ns_put16
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_ns_put32
	movq	_INT32SZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_ns_put16
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,4), %r13
	movl	$4, %r15d
LBB0_21:
	movq	32(%rbp), %rbx
	movl	$1, %edi
	callq	_htons
	movq	%rax, (%rbx,%r15,4)
LBB0_22:
	subq	%rbx, %r13
	shrq	$2, %r13
	movl	%r13d, %ecx
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.3:
	movl	%ecx, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HFIXEDSZ,4,2                   ## @HFIXEDSZ
	.comm	_RES_RECURSE,4,2                ## @RES_RECURSE
	.comm	_NOERROR,4,2                    ## @NOERROR
	.comm	_QFIXEDSZ,4,2                   ## @QFIXEDSZ
	.comm	_INT16SZ,4,2                    ## @INT16SZ
	.comm	_RRFIXEDSZ,4,2                  ## @RRFIXEDSZ
	.comm	_T_NULL,4,2                     ## @T_NULL
	.comm	_INT32SZ,4,2                    ## @INT32SZ
	.comm	_RES_DEBUG,4,2                  ## @RES_DEBUG
	.comm	__res_opcodes,8,3               ## @_res_opcodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nmkquery                   ; -- Begin function res_nmkquery
	.p2align	2
_res_nmkquery:                          ; @res_nmkquery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	mov	x22, x6
	mov	x20, x5
	mov	x24, x4
	mov	x21, x3
	mov	x25, x2
	mov	x23, x1
	mov	x26, x0
	ldr	x19, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	x0, x7
	bl	_UNUSED
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w27, [x29, #24]
Lloh3:
	adrp	x28, _HFIXEDSZ@GOTPAGE
Lloh4:
	ldr	x28, [x28, _HFIXEDSZ@GOTPAGEOFF]
	ldr	w2, [x28]
	cmp	w2, w27
	b.le	LBB0_5
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-96]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	mov	x0, x26
	bl	_res_nrandomid
	str	w0, [x26, #4]
	bl	_htons
	str	x0, [x19, #40]
	str	w23, [x19]
	ldr	w8, [x26]
Lloh8:
	adrp	x9, _RES_RECURSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RES_RECURSE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #4]
Lloh11:
	adrp	x8, _NOERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NOERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldrsw	x8, [x28]
	add	x26, x19, x8, lsl #2
	add	x27, x19, w27, sxtw #2
	stp	x19, xzr, [sp]
	mov	x28, sp
	mov	x0, sp
	bl	_nitems
	sub	w8, w23, #128
	cmp	w8, #2
	b.hs	LBB0_13
; %bb.6:
	sub	x8, x27, x26
Lloh14:
	adrp	x9, _QFIXEDSZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QFIXEDSZ@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
	cmp	x9, x8, asr #2
	b.gt	LBB0_2
; %bb.7:
	add	x22, x28, w0, sxtw #3
	lsr	x8, x8, #2
	sub	w2, w8, w9
	mov	x3, sp
	mov	x0, x25
	mov	x1, x26
	mov	x4, x22
	bl	_dn_comp
	tbnz	w0, #31, LBB0_2
; %bb.8:
	add	x25, x26, w0, uxtw #2
	mov	x0, x24
	mov	x1, x25
	bl	_ns_put16
Lloh17:
	adrp	x26, _INT16SZ@GOTPAGE
Lloh18:
	ldr	x26, [x26, _INT16SZ@GOTPAGEOFF]
	ldrsw	x8, [x26]
	add	x24, x25, x8, lsl #2
	mov	x0, x21
	mov	x1, x24
	bl	_ns_put16
	ldrsw	x8, [x26]
	add	x24, x24, x8, lsl #2
	mov	w0, #1
	bl	_htons
	str	x0, [x19, #24]
	cmp	w23, #128
	b.eq	LBB0_19
; %bb.9:
	cbz	x20, LBB0_19
; %bb.10:
	sub	x8, x27, x24
Lloh19:
	adrp	x9, _RRFIXEDSZ@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RRFIXEDSZ@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	cmp	x9, x8, asr #2
	b.gt	LBB0_2
; %bb.11:
	lsr	x8, x8, #2
	sub	w2, w8, w9
	mov	x3, sp
	mov	x0, x20
	mov	x1, x24
	mov	x4, x22
	bl	_dn_comp
	tbnz	w0, #31, LBB0_2
; %bb.12:
	add	x20, x24, w0, uxtw #2
Lloh22:
	adrp	x8, _T_NULL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _T_NULL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ns_put16
	ldrsw	x8, [x26]
	add	x20, x20, x8, lsl #2
	mov	x0, x21
	mov	x1, x20
	bl	_ns_put16
	ldrsw	x8, [x26]
	add	x20, x20, x8, lsl #2
	mov	w0, #0
	mov	x1, x20
	bl	_ns_put32
Lloh25:
	adrp	x8, _INT32SZ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INT32SZ@GOTPAGEOFF]
Lloh27:
	ldrsw	x8, [x8]
	add	x20, x20, x8, lsl #2
	mov	w0, #0
	mov	x1, x20
	bl	_ns_put16
	ldrsw	x8, [x26]
	add	x24, x20, x8, lsl #2
	mov	w20, #4
	b	LBB0_18
LBB0_13:
	cmp	w23, #130
	b.ne	LBB0_2
; %bb.14:
Lloh28:
	adrp	x8, _RRFIXEDSZ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RRFIXEDSZ@GOTPAGEOFF]
	sub	x9, x27, x26
Lloh30:
	ldr	w8, [x8]
	add	w8, w22, w8
	add	w8, w8, #1
	sxtw	x8, w8
	cmp	x8, x9, asr #2
	b.gt	LBB0_2
; %bb.15:
	str	wzr, [x26], #4
	mov	x0, x24
	mov	x1, x26
	bl	_ns_put16
Lloh31:
	adrp	x24, _INT16SZ@GOTPAGE
Lloh32:
	ldr	x24, [x24, _INT16SZ@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x23, x26, x8, lsl #2
	mov	x0, x21
	mov	x1, x23
	bl	_ns_put16
	ldrsw	x8, [x24]
	add	x21, x23, x8, lsl #2
	mov	w0, #0
	mov	x1, x21
	bl	_ns_put32
Lloh33:
	adrp	x8, _INT32SZ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INT32SZ@GOTPAGEOFF]
Lloh35:
	ldrsw	x8, [x8]
	add	x21, x21, x8, lsl #2
	mov	x0, x22
	mov	x1, x21
	bl	_ns_put16
	ldrsw	x8, [x24]
	add	x24, x21, x8, lsl #2
	cbz	w22, LBB0_17
; %bb.16:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x24, x24, w22, sxtw #2
LBB0_17:
	mov	w20, #2
LBB0_18:
	mov	w0, #1
	bl	_htons
	lsl	x8, x20, #2
	str	x0, [x19, x8]
LBB0_19:
	sub	x8, x24, x19
	lsr	x0, x8, #2
	b	LBB0_3
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HFIXEDSZ,4,2                   ; @HFIXEDSZ
	.comm	_RES_RECURSE,4,2                ; @RES_RECURSE
	.comm	_NOERROR,4,2                    ; @NOERROR
	.comm	_QFIXEDSZ,4,2                   ; @QFIXEDSZ
	.comm	_INT16SZ,4,2                    ; @INT16SZ
	.comm	_RRFIXEDSZ,4,2                  ; @RRFIXEDSZ
	.comm	_T_NULL,4,2                     ; @T_NULL
	.comm	_INT32SZ,4,2                    ; @INT32SZ
	.comm	_RES_DEBUG,4,2                  ; @RES_DEBUG
	.comm	__res_opcodes,8,3               ; @_res_opcodes
.subsections_via_symbols
