	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_stringbuf_ensure           ## -- Begin function svn_stringbuf_ensure
	.p2align	4, 0x90
_svn_stringbuf_ensure:                  ## @svn_stringbuf_ensure
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	leal	1(%rsi), %edx
	leaq	20(%rdi), %rsi
	movl	16(%rdi), %ecx
	leaq	-16(%rbp), %rdi
	callq	_membuf_ensure
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rsi
	cmpq	%rsi, %rdi
	je	LBB0_5
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdx
	incq	%rdx
	callq	_memcpy
	movq	-16(%rbp), %rdi
LBB0_4:
	movq	%rdi, (%rbx)
LBB0_5:
	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_ensure           ; -- Begin function svn_stringbuf_ensure
	.p2align	2
_svn_stringbuf_ensure:                  ; @svn_stringbuf_ensure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	add	w2, w1, #1
	add	x1, x0, #20
	ldr	w3, [x0, #16]
	add	x0, sp, #8
	bl	_membuf_ensure
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x1, [x19]
	cmp	x0, x1
	b.eq	LBB0_5
; %bb.2:
	cbz	x1, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	add	x2, x8, #1
	bl	_memcpy
	ldr	x0, [sp, #8]
LBB0_4:
	str	x0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
