	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Array_indexOf
_Array_indexOf:                         ## @Array_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-80(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_get_length
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.1:
	cmpl	$0, -44(%rbp)
	je	LBB0_20
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	cmpl	$1, %r15d
	je	LBB0_11
## %bb.6:
	movl	4(%r14), %esi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	callq	_to_integer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.7:
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	movl	-44(%rbp), %edi
	jae	LBB0_9
## %bb.8:
	movl	%edi, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	addsd	%xmm1, %xmm0
	xorl	%edi, %edi
	callq	_max
	jmp	LBB0_10
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_jsval_undefined
	movl	%eax, %r15d
	cmpl	-44(%rbp), %r12d
	jb	LBB0_12
	jmp	LBB0_20
LBB0_9:
	callq	_min
LBB0_10:
	movl	%eax, %r12d
LBB0_11:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpl	-44(%rbp), %r12d
	jae	LBB0_20
LBB0_12:
	leaq	-56(%rbp), %r13
	movq	_DISP_E_UNKNOWNNAME@GOTPCREL(%rip), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r12d
	cmpl	-44(%rbp), %r12d
	jae	LBB0_20
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_jsdisp_get_idx
	cmpl	(%r14), %eax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-56(%rbp), %edi
	movl	%r15d, %esi
	leaq	-68(%rbp), %rdx
	callq	_jsval_strict_equal
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	callq	_jsval_release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$0, -68(%rbp)
	je	LBB0_13
## %bb.18:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.19:
	movl	%r12d, %edi
	jmp	LBB0_22
LBB0_20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.21:
	movl	$-1, %edi
LBB0_22:
	callq	_jsval_number
	movl	%eax, (%rbx)
LBB0_23:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_DISP_E_UNKNOWNNAME,4,2         ## @DISP_E_UNKNOWNNAME
	.no_dead_strip	_Array_indexOf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Array_indexOf
_Array_indexOf:                         ; @Array_indexOf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x21
	mov	x1, x20
	bl	_get_length
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.1:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_20
; %bb.2:
	cbz	w24, LBB0_5
; %bb.3:
	ldr	w20, [x23]
	cmp	w24, #1
	b.ne	LBB0_6
; %bb.4:
	mov	w21, #0
	b	LBB0_11
LBB0_5:
	bl	_jsval_undefined
	mov	x20, x0
	mov	w21, #0
	b	LBB0_11
LBB0_6:
	ldr	w1, [x23, #4]
	add	x2, sp, #8
	mov	x0, x21
	bl	_to_integer
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.7:
	ldr	d0, [sp, #8]
	ldr	w0, [sp, #20]
	fcmp	d0, #0.0
	b.ge	LBB0_9
; %bb.8:
	ucvtf	d1, w0
	fadd	d0, d0, d1
	mov	w0, #0
	bl	_max
	b	LBB0_10
LBB0_9:
	bl	_min
LBB0_10:
	mov	x21, x0
LBB0_11:
	ldr	w8, [sp, #20]
	cmp	w21, w8
	b.hs	LBB0_20
; %bb.12:
Lloh2:
	adrp	x23, _DISP_E_UNKNOWNNAME@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DISP_E_UNKNOWNNAME@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w21, w21, #1
	ldr	w8, [sp, #20]
	cmp	w21, w8
	b.hs	LBB0_20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #24]
	add	x2, sp, #8
	mov	x1, x21
	bl	_jsdisp_get_idx
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [sp, #8]
	add	x2, sp, #16
	mov	x1, x20
	bl	_jsval_strict_equal
	mov	x22, x0
	ldr	w0, [sp, #8]
	bl	_jsval_release
	mov	x0, x22
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_13
; %bb.18:
	cbz	x19, LBB0_23
; %bb.19:
	mov	x0, x21
	b	LBB0_22
LBB0_20:
	cbz	x19, LBB0_23
; %bb.21:
	mov	w0, #-1
LBB0_22:
	bl	_jsval_number
	str	w0, [x19]
LBB0_23:
Lloh4:
	adrp	x8, _S_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
LBB0_24:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_DISP_E_UNKNOWNNAME,4,2         ; @DISP_E_UNKNOWNNAME
	.no_dead_strip	_Array_indexOf
.subsections_via_symbols
