	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matching_length
_matching_length:                       ## @matching_length
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	$0, (%rdx)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rcx)
	cmpq	%rdi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.3:
	movq	%r12, %rbx
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_PATTERN
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_PATTERN
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_rtx_equal_p
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movq	%r13, %rdi
	callq	_compute_rtx_cost
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_prev_insn_in_block
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_prev_insn_in_block
	cmpq	%r12, %r13
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r14, %rbx
	jne	LBB0_4
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_matching_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matching_length
_matching_length:                       ; @matching_length
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	str	wzr, [x2]
	str	wzr, [x3]
	cmp	x1, x0
	b.eq	LBB0_9
; %bb.1:
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x1
	cbz	x1, LBB0_9
; %bb.3:
	mov	x19, x3
	mov	x20, x2
	mov	x23, x21
	mov	x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_PATTERN
	mov	x25, x0
	mov	x0, x23
	bl	_PATTERN
	mov	x1, x0
	mov	x0, x25
	bl	_rtx_equal_p
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x24
	bl	_compute_rtx_cost
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	mov	x0, x24
	bl	_prev_insn_in_block
	mov	x24, x0
	mov	x0, x23
	bl	_prev_insn_in_block
	cmp	x24, x21
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x24, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, x22
	b.ne	LBB0_4
LBB0_9:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_matching_length
.subsections_via_symbols
