	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb_truncate
_sb_truncate:                           ## @sb_truncate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movslq	8(%rdi), %rcx
	movb	$0, -1(%rcx,%rax)
	movl	8(%rdi), %ecx
	leal	-2(%rcx), %eax
	movl	%eax, 12(%rdi)
	cmpl	$2, %ecx
	jl	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rcx
	movl	%eax, %edx
	cmpb	$10, (%rcx,%rdx)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%eax
	movl	%eax, 12(%rdi)
	movb	$0, (%rcx,%rdx)
	movl	12(%rdi), %eax
	testl	%eax, %eax
	jns	LBB0_1
LBB0_3:
	incl	%eax
	movl	%eax, 12(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sb_truncate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb_truncate
_sb_truncate:                           ; @sb_truncate
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldrsw	x9, [x0, #8]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	w8, [x0, #8]
	subs	w8, w8, #2
	str	w8, [x0, #12]
	b.lt	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0]
	mov	w10, w8
	ldrb	w11, [x9, x10]
	cmp	w11, #10
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w8, #1
	str	w8, [x0, #12]
	strb	wzr, [x9, x10]
	ldr	w8, [x0, #12]
	tbz	w8, #31, LBB0_1
LBB0_3:
	add	w8, w8, #1
	str	w8, [x0, #12]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sb_truncate
.subsections_via_symbols
