	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strnrcpy
_strnrcpy:                              ## @strnrcpy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	testq	%r14, %r14
	je	LBB0_17
## %bb.1:
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	movslq	%eax, %r10
	decl	%eax
	leaq	-1(%r14), %rdx
	cmpq	%rax, %rdx
	cmovaeq	%rax, %rdx
	incq	%rdx
	testl	%eax, %eax
	movl	$1, %r11d
	cmoveq	%r11, %rdx
	cmpq	$32, %rdx
	jb	LBB0_13
## %bb.3:
	leaq	(%r15,%r10), %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_13
## %bb.4:
	movabsq	$8589934560, %r8                ## imm = 0x1FFFFFFE0
	andq	%rdx, %r8
	leaq	-32(%r8), %rcx
	movq	%rcx, %r9
	shrq	$5, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r9, %rdi
	andq	$-2, %rdi
	leaq	(%r10,%r15), %rcx
	addq	$-16, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rsi), %xmm0
	movups	(%rcx,%rsi), %xmm1
	movups	%xmm1, -16(%rbx,%rsi)
	movups	%xmm0, -32(%rbx,%rsi)
	movups	-48(%rcx,%rsi), %xmm0
	movups	-32(%rcx,%rsi), %xmm1
	movups	%xmm1, -48(%rbx,%rsi)
	movups	%xmm0, -64(%rbx,%rsi)
	addq	$-64, %rsi
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	negq	%rsi
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movq	%rbx, %rcx
	subq	%rsi, %rcx
	notq	%rsi
	addq	%r10, %rsi
	movups	-31(%r15,%rsi), %xmm0
	movups	-15(%r15,%rsi), %xmm1
	movups	%xmm1, -16(%rcx)
	movups	%xmm0, -32(%rcx)
LBB0_11:
	subq	%r8, %rbx
	cmpq	%r8, %rdx
	je	LBB0_17
## %bb.12:
	subq	%r8, %r10
	subq	%r8, %r14
LBB0_13:
	movl	$1, %edx
	subl	%r10d, %edx
	leaq	(%r10,%r15), %rcx
	decq	%rcx
	subq	%r14, %r11
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rsi), %eax
	movb	%al, -1(%rbx,%rsi)
	leaq	-1(%rsi), %rdi
	cmpl	%esi, %edx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%rsi, %r11
	movq	%rdi, %rsi
	jne	LBB0_14
LBB0_16:
	addq	%rdi, %rbx
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%esi, %esi
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_strnrcpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strnrcpy
_strnrcpy:                              ; @strnrcpy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x19, LBB0_8
; %bb.1:
	cbz	w0, LBB0_8
; %bb.2:
	sxtw	x11, w0
	sub	w8, w0, #1
	sub	x9, x19, #1
	cmp	x9, x8
	csel	x9, x9, x8, lo
	cmp	w8, #0
	mov	w8, #1
	csinc	x9, x8, x9, eq
	cmp	x9, #8
	b.lo	LBB0_4
; %bb.3:
	add	x8, x20, x11
	sub	x8, x8, x21
	cmp	x8, #8
	b.hs	LBB0_10
LBB0_4:
	mov	x8, x11
	mov	x0, x21
LBB0_5:
	sub	x9, x20, #1
	sub	x11, x19, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x11
	ldrb	w11, [x9, x8]
	strb	w11, [x0, #-1]!
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x8, #1
	sub	x11, x10, #1
	cbnz	x10, LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x0, x21
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	and	x10, x9, #0x1fffffff8
	sub	x8, x11, x10
	sub	x19, x19, x10
	sub	x0, x21, x10
	sub	x12, x21, #4
	add	x11, x11, x20
	sub	x11, x11, #4
	mov	x13, x10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	w15, w14, [x11, #-4]
	stp	w15, w14, [x12, #-4]
	sub	x12, x12, #8
	sub	x11, x11, #8
	sub	x13, x13, #8
	cbnz	x13, LBB0_11
; %bb.12:
	cmp	x9, x10
	b.ne	LBB0_5
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_strnrcpy
.subsections_via_symbols
