	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_ref
_match_ref:                             ## @match_ref
	.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
	movl	$-1, %r15d
	testl	%edx, %edx
	js	LBB0_16
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	8(%rcx), %rax
	movslq	%edi, %rdx
	movq	(%rax,%rdx,8), %r13
	addq	(%rcx), %r13
	testq	%r8, %r8
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.2:
	movq	%r12, %r15
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.3:
	incl	%ebx
	movq	%r12, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	16(%rcx), %r15
	jge	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%rcx, %r14
	callq	_UCHAR21TEST
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_UCHAR21TEST
	movl	24(%r14), %esi
	movq	%rax, %rdi
	movq	%rax, %rdx
	callq	_TABLE_GET
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_TABLE_GET
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	incq	%r15
	decl	%ebx
	cmpl	$1, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	ja	LBB0_4
	jmp	LBB0_14
LBB0_7:
	incl	%ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r12, 16(%rcx)
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_UCHAR21INCTEST
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_UCHAR21INCTEST
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, %r14
	je	LBB0_8
	jmp	LBB0_16
LBB0_15:
	movl	$-2, %r15d
	jmp	LBB0_16
LBB0_12:
	movl	$-1, %r15d
	jmp	LBB0_16
LBB0_13:
	movq	%r12, %r15
LBB0_14:
	subl	%r12d, %r15d
                                        ## kill: def $r15d killed $r15d killed $r15
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_ucd_caseless_sets,4,2          ## @ucd_caseless_sets
	.no_dead_strip	_match_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_ref
_match_ref:                             ; @match_ref
	.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
	tbnz	w2, #31, LBB0_11
; %bb.1:
	mov	x20, x3
	mov	x19, x1
	ldp	x8, x9, [x3]
	ldr	x9, [x9, w0, sxtw #3]
	add	x21, x9, x8
	cbz	x4, LBB0_7
; %bb.2:
	mov	x22, x19
	cbz	w2, LBB0_14
; %bb.3:
	add	w25, w2, #1
	mov	x22, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	cmp	x22, x8
	b.ge	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_UCHAR21TEST
	mov	x23, x0
	mov	x0, x21
	bl	_UCHAR21TEST
	ldr	w1, [x20, #24]
	mov	x2, x0
	bl	_TABLE_GET
	mov	x24, x0
	ldr	w1, [x20, #24]
	mov	x0, x23
	mov	x2, x23
	bl	_TABLE_GET
	cmp	x24, x0
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	x22, x22, #1
	sub	w25, w25, #1
	cmp	w25, #1
	b.hi	LBB0_4
	b	LBB0_14
LBB0_7:
	add	w23, w2, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_UCHAR21INCTEST
	mov	x22, x0
	mov	x0, x19
	bl	_UCHAR21INCTEST
	cmp	x22, x0
	b.eq	LBB0_8
LBB0_11:
	mov	w0, #-1
	b	LBB0_15
LBB0_12:
	mov	w0, #-2
	b	LBB0_15
LBB0_13:
	mov	x22, x19
LBB0_14:
	sub	w0, w22, w19
LBB0_15:
	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
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_ucd_caseless_sets,4,2          ; @ucd_caseless_sets
	.no_dead_strip	_match_ref
.subsections_via_symbols
