	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_trim_trailing_newline   ## -- Begin function strbuf_trim_trailing_newline
	.p2align	4, 0x90
_strbuf_trim_trailing_newline:          ## @strbuf_trim_trailing_newline
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movq	8(%rdi), %rax
	leal	-1(%rcx), %edx
	cmpb	$10, (%rax,%rdx)
	jne	LBB0_6
## %bb.2:
	movl	%edx, (%rdi)
	xorl	%esi, %esi
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.3:
	addl	$-2, %ecx
	cmpb	$13, (%rax,%rcx)
	movl	%edx, %esi
	jne	LBB0_5
## %bb.4:
	movl	%ecx, (%rdi)
	movl	%ecx, %esi
LBB0_5:
	movl	%esi, %ecx
	movb	$0, (%rax,%rcx)
LBB0_6:
	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_trim_trailing_newline   ; -- Begin function strbuf_trim_trailing_newline
	.p2align	2
_strbuf_trim_trailing_newline:          ; @strbuf_trim_trailing_newline
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	subs	w9, w10, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x8, [x0, #8]
	ldrb	w11, [x8, w9, uxtw]
	cmp	w11, #10
	b.ne	LBB0_7
; %bb.2:
	str	w9, [x0]
	subs	w10, w10, #2
	b.lo	LBB0_5
; %bb.3:
	ldrb	w11, [x8, w10, uxtw]
	cmp	w11, #13
	b.ne	LBB0_6
; %bb.4:
	str	w10, [x0]
	mov	x9, x10
	b	LBB0_6
LBB0_5:
	mov	w9, #0
LBB0_6:
	strb	wzr, [x8, w9, uxtw]
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
