	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_string_null_terminate          ## -- Begin function string_null_terminate
	.p2align	4, 0x90
_string_null_terminate:                 ## @string_null_terminate
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	setns	%al
	cmpl	%edx, %esi
	setle	%cl
	testl	%edx, %edx
	setg	%dl
	andb	%al, %cl
	andb	%dl, %cl
	movzbl	%cl, %edi
	callq	_ASSERT
	cmpl	%r15d, %ebx
	jge	LBB0_2
## %bb.1:
	movslq	%ebx, %rax
	addq	%rax, %r14
	jmp	LBB0_4
LBB0_2:
	jne	LBB0_5
## %bb.3:
	movslq	%ebx, %rax
	addq	%rax, %r14
	decq	%r14
LBB0_4:
	movb	$0, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_string_null_terminate          ; -- Begin function string_null_terminate
	.p2align	2
_string_null_terminate:                 ; @string_null_terminate
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #0
	cset	w8, ge
	cmp	w1, w2
	cset	w9, le
	cmp	w2, #0
	cset	w10, gt
	and	w8, w8, w9
	and	w0, w10, w8
	bl	_ASSERT
	cmp	w19, w21
	b.ge	LBB0_2
; %bb.1:
	add	x8, x20, w19, sxtw
	b	LBB0_4
LBB0_2:
	b.ne	LBB0_5
; %bb.3:
	add	x8, x20, w19, sxtw
	sub	x8, x8, #1
LBB0_4:
	strb	wzr, [x8]
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
