	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_valid_domain                   ## -- Begin function valid_domain
	.p2align	4, 0x90
_valid_domain:                          ## @valid_domain
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movsbl	(%r13), %edi
	callq	_isalpha
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movsbl	(%r13), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	cmpq	%r14, %r12
	je	LBB0_19
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r15d
	movsbl	(%r13,%r14), %edi
	callq	_tolower
	movl	%eax, %ebx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movb	%bl, (%r13,%r14)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$46, %r15b
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$46, %bl
	je	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	-47(%rbx), %eax
	cmpb	$-3, %al
	ja	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movsbl	%bl, %edi
	callq	_isalnum
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$95, %bl
	je	LBB0_18
## %bb.17:
	leaq	_valid_domain.errbuf(%rip), %rdi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_13
LBB0_1:
	leaq	_valid_domain.errbuf(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_strlcpy
	jmp	LBB0_5
LBB0_12:
	leaq	_valid_domain.errbuf(%rip), %rdi
	leaq	L_.str.2(%rip), %rdx
LBB0_13:
	movl	$256, %esi                      ## imm = 0x100
	movq	%r13, %rcx
	callq	_snprintf
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_19:
	cmpb	$46, -1(%r12,%r13)
	jne	LBB0_21
## %bb.20:
	movb	$0, -1(%r13,%r12)
LBB0_21:
	movl	$1, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.22:
	xorl	%ecx, %ecx
	jmp	LBB0_23
LBB0_4:
	leaq	_valid_domain.errbuf(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	$256, %esi                      ## imm = 0x100
	movq	%r13, %rcx
	callq	_snprintf
LBB0_5:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.6:
	leaq	_valid_domain.errbuf(%rip), %rcx
LBB0_23:
	movq	%rcx, (%rbx)
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_valid_domain.errbuf,256,4 ## @valid_domain.errbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"empty domain name"

L_.str.1:                               ## @.str.1
	.asciz	"domain name \"%.100s\" starts with invalid character"

L_.str.2:                               ## @.str.2
	.asciz	"domain name \"%.100s\" contains consecutive separators"

L_.str.3:                               ## @.str.3
	.asciz	"domain name \"%.100s\" contains invalid characters"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_valid_domain                   ; -- Begin function valid_domain
	.p2align	2
_valid_domain:                          ; @valid_domain
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_strlen
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, x0
	ldrsb	w0, [x20]
	bl	_isalpha
	cbnz	w0, LBB0_3
; %bb.2:
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	w0, LBB0_19
LBB0_3:
	mov	w23, #0
	mov	x24, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x22, x24
	b.eq	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x23
	ldrsb	w0, [x20, x24]
	bl	_tolower
	mov	x23, x0
	cbz	w21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w23, [x20, x24]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w25, #0xff
	cmp	w8, #46
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #46
	b.eq	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w23, #47
	and	w8, w8, #0xff
	cmp	w8, #253
	b.hi	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_isalnum
	cbnz	w0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #95
	b.eq	LBB0_4
; %bb.12:
Lloh0:
	adrp	x0, _valid_domain.errbuf@PAGE
Lloh1:
	add	x0, x0, _valid_domain.errbuf@PAGEOFF
Lloh2:
	adrp	x2, l_.str.3@PAGE
Lloh3:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_13:
Lloh4:
	adrp	x0, _valid_domain.errbuf@PAGE
Lloh5:
	add	x0, x0, _valid_domain.errbuf@PAGEOFF
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #256
	bl	_strlcpy
	mov	w0, #0
	cbnz	x19, LBB0_21
	b	LBB0_23
LBB0_14:
Lloh8:
	adrp	x0, _valid_domain.errbuf@PAGE
Lloh9:
	add	x0, x0, _valid_domain.errbuf@PAGEOFF
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_15:
	sub	x8, x22, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #46
	b.ne	LBB0_17
; %bb.16:
	strb	wzr, [x20, x8]
LBB0_17:
	mov	w0, #1
	cbz	x19, LBB0_23
; %bb.18:
	mov	x8, #0
	b	LBB0_22
LBB0_19:
Lloh12:
	adrp	x0, _valid_domain.errbuf@PAGE
Lloh13:
	add	x0, x0, _valid_domain.errbuf@PAGEOFF
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_20:
	mov	w1, #256
	mov	x3, x20
	bl	_snprintf
	mov	w0, #0
	cbz	x19, LBB0_23
LBB0_21:
Lloh16:
	adrp	x8, _valid_domain.errbuf@PAGE
Lloh17:
	add	x8, x8, _valid_domain.errbuf@PAGEOFF
LBB0_22:
	str	x8, [x19]
LBB0_23:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_valid_domain.errbuf,256,0 ; @valid_domain.errbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"empty domain name"

l_.str.1:                               ; @.str.1
	.asciz	"domain name \"%.100s\" starts with invalid character"

l_.str.2:                               ; @.str.2
	.asciz	"domain name \"%.100s\" contains consecutive separators"

l_.str.3:                               ; @.str.3
	.asciz	"domain name \"%.100s\" contains invalid characters"

.subsections_via_symbols
