	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_match_array
_create_match_array:                    ## @create_match_array
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_jsstr_flatten
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%r13), %rsi
	incq	%rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_create_array
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_23
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	(%rax,%r14,8), %esi
	cmpl	$-1, %esi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rax,%r14,8), %edx
	movq	%r15, %rdi
	callq	_jsstr_substr
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_jsstr_empty
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rbx
	incq	%r14
	movq	%r12, %rdi
	callq	_jsval_string
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_jsdisp_propput_idx
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_jsstr_release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	(%r13), %r14
	jb	LBB0_6
	jmp	LBB0_12
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_10:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_19
## %bb.13:
	movq	-48(%rbp), %rbx
	movl	8(%r13), %edi
	movl	16(%r13), %eax
	addl	%r14d, %eax
	subl	%eax, %edi
	callq	_jsval_number
	leaq	_create_match_array.indexW(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_jsdisp_propput_name
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:
	movq	-48(%rbp), %rbx
	movl	8(%r13), %edi
	subl	%r14d, %edi
	callq	_jsval_number
	leaq	_create_match_array.lastIndexW(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_jsdisp_propput_name
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_19
## %bb.15:
	movq	-48(%rbp), %rbx
	movq	%r15, %rdi
	callq	_jsstr_addref
	movq	%rax, %rdi
	callq	_jsval_string
	leaq	_create_match_array.inputW(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_jsdisp_propput_name
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movq	8(%r13), %rdi
	movslq	16(%r13), %rsi
	subq	%rsi, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_jsstr_alloc_len
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %r14
	movq	-48(%rbp), %rbx
	movq	%rax, %rdi
	callq	_jsval_string
	leaq	_create_match_array.zeroW(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_jsdisp_propput_name
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_jsstr_release
	jmp	LBB0_19
LBB0_17:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %edi
	callq	_FAILED
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	callq	_jsdisp_release
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	_to_disp
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.section	__TEXT,__const
_create_match_array.indexW:             ## @create_match_array.indexW
	.asciz	"index"

_create_match_array.inputW:             ## @create_match_array.inputW
	.asciz	"input"

_create_match_array.lastIndexW:         ## @create_match_array.lastIndexW
	.asciz	"lastIndex"

_create_match_array.zeroW:              ## @create_match_array.zeroW
	.asciz	"0"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.no_dead_strip	_create_match_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_match_array
_create_match_array:                    ; @create_match_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x1
	bl	_jsstr_flatten
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
	ldr	x8, [x20]
	add	x1, x8, #1
	add	x2, sp, #8
	mov	x0, x23
	bl	_create_array
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_21
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.3:
	mov	x26, #0
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x26]
	cmn	w1, #1
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x26
	ldr	w2, [x8, #4]
	mov	x0, x21
	bl	_jsstr_substr
	mov	x25, x0
	cbnz	x0, LBB0_7
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_jsstr_empty
	mov	x25, x0
	cbz	x0, LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [sp, #8]
	add	x24, x24, #1
	mov	x0, x25
	bl	_jsval_string
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_jsdisp_propput_idx
	mov	x23, x0
	mov	x0, x25
	bl	_jsstr_release
	mov	x0, x23
	bl	_FAILED
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x26, x26, #8
	cmp	x24, x8
	b.lo	LBB0_4
	b	LBB0_12
LBB0_9:
Lloh0:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_10:
	ldr	w23, [x8]
	b	LBB0_21
LBB0_11:
Lloh2:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
LBB0_12:
	mov	x0, x23
	bl	_SUCCEEDED
	cbz	x0, LBB0_19
; %bb.13:
	ldr	x23, [sp, #8]
	ldr	w8, [x20, #8]
	ldr	w9, [x20, #16]
	add	w9, w22, w9
	sub	w0, w8, w9
	bl	_jsval_number
	mov	x2, x0
Lloh5:
	adrp	x1, _create_match_array.indexW@PAGE
Lloh6:
	add	x1, x1, _create_match_array.indexW@PAGEOFF
	mov	x0, x23
	bl	_jsdisp_propput_name
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_19
; %bb.14:
	ldr	x23, [sp, #8]
	ldr	w8, [x20, #8]
	sub	w0, w8, w22
	bl	_jsval_number
	mov	x2, x0
Lloh7:
	adrp	x1, _create_match_array.lastIndexW@PAGE
Lloh8:
	add	x1, x1, _create_match_array.lastIndexW@PAGEOFF
	mov	x0, x23
	bl	_jsdisp_propput_name
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_19
; %bb.15:
	ldr	x22, [sp, #8]
	mov	x0, x21
	bl	_jsstr_addref
	bl	_jsval_string
	mov	x2, x0
Lloh9:
	adrp	x1, _create_match_array.inputW@PAGE
Lloh10:
	add	x1, x1, _create_match_array.inputW@PAGEOFF
	mov	x0, x22
	bl	_jsdisp_propput_name
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_19
; %bb.16:
	ldr	x8, [x20, #8]
	ldrsw	x1, [x20, #16]
	sub	x0, x8, x1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_jsstr_alloc_len
	cbz	x0, LBB0_18
; %bb.17:
	mov	x20, x0
	ldr	x21, [sp, #8]
	bl	_jsval_string
	mov	x2, x0
Lloh11:
	adrp	x1, _create_match_array.zeroW@PAGE
Lloh12:
	add	x1, x1, _create_match_array.zeroW@PAGEOFF
	mov	x0, x21
	bl	_jsdisp_propput_name
	mov	x23, x0
	mov	x0, x20
	bl	_jsstr_release
	b	LBB0_19
LBB0_18:
Lloh13:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
LBB0_19:
	mov	x0, x23
	bl	_FAILED
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbz	x8, LBB0_22
; %bb.20:
	bl	_jsdisp_release
LBB0_21:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_22:
	bl	_to_disp
	str	x0, [x19]
Lloh16:
	adrp	x8, _S_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.section	__TEXT,__const
_create_match_array.indexW:             ; @create_match_array.indexW
	.asciz	"index"

_create_match_array.inputW:             ; @create_match_array.inputW
	.asciz	"input"

_create_match_array.lastIndexW:         ; @create_match_array.lastIndexW
	.asciz	"lastIndex"

_create_match_array.zeroW:              ; @create_match_array.zeroW
	.asciz	"0"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.no_dead_strip	_create_match_array
.subsections_via_symbols
