	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ascii_safe_strlcpy             ## -- Begin function ascii_safe_strlcpy
	.p2align	4, 0x90
_ascii_safe_strlcpy:                    ## @ascii_safe_strlcpy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	decq	%rdx
	je	LBB0_10
## %bb.2:
	xorl	%eax, %eax
	movabsq	$56895670793, %r8               ## imm = 0xD3F3F0A09
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r9d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	%r9b, (%rdi,%rax)
	incq	%rax
	cmpq	%rax, %rdx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$31, %cl
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addb	$-9, %cl
	movb	$63, %r9b
	cmpb	$4, %cl
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%cl, %ecx
	shll	$3, %ecx
	movq	%r8, %r9
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %r9
	jmp	LBB0_8
LBB0_9:
	addq	%rax, %rdi
LBB0_10:
	movb	$0, (%rdi)
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ascii_safe_strlcpy             ; -- Begin function ascii_safe_strlcpy
	.p2align	2
_ascii_safe_strlcpy:                    ; @ascii_safe_strlcpy
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_6
; %bb.1:
	subs	x8, x2, #1
	b.eq	LBB0_5
; %bb.2:
	mov	w9, #63
	mov	x10, #2569
	movk	x10, #16191, lsl #16
	movk	x10, #13, lsl #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w11, [x1], #1
	cbz	w11, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w12, w11, #9
	and	x13, x12, #0xff
	lsl	x13, x13, #3
	lsr	x13, x10, x13
	cmp	w12, #4
	csel	w12, w9, w13, hi
	cmp	w11, #31
	csel	w11, w11, w12, gt
	strb	w11, [x0], #1
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_5:
	strb	wzr, [x0]
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
