	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_best_line_matches
_find_best_line_matches:                ## @find_best_line_matches
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	24(%rbp), %rax
	movslq	%ecx, %rbx
	movl	(%rax,%rbx,4), %eax
	movq	_CERTAINTY_NOT_CALCULATED@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_13
## %bb.1:
	movq	%r9, %r14
	movq	%r8, %r15
	movl	%edi, %r12d
	movq	56(%rbp), %rsi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	addl	%ecx, %edx
	movl	%edx, %edi
	callq	_map_line_number
	movl	48(%rbp), %r8d
	movl	%eax, %ecx
	subl	%r12d, %ecx
	movl	%ecx, %esi
	subl	%r8d, %esi
	xorl	%edi, %edi
	testl	%esi, %esi
	cmovlel	%edi, %esi
	leal	(%rcx,%r8), %r9d
	leal	(%rcx,%r8), %edx
	incl	%edx
	cmpl	%r13d, %r9d
	cmovgel	%r13d, %edx
	cmpl	%edx, %esi
	jge	LBB0_10
## %bb.2:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx,4), %rbx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movl	%edx, %edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	subl	%eax, %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14,4), %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %eax
	cmovgl	%eax, %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	cmovgl	%r14d, %edi
	movl	%ebx, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	48(%rbp), %r8d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%r14
	addq	$4, %r15
	cmpq	%r14, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_get_similarity
	movq	%rax, %r13
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %eax
	jle	LBB0_7
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	movl	%eax, %r12d
	negl	%r12d
	cmovsl	%eax, %r12d
	xorl	%edi, %edi
	subl	$1000, %r12d                    ## imm = 0x3E8
	setb	%dil
	negl	%r12d
	callq	_assert
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_fingerprint_similarity
	imull	%r12d, %eax
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%eax, (%r13)
	cmpl	%ebx, %eax
	jle	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_9:
	testl	%eax, %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_10
## %bb.11:
	addl	%eax, %eax
	subl	%esi, %eax
	movq	24(%rbp), %rsi
	movl	%eax, (%rsi,%rbx,4)
	addl	%ecx, %edx
	movq	40(%rbp), %rax
	movl	%edx, (%rax,%rbx,4)
	addl	%ecx, %edi
	movq	32(%rbp), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_CERTAIN_NOTHING_MATCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbp), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	$-1, %edi
	movq	40(%rbp), %rax
LBB0_12:
	movl	%edi, (%rax,%rbx,4)
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CERTAINTY_NOT_CALCULATED,4,2   ## @CERTAINTY_NOT_CALCULATED
	.comm	_CERTAIN_NOTHING_MATCHES,4,2    ## @CERTAIN_NOTHING_MATCHES
	.no_dead_strip	_find_best_line_matches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_best_line_matches
_find_best_line_matches:                ; @find_best_line_matches
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	w8, [x7, w3, sxtw #2]
Lloh0:
	adrp	x9, _CERTAINTY_NOT_CALCULATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CERTAINTY_NOT_CALCULATED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.1:
	mov	x21, x7
	mov	x27, x4
	mov	x20, x3
	mov	x28, x1
	mov	x23, x0
	str	x5, [sp, #40]                   ; 8-byte Folded Spill
	str	x6, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x1, [x29, #40]
	ldr	w26, [x29, #32]
	sxtw	x22, w20
	add	w0, w3, w2
	ldr	x8, [x29, #24]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	bl	_map_line_number
	sub	w24, w0, w23
	sub	w8, w24, w26
	cmp	w8, #0
	csel	w25, w8, wzr, gt
	add	w8, w24, w26
	cmp	w8, w28
	csinc	w19, w28, w8, ge
	cmp	w25, w19
	b.ge	LBB0_8
; %bb.2:
	str	w26, [sp, #68]                  ; 4-byte Folded Spill
	str	x20, [sp, #72]                  ; 8-byte Folded Spill
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	mov	w20, #0
	mov	w21, #0
	mov	w26, #0
	mov	x8, x23
	mov	w23, #0
	ldr	x9, [x29, #16]
	str	x9, [sp]                        ; 8-byte Folded Spill
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	sub	w8, w8, w0
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, x22, lsl #2
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	add	x27, x27, w25, uxtw #2
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w26
	csel	w10, w8, w26, gt
	csel	w11, w25, w20, gt
	cmp	w8, w23
	csel	w9, w23, w8, le
	csel	w26, w10, w23, le
	csel	w8, w21, w25, le
	csel	w20, w11, w21, le
	add	x25, x25, #1
	add	x27, x27, #4
	mov	x21, x8
	mov	x23, x9
	cmp	x19, x25
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x25
	ldr	x2, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x24
	ldr	w4, [sp, #68]                   ; 4-byte Folded Reload
	bl	_get_similarity
	ldr	w8, [x0]
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	adds	w8, w8, w25
	cneg	w22, w8, mi
	cmp	w22, #1000
	cset	w0, lo
	bl	_assert
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x27
	bl	_fingerprint_similarity
	mov	w8, #1000
	sub	w8, w8, w22
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	mul	w8, w0, w8
	str	w8, [x28]
	b	LBB0_3
LBB0_6:
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	cbz	w9, LBB0_8
; %bb.7:
	lsl	w9, w9, #1
	sub	w9, w9, w26
	lsl	x10, x22, #2
	str	w9, [x21, x10]
	add	w8, w8, w11
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	w8, [x9, x10]
	add	w8, w20, w11
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _CERTAIN_NOTHING_MATCHES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CERTAIN_NOTHING_MATCHES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, x22, lsl #2]
	mov	w8, #-1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
LBB0_9:
	str	w8, [x9, x22, lsl #2]
LBB0_10:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CERTAINTY_NOT_CALCULATED,4,2   ; @CERTAINTY_NOT_CALCULATED
	.comm	_CERTAIN_NOTHING_MATCHES,4,2    ; @CERTAIN_NOTHING_MATCHES
	.no_dead_strip	_find_best_line_matches
.subsections_via_symbols
