	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function String_indexOf
_String_indexOf:                        ## @String_indexOf
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-48(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_get_string_flat_val
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_25
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.5:
	movq	%r13, %rbx
	movl	(%r15), %esi
	leaq	-80(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	movq	%r13, %rdi
	callq	_to_flat_string
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi
	callq	_jsstr_release
	jmp	LBB0_25
LBB0_2:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movl	$-1, %edi
	callq	_jsval_number
	movl	%eax, (%rbx)
LBB0_4:
	movq	-48(%rbp), %rdi
	callq	_jsstr_release
LBB0_24:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_25
LBB0_7:
	movq	-80(%rbp), %rdi
	callq	_jsstr_length
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_jsstr_length
	movl	%r14d, %ecx
	movl	%eax, %r14d
	xorl	%edx, %edx
	cmpl	$2, %ecx
	jb	LBB0_13
## %bb.8:
	movl	4(%r15), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_to_integer
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_SUCCEEDED
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_13
## %bb.10:
	callq	_is_int32
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movl	%r14d, %edi
	callq	_min
	movl	%eax, %edx
	jmp	LBB0_13
LBB0_11:
	movl	%r14d, %edx
LBB0_13:
	movl	%edx, %ebx
	movl	%r12d, %edi
	callq	_SUCCEEDED
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	cmpl	%r13d, %r14d
	jb	LBB0_21
## %bb.15:
	movq	-72(%rbp), %rax
	movl	%r14d, %ecx
	leaq	(%rax,%rcx,4), %r14
	movl	%r13d, %ecx
	shlq	$2, %rcx
	subq	%rcx, %r14
	movl	%ebx, %ecx
	leaq	(%rax,%rcx,4), %rbx
	cmpq	%r14, %rbx
	ja	LBB0_21
## %bb.16:
	shll	$2, %r13d
	movl	%r13d, %r15d
	leaq	(%rax,%rcx,4), %r13
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	$4, %rbx
	addq	$4, %r13
	cmpq	%r14, %rbx
	jbe	LBB0_17
## %bb.20:
	movl	$-1, %r15d
	jmp	LBB0_21
LBB0_18:
	subq	-72(%rbp), %r13
	shrq	$2, %r13
	movl	%r13d, %r15d
LBB0_21:
	movq	-80(%rbp), %rdi
	callq	_jsstr_release
	movq	-48(%rbp), %rdi
	callq	_jsstr_release
	movl	%r12d, %edi
	callq	_FAILED
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
LBB0_25:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:
	movl	%r15d, %edi
	callq	_jsval_number
	movl	%eax, (%rbx)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_String_indexOf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function String_indexOf
_String_indexOf:                        ; @String_indexOf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x5
	mov	x24, x4
	mov	x25, x3
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #32
	add	x3, sp, #16
	mov	x0, x23
	mov	x1, x20
	bl	_get_string_flat_val
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_23
; %bb.1:
	cbz	w25, LBB0_4
; %bb.2:
	ldr	w1, [x24]
	add	x2, sp, #40
	add	x3, sp, #24
	mov	x0, x23
	bl	_to_flat_string
	mov	x20, x0
	bl	_FAILED
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x0, [sp, #32]
	bl	_jsstr_release
	b	LBB0_23
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	mov	w0, #-1
	bl	_jsval_number
	str	w0, [x19]
LBB0_6:
	ldr	x0, [sp, #32]
	bl	_jsstr_release
LBB0_7:
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	b	LBB0_23
LBB0_8:
	ldr	x0, [sp, #40]
	bl	_jsstr_length
	mov	x21, x0
	ldr	x0, [sp, #32]
	bl	_jsstr_length
	mov	x22, x0
	cmp	w25, #2
	b.lo	LBB0_13
; %bb.9:
	ldr	w1, [x24, #4]
	add	x2, sp, #8
	mov	x0, x23
	bl	_to_integer
	mov	x20, x0
	bl	_SUCCEEDED
	mov	w23, #0
	cbz	x0, LBB0_14
; %bb.10:
	ldr	d0, [sp, #8]
	fcmp	d0, #0.0
	b.le	LBB0_14
; %bb.11:
	bl	_is_int32
	cbz	x0, LBB0_26
; %bb.12:
	ldr	d0, [sp, #8]
	mov	x0, x22
	bl	_min
	mov	x23, x0
	b	LBB0_14
LBB0_13:
	mov	w23, #0
LBB0_14:
	mov	x0, x20
	bl	_SUCCEEDED
	mov	w24, #-1
	cbz	x0, LBB0_22
; %bb.15:
	cmp	w22, w21
	b.lo	LBB0_22
; %bb.16:
	ldr	x8, [sp, #16]
	add	x9, x8, w22, uxtw #2
	sub	x24, x9, w21, uxtw #2
	add	x22, x8, w23, uxtw #2
	cmp	x22, x24
	b.hi	LBB0_20
; %bb.17:
	mov	w9, w23
	lsl	w21, w21, #2
	add	x23, x8, x9, lsl #2
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x22
	mov	x2, x21
	bl	_memcmp
	cbz	w0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #4
	add	x23, x23, #4
	cmp	x22, x24
	b.ls	LBB0_18
LBB0_20:
	mov	w24, #-1
	b	LBB0_22
LBB0_21:
	ldr	x8, [sp, #16]
	sub	x8, x23, x8
	lsr	x24, x8, #2
LBB0_22:
	ldr	x0, [sp, #40]
	bl	_jsstr_release
	ldr	x0, [sp, #32]
	bl	_jsstr_release
	mov	x0, x20
	bl	_FAILED
	cbz	x0, LBB0_24
LBB0_23:
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
LBB0_24:
	cbz	x19, LBB0_7
; %bb.25:
	mov	x0, x24
	bl	_jsval_number
	str	w0, [x19]
	b	LBB0_7
LBB0_26:
	mov	x23, x22
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_String_indexOf
.subsections_via_symbols
