	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_utf_stringbuf_to_utf8      ## -- Begin function svn_utf_stringbuf_to_utf8
	.p2align	4, 0x90
_svn_utf_stringbuf_to_utf8:             ## @svn_utf_stringbuf_to_utf8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	movq	%rdx, %rsi
	callq	_get_ntou_xlate_handle_node
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-40(%rbp), %rdi
	cmpq	$0, (%rdi)
	movl	(%r12), %edx
	movl	4(%r12), %esi
	je	LBB0_3
## %bb.1:
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_convert_to_stringbuf
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	%r15, %rdx
	callq	_check_utf8
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_3:
	movl	%esi, %edi
	movl	%edx, %esi
	movq	%r15, %rdx
	callq	_check_non_ascii
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_svn_stringbuf_dup
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movq	-40(%rbp), %rdi
	movq	_SVN_UTF_NTOU_XLATE_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_put_xlate_handle_node
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_svn_error_compose_create
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_UTF_NTOU_XLATE_HANDLE,4,2  ## @SVN_UTF_NTOU_XLATE_HANDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_utf_stringbuf_to_utf8      ; -- Begin function svn_utf_stringbuf_to_utf8
	.p2align	2
_svn_utf_stringbuf_to_utf8:             ; @svn_utf_stringbuf_to_utf8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x2
	bl	_get_ntou_xlate_handle_node
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldp	w2, w1, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x3, x20
	mov	x4, x19
	bl	_convert_to_stringbuf
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldp	w1, w0, [x8]
	mov	x2, x19
	bl	_check_utf8
	mov	x22, x0
	b	LBB0_5
LBB0_3:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_check_non_ascii
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	bl	_svn_stringbuf_dup
	str	x0, [x20]
LBB0_5:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _SVN_UTF_NTOU_XLATE_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_UTF_NTOU_XLATE_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_put_xlate_handle_node
	mov	x1, x0
	mov	x0, x22
	bl	_svn_error_compose_create
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_UTF_NTOU_XLATE_HANDLE,4,2  ; @SVN_UTF_NTOU_XLATE_HANDLE
.subsections_via_symbols
