	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safecat
_safecat:                               ## @safecat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	cmpq	%rsi, %rdx
	setb	%sil
	jae	LBB0_10
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.2:
	movb	(%rcx), %r8b
	testb	%r8b, %r8b
	je	LBB0_3
## %bb.4:
	incq	%rdx
	incq	%rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	movb	%r8b, -1(%rdi,%rdx)
	cmpq	%rdx, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%rcx), %r8d
	leaq	1(%rsi), %rdx
	incq	%rcx
	testb	%r8b, %r8b
	jne	LBB0_6
## %bb.8:
	decq	%rdx
	jmp	LBB0_9
LBB0_3:
	movb	$1, %sil
	jmp	LBB0_10
LBB0_7:
	movq	%rax, %rdx
LBB0_9:
	cmpq	%rax, %rsi
	setb	%sil
LBB0_10:
	decq	%rax
	testb	%sil, %sil
	cmovneq	%rdx, %rax
	movb	$0, (%rdi,%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_safecat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safecat
_safecat:                               ; @safecat
	.cfi_startproc
; %bb.0:
	cmp	x2, x1
	cset	w8, lo
	b.hs	LBB0_9
; %bb.1:
	cbz	x3, LBB0_9
; %bb.2:
	ldrb	w10, [x3]
	cbz	w10, LBB0_6
; %bb.3:
	sub	x8, x1, #1
	add	x9, x3, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x2
	strb	w10, [x0, x2]
	cmp	x8, x2
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w10, [x9], #1
	add	x2, x11, #1
	cbnz	w10, LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w8, #1
	b	LBB0_9
LBB0_7:
	mov	x2, x1
LBB0_8:
	add	x8, x11, #1
	cmp	x8, x1
	cset	w8, lo
LBB0_9:
	sub	x9, x1, #1
	cmp	w8, #0
	csel	x8, x2, x9, ne
	strb	wzr, [x0, x8]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_safecat
.subsections_via_symbols
