	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stpncpy                        ## -- Begin function stpncpy
	.p2align	4, 0x90
_stpncpy:                               ## @stpncpy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movl	$1, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rsi,%rax), %ebx
	movb	%bl, -1(%rdi,%rax)
	testb	%bl, %bl
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	decq	%rcx
	movq	%rdx, %rbx
	addq	%rcx, %rbx
	jne	LBB0_2
## %bb.6:
	subq	%rcx, %rdi
LBB0_7:
	movq	%rdi, %rbx
	jmp	LBB0_8
LBB0_3:
	movq	%rdi, %rbx
	subq	%rcx, %rbx
	subq	%rax, %rdx
	je	LBB0_8
## %bb.4:
	addq	%rax, %rdi
	movq	%rdx, %rsi
	callq	___bzero
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	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	_stpncpy                        ; -- Begin function stpncpy
	.p2align	2
_stpncpy:                               ; @stpncpy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x2, LBB0_7
; %bb.1:
	mov	x8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1, x8]
	strb	w9, [x19, x8]
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.4:
	add	x19, x19, x8
	b	LBB0_7
LBB0_5:
	sub	x9, x2, #1
	add	x19, x19, x8
	cmp	x9, x8
	b.eq	LBB0_7
; %bb.6:
	mvn	x8, x8
	add	x1, x8, x2
	add	x0, x19, #1
	bl	_bzero
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
