	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rep_call
_rep_call:                              ## @rep_call
	.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, %r15
	movq	%r8, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r8), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	12(,%rax,4), %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	8(%r14), %rdi
	movslq	4(%r14), %rsi
	movq	%rsi, %rax
	shlq	$2, %rax
	subq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_jsstr_alloc_len
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	(%rcx), %r12d
LBB0_4:
	movq	%rax, %rdi
	callq	_jsval_string
	movl	%eax, (%r13)
	movl	%r12d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	cmpl	$0, (%r14)
	je	LBB0_14
## %bb.6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%r15,8), %esi
	cmpl	$-1, %esi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rax,%r15,8), %edx
	movq	%rbx, %rdi
	callq	_jsstr_substr
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_jsstr_empty
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rdi
	callq	_jsval_string
	movl	%eax, 4(%r13,%r15,4)
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jb	LBB0_7
	jmp	LBB0_13
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_22
LBB0_11:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_13:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	movl	%r12d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	8(%r14), %rdi
	subq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	shrq	$2, %rdi
	subl	4(%r14), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_jsval_number
	movslq	(%r14), %rcx
	movl	%eax, 4(%r13,%rcx,4)
	movq	%rbx, %rdi
	callq	_jsval_string
	movslq	(%r14), %rcx
	movl	%eax, 8(%r13,%rcx,4)
LBB0_16:
	movl	%r12d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	$3, %ecx
	movq	_DISPATCH_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r9
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r13, %r8
	callq	_jsdisp_call_value
	movl	%eax, %r12d
LBB0_18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_get_string
	movl	%eax, %edi
	callq	_jsstr_release
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jbe	LBB0_19
## %bb.20:
	movq	%r13, %rdi
	callq	_heap_free
	movl	%r12d, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movl	-44(%rbp), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_to_string
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_jsval_release
LBB0_22:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_DISPATCH_METHOD,4,2            ## @DISPATCH_METHOD
	.no_dead_strip	_rep_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rep_call
_rep_call:                              ; @rep_call
	.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	x20, x5
	mov	x21, x4
	mov	x27, x3
	mov	x26, x2
	mov	x24, x1
	mov	x28, x0
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w8, [x4]
	add	w25, w8, #3
	lsl	w0, w25, #2
	bl	_heap_alloc_zero
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	ldr	x8, [x21, #8]
	ldrsw	x1, [x21, #4]
	sub	x0, x8, x1, lsl #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_jsstr_alloc_len
Lloh3:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w23, w8, w19, eq
	bl	_jsval_string
	str	w0, [x22]
	mov	x0, x23
	bl	_SUCCEEDED
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.3:
	stp	x28, x20, [sp, #8]              ; 16-byte Folded Spill
	mov	x19, #0
	mov	x28, #0
	add	x20, x22, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	w1, [x8, x19]
	cmn	w1, #1
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x19
	ldr	w2, [x8, #4]
	mov	x0, x26
	bl	_jsstr_substr
	cbnz	x0, LBB0_7
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_jsstr_empty
	cbz	x0, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_jsval_string
	str	w0, [x20, x28, lsl #2]
	add	x8, x28, #1
	ldrsw	x9, [x21]
	add	x19, x19, #8
	mov	x28, x8
	cmp	x8, x9
	b.lo	LBB0_4
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_19
LBB0_9:
Lloh9:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
LBB0_10:
	ldp	x28, x20, [sp, #8]              ; 16-byte Folded Reload
LBB0_11:
	mov	x0, x23
	bl	_SUCCEEDED
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x21, #8]
	sub	x8, x8, x27
	lsr	x8, x8, #2
	ldr	w9, [x21, #4]
	sub	w0, w8, w9
	bl	_jsval_number
	ldrsw	x8, [x21]
	add	x8, x22, x8, lsl #2
	str	w0, [x8, #4]
	mov	x0, x26
	bl	_jsval_string
	ldrsw	x8, [x21]
	add	x8, x22, x8, lsl #2
	str	w0, [x8, #8]
LBB0_13:
	mov	x0, x23
	bl	_SUCCEEDED
	cbz	x0, LBB0_15
; %bb.14:
Lloh12:
	adrp	x8, _DISPATCH_METHOD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DISPATCH_METHOD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x5, sp, #28
	mov	x0, x24
	mov	x1, #0
	mov	x3, x25
	mov	x4, x22
	bl	_jsdisp_call_value
	mov	x23, x0
LBB0_15:
	mov	x19, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, x19, lsl #2]
	bl	_get_string
	bl	_jsstr_release
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.ls	LBB0_16
; %bb.17:
	mov	x0, x22
	bl	_heap_free
	mov	x0, x23
	bl	_FAILED
	cbnz	x0, LBB0_19
; %bb.18:
	ldr	w1, [sp, #28]
	mov	x0, x28
	mov	x2, x20
	bl	_to_string
	mov	x23, x0
	ldr	w0, [sp, #28]
	bl	_jsval_release
LBB0_19:
	mov	x0, x23
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_DISPATCH_METHOD,4,2            ; @DISPATCH_METHOD
	.no_dead_strip	_rep_call
.subsections_via_symbols
