	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_substring_null
_copy_substring_null:                   ## @copy_substring_null
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_E_FAIL@GOTPCREL(%rip), %rcx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	_S_OK@GOTPCREL(%rip), %r8
	testl	%esi, %esi
	jle	LBB0_9
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:
	movb	(%rdx), %cl
	testb	%cl, %cl
	je	LBB0_8
## %bb.4:
	cmpl	$2, %esi
	jb	LBB0_8
## %bb.5:
	incq	%rdx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movb	%cl, (%rdi)
	incq	%rdi
	movzbl	(%rdx), %ecx
	testb	%cl, %cl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	-1(%rsi), %eax
	incq	%rdx
	cmpl	$2, %esi
	movl	%eax, %esi
	ja	LBB0_6
LBB0_8:
	movb	$0, (%rdi)
LBB0_9:
	movq	%r8, %rcx
LBB0_10:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_copy_substring_null
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_substring_null
_copy_substring_null:                   ; @copy_substring_null
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_9
; %bb.1:
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.2:
	cbz	x0, LBB0_9
; %bb.3:
	ldrb	w8, [x2]
	cbz	w8, LBB0_7
; %bb.4:
	cmp	w1, #2
	b.lo	LBB0_7
; %bb.5:
	add	x9, x2, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	strb	w8, [x0], #1
	ldrb	w8, [x9], #1
	cmp	w8, #0
	ccmp	w1, #2, #0, ne
	sub	w1, w1, #1
	b.hi	LBB0_6
LBB0_7:
	strb	wzr, [x0]
LBB0_8:
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_9:
Lloh3:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_copy_substring_null
.subsections_via_symbols
