	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function substrncpy
_substrncpy:                            ## @substrncpy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	leal	-1(%rax), %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rdx), %ecx
	movb	%cl, (%rdi,%rdx)
	testb	%cl, %cl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	addl	$-1, %r8d
	jb	LBB0_2
LBB0_4:
	xorl	%r8d, %r8d
LBB0_5:
	subl	%r8d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_substrncpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function substrncpy
_substrncpy:                            ; @substrncpy
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_4
; %bb.1:
	sub	w8, w2, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1]
	strb	w9, [x0]
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x1, #1
	add	x0, x0, #1
	sub	w8, w8, #1
	cmn	w8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w8, #0
LBB0_5:
	sub	w0, w2, w8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_substrncpy
.subsections_via_symbols
