	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_longest_common_sequence
_find_longest_common_sequence:          ## @find_longest_common_sequence
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	shll	$3, %edi
	callq	_xdl_malloc
	movq	%rax, %r14
	movq	8(%rbx), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	movl	$-1, %r13d
	movq	_NON_UNIQUE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	%r15d, %ecx
	sete	%al
	addl	%eax, %r15d
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	movl	%ecx, %r13d
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r12), %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_binary_search
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	movq	(%r14,%rcx,8), %rcx
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 8(%rbx)
	cmpl	%r13d, %eax
	jl	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rax), %ecx
	movslq	%ecx, %rdx
	movq	%rbx, (%r14,%rdx,8)
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %eax
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.15:
	decl	%r15d
	movq	(%r14,%r15,8), %rax
	movq	$0, 16(%rax)
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	movq	%rax, 16(%rcx)
	movq	8(%rcx), %rcx
	movq	%r15, %rax
	testq	%rcx, %rcx
	jne	LBB0_17
	jmp	LBB0_18
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_16:
	movq	%rax, %r15
LBB0_18:
	movq	%r14, %rdi
	callq	_xdl_free
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NON_UNIQUE,8,3                 ## @NON_UNIQUE
	.no_dead_strip	_find_longest_common_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_longest_common_sequence
_find_longest_common_sequence:          ; @find_longest_common_sequence
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	w8, [x0]
	lsl	w0, w8, #3
	bl	_xdl_malloc
	mov	x19, x0
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_14
; %bb.1:
	mov	w21, #0
	mov	w22, #-1
Lloh0:
	adrp	x23, _NON_UNIQUE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NON_UNIQUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_binary_search
	tbnz	w0, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, w0, uxtw #3]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x20, #8]
	cmp	w0, w22
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w0, #1
	str	x20, [x19, w8, sxtw #3]
	ldr	x9, [x20, #24]
	cmp	w8, w21
	cinc	w8, w21, eq
	add	w10, w0, #2
	cmp	x9, #0
	csel	w21, w8, w10, eq
	csinc	w22, w22, w0, eq
	b	LBB0_2
LBB0_9:
	cbz	w21, LBB0_12
; %bb.10:
	sub	w8, w21, #1
	ldr	x8, [x19, w8, uxtw #3]
	str	xzr, [x8, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x9
	str	x8, [x9, #16]
	ldr	x9, [x9, #8]
	mov	x8, x20
	cbnz	x9, LBB0_11
	b	LBB0_14
LBB0_12:
	mov	x20, #0
	b	LBB0_14
LBB0_13:
	mov	x20, x8
LBB0_14:
	mov	x0, x19
	bl	_xdl_free
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NON_UNIQUE,8,3                 ; @NON_UNIQUE
	.no_dead_strip	_find_longest_common_sequence
.subsections_via_symbols
