	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_rtrim                   ## -- Begin function strbuf_rtrim
	.p2align	4, 0x90
_strbuf_rtrim:                          ## @strbuf_rtrim
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	decl	%eax
	movzbl	(%rcx,%rax), %edi
	callq	_isspace
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%rcx), %eax
	movl	%eax, (%rbx)
	cmpl	$1, %ecx
	jg	LBB0_1
	jmp	LBB0_4
LBB0_2:
	movl	%ecx, %eax
LBB0_4:
	movq	8(%rbx), %rcx
	cltq
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	popq	%rbx
	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	_strbuf_rtrim                   ; -- Begin function strbuf_rtrim
	.p2align	2
_strbuf_rtrim:                          ; @strbuf_rtrim
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	sub	w8, w8, #1
	ldrb	w0, [x9, w8, uxtw]
	bl	_isspace
	ldr	w8, [x19]
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w8, w8, #1
	str	w8, [x19]
	b.gt	LBB0_1
LBB0_3:
	ldr	x9, [x19, #8]
	strb	wzr, [x9, w8, sxtw]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
