	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onig_regexp_match_p
_onig_regexp_match_p:                   ## @onig_regexp_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_mrb_nil_value
	movl	%eax, -28(%rbp)
	movq	$0, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mrb_get_args
	movl	-28(%rbp), %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_reg_operand
	movl	%eax, -28(%rbp)
	movq	-40(%rbp), %r15
	testq	%r15, %r15
	js	LBB0_1
## %bb.3:
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	callq	_RSTRING_LEN
	cltq
	cmpq	%rax, %r15
	jge	LBB0_1
LBB0_5:
	movq	_mrb_onig_regexp_type@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_Data_Get_Struct
	movl	-28(%rbp), %edi
	callq	_RSTRING_PTR
	movq	%rax, %rbx
	movl	-28(%rbp), %edi
	callq	_RSTRING_LEN
	cltq
	leaq	(%rbx,%rax,4), %r14
	movq	-40(%rbp), %rax
	leaq	(%rbx,%rax,4), %r15
	movl	-28(%rbp), %edi
	callq	_RSTRING_LEN
	cltq
	leaq	(%rbx,%rax,4), %r8
	movl	$0, (%rsp)
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %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	"o|i"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onig_regexp_match_p
_onig_regexp_match_p:                   ; @onig_regexp_match_p
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_mrb_nil_value
	str	w0, [sp, #12]
	str	xzr, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x3, sp
	mov	x0, x20
	bl	_mrb_get_args
	ldr	w0, [sp, #12]
	bl	_mrb_nil_p
	cbz	x0, LBB0_3
LBB0_1:
	bl	_mrb_nil_value
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_reg_operand
	str	w0, [sp, #12]
	ldr	x21, [sp]
	tbnz	x21, #63, LBB0_1
; %bb.4:
	cbz	x21, LBB0_6
; %bb.5:
	bl	_RSTRING_LEN
	cmp	x21, w0, sxtw
	b.ge	LBB0_1
LBB0_6:
Lloh2:
	adrp	x2, _mrb_onig_regexp_type@GOTPAGE
Lloh3:
	ldr	x2, [x2, _mrb_onig_regexp_type@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_Data_Get_Struct
	ldr	w0, [sp, #12]
	bl	_RSTRING_PTR
	mov	x19, x0
	ldr	w0, [sp, #12]
	bl	_RSTRING_LEN
	add	x20, x19, w0, sxtw #2
	ldr	x8, [sp]
	add	x21, x19, x8, lsl #2
	ldr	w0, [sp, #12]
	bl	_RSTRING_LEN
	add	x4, x19, w0, sxtw #2
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	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_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"o|i"

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