	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regex_matches                  ## -- Begin function regex_matches
	.p2align	4, 0x90
_regex_matches:                         ## @regex_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %r15d
	movl	8(%rdi), %r12d
	movq	%rsi, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_pcre_exec
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_PCRE_ERROR_NOMATCH@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_LOG
	jmp	LBB0_5
LBB0_1:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	callq	_LOG
	movl	$1, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rcx
	callq	_ELOG
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Regular expression \"%s\" matches \"%s\"\n"

	.comm	_PCRE_ERROR_NOMATCH,4,2         ## @PCRE_ERROR_NOMATCH
L_.str.1:                               ## @.str.1
	.asciz	"Regular expression \"%s\" does not match \"%s\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"PCRE error %d while trying to use regular expression \"%s\" on input \"%s\", see pcreapi(3)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regex_matches                  ; -- Begin function regex_matches
	.p2align	2
_regex_matches:                         ; @regex_matches
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	w22, w21, [x0, #4]
	mov	x0, x1
	bl	_strlen
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	w4, #0
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_pcre_exec
	cbz	w0, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x8, _PCRE_ERROR_NOMATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCRE_ERROR_NOMATCH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w2, [x20]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x2
	mov	x2, x19
	bl	_LOG
	b	LBB0_5
LBB0_3:
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_LOG
	mov	w0, #1
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_ELOG
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Regular expression \"%s\" matches \"%s\"\n"

	.comm	_PCRE_ERROR_NOMATCH,4,2         ; @PCRE_ERROR_NOMATCH
l_.str.1:                               ; @.str.1
	.asciz	"Regular expression \"%s\" does not match \"%s\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"PCRE error %d while trying to use regular expression \"%s\" on input \"%s\", see pcreapi(3)\n"

.subsections_via_symbols
