	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function string_match_p
_string_match_p:                        ## @string_match_p
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	_mrb_onig_regexp_type@GOTPCREL(%rip), %rcx
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %r8
	callq	_mrb_get_args
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	js	LBB0_3
## %bb.1:
	je	LBB0_4
## %bb.2:
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_3
LBB0_4:
	movl	%r14d, %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mrb_string_type
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_RSTRING_PTR
	movq	%rax, %rbx
	movl	-52(%rbp), %r15d
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	cltq
	leaq	(%rbx,%rax,4), %r12
	movq	-48(%rbp), %rax
	leaq	(%rbx,%rax,4), %r13
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	cltq
	leaq	(%rbx,%rax,4), %r8
	movl	$0, (%rsp)
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	xorl	%r9d, %r9d
	callq	_onig_search
	movq	_ONIG_MISMATCH@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_mrb_bool_value
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d|i"

	.comm	_mrb_onig_regexp_type,4,2       ## @mrb_onig_regexp_type
	.comm	_ONIG_MISMATCH,8,3              ## @ONIG_MISMATCH
	.no_dead_strip	_string_match_p
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function string_match_p
_string_match_p:                        ; @string_match_p
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x3, _mrb_onig_regexp_type@GOTPAGE
Lloh3:
	ldr	x3, [x3, _mrb_onig_regexp_type@GOTPAGEOFF]
	add	x2, sp, #4
	add	x4, sp, #8
	bl	_mrb_get_args
	ldr	x21, [sp, #8]
	tbnz	x21, #63, LBB0_4
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_RSTRING_LEN
	cmp	x21, w0, sxtw
	b.ge	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_mrb_nil_p
	cbz	x0, LBB0_6
LBB0_4:
	bl	_mrb_nil_value
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_mrb_string_type
	mov	x19, x0
	bl	_RSTRING_PTR
	mov	x20, x0
	ldr	w21, [sp, #4]
	mov	x0, x19
	bl	_RSTRING_LEN
	add	x22, x20, w0, sxtw #2
	ldr	x8, [sp, #8]
	add	x23, x20, x8, lsl #2
	mov	x0, x19
	bl	_RSTRING_LEN
	add	x4, x20, w0, sxtw #2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x5, #0
	mov	w6, #0
	bl	_onig_search
Lloh4:
	adrp	x8, _ONIG_MISMATCH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ONIG_MISMATCH@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_mrb_bool_value
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d|i"

	.comm	_mrb_onig_regexp_type,4,2       ; @mrb_onig_regexp_type
	.comm	_ONIG_MISMATCH,8,3              ; @ONIG_MISMATCH
	.no_dead_strip	_string_match_p
.subsections_via_symbols
