	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_utf__last_valid            ## -- Begin function svn_utf__last_valid
	.p2align	4, 0x90
_svn_utf__last_valid:                   ## @svn_utf__last_valid
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_first_non_fsm_start_char
	movslq	%ebx, %r8
	addq	%r14, %r8
	cmpq	%r8, %rax
	jae	LBB0_1
## %bb.2:
	movq	_FSM_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_octet_category@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_machine@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	%r8d, %ecx
	subl	%eax, %ecx
	leaq	1(%rax), %r10
	testb	$1, %cl
	jne	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	movl	%edx, %esi
                                        ## implicit-def: $rcx
	cmpq	%r10, %r8
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_4:
	movslq	%edx, %rcx
	movzbl	(%rax), %esi
	movslq	(%r9,%rsi,4), %rsi
	movq	(%rbx,%rcx,8), %rdi
	movl	(%rdi,%rsi,4), %esi
	cmpl	%ecx, %esi
	movq	%rax, %rdi
	cmoveq	%r10, %rdi
	movq	%r10, %rax
	movq	%rdi, %rcx
	cmpq	%r10, %r8
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	movslq	(%r9,%rcx,4), %rcx
	movslq	%esi, %rsi
	movq	(%rbx,%rsi,8), %rsi
	movslq	(%rsi,%rcx,4), %rsi
	leaq	1(%rax), %rcx
	cmpl	%edx, %esi
	cmovneq	%rdi, %rcx
	movzbl	1(%rax), %edi
	movslq	(%r9,%rdi,4), %rdi
	movq	(%rbx,%rsi,8), %rsi
	movl	(%rsi,%rdi,4), %esi
	addq	$2, %rax
	cmpl	%edx, %esi
	cmoveq	%rax, %rcx
	movq	%rcx, %rdi
	cmpq	%r8, %rax
	jb	LBB0_6
LBB0_7:
	movq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSM_START,4,2                  ## @FSM_START
	.comm	_octet_category,8,3             ## @octet_category
	.comm	_machine,8,3                    ## @machine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_utf__last_valid            ; -- Begin function svn_utf__last_valid
	.p2align	2
_svn_utf__last_valid:                   ; @svn_utf__last_valid
	.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, x1
	mov	x20, x0
	bl	_first_non_fsm_start_char
	sxtw	x8, w19
	add	x11, x20, x8
	cmp	x0, x11
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _FSM_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSM_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _octet_category@GOTPAGE
Lloh4:
	ldr	x9, [x9, _octet_category@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _machine@GOTPAGE
Lloh7:
	ldr	x10, [x10, _machine@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	sub	x11, x11, x0
	add	x12, x0, #1
	mov	x13, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w14, [x12, #-1]
	ldrsw	x14, [x9, x14, lsl #2]
	ldr	x13, [x10, w13, sxtw #3]
	ldr	w13, [x13, x14, lsl #2]
	cmp	w13, w8
	csel	x0, x12, x0, eq
	add	x12, x12, #1
	subs	x11, x11, #1
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FSM_START,4,2                  ; @FSM_START
	.comm	_octet_category,8,3             ; @octet_category
	.comm	_machine,8,3                    ; @machine
.subsections_via_symbols
