	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_string_trim_whitespace_right   ## -- Begin function string_trim_whitespace_right
	.p2align	4, 0x90
_string_trim_whitespace_right:          ## @string_trim_whitespace_right
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	cmpb	$0, (%r14)
	je	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$1, %rbx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-1(%r14,%rbx), %edi
	callq	_isspace
	decq	%rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	addq	%r14, %rbx
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rbx
LBB0_7:
	movzbl	(%rbx), %edi
	callq	_isspace
	cmpq	$1, %rax
	adcq	$0, %rbx
	movb	$0, (%rbx)
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	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_whitespace_right   ; -- Begin function string_trim_whitespace_right
	.p2align	2
_string_trim_whitespace_right:          ; @string_trim_whitespace_right
	.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	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_strlen
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	subs	x20, x0, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x19, x0
	ldurb	w0, [x8, #-1]
	bl	_isspace
	mov	x8, x0
	mov	x0, x20
	cbnz	x8, LBB0_3
; %bb.5:
	add	x20, x19, x20
	b	LBB0_7
LBB0_6:
	mov	x20, x19
LBB0_7:
	mov	x21, x20
	ldrb	w0, [x21], #1
	bl	_isspace
	cmp	x0, #0
	csel	x8, x20, x21, ne
	strb	wzr, [x8]
LBB0_8:
	mov	x0, x19
	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
