	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safe_concat
_safe_concat:                           ## @safe_concat
	.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
	movq	_BUF_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rdi,%rcx), %rsi
	addq	$-2, %rsi
	cmpq	%rax, %rsi
	jae	LBB0_2
## %bb.1:
	movq	%rsi, %rax
	jmp	LBB0_5
LBB0_2:
	jbe	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx), %ecx
	testb	%cl, %cl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movb	%cl, (%rax)
	incq	%rax
	cmpq	%rsi, %rax
	jb	LBB0_3
LBB0_5:
	movb	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_LEN,4,2                    ## @BUF_LEN
	.no_dead_strip	_safe_concat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safe_concat
_safe_concat:                           ; @safe_concat
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _BUF_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUF_LEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x10, x0, x9
	sub	x0, x10, #2
	cmp	x0, x1
	b.hs	LBB0_2
LBB0_1:
	strb	wzr, [x0]
	ret
LBB0_2:
	b.ls	LBB0_6
; %bb.3:
	add	x8, x8, x9
	sub	x0, x8, #2
	sub	x8, x0, x1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x2]
	cbz	w9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, x2, #1
	strb	w9, [x1], #1
	subs	x8, x8, #1
	b.ne	LBB0_4
	b	LBB0_1
LBB0_6:
	mov	x0, x1
	strb	wzr, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_LEN,4,2                    ; @BUF_LEN
	.no_dead_strip	_safe_concat
.subsections_via_symbols
