	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dname_valid                    ## -- Begin function dname_valid
	.p2align	4, 0x90
_dname_valid:                           ## @dname_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.2:
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r9d, %rdx
	testb	$-64, %dl
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rdx, %rcx
	incq	%rcx
	cmpq	%rsi, %rcx
	ja	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r8, %rcx
	jae	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rdi
	movl	(%rdi,%rdx,4), %r9d
	leaq	(%rdi,%rdx,4), %rdi
	testl	%r9d, %r9d
	jne	LBB0_3
## %bb.7:
	incq	%rcx
	jmp	LBB0_8
LBB0_1:
	movl	$1, %ecx
LBB0_8:
	xorl	%eax, %eax
	cmpq	%rsi, %rcx
	cmovbeq	%rcx, %rax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ## @LDNS_MAX_DOMAINLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dname_valid                    ; -- Begin function dname_valid
	.p2align	2
_dname_valid:                           ; @dname_valid
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	cbz	w10, LBB0_7
; %bb.1:
	mov	x8, #0
Lloh0:
	adrp	x9, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x10, w10
	tst	x10, #0xc0
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, x10
	add	x8, x8, #1
	cmp	x8, x1
	ccmp	x8, x9, #2, ls
	b.hs	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x0, #4
	add	x0, x11, x10, lsl #2
	ldr	w10, [x0]
	cbnz	w10, LBB0_2
; %bb.5:
	add	x8, x8, #1
	b	LBB0_8
LBB0_6:
	mov	x0, #0
	ret
LBB0_7:
	mov	w8, #1
LBB0_8:
	cmp	x8, x1
	csel	x0, xzr, x8, hi
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ; @LDNS_MAX_DOMAINLEN
.subsections_via_symbols
