	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_str_count
_mrb_str_count:                         ## @mrb_str_count
	.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	$152, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_mrb_nil_value
	movl	%eax, -180(%rbp)
	movq	_STATIC_TR_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -184(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-180(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mrb_get_args
	movl	-180(%rbp), %edx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-184(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tr_parse_pattern
	movl	-180(%rbp), %esi
	leaq	-176(%rbp), %rdx
	movq	%r12, %rdi
	callq	_tr_compile_pattern
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tr_free_pattern
	movl	%r14d, %edi
	callq	_RSTRING_PTR
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	xorl	%r13d, %r13d
	leaq	-176(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %esi
	movq	%r12, %rdi
	callq	_tr_bitmap_detect
	cmpq	$1, %rax
	sbbq	$-1, %r13
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	callq	_mrb_fixnum_value
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STATIC_TR_PATTERN,4,2          ## @STATIC_TR_PATTERN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_mrb_str_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_str_count
_mrb_str_count:                         ; @mrb_str_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_mrb_nil_value
	str	w0, [sp, #4]
Lloh3:
	adrp	x8, _STATIC_TR_PATTERN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATIC_TR_PATTERN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #4
	mov	x0, x19
	bl	_mrb_get_args
	ldr	w2, [sp, #4]
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_tr_parse_pattern
	ldr	w1, [sp, #4]
	mov	x0, sp
	add	x2, sp, #8
	bl	_tr_compile_pattern
	mov	x1, sp
	mov	x0, x19
	bl	_tr_free_pattern
	mov	x0, x20
	bl	_RSTRING_PTR
	mov	x19, x0
	mov	x0, x20
	bl	_RSTRING_LEN
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w1, [x19], #1
	add	x0, sp, #8
	bl	_tr_bitmap_detect
	cmp	x0, #0
	cinc	x21, x21, ne
	subs	x20, x20, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x21
	bl	_mrb_fixnum_value
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STATIC_TR_PATTERN,4,2          ; @STATIC_TR_PATTERN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_mrb_str_count
.subsections_via_symbols
