	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_builtin_helper_string_find_index ## -- Begin function ecma_builtin_helper_string_find_index
	.p2align	4, 0x90
_ecma_builtin_helper_string_find_index: ## @ecma_builtin_helper_string_find_index
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_ecma_string_get_length
	movq	%rax, %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ecma_string_get_length
	movq	%rax, %r13
	xorl	%eax, %eax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	subq	%r13, %r12
	jl	LBB0_3
## %bb.1:
	testq	%r13, %r13
	je	LBB0_2
## %bb.4:
	movq	_original_str_utf8_p@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_original_str_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ECMA_STRING_TO_UTF8_STRING
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	testq	%r14, %r14
	jle	LBB0_7
## %bb.5:
	leaq	-56(%rbp), %r15
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_lit_utf8_incr
	decq	%rbx
	jne	LBB0_6
LBB0_7:
	movq	_search_str_utf8_p@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_search_str_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ECMA_STRING_TO_UTF8_STRING
	movq	(%rbx), %rax
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rdi
	callq	_lit_utf8_read_next
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	-56(%rbp), %rbx
	testq	%r13, %r13
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, %eax
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jge	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_lit_utf8_read_next
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-96(%rbp), %rax
	movq	%rax, -104(%rbp)
	movl	$1, %eax
	cmpq	$2, %r13
	jl	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r14), %rcx
	cmpq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	jge	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-56(%rbp), %rdi
	callq	_lit_utf8_read_next
	movq	%rax, %r15
	leaq	-104(%rbp), %rdi
	callq	_lit_utf8_read_next
	cmpq	%rax, %r15
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	1(%r12), %rax
	cmpq	%r13, %r12
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	addq	%r14, %r12
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%rax, %r12
	jl	LBB0_16
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	decq	%rax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	cmpq	%r13, %rax
	jne	LBB0_24
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r13, %rax
	je	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, -56(%rbp)
	testl	%r15d, %r15d
	je	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r12, %r14
	jg	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_lit_utf8_incr
	movl	$1, %eax
	addq	%rax, %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r14, %r14
	jle	LBB0_26
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_lit_utf8_decr
	movq	$-1, %rax
	addq	%rax, %r14
	jmp	LBB0_8
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	decq	%r12
	movq	%r12, %rax
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r13, %rax
	jne	LBB0_24
LBB0_23:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	$1, %r15d
	jmp	LBB0_27
LBB0_2:
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmoveq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_26:
	xorl	%r15d, %r15d
LBB0_27:
	movq	_original_str_utf8_p@GOTPCREL(%rip), %rbx
	movq	_original_str_size@GOTPCREL(%rip), %r14
	movq	_search_str_utf8_p@GOTPCREL(%rip), %rax
	movq	_search_str_size@GOTPCREL(%rip), %rcx
	movq	(%rax), %rdi
	movl	(%rcx), %esi
	callq	_ECMA_FINALIZE_UTF8_STRING
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	callq	_ECMA_FINALIZE_UTF8_STRING
	movl	%r15d, %eax
LBB0_3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_original_str_utf8_p,8,3        ## @original_str_utf8_p
	.comm	_original_str_size,4,2          ## @original_str_size
	.comm	_search_str_utf8_p,8,3          ## @search_str_utf8_p
	.comm	_search_str_size,4,2            ## @search_str_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_builtin_helper_string_find_index ; -- Begin function ecma_builtin_helper_string_find_index
	.p2align	2
_ecma_builtin_helper_string_find_index: ; @ecma_builtin_helper_string_find_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x25, x0
	bl	_ecma_string_get_length
	mov	x22, x0
	mov	x0, x24
	bl	_ecma_string_get_length
	subs	x28, x22, x0
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_30
LBB0_2:
	mov	x23, x0
	cbz	x0, LBB0_26
; %bb.3:
Lloh0:
	adrp	x26, _original_str_utf8_p@GOTPAGE
Lloh1:
	ldr	x26, [x26, _original_str_utf8_p@GOTPAGEOFF]
	ldr	x1, [x26]
