	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function latin1_to_utf8
_latin1_to_utf8:                        ## @latin1_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	movq	%rdx, %rdi
	callq	_apr_palloc
	movq	%rax, %r12
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movzbl	(%rcx,%rax,8), %ecx
	movb	%cl, (%r12,%rax)
	incq	%rax
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rax
	jb	LBB0_3
## %bb.4:
	addl	%esi, %esi
	jmp	LBB0_5
LBB0_1:
	xorl	%esi, %esi
LBB0_5:
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_svn_membuf__create
	movl	(%rbx), %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_svn_utf__encode_ucs4_string
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_apr_palloc
	movq	-56(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movl	-48(%rbp), %ecx
	movl	%ecx, (%rax)
	movq	%rax, (%r14)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_latin1_to_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function latin1_to_utf8
_latin1_to_utf8:                        ; @latin1_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w1, [x1]
	mov	x0, x2
	bl	_apr_palloc
	mov	x22, x0
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x9, [x9, x8, lsl #3]
	strb	w9, [x22, x8]
	add	x8, x8, #1
	ldrsw	x9, [x21]
	cmp	x8, x9
	b.lo	LBB0_2
; %bb.3:
	lsl	w1, w9, #1
	b	LBB0_5
LBB0_4:
	mov	w1, #0
LBB0_5:
	add	x0, sp, #8
	mov	x2, x20
	bl	_svn_membuf__create
	ldr	w2, [x21]
	add	x0, sp, #8
	mov	x3, sp
	mov	x1, x22
	bl	_svn_utf__encode_ucs4_string
	bl	_SVN_ERR
	mov	x0, x20
	mov	w1, #16
	bl	_apr_palloc
	ldr	x8, [sp, #8]
	str	x8, [x0, #8]
	ldr	x8, [sp]
	str	w8, [x0]
	str	x0, [x19]
Lloh0:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	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_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_latin1_to_utf8
.subsections_via_symbols
