	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nopt                       ## -- Begin function res_nopt
	.p2align	4, 0x90
_res_nopt:                              ## @res_nopt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%esi, %rax
	leaq	(%rdx,%rax,4), %r13
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,4), %rax
	subq	%r13, %rax
	sarq	$2, %rax
	movq	_RRFIXEDSZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	incq	%rcx
	movl	$-1, %ebx
	cmpq	%rcx, %rax
	jl	LBB0_4
## %bb.1:
	movl	%r8d, %r15d
	movq	%rdx, %r12
	movq	%rdi, %r14
	leaq	4(%r13), %rsi
	movl	$0, (%r13)
	movq	_ns_t_opt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ns_put16
	movq	_INT16SZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rax
	leaq	4(,%rax,4), %rbx
	addq	%r13, %rbx
	movq	%rcx, %r13
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovll	%r15d, %eax
	movzwl	%ax, %edi
	movq	%rbx, %rsi
	callq	_ns_put16
	movslq	(%r13), %rax
	leaq	(%rbx,%rax,4), %r15
	movq	_NOERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx,%rax,4)
	leaq	8(%rbx,%rax,4), %rsi
	movl	$0, 4(%rbx,%rax,4)
	movq	_RES_USE_DNSSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	je	LBB0_3
## %bb.2:
	movq	_NS_OPT_DNSSEC_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_3:
	callq	_ns_put16
	movslq	(%r13), %rax
	leaq	(%r15,%rax,4), %rbx
	addq	$8, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_ns_put16
	movl	(%r13), %eax
	leaq	(%rbx,%rax,4), %rbx
	movl	(%r12), %edi
	callq	_ntohs
	leaq	1(%rax), %rdi
	callq	_htons
	movl	%eax, (%r12)
	subq	%r12, %rbx
	shrq	$2, %rbx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RRFIXEDSZ,4,2                  ## @RRFIXEDSZ
	.comm	_ns_t_opt,4,2                   ## @ns_t_opt
	.comm	_INT16SZ,4,2                    ## @INT16SZ
	.comm	_NOERROR,8,3                    ## @NOERROR
	.comm	_RES_USE_DNSSEC,4,2             ## @RES_USE_DNSSEC
	.comm	_NS_OPT_DNSSEC_OK,4,2           ## @NS_OPT_DNSSEC_OK
	.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_nopt                       ; -- Begin function res_nopt
	.p2align	2
_res_nopt:                              ; @res_nopt
	.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
	add	x22, x2, w1, sxtw #2
	add	x8, x2, w3, sxtw #2
	sub	x8, x8, x22
Lloh0:
	adrp	x9, _RRFIXEDSZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RRFIXEDSZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x9, x9, #1
	cmp	x9, x8, asr #2
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	mov	x21, x4
	mov	x19, x2
	mov	x20, x0
	str	wzr, [x22], #4
Lloh3:
	adrp	x8, _ns_t_opt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ns_t_opt@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_ns_put16
Lloh6:
	adrp	x23, _INT16SZ@GOTPAGE
Lloh7:
	ldr	x23, [x23, _INT16SZ@GOTPAGEOFF]
	ldrsw	x8, [x23]
	add	x22, x22, x8, lsl #2
	mov	w8, #65535
	cmp	w21, w8
	csel	w8, w21, w8, lt
	and	w0, w8, #0xffff
	mov	x1, x22
	bl	_ns_put16
	ldrsw	x8, [x23]
	add	x8, x22, x8, lsl #2
Lloh8:
	adrp	x9, _NOERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NOERROR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x21, x8, #8
	stp	w9, wzr, [x8]
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _RES_USE_DNSSEC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RES_USE_DNSSEC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _NS_OPT_DNSSEC_OK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _NS_OPT_DNSSEC_OK@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, wzr, w10, eq
	mov	x1, x21
	bl	_ns_put16
	ldrsw	x8, [x23]
	add	x20, x21, x8, lsl #2
	mov	w0, #0
	mov	x1, x20
	bl	_ns_put16
	ldr	w8, [x23]
	add	x20, x20, x8, lsl #2
	ldr	w0, [x19]
	bl	_ntohs
	add	x0, x0, #1
	bl	_htons
	str	w0, [x19]
	sub	x8, x20, x19
	lsr	x0, x8, #2
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RRFIXEDSZ,4,2                  ; @RRFIXEDSZ
	.comm	_ns_t_opt,4,2                   ; @ns_t_opt
	.comm	_INT16SZ,4,2                    ; @INT16SZ
	.comm	_NOERROR,8,3                    ; @NOERROR
	.comm	_RES_USE_DNSSEC,4,2             ; @RES_USE_DNSSEC
	.comm	_NS_OPT_DNSSEC_OK,4,2           ; @NS_OPT_DNSSEC_OK
	.comm	_RES_DEBUG,4,2                  ; @RES_DEBUG
.subsections_via_symbols