Lloh2:
	adrp	x8, _original_str_size@GOTPAGE
Lloh3:
	ldr	x8, [x8, _original_str_size@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x25
	bl	_ECMA_STRING_TO_UTF8_STRING
	ldr	x8, [x26]
	str	x8, [sp, #24]
	cmp	x20, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x25, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	bl	_lit_utf8_incr
	subs	x25, x25, #1
	b.ne	LBB0_5
LBB0_6:
Lloh5:
	adrp	x25, _search_str_utf8_p@GOTPAGE
Lloh6:
	ldr	x25, [x25, _search_str_utf8_p@GOTPAGEOFF]
	ldr	x1, [x25]
Lloh7:
	adrp	x8, _search_str_size@GOTPAGE
Lloh8:
	ldr	x8, [x8, _search_str_size@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_ECMA_STRING_TO_UTF8_STRING
	ldr	x8, [x25]
	str	x8, [sp, #16]
	add	x0, sp, #16
	bl	_lit_utf8_read_next
	mov	x24, x0
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x8, #0
	ldr	x26, [sp, #24]
	cmp	x23, #1
	b.lt	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x20, x22
	b.ge	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #24
	bl	_lit_utf8_read_next
	cmp	x0, x24
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]
	str	x8, [sp, #8]
	cmp	x23, #2
	b.lt	LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x20, #1
	mov	w8, #1
	cmp	x9, x22
	b.ge	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #2
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #24
	bl	_lit_utf8_read_next
	mov	x25, x0
	add	x0, sp, #8
	bl	_lit_utf8_read_next
	cmp	x25, x0
	b.ne	LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x27, #1
	cmp	x27, x23
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x9, x20, x27
	cmp	x9, x22
	mov	x27, x8
	b.lt	LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x8, #1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x8, x23
	b.eq	LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x26, [sp, #24]
	cbz	w21, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x20, x28
	b.gt	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #24
	bl	_lit_utf8_incr
	mov	w8, #1
	add	x20, x20, x8
	b	LBB0_7
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x20, #1
	b.lt	LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #24
	bl	_lit_utf8_decr
	mov	x8, #-1
	add	x20, x20, x8
	b	LBB0_7
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #1
	b	LBB0_18
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x27, #1
	b	LBB0_18
LBB0_26:
	cmp	w21, #0
	csel	x8, x22, xzr, eq
	str	x8, [x19]
	mov	w19, #1
	b	LBB0_30
LBB0_27:
	str	x20, [x19]
	mov	w19, #1
	b	LBB0_29
LBB0_28:
	mov	w19, #0
LBB0_29:
Lloh10:
	adrp	x20, _original_str_utf8_p@GOTPAGE
Lloh11:
	ldr	x20, [x20, _original_str_utf8_p@GOTPAGEOFF]
Lloh12:
	adrp	x21, _original_str_size@GOTPAGE
Lloh13:
	ldr	x21, [x21, _original_str_size@GOTPAGEOFF]
Lloh14:
	adrp	x8, _search_str_utf8_p@GOTPAGE
Lloh15:
	ldr	x8, [x8, _search_str_utf8_p@GOTPAGEOFF]
Lloh16:
	adrp	x9, _search_str_size@GOTPAGE
Lloh17:
	ldr	x9, [x9, _search_str_size@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
Lloh19:
	ldr	w1, [x9]
	bl	_ECMA_FINALIZE_UTF8_STRING
Lloh20:
	ldr	x0, [x20]
Lloh21:
	ldr	w1, [x21]
	bl	_ECMA_FINALIZE_UTF8_STRING
LBB0_30:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh21
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_original_str_utf8_p,8,3        ; @original_str_utf8_p
	.comm	_original_str_size,4,2          ; @original_str_size
	.comm	_search_str_utf8_p,8,3          ; @search_str_utf8_p
	.comm	_search_str_size,4,2            ; @search_str_size
.subsections_via_symbols
