	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_string__similarity         ## -- Begin function svn_string__similarity
	.p2align	4, 0x90
_svn_string__similarity:                ## @svn_string__similarity
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r9
	movq	(%rsi), %r10
	movslq	8(%rdi), %rcx
	movslq	8(%rsi), %r12
	leaq	(%r9,%rcx), %r13
	movq	%r12, %rax
	addq	%r10, %rax
	xorl	%r11d, %r11d
	movq	%r10, %r8
	movq	%r9, %r15
	testq	%rcx, %rcx
	jle	LBB0_6
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.2:
	xorl	%r11d, %r11d
	movq	%r9, %r15
	movq	%r10, %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %ebx
	cmpb	(%r8), %bl
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	incq	%r8
	incl	%r11d
	cmpq	%r13, %r15
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %r8
	jb	LBB0_3
LBB0_6:
	cmpq	%r13, %r15
	jae	LBB0_24
## %bb.7:
	cmpq	%rax, %r8
	jae	LBB0_24
## %bb.8:
	addl	%r12d, %r10d
	subl	%r8d, %r10d
	addl	%ecx, %r9d
	subl	%r15d, %r9d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r13,%r14), %ebx
	cmpb	-1(%rax,%r14), %bl
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r14,%r13), %rdi
	decq	%rdi
	leaq	-1(%r14), %rsi
	cmpq	%rdi, %r15
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rax,%r14), %rdi
	decq	%rdi
	movq	%rsi, %r14
	cmpq	%rdi, %r8
	jb	LBB0_9
LBB0_12:
	subl	%esi, %r11d
	jmp	LBB0_24
