	.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
	movq	%rcx, %r15
	movq	_Foffset_top@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_2
## %bb.1:
	movq	_Fovector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdi,8), %r12
	movq	_PCRE2_UNSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jne	LBB0_5
LBB0_2:
	movq	_PCRE2_MATCH_UNSET_BACKREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_5:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	_Feptr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	8(%r15), %r13
	addq	%r12, %r13
	movq	8(%rax,%rdi,8), %rax
	movq	%rax, %rbx
	subq	%r12, %rbx
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.6:
	testq	%rbx, %rbx
	movq	%r14, %rbx
	je	LBB0_21
## %bb.7:
	subq	%rax, %r12
	movq	%r14, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	16(%r15), %rbx
	jae	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_UCHAR21TEST
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_UCHAR21TEST
	movl	32(%r15), %esi
	movq	%rax, %rdi
	movq	%rax, %rdx
	callq	_TABLE_GET
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	32(%r15), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_TABLE_GET
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	incq	%rbx
	incq	%r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_8
	jmp	LBB0_21
LBB0_11:
	cmpq	$0, 24(%r15)
	je	LBB0_18
## %bb.12:
	testq	%rbx, %rbx
	movq	%r14, %rbx
	je	LBB0_21
## %bb.13:
	subq	%rax, %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	16(%r15), %r14
	jae	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, %rdi
	callq	_UCHAR21INCTEST
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_UCHAR21INCTEST
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r12
	jne	LBB0_14
## %bb.17:
	movq	%r14, %rbx
	jmp	LBB0_21
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_23
LBB0_24:
	movl	$1, %eax
	jmp	LBB0_23
LBB0_18:
	movq	16(%r15), %rcx
	subq	%r14, %rcx
	movl	$1, %eax
	cmpq	%rbx, %rcx
	jb	LBB0_23
## %bb.19:
	movq	%rbx, %rdi
	callq	_CU2BYTES
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcmp
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_23
## %bb.20:
	addq	%r14, %rbx
LBB0_21:
	subq	%r14, %rbx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_22:
	movq	%rbx, (%r8)
	xorl	%eax, %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Foffset_top,8,3                ## @Foffset_top
	.comm	_Fovector,8,3                   ## @Fovector
	.comm	_PCRE2_UNSET,8,3                ## @PCRE2_UNSET
	.comm	_PCRE2_MATCH_UNSET_BACKREF,4,2  ## @PCRE2_MATCH_UNSET_BACKREF
	.comm	_Feptr,8,3                      ## @Feptr
	.comm	_PCRE2_UTF,4,2                  ## @PCRE2_UTF
	.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
	mov	x19, x4
	mov	x21, x3
Lloh0:
	adrp	x8, _Foffset_top@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Foffset_top@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _Fovector@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Fovector@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x8, [x9, x0, lsl #3]
Lloh6:
	adrp	x10, _PCRE2_UNSET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCRE2_UNSET@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
LBB0_2:
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _PCRE2_MATCH_UNSET_BACKREF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCRE2_MATCH_UNSET_BACKREF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.3:
	mov	x8, #0
	b	LBB0_18
LBB0_4:
Lloh12:
	adrp	x10, _Feptr@GOTPAGE
Lloh13:
	ldr	x10, [x10, _Feptr@GOTPAGEOFF]
Lloh14:
	ldr	x20, [x10]
	ldr	x10, [x21, #8]
	add	x22, x10, x8
	add	x9, x9, x0, lsl #3
	ldr	x9, [x9, #8]
	sub	x23, x9, x8
	cbz	x1, LBB0_10
; %bb.5:
	cbz	x23, LBB0_16
; %bb.6:
	sub	x26, x8, x9
	mov	x23, x20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	cmp	x23, x8
	b.hs	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_UCHAR21TEST
	mov	x24, x0
	mov	x0, x22
	bl	_UCHAR21TEST
	ldr	w1, [x21, #32]
	mov	x2, x0
	bl	_TABLE_GET
	mov	x25, x0
	ldr	w1, [x21, #32]
	mov	x0, x24
	mov	x2, x24
	bl	_TABLE_GET
	cmp	x25, x0
	b.ne	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	add	x23, x23, #1
	adds	x26, x26, #1
	b.lo	LBB0_7
	b	LBB0_17
LBB0_10:
	ldr	x10, [x21, #24]
	cbz	x10, LBB0_19
; %bb.11:
	cbz	x23, LBB0_16
; %bb.12:
	sub	x24, x8, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	cmp	x20, x8
	b.hs	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	bl	_UCHAR21INCTEST
	mov	x23, x0
	mov	x0, x20
	bl	_UCHAR21INCTEST
	cmp	x23, x0
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	adds	x24, x24, #1
	b.lo	LBB0_13
LBB0_16:
	mov	x23, x20
LBB0_17:
	sub	x8, x23, x20
LBB0_18:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_23
LBB0_19:
	ldr	x8, [x21, #16]
	sub	x8, x8, x20
	cmp	x8, x23
	b.hs	LBB0_21
LBB0_20:
	mov	w0, #1
	b	LBB0_23
LBB0_21:
	mov	x0, x23
	bl	_CU2BYTES
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_memcmp
	cbz	x0, LBB0_24
LBB0_22:
	mov	w0, #-1
LBB0_23:
	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
LBB0_24:
	add	x23, x23, x20
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Foffset_top,8,3                ; @Foffset_top
	.comm	_Fovector,8,3                   ; @Fovector
	.comm	_PCRE2_UNSET,8,3                ; @PCRE2_UNSET
	.comm	_PCRE2_MATCH_UNSET_BACKREF,4,2  ; @PCRE2_MATCH_UNSET_BACKREF
	.comm	_Feptr,8,3                      ; @Feptr
	.comm	_PCRE2_UTF,4,2                  ; @PCRE2_UTF
	.comm	_ucd_caseless_sets,4,2          ; @ucd_caseless_sets
	.no_dead_strip	_match_ref
.subsections_via_symbols
