	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_string_trim_trailing_whitespace ## -- Begin function string_trim_trailing_whitespace
	.p2align	4, 0x90
_string_trim_trailing_whitespace:       ## @string_trim_trailing_whitespace
	.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
	cmpb	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	callq	_strlen
	cltq
	leaq	(%rbx,%rax), %rcx
	decq	%rcx
	cmpq	%rbx, %rcx
	je	LBB0_6
## %bb.2:
	decq	%rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%rbx,%rax)
	decq	%rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	cmpb	$32, %cl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$9, %cl
	je	LBB0_5
LBB0_6:
	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	_string_trim_trailing_whitespace ; -- Begin function string_trim_trailing_whitespace
	.p2align	2
_string_trim_trailing_whitespace:       ; @string_trim_trailing_whitespace
	.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
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x9, x19, x8
	sub	x9, x9, #1
	cmp	x9, x19
	b.eq	LBB0_5
; %bb.2:
	sub	x8, x8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x8]
	cmp	w9, #32
	ccmp	w9, #9, #4, ne
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x19, x8]
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_5:
	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
