	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function estimate_similarity
_estimate_similarity:                   ## @estimate_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	12(%rsi), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	12(%r14), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$0, 8(%r13)
	je	LBB0_8
LBB0_3:
	cmpl	$0, 8(%r14)
	je	LBB0_14
LBB0_4:
	movq	(%r13), %rax
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	movq	%rcx, %rsi
	cmovaq	%rax, %rsi
	cmovbq	%rax, %rcx
	movq	%rsi, %rax
	subq	%rcx, %rax
	movq	_MAX_SCORE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r12d, %rdx
	imulq	%rcx, %rax
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	cmpq	%rax, %rcx
	jb	LBB0_6
## %bb.10:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_16
LBB0_11:
	leaq	8(%r14), %r12
	cmpl	$0, (%r12)
	je	LBB0_17
LBB0_12:
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-64(%rbp), %r9
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %r8
	callq	_diffcore_count_changes
	testq	%rax, %rax
	jne	LBB0_6
## %bb.18:
	cmpq	$0, (%r14)
	movl	$0, %ebx
	je	LBB0_22
## %bb.19:
	movq	_MAX_SCORE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_21
## %bb.20:
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_22
LBB0_8:
	movq	_CHECK_SIZE_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_diff_populate_filespec
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_3
LBB0_14:
	movq	_CHECK_SIZE_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_diff_populate_filespec
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%rcx, %r12
	callq	_diff_populate_filespec
	movq	%r12, %rcx
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_11
LBB0_17:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_diff_populate_filespec
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_12
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECK_SIZE_ONLY,4,2            ## @CHECK_SIZE_ONLY
	.comm	_MAX_SCORE,4,2                  ## @MAX_SCORE
	.no_dead_strip	_estimate_similarity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function estimate_similarity
_estimate_similarity:                   ; @estimate_similarity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #12]
	bl	_S_ISREG
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_S_ISREG
	cbz	w0, LBB0_13
; %bb.2:
	mov	x22, x20
	ldr	w8, [x22, #8]!
	cbz	w8, LBB0_10
LBB0_3:
	mov	x23, x19
	ldr	w8, [x23, #8]!
	cbz	w8, LBB0_11
LBB0_4:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	csel	x25, x8, x9, hi
	csel	x8, x8, x9, lo
Lloh0:
	adrp	x26, _MAX_SCORE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MAX_SCORE@GOTPAGEOFF]
	sub	x8, x25, x8
	ldrsw	x9, [x26]
	sub	x10, x9, w24, sxtw
	mul	x10, x25, x10
	mul	x8, x8, x9
	cmp	x10, x8
	b.lo	LBB0_12
; %bb.5:
	ldr	w8, [x22]
	cbz	w8, LBB0_14
LBB0_6:
	ldr	w8, [x23]
	cbz	w8, LBB0_15
LBB0_7:
	add	x5, sp, #8
	mov	x6, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	bl	_diffcore_count_changes
	cbnz	x0, LBB0_12
; %bb.8:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	x8, [sp, #8]
	ldrsw	x9, [x26]
	mul	x8, x8, x9
	udiv	x0, x8, x25
	b	LBB0_13
LBB0_10:
Lloh2:
	adrp	x8, _CHECK_SIZE_ONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHECK_SIZE_ONLY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_diff_populate_filespec
	cbnz	x0, LBB0_12
	b	LBB0_3
LBB0_11:
Lloh5:
	adrp	x8, _CHECK_SIZE_ONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHECK_SIZE_ONLY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_diff_populate_filespec
	cbz	x0, LBB0_4
LBB0_12:
	mov	w0, #0
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_diff_populate_filespec
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_13
	b	LBB0_6
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_diff_populate_filespec
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_13
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECK_SIZE_ONLY,4,2            ; @CHECK_SIZE_ONLY
	.comm	_MAX_SCORE,4,2                  ; @MAX_SCORE
	.no_dead_strip	_estimate_similarity
.subsections_via_symbols