LBB0_13:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r11, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, %r12d
	addq	%r14, %r12
	movl	%r10d, %ecx
	addq	%r14, %rcx
	addq	%r14, %r13
	addq	%r14, %rax
	cmpl	%ecx, %r12d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	cmovll	%r12d, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmovgeq	%r13, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	cmovlq	%r15, %r13
	cmovlq	%r8, %r15
	leal	8(,%rcx,8), %esi
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_svn_membuf__ensure
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	8(,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_svn_membuf__nzero
	movq	(%rbx), %rsi
	movslq	-64(%rbp), %r8                  ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r15
	jae	LBB0_14
## %bb.15:
	movq	%rax, %r9
	leaq	(%rsi,%r8,4), %rbx
	addq	$4, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	incl	%r12d
	decq	%r12
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	movq	%rdx, %rsi
	cmpq	%r9, %r15
	jae	LBB0_23
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	%rbx, %rdx
	movq	%rsi, %rbx
	testl	%r8d, %r8d
	jle	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	(%rdx,%rsi,4), %eax
	movl	4(%rbx,%rsi,4), %edi
	cmpl	%edi, %eax
	cmovgl	%eax, %edi
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	%edi, 4(%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r12
	je	LBB0_22
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r15), %eax
	cmpb	(%r13,%rsi), %al
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	(%rbx,%rsi,4), %edi
	incl	%edi
	jmp	LBB0_21
LBB0_14:
	movq	%rsi, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r11                 ## 8-byte Reload
LBB0_23:
	addl	(%rdx,%r8,4), %r11d
	subl	%r14d, %r11d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_24:
	addl	%r12d, %ecx
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r11d, (%rax)
LBB0_26:
	movq	_SVN_STRING__SIM_RANGE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %ecx
	je	LBB0_28
## %bb.27:
	imull	%eax, %r11d
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	leal	(%rax,%r11,2), %eax
	cltd
	idivl	%ecx
LBB0_28:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_STRING__SIM_RANGE_MAX,4,2  ## @SVN_STRING__SIM_RANGE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_string__similarity         ; -- Begin function svn_string__similarity
	.p2align	2
_svn_string__similarity:                ; @svn_string__similarity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	ldr	x10, [x0]
	ldr	x12, [x1]
	ldrsw	x11, [x0, #8]
	ldrsw	x14, [x1, #8]
	add	x8, x10, x11
	add	x9, x12, x14
	cmp	w11, #1
	ccmp	w14, #1, #8, ge
	b.ge	LBB0_2
; %bb.1:
	mov	w21, #0
	mov	x15, x12
	mov	x13, x10
	b	LBB0_8
LBB0_2:
	mov	x16, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x10, x16]
	ldrb	w15, [x12, x16]
	cmp	w13, w15
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x10, x16
	add	x13, x13, #1
	add	x21, x16, #1
	cmp	x13, x8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x12, x16
	add	x13, x13, #1
	mov	x16, x21
	cmp	x13, x9
	b.lo	LBB0_3
LBB0_6:
	add	x13, x10, x21
	add	x15, x12, x21
	b	LBB0_8
LBB0_7:
	add	x13, x10, x16
	add	x15, x12, x16
	mov	x21, x16
LBB0_8:
	add	w22, w14, w11
	cmp	x13, x8
	ccmp	x15, x9, #2, lo
	b.hs	LBB0_14
; %bb.9:
	mov	x23, #0
	add	w12, w14, w12
	sub	w12, w12, w15
	add	w10, w11, w10
	sub	w10, w10, w13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x8, x23
	mov	x17, x11
	ldrb	w0, [x17, #-1]!
	add	x14, x9, x23
	mov	x16, x14
	ldrb	w1, [x16, #-1]!
	cmp	w0, w1
	b.ne	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	x23, x23, #1
	cmp	x13, x17
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x15, x16
	b.lo	LBB0_10
LBB0_13:
	sub	w21, w21, w23
LBB0_14:
	cbz	x3, LBB0_16
LBB0_15:
	str	w21, [x3]
LBB0_16:
Lloh0:
	adrp	x8, _SVN_STRING__SIM_RANGE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_STRING__SIM_RANGE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w22, LBB0_18
; %bb.17:
	mul	w8, w21, w0
	lsl	w8, w8, #1
	cmp	w22, #0
	cinc	w9, w22, lt
	add	w8, w8, w9, asr #1
	sdiv	w0, w8, w22
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	add	x27, x23, w10, uxtw
	add	x28, x23, w12, uxtw
	cmp	w27, w28
	csel	w19, w27, w28, lt
	csel	x24, x14, x11, lt
	csel	x25, x13, x15, lt
	csel	x26, x15, x13, lt
	lsl	w8, w19, #3
	add	w1, w8, #8
	mov	x0, x20
	bl	_svn_membuf__ensure
	lsl	w8, w19, #2
	add	w1, w8, #8
	mov	x0, x20
	bl	_svn_membuf__nzero
	ldr	x12, [x20]
	sxtw	x8, w19
	cmp	x26, x24
	b.hs	LBB0_28
; %bb.20:
	add	x9, x12, x8, lsl #2
	add	x9, x9, #4
	cmp	w28, w27
	csel	w10, w28, w27, lt
	add	w10, w10, #1
	mov	w11, #1
	sub	x10, x11, x10
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x26, x26, #1
	mov	x12, x11
	cmp	x26, x24
	b.hs	LBB0_29
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	mov	x11, x9
	mov	x9, x12
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x12, x11, #4
	add	x13, x9, #4
	mov	x14, x10
	mov	x15, x25
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=2
	ldur	w16, [x12, #-4]
	ldr	w17, [x13]
	cmp	w16, w17
	csel	w16, w16, w17, gt
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	str	w16, [x12], #4
	add	x15, x15, #1
	add	x13, x13, #4
	adds	x14, x14, #1
	b.hs	LBB0_21
LBB0_26:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w16, [x26]
	ldrb	w17, [x15]
	cmp	w16, w17
	b.ne	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldur	w16, [x13, #-4]
	add	w16, w16, #1
	b	LBB0_25
LBB0_28:
	mov	x11, x12
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
LBB0_29:
	ldr	w8, [x11, x8, lsl #2]
	add	w8, w21, w8
	sub	w21, w8, w23
	cbnz	x3, LBB0_15
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_STRING__SIM_RANGE_MAX,4,2  ; @SVN_STRING__SIM_RANGE_MAX
.subsections_via_symbols
