	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcpncpy                        ## -- Begin function wcpncpy
	.p2align	4, 0x90
_wcpncpy:                               ## @wcpncpy
	.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
	movq	%rdi, %rax
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.1:
	xorl	%ecx, %ecx
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx), %ebx
	movl	%ebx, (%rax,%rcx)
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rdi
	addq	$4, %rcx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.4:
	addq	%rcx, %rax
	jmp	LBB0_9
LBB0_5:
	leaq	(%rax,%rcx), %rbx
	cmpq	$1, %rdi
	je	LBB0_8
## %bb.7:
	leaq	(%rax,%rcx), %rdi
	addq	$4, %rdi
	shlq	$2, %rdx
	subq	%rcx, %rdx
	addq	$-4, %rdx
	movq	%rdx, %rsi
	callq	___bzero
LBB0_8:
	movq	%rbx, %rax
LBB0_9:
	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	_wcpncpy                        ; -- Begin function wcpncpy
	.p2align	2
_wcpncpy:                               ; @wcpncpy
	.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
	mov	x9, x2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1, x8]
	str	w10, [x19, x8]
	cbz	w10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #4
	sub	x9, x9, #1
	cbnz	x9, LBB0_2
; %bb.4:
	add	x19, x19, x8
	b	LBB0_7
LBB0_5:
	add	x19, x19, x8
	cmp	x9, #1
	b.eq	LBB0_7
; %bb.6:
	add	x0, x19, #4
	lsl	x9, x2, #2
	sub	x8, x9, x8
	sub	x1, x8, #4
	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
