	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_stringbuf_strip_whitespace ## -- Begin function svn_stringbuf_strip_whitespace
	.p2align	4, 0x90
_svn_stringbuf_strip_whitespace:        ## @svn_stringbuf_strip_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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movsbl	(%rax), %edi
	callq	_svn_ctype_isspace
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	incq	%rdi
	movl	8(%rbx), %esi
	decl	%esi
	callq	_string_first_non_whitespace
	incq	%rax
	addq	%rax, (%rbx)
	movl	8(%rbx), %ecx
	subl	%eax, %ecx
	movl	%ecx, 8(%rbx)
	subl	%eax, 12(%rbx)
	testl	%ecx, %ecx
	jg	LBB0_4
	jmp	LBB0_7
LBB0_1:
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	decl	%ecx
	movsbl	(%rax,%rcx), %edi
	callq	_svn_ctype_isspace
	movl	8(%rbx), %edx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%rdx), %ecx
	movl	%ecx, 8(%rbx)
	cmpl	$1, %edx
	jg	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movl	%edx, %ecx
LBB0_7:
	movq	(%rbx), %rax
	movslq	%ecx, %rcx
	movb	$0, (%rax,%rcx)
	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	_svn_stringbuf_strip_whitespace ; -- Begin function svn_stringbuf_strip_whitespace
	.p2align	2
_svn_stringbuf_strip_whitespace:        ; @svn_stringbuf_strip_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
	mov	x19, x0
	ldr	x8, [x0]
	ldrsb	w0, [x8]
	bl	_svn_ctype_isspace
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x0, x8, #1
	ldr	w8, [x19, #8]
	sub	w1, w8, #1
	bl	_string_first_non_whitespace
	add	x8, x0, #1
	ldr	x9, [x19]
	add	x9, x9, x8
	str	x9, [x19]
	ldr	d0, [x19, #8]
	dup.2s	v1, w8
	sub.2s	v0, v0, v1
	str	d0, [x19, #8]
	fmov	w8, s0
	cmp	w8, #1
	b.ge	LBB0_3
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	sub	w8, w8, #1
	ldrsb	w0, [x9, w8, uxtw]
	bl	_svn_ctype_isspace
	ldr	w8, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w8, w8, #1
	str	w8, [x19, #8]
	b.gt	LBB0_3
LBB0_5:
	ldr	x9, [x19]
	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
