	.file	"extr_string.c_mrb_str_count.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"S"
	.text
	.p2align 4
	.type	mrb_str_count, @function
mrb_str_count:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 160
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	lea	r14, 12[rsp]
	lea	rbp, 16[rsp]
	call	mrb_nil_value@PLT
	mov	rdi, r12
	lea	rdx, 8[rsp]
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR STATIC_TR_PATTERN[rip]
	mov	DWORD PTR 12[rsp], eax
	call	mrb_get_args@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	rdi, r12
	mov	rsi, r14
	mov	ecx, DWORD PTR TRUE[rip]
	call	tr_parse_pattern@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	rdx, rbp
	mov	rdi, r14
	call	tr_compile_pattern@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	tr_free_pattern@PLT
	mov	edi, r13d
	call	RSTRING_PTR@PLT
	mov	edi, r13d
	mov	rbx, rax
	call	RSTRING_LEN@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
	lea	r13, [rbx+rax]
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	esi, BYTE PTR [rbx]
	mov	rdi, rbp
	call	tr_bitmap_detect@PLT
	cmp	rax, 1
	sbb	r12, -1
	add	rbx, 1
	cmp	rbx, r13
	jne	.L4
.L2:
	mov	rdi, r12
	call	mrb_fixnum_value@PLT
	mov	rcx, QWORD PTR 152[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 160
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mrb_str_count, .-mrb_str_count
	.comm	TRUE,4,4
	.comm	STATIC_TR_PATTERN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_string.c_mrb_str_count.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"S\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrb_str_count, %function
mrb_str_count:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #144
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #140]
	mov	r3,#0
	bl	mrb_nil_value
	mov	ip, r0
	ldr	r3, .L16+4
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, .L16+8
	add	r2, sp, #4
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	bl	mrb_get_args
	ldr	r3, .L16+12
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [sp, #4]
	add	r1, sp, #8
	bl	tr_parse_pattern
	add	r2, sp, #12
	ldr	r1, [sp, #4]
	add	r0, sp, #8
	bl	tr_compile_pattern
	add	r1, sp, #8
	mov	r0, r4
	bl	tr_free_pattern
	mov	r0, r5
	bl	RSTRING_PTR
	mov	r4, r0
	mov	r0, r5
	bl	RSTRING_LEN
	subs	r5, r0, #0
	beq	.L2
	sub	r6, r5, #1
	mov	r5, #0
	add	r6, r4, r6
	sub	r4, r4, #1
.L4:
	ldrb	r1, [r4, #1]!	@ zero_extendqisi2
	add	r0, sp, #12
	bl	tr_bitmap_detect
	cmp	r0, #0
	addne	r5, r5, #1
	cmp	r4, r6
	bne	.L4
.L2:
	mov	r0, r5
	bl	mrb_fixnum_value
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #140]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #144
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	STATIC_TR_PATTERN
	.word	.LC0
	.word	TRUE
	.size	mrb_str_count, .-mrb_str_count
	.comm	TRUE,4,4
	.comm	STATIC_TR_PATTERN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
