	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function String_replace
_String_replace:                        ## @String_replace
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -176(%rbp)                 ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -160(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movq	_REM_NO_CTX_UPDATE@GOTPCREL(%rip), %rax
	movq	_REM_ALLOC_RESULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-72(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_get_string_flat_val
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %r13
LBB0_100:
	movq	%r13, %rax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.7:
	movq	%r15, %r12
	movl	(%r15), %edi
	callq	_is_object_instance
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	(%r12), %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %r14
	movq	_JSCLASS_REGEXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_is_class
	movb	$1, %cl
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%r13d, %r15d
	movq	%rbx, %r13
	jmp	LBB0_14
LBB0_3:
	movq	-72(%rbp), %rdi
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	callq	_jsval_string
	movl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_5:
	callq	_jsstr_release
LBB0_6:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_100
LBB0_11:
	movq	%r14, %rdi
	callq	_jsdisp_release
LBB0_12:
	movl	%r13d, %r15d
	movl	(%r12), %esi
	leaq	-192(%rbp), %rdx
	leaq	-160(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_flat_string
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_13
## %bb.101:
	movq	-72(%rbp), %rdi
	callq	_jsstr_release
	jmp	LBB0_100
LBB0_13:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_14:
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r15d
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	jb	LBB0_15
## %bb.16:
	movl	4(%r12), %edi
	callq	_is_object_instance
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
## %bb.17:
	movl	4(%r12), %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	%rax, %r14
	movq	_JSCLASS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_is_class
	testl	%eax, %eax
	jne	LBB0_24
## %bb.19:
	movq	%r14, %rdi
	callq	_jsdisp_release
LBB0_20:
	movl	4(%r12), %esi
	leaq	-200(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_flat_string
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	-200(%rbp), %rdi
	callq	_jsstr_length
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_23
LBB0_15:
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_21:
	xorl	%eax, %eax
LBB0_23:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_24:
	movq	%r13, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_33
## %bb.25:
	movq	-80(%rbp), %rbx
	movslq	-96(%rbp), %rax                 ## 4-byte Folded Reload
	shlq	$2, %rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_63 Depth 2
	testb	%r15b, %r15b
	je	LBB0_50
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%rbx, %r15
	movq	%r14, %r12
	movq	-72(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	leaq	-48(%rbp), %r8
	callq	_regexp_match_next
	movq	%rax, %r13
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_REM_CHECK_GLOBAL@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_REM_ALLOC_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_30
## %bb.49:                              ##   in Loop: Header=BB0_26 Depth=1
	notl	%ebx
	andl	%ebx, %r14d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rcx, -240(%rbp)
	movl	8(%rax), %ecx
	movl	%ecx, -232(%rbp)
	movq	%r12, %r14
	movq	%r15, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	_REM_ALLOC_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %eax
	je	LBB0_51
## %bb.52:                              ##   in Loop: Header=BB0_26 Depth=1
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	leaq	-240(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rdi
	movq	%rdi, -240(%rbp)
	jmp	LBB0_53
LBB0_51:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
LBB0_53:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-160(%rbp), %rsi
	callq	_wcsstr
	movq	-48(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_31
## %bb.54:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-192(%rbp), %rdi
	callq	_jsstr_length
	movq	-48(%rbp), %rcx
	movl	%eax, 8(%rcx)
	cltq
	shlq	$2, %rax
	addq	%rax, (%rcx)
	movq	-48(%rbp), %rax
LBB0_55:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	(%rax), %rdx
	subq	%rbx, %rdx
	sarq	$2, %rdx
	movslq	8(%rax), %rax
	subq	%rax, %rdx
	leaq	-144(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
	movq	-48(%rbp), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_31
## %bb.56:                              ##   in Loop: Header=BB0_26 Depth=1
	testq	%r14, %r14
	je	LBB0_62
## %bb.57:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-72(%rbp), %rdx
	movq	-80(%rbp), %rcx
	movq	-48(%rbp), %r8
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-184(%rbp), %r9
	callq	_rep_call
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_31
## %bb.58:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-184(%rbp), %rsi
	leaq	-144(%rbp), %rdi
	callq	_strbuf_append_jsstr
	movq	%rax, %r13
	movq	-184(%rbp), %rdi
	callq	_jsstr_release
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_59
	jmp	LBB0_31
LBB0_62:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %r12
	testq	%r12, %r12
	sete	%al
	movl	%r15d, %ecx
	xorb	$1, %cl
	orb	%al, %cl
	jne	LBB0_94
	.p2align	4, 0x90
LBB0_63:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	$36, %esi
	callq	_wcschr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_90
## %bb.64:                              ##   in Loop: Header=BB0_63 Depth=2
	movq	%r15, %rdx
	subq	%r12, %rdx
	sarq	$2, %rdx
	leaq	-144(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_90
## %bb.65:                              ##   in Loop: Header=BB0_63 Depth=2
	movl	4(%r15), %edi
	cmpl	$38, %edi
	jg	LBB0_69
## %bb.66:                              ##   in Loop: Header=BB0_63 Depth=2
	cmpl	$36, %edi
	je	LBB0_73
## %bb.67:                              ##   in Loop: Header=BB0_63 Depth=2
	cmpl	$38, %edi
	jne	LBB0_77
## %bb.68:                              ##   in Loop: Header=BB0_63 Depth=2
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movslq	8(%rax), %rdx
	movq	%rdx, %rax
	shlq	$2, %rax
	subq	%rax, %rsi
	leaq	-144(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_74
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_63 Depth=2
	cmpl	$39, %edi
	je	LBB0_76
## %bb.70:                              ##   in Loop: Header=BB0_63 Depth=2
	cmpl	$96, %edi
	jne	LBB0_77
## %bb.71:                              ##   in Loop: Header=BB0_63 Depth=2
	movq	-80(%rbp), %rsi
	movq	-48(%rbp), %rax
	movq	(%rax), %rdx
	subq	%rsi, %rdx
	sarq	$2, %rdx
	movslq	8(%rax), %rax
	subq	%rax, %rdx
	jmp	LBB0_72
LBB0_73:                                ##   in Loop: Header=BB0_63 Depth=2
	leaq	-144(%rbp), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
LBB0_74:                                ##   in Loop: Header=BB0_63 Depth=2
	xorl	%eax, %eax
	callq	_strbuf_append
	jmp	LBB0_75
LBB0_76:                                ##   in Loop: Header=BB0_63 Depth=2
	movq	-80(%rbp), %rbx
	movq	-72(%rbp), %rdi
	callq	_jsstr_length
	cltq
	leaq	(%rbx,%rax,4), %rdx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	subq	%rsi, %rdx
	sarq	$2, %rdx
LBB0_72:                                ##   in Loop: Header=BB0_63 Depth=2
	leaq	-144(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_append
LBB0_75:                                ##   in Loop: Header=BB0_63 Depth=2
	movq	%rax, %r13
	addq	$8, %r15
	movq	%r15, %r12
LBB0_89:                                ##   in Loop: Header=BB0_63 Depth=2
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_63
	jmp	LBB0_90
LBB0_77:                                ##   in Loop: Header=BB0_63 Depth=2
	leaq	4(%r15), %rbx
	callq	_iswdigit
	testl	%eax, %eax
	je	LBB0_78
## %bb.79:                              ##   in Loop: Header=BB0_63 Depth=2
	movq	%rbx, -248(%rbp)                ## 8-byte Spill
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movl	4(%r15), %r14d
	movl	8(%r15), %edi
	addl	$-48, %r14d
	leaq	8(%r15), %rbx
	callq	_iswdigit
	testl	%eax, %eax
	je	LBB0_85
## %bb.80:                              ##   in Loop: Header=BB0_63 Depth=2
	leal	(%r14,%r14,4), %eax
	leal	(%rax,%rax), %ecx
	addl	$-48, %ecx
	movl	(%rbx), %edx
	addl	%ecx, %edx
	movq	-48(%rbp), %rax
	cmpl	12(%rax), %edx
	jle	LBB0_81
LBB0_85:                                ##   in Loop: Header=BB0_63 Depth=2
	testl	%r14d, %r14d
	je	LBB0_87
## %bb.86:                              ##   in Loop: Header=BB0_63 Depth=2
	movq	-48(%rbp), %rax
	cmpl	12(%rax), %r14d
	jle	LBB0_82
LBB0_87:                                ##   in Loop: Header=BB0_63 Depth=2
	leaq	-144(%rbp), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
	movq	-248(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_88
LBB0_78:                                ##   in Loop: Header=BB0_63 Depth=2
	leaq	-144(%rbp), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
	movq	%rbx, %r12
	jmp	LBB0_89
LBB0_81:                                ##   in Loop: Header=BB0_63 Depth=2
	addl	8(%r12), %ecx
	addq	$12, %r15
	movq	%r15, %rbx
	movl	%ecx, %r14d
LBB0_82:                                ##   in Loop: Header=BB0_63 Depth=2
	movq	16(%rax), %rax
	movslq	%r14d, %rcx
	movslq	-8(%rax,%rcx,8), %rsi
	cmpq	$-1, %rsi
	je	LBB0_84
## %bb.83:                              ##   in Loop: Header=BB0_63 Depth=2
	decq	%rcx
	shlq	$2, %rsi
	addq	-80(%rbp), %rsi
	movl	4(%rax,%rcx,8), %edx
	leaq	-144(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
LBB0_84:                                ##   in Loop: Header=BB0_63 Depth=2
	movq	%rbx, %r12
LBB0_88:                                ##   in Loop: Header=BB0_63 Depth=2
	movq	-152(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_89
LBB0_94:                                ##   in Loop: Header=BB0_26 Depth=1
	testq	%r12, %r12
	je	LBB0_97
## %bb.95:                              ##   in Loop: Header=BB0_26 Depth=1
	leaq	-144(%rbp), %rdi
	movq	%r12, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_96
LBB0_90:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_92
## %bb.91:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-112(%rbp), %rdx
	addq	-256(%rbp), %rdx                ## 8-byte Folded Reload
	subq	%r12, %rdx
	sarq	$2, %rdx
	leaq	-144(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
LBB0_92:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_93
LBB0_97:                                ##   in Loop: Header=BB0_26 Depth=1
	leaq	_String_replace.undefinedW(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	leaq	-144(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
LBB0_96:                                ##   in Loop: Header=BB0_26 Depth=1
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
LBB0_93:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_31
LBB0_59:                                ##   in Loop: Header=BB0_26 Depth=1
	testb	%r15b, %r15b
	je	LBB0_31
## %bb.60:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_26
## %bb.61:                              ##   in Loop: Header=BB0_26 Depth=1
	addq	$4, (%rax)
	jmp	LBB0_26
LBB0_28:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_30:
	movq	%r12, %r14
	movq	%r15, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_31:
	movq	%r13, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	%r15, %r12
	movq	-80(%rbp), %r15
	movq	-72(%rbp), %rdi
	callq	_jsstr_length
	cltq
	leaq	(%r15,%rax,4), %rdx
	movq	%r12, %r15
	subq	%rbx, %rdx
	sarq	$2, %rdx
	leaq	-144(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_strbuf_append
	movq	%rax, %r13
LBB0_33:
	testq	%r14, %r14
	je	LBB0_35
## %bb.34:
	movq	%r14, %rdi
	callq	_jsdisp_release
LBB0_35:
	cmpq	$0, -112(%rbp)
	je	LBB0_37
## %bb.36:
	movq	-200(%rbp), %rdi
	callq	_jsstr_release
LBB0_37:
	cmpq	$0, -160(%rbp)
	je	LBB0_39
## %bb.38:
	movq	-192(%rbp), %rdi
	callq	_jsstr_release
LBB0_39:
	testb	%r15b, %r15b
	je	LBB0_41
## %bb.40:
	movq	-48(%rbp), %rdi
	callq	_heap_free
LBB0_41:
	movq	%r13, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	setne	%al
	cmpq	$0, -240(%rbp)
	setne	%cl
	andb	%al, %cl
	andb	%r15b, %cl
	cmpb	$1, %cl
	jne	LBB0_43
## %bb.42:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_jsstr_release
	movq	-72(%rbp), %rdi
	callq	_jsstr_addref
	movq	%rax, 8(%rbx)
	movq	-240(%rbp), %rax
	subq	-80(%rbp), %rax
	shrq	$2, %rax
	movl	-232(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, (%rbx)
	movl	%ecx, 4(%rbx)
LBB0_43:
	testb	%r15b, %r15b
	je	LBB0_45
## %bb.44:
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	callq	_jsdisp_release
LBB0_45:
	movq	-72(%rbp), %rdi
	callq	_jsstr_release
	movq	%r13, %rdi
	callq	_SUCCEEDED
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_99
## %bb.46:
	testq	%rax, %rax
	je	LBB0_99
## %bb.47:
	movq	-144(%rbp), %rdi
	movl	-136(%rbp), %esi
	callq	_jsstr_alloc_len
	testq	%rax, %rax
	je	LBB0_48
## %bb.98:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_debugstr_jsstr
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r14, %rdi
	callq	_jsval_string
	movl	%eax, (%rbx)
LBB0_99:
	movq	-144(%rbp), %rdi
	callq	_heap_free
	jmp	LBB0_100
LBB0_48:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_100
	.cfi_endproc
                                        ## -- End function
	.comm	_REM_NO_CTX_UPDATE,4,2          ## @REM_NO_CTX_UPDATE
	.comm	_REM_ALLOC_RESULT,4,2           ## @REM_ALLOC_RESULT
	.comm	_S_OK,8,3                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_JSCLASS_REGEXP,4,2             ## @JSCLASS_REGEXP
	.comm	_JSCLASS_FUNCTION,4,2           ## @JSCLASS_FUNCTION
	.comm	_REM_CHECK_GLOBAL,4,2           ## @REM_CHECK_GLOBAL
	.comm	_S_FALSE,8,3                    ## @S_FALSE
	.section	__TEXT,__const
	.p2align	4                               ## @String_replace.undefinedW
_String_replace.undefinedW:
	.long	117                             ## 0x75
	.long	110                             ## 0x6e
	.long	100                             ## 0x64
	.long	101                             ## 0x65
	.long	102                             ## 0x66
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	101                             ## 0x65
	.long	100                             ## 0x64

	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"= %s\n"

	.no_dead_strip	_String_replace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function String_replace
_String_replace:                        ; @String_replace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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	x28, x5
	mov	x24, x4
	mov	x23, x3
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [x29, #-112]
	str	xzr, [sp, #128]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
Lloh0:
	adrp	x8, _REM_NO_CTX_UPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REM_NO_CTX_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _REM_ALLOC_RESULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REM_ALLOC_RESULT@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #136
	sub	x3, x29, #96
	mov	x0, x20
	mov	x1, x21
	bl	_get_string_flat_val
	mov	x22, x0
	bl	_FAILED
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x22
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_2:
	cbz	w23, LBB0_7
; %bb.3:
	ldr	w0, [x24]
	bl	_is_object_instance
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w0, [x24]
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_12
; %bb.5:
	mov	x19, x0
Lloh8:
	adrp	x8, _JSCLASS_REGEXP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JSCLASS_REGEXP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_is_class
	cbz	w0, LBB0_11
; %bb.6:
	str	x19, [sp, #48]                  ; 8-byte Folded Spill
	mov	w25, #1
	cmp	w23, #2
	b.hs	LBB0_15
	b	LBB0_22
LBB0_7:
	ldr	x0, [sp, #136]
	cbz	x28, LBB0_9
; %bb.8:
	bl	_jsval_string
	str	w0, [x28]
	b	LBB0_10
LBB0_9:
	bl	_jsstr_release
LBB0_10:
Lloh11:
	adrp	x8, _S_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
	b	LBB0_1
LBB0_11:
	mov	x0, x19
	bl	_jsdisp_release
LBB0_12:
	ldr	w1, [x24]
	sub	x2, x29, #128
	sub	x3, x29, #104
	mov	x0, x20
	bl	_to_flat_string
	mov	x22, x0
	bl	_FAILED
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [sp, #136]
	bl	_jsstr_release
	b	LBB0_1
LBB0_14:
	mov	w25, #0
	str	xzr, [sp, #48]                  ; 8-byte Folded Spill
	cmp	w23, #2
	b.lo	LBB0_22
LBB0_15:
	ldr	w0, [x24, #4]
	bl	_is_object_instance
	cbz	x0, LBB0_20
; %bb.16:
	ldr	w0, [x24, #4]
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_20
; %bb.17:
	mov	x23, x0
Lloh14:
	adrp	x8, _JSCLASS_FUNCTION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _JSCLASS_FUNCTION@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_is_class
	cbz	w0, LBB0_19
; %bb.18:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_24
LBB0_19:
	mov	x0, x23
	bl	_jsdisp_release
LBB0_20:
	ldr	w1, [x24, #4]
	sub	x2, x29, #120
	sub	x3, x29, #112
	mov	x0, x20
	bl	_to_flat_string
	mov	x22, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_22
; %bb.21:
	ldur	x0, [x29, #-120]
	bl	_jsstr_length
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_23
LBB0_22:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
LBB0_23:
	mov	x23, #0
LBB0_24:
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_79
; %bb.25:
	orr	w26, w27, w26
	ldur	x24, [x29, #-96]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	str	x28, [sp, #32]                  ; 8-byte Folded Spill
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_40 Depth 2
	cbz	w25, LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x3, [sp, #136]
	add	x4, sp, #128
	mov	x0, x20
	ldr	x1, [sp, #48]                   ; 8-byte Folded Reload
	mov	x2, x26
	bl	_regexp_match_next
Lloh17:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_76
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x22, x0
Lloh20:
	adrp	x8, _REM_CHECK_GLOBAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REM_CHECK_GLOBAL@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x8, _REM_ALLOC_RESULT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REM_ALLOC_RESULT@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	bl	_FAILED
	cbnz	x0, LBB0_77
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	orr	w8, w19, w26
	bic	w26, w8, w21
	ldr	x8, [sp, #128]
	ldr	x9, [x8]
	str	x9, [sp, #96]
	ldr	w9, [x8, #8]
	str	w9, [sp, #104]
	b	LBB0_35
LBB0_30:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh26:
	adrp	x8, _REM_ALLOC_RESULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REM_ALLOC_RESULT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=1
	bic	w26, w26, w8
	add	x8, sp, #96
	str	x8, [sp, #128]
	ldur	x0, [x29, #-96]
	str	x0, [sp, #96]
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [sp, #128]
	ldr	x0, [x8]
LBB0_33:                                ;   in Loop: Header=BB0_26 Depth=1
	ldur	x1, [x29, #-104]
	bl	_wcsstr
	ldr	x8, [sp, #128]
	str	x0, [x8]
	ldr	x8, [sp, #128]
	ldr	x8, [x8]
	cbz	x8, LBB0_77
; %bb.34:                               ;   in Loop: Header=BB0_26 Depth=1
	ldur	x0, [x29, #-128]
	bl	_jsstr_length
	ldr	x8, [sp, #128]
	str	w0, [x8, #8]
	ldr	x9, [x8]
	add	x9, x9, w0, sxtw #2
	str	x9, [x8]
	ldr	x8, [sp, #128]
LBB0_35:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x9, [x8]
	sub	x9, x9, x24
	asr	x9, x9, #2
	ldrsw	x8, [x8, #8]
	sub	x8, x9, x8
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x24
	bl	_strbuf_append
	mov	x22, x0
	ldr	x8, [sp, #128]
	ldr	x24, [x8]
	bl	_FAILED
	cbnz	x0, LBB0_77
; %bb.36:                               ;   in Loop: Header=BB0_26 Depth=1
	cbz	x23, LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_26 Depth=1
	ldp	x4, x2, [sp, #128]
	ldur	x3, [x29, #-96]
	add	x5, sp, #56
	mov	x0, x20
	mov	x1, x23
	bl	_rep_call
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_77
; %bb.38:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x1, [sp, #56]
	add	x0, sp, #64
	bl	_strbuf_append_jsstr
	mov	x22, x0
	ldr	x0, [sp, #56]
	bl	_jsstr_release
	mov	x0, x22
	bl	_FAILED
	cbz	x0, LBB0_73
	b	LBB0_77
LBB0_39:                                ;   in Loop: Header=BB0_26 Depth=1
	ldur	x21, [x29, #-112]
	cmp	x21, #0
	cset	w8, eq
	eor	w9, w25, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_66
LBB0_40:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	w1, #36
	bl	_wcschr
	mov	x28, x0
	cbz	x0, LBB0_68
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=2
	sub	x8, x28, x21
	asr	x8, x8, #2
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x21
	bl	_strbuf_append
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_68
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=2
	mov	x27, x28
	ldr	w0, [x27, #4]!
	cmp	w0, #38
	b.gt	LBB0_46
; %bb.43:                               ;   in Loop: Header=BB0_40 Depth=2
	cmp	w0, #36
	b.eq	LBB0_50
; %bb.44:                               ;   in Loop: Header=BB0_40 Depth=2
	cmp	w0, #38
	b.ne	LBB0_54
; %bb.45:                               ;   in Loop: Header=BB0_40 Depth=2
	ldr	x8, [sp, #128]
	ldr	x9, [x8]
	ldrsw	x8, [x8, #8]
	sub	x1, x9, x8, lsl #2
	b	LBB0_49
LBB0_46:                                ;   in Loop: Header=BB0_40 Depth=2
	cmp	w0, #39
	b.eq	LBB0_51
; %bb.47:                               ;   in Loop: Header=BB0_40 Depth=2
	cmp	w0, #96
	b.ne	LBB0_54
; %bb.48:                               ;   in Loop: Header=BB0_40 Depth=2
	ldur	x1, [x29, #-96]
	ldr	x8, [sp, #128]
	ldr	x9, [x8]
	sub	x9, x9, x1
	asr	x9, x9, #2
	ldrsw	x8, [x8, #8]
	sub	x8, x9, x8
LBB0_49:                                ;   in Loop: Header=BB0_40 Depth=2
	str	x8, [sp]
	add	x0, sp, #64
	b	LBB0_52
LBB0_50:                                ;   in Loop: Header=BB0_40 Depth=2
	mov	w8, #1
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x28
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_40 Depth=2
	ldur	x19, [x29, #-96]
	ldr	x0, [sp, #136]
	bl	_jsstr_length
	add	x8, x19, w0, sxtw #2
	sub	x8, x8, x24
	asr	x8, x8, #2
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x24
LBB0_52:                                ;   in Loop: Header=BB0_40 Depth=2
	bl	_strbuf_append
	mov	x22, x0
	add	x21, x28, #8
LBB0_53:                                ;   in Loop: Header=BB0_40 Depth=2
	mov	x0, x22
	bl	_FAILED
	cbz	x0, LBB0_40
	b	LBB0_68
LBB0_54:                                ;   in Loop: Header=BB0_40 Depth=2
	bl	_iswdigit
	cbz	w0, LBB0_60
; %bb.55:                               ;   in Loop: Header=BB0_40 Depth=2
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	mov	x19, x28
	ldr	w0, [x19, #8]!
	ldur	w8, [x19, #-4]
	sub	w23, w8, #48
	bl	_iswdigit
	cbz	w0, LBB0_57
; %bb.56:                               ;   in Loop: Header=BB0_40 Depth=2
	mov	w8, #10
	mul	w8, w23, w8
	ldr	w10, [x19]
	sub	w9, w8, #48
	ldr	x8, [sp, #128]
	ldr	w11, [x8, #12]
	add	w10, w9, w10
	cmp	w10, w11
	b.le	LBB0_61
LBB0_57:                                ;   in Loop: Header=BB0_40 Depth=2
	cbz	w23, LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_40 Depth=2
	ldr	x8, [sp, #128]
	ldr	w9, [x8, #12]
	cmp	w23, w9
	b.le	LBB0_62
LBB0_59:                                ;   in Loop: Header=BB0_40 Depth=2
	mov	w8, #1
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x28
	bl	_strbuf_append
	mov	x22, x0
	mov	x21, x27
	b	LBB0_65
LBB0_60:                                ;   in Loop: Header=BB0_40 Depth=2
	mov	w8, #1
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x28
	bl	_strbuf_append
	mov	x22, x0
	mov	x21, x27
	b	LBB0_53
LBB0_61:                                ;   in Loop: Header=BB0_40 Depth=2
	ldr	w10, [x21, #8]
	add	w23, w9, w10
	add	x19, x28, #12
LBB0_62:                                ;   in Loop: Header=BB0_40 Depth=2
	ldr	x8, [x8, #16]
	sxtw	x9, w23
	sub	x9, x9, #1
	lsl	x10, x9, #3
	ldrsw	x10, [x8, x10]
	cmn	w10, #1
	b.eq	LBB0_64
; %bb.63:                               ;   in Loop: Header=BB0_40 Depth=2
	ldur	x11, [x29, #-96]
	add	x1, x11, x10, lsl #2
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	str	x8, [sp]
	add	x0, sp, #64
	bl	_strbuf_append
	mov	x22, x0
LBB0_64:                                ;   in Loop: Header=BB0_40 Depth=2
	mov	x21, x19
LBB0_65:                                ;   in Loop: Header=BB0_40 Depth=2
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_53
LBB0_66:                                ;   in Loop: Header=BB0_26 Depth=1
	cbz	x21, LBB0_71
; %bb.67:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x21
	b	LBB0_72
LBB0_68:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_70
; %bb.69:                               ;   in Loop: Header=BB0_26 Depth=1
	ldur	x8, [x29, #-112]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	sub	x8, x8, x21
	asr	x8, x8, #2
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x21
	bl	_strbuf_append
	mov	x22, x0
LBB0_70:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x22
	bl	_FAILED
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_73
	b	LBB0_77
LBB0_71:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh29:
	adrp	x19, _String_replace.undefinedW@PAGE
Lloh30:
	add	x19, x19, _String_replace.undefinedW@PAGEOFF
	mov	x0, x19
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	add	x0, sp, #64
	mov	x1, x19
LBB0_72:                                ;   in Loop: Header=BB0_26 Depth=1
	bl	_strbuf_append
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_77
LBB0_73:                                ;   in Loop: Header=BB0_26 Depth=1
	cbz	w25, LBB0_77
; %bb.74:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [sp, #128]
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_26
; %bb.75:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x9, [x8]
	add	x9, x9, #4
	str	x9, [x8]
	b	LBB0_26
LBB0_76:
Lloh31:
	adrp	x8, _S_OK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh33:
	ldr	x22, [x8]
LBB0_77:
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_79
; %bb.78:
	ldur	x19, [x29, #-96]
	ldr	x0, [sp, #136]
	bl	_jsstr_length
	add	x8, x19, w0, sxtw #2
	sub	x8, x8, x24
	asr	x8, x8, #2
	str	x8, [sp]
	add	x0, sp, #64
	mov	x1, x24
	bl	_strbuf_append
	mov	x22, x0
LBB0_79:
	cbz	x23, LBB0_81
; %bb.80:
	mov	x0, x23
	bl	_jsdisp_release
LBB0_81:
	ldur	x8, [x29, #-112]
	cbz	x8, LBB0_83
; %bb.82:
	ldur	x0, [x29, #-120]
	bl	_jsstr_release
LBB0_83:
	ldur	x8, [x29, #-104]
	cbz	x8, LBB0_85
; %bb.84:
	ldur	x0, [x29, #-128]
	bl	_jsstr_release
LBB0_85:
	cbz	w25, LBB0_87
; %bb.86:
	ldr	x0, [sp, #128]
	bl	_heap_free
LBB0_87:
	mov	x0, x22
	bl	_SUCCEEDED
	cmp	x0, #0
	ldr	x8, [sp, #96]
	ccmp	x8, #0, #4, ne
	cset	w8, ne
	and	w8, w25, w8
	cmp	w8, #1
	b.ne	LBB0_89
; %bb.88:
	ldr	x0, [x20, #8]
	bl	_jsstr_release
	ldr	x0, [sp, #136]
	bl	_jsstr_addref
	str	x0, [x20, #8]
	ldr	x8, [sp, #96]
	ldur	x9, [x29, #-96]
	sub	x8, x8, x9
	lsr	x8, x8, #2
	ldr	w9, [sp, #104]
	sub	w8, w8, w9
	stp	w8, w9, [x20]
LBB0_89:
	cbz	w25, LBB0_91
; %bb.90:
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_jsdisp_release
LBB0_91:
	ldr	x0, [sp, #136]
	bl	_jsstr_release
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x28, LBB0_95
; %bb.92:
	cbz	x0, LBB0_95
; %bb.93:
	ldr	x0, [sp, #64]
	ldr	w1, [sp, #72]
	bl	_jsstr_alloc_len
	cbz	x0, LBB0_96
; %bb.94:
	mov	x20, x0
	bl	_debugstr_jsstr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_jsval_string
	str	w0, [x28]
LBB0_95:
	ldr	x0, [sp, #64]
	bl	_heap_free
	b	LBB0_1
LBB0_96:
Lloh36:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh38:
	ldr	x22, [x8]
	b	LBB0_1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_REM_NO_CTX_UPDATE,4,2          ; @REM_NO_CTX_UPDATE
	.comm	_REM_ALLOC_RESULT,4,2           ; @REM_ALLOC_RESULT
	.comm	_S_OK,8,3                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_JSCLASS_REGEXP,4,2             ; @JSCLASS_REGEXP
	.comm	_JSCLASS_FUNCTION,4,2           ; @JSCLASS_FUNCTION
	.comm	_REM_CHECK_GLOBAL,4,2           ; @REM_CHECK_GLOBAL
	.comm	_S_FALSE,8,3                    ; @S_FALSE
	.section	__TEXT,__const
	.p2align	2                               ; @String_replace.undefinedW
_String_replace.undefinedW:
	.long	117                             ; 0x75
	.long	110                             ; 0x6e
	.long	100                             ; 0x64
	.long	101                             ; 0x65
	.long	102                             ; 0x66
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	101                             ; 0x65
	.long	100                             ; 0x64

	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"= %s\n"

	.no_dead_strip	_String_replace
.subsections_via_symbols
