	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_safe_strcpy               ## -- Begin function vcos_safe_strcpy
	.p2align	4, 0x90
_vcos_safe_strcpy:                      ## @vcos_safe_strcpy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	cmpq	%rdx, %rcx
	jae	LBB0_8
## %bb.1:
	leaq	(%rdi,%r14), %rax
	movb	(%rsi), %cl
	testb	%cl, %cl
	je	LBB0_7
## %bb.2:
	addq	%rdx, %rdi
	decq	%rdi
	cmpq	%rdi, %rax
	je	LBB0_7
## %bb.3:
	subq	%r14, %rdx
	addq	$-2, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movb	%cl, (%rax,%rdi)
	movzbl	1(%rsi,%rdi), %ecx
	leaq	1(%rdi), %rbx
	testb	%cl, %cl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdi, %rdx
	movq	%rbx, %rdi
	jne	LBB0_4
LBB0_6:
	addq	%rbx, %rax
LBB0_7:
	movb	$0, (%rax)
LBB0_8:
	movq	%rsi, %rdi
	callq	_strlen
	addq	%r14, %rax
	popq	%rbx
	popq	%r14
	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	_vcos_safe_strcpy               ; -- Begin function vcos_safe_strcpy
	.p2align	2
_vcos_safe_strcpy:                      ; @vcos_safe_strcpy
	.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, x3
	cmp	x3, x2
	b.hs	LBB0_5
; %bb.1:
	add	x8, x0, x2
	sub	x10, x8, #1
	add	x8, x0, x19
	ldrb	w9, [x1]
	cmp	w9, #0
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.2:
	sub	x10, x2, x19
	sub	x10, x10, #2
	add	x11, x1, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	strb	w9, [x8], #1
	ldrb	w9, [x11], #1
	cmp	w9, #0
	ccmp	x10, #0, #4, ne
	sub	x10, x10, #1
	b.ne	LBB0_3
LBB0_4:
	strb	wzr, [x8]
LBB0_5:
	mov	x0, x1
	bl	_strlen
	add	x0, 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
