	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function similarity
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3e112e0be826d695              ## double 1.0000000000000001E-9
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_similarity
	.p2align	4, 0x90
_similarity:                            ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	movq	$0, (%rcx)
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_word_weight
	addsd	%xmm0, %xmm0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addsd	(%rax), %xmm0
	movsd	%xmm0, (%rax)
	incl	%r14d
	incl	%r13d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%r13d, %r13d
	movslq	%r14d, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=2
	testl	%eax, %eax
	je	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	%eax, %edi
	callq	_word_weight
	addsd	(%rbx), %xmm0
	movsd	%xmm0, (%rbx)
	incq	%r14
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%r13,4), %edi
	movl	(%r15,%r14,4), %eax
	testl	%edi, %edi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	%eax, %edi
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	%eax, %edi
	jge	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_word_weight
	addsd	(%rbx), %xmm0
	movsd	%xmm0, (%rbx)
	incl	%r13d
	jmp	LBB0_1
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	(%rbx), %xmm2                   ## xmm2 = mem[0],zero
	movapd	%xmm0, %xmm1
	addsd	%xmm2, %xmm1
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	ucomisd	%xmm1, %xmm3
	jbe	LBB0_13
## %bb.12:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_14
LBB0_13:
	subsd	%xmm2, %xmm0
	divsd	%xmm1, %xmm0
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_similarity                     ; -- Begin function similarity
	.p2align	2
_similarity:                            ; @similarity
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w8, #0
	mov	w24, #0
	str	xzr, [x2]
	str	xzr, [x3]
	fmov	d8, #2.00000000
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_word_weight
	ldr	d1, [x20]
	fmadd	d0, d0, d8, d1
	str	d0, [x20]
	add	w24, w24, #1
	add	w8, w23, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	sxtw	x24, w24
	mov	w23, w8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	cbz	w8, LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x8
	bl	_word_weight
	ldr	d1, [x19]
	fadd	d0, d0, d1
	str	d0, [x19]
	add	x24, x24, #1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22, x23, lsl #2]
	ldr	w8, [x21, x24, lsl #2]
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w8, #0
	ccmp	w0, w8, #8, ne
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_word_weight
	ldr	d1, [x19]
	fadd	d0, d0, d1
	str	d0, [x19]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	add	w8, w23, #1
	b	LBB0_2
LBB0_9:
	ldr	d1, [x20]
	ldr	d2, [x19]
	fadd	d3, d1, d2
	fmov	d0, #-1.00000000
	mov	x8, #54933
	movk	x8, #59430, lsl #16
	movk	x8, #11787, lsl #32
	movk	x8, #15889, lsl #48
	fmov	d4, x8
	fcmp	d3, d4
	b.mi	LBB0_11
; %bb.10:
	fsub	d0, d1, d2
	fdiv	d0, d0, d3
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
