	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_exec
_run_exec:                              ## @run_exec
	.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, %r12
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_JSCLASS_REGEXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_is_vclass
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_regexp_from_vdisp
	movq	%rax, %r13
	leaq	-48(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_to_flat_string
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	16(%r13), %rdi
	movq	_REG_GLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.3:
	movq	(%r13), %rax
	testq	%rax, %rax
	js	LBB0_13
## %bb.4:
	movslq	%eax, %rdx
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %r14
LBB0_7:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%edx, %edx
LBB0_9:
	shlq	$2, %rdx
	addq	-80(%rbp), %rdx
	movq	%r15, %rsi
	callq	_alloc_match_state
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	addq	$8, %r13
	movq	_REM_RESET_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_regexp_match_next
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	-48(%rbp), %rdi
	callq	_jsstr_release
	movq	%rbx, %r14
	jmp	LBB0_7
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_jsstr_release
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	movq	-48(%rbp), %rdi
	callq	_jsstr_release
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_set_last_index
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_jsstr_empty
	movq	%rax, (%rbx)
LBB0_15:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:
	movq	-72(%rbp), %rax
	movq	%rax, (%r12)
	movq	_S_OK@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	xorl	%eax, %eax
	cmpq	%r14, %rbx
	sete	%al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rdi, (%rax)
	jmp	LBB0_7
LBB0_18:
	callq	_jsstr_release
	movq	(%r15), %r14
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_JSCLASS_REGEXP,4,2             ## @JSCLASS_REGEXP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a RegExp\n"

	.comm	_E_NOTIMPL,8,3                  ## @E_NOTIMPL
	.comm	_REG_GLOB,4,2                   ## @REG_GLOB
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_REM_RESET_INDEX,4,2            ## @REM_RESET_INDEX
	.no_dead_strip	_run_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_exec
_run_exec:                              ; @run_exec
	.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	x20, x5
	mov	x21, x4
	mov	x19, x3
	mov	x24, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _JSCLASS_REGEXP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSCLASS_REGEXP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_is_vclass
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x23
	bl	_regexp_from_vdisp
	mov	x23, x0
	add	x2, sp, #8
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x24
	bl	_to_flat_string
	mov	x24, x0
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x23, #16]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _REG_GLOB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_GLOB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	ldr	x8, [x23]
	tbnz	x8, #63, LBB0_13
; %bb.4:
	sxtw	x8, w8
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh8:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
LBB0_6:
	ldr	x24, [x8]
LBB0_7:
	mov	x0, x24
	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
LBB0_8:
	mov	x8, #0
LBB0_9:
	ldr	x9, [sp, #16]
	add	x2, x9, x8, lsl #2
	mov	x1, x22
	bl	_alloc_match_state
	str	x0, [sp, #24]
	cbz	x0, LBB0_12
; %bb.10:
	add	x1, x23, #8
Lloh10:
	adrp	x8, _REM_RESET_INDEX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REM_RESET_INDEX@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	x3, [sp, #8]
	add	x4, sp, #24
	mov	x0, x22
	bl	_regexp_match_next
	mov	x24, x0
	bl	_FAILED
	cbz	x0, LBB0_16
; %bb.11:
	ldr	x0, [sp, #8]
	bl	_jsstr_release
	b	LBB0_7
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_jsstr_release
Lloh13:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
	ldr	x0, [sp, #8]
	bl	_jsstr_release
	mov	x0, x23
	mov	w1, #0
	bl	_set_last_index
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20]
	cbz	x19, LBB0_15
; %bb.14:
	bl	_jsstr_empty
	str	x0, [x19]
LBB0_15:
Lloh18:
	adrp	x8, _S_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x22, _S_OK@GOTPAGE
Lloh21:
	ldr	x22, [x22, _S_OK@GOTPAGEOFF]
	str	x8, [x21]
	ldr	x8, [x22]
	cmp	x24, x8
	cset	w9, eq
	str	w9, [x20]
	ldr	x0, [sp, #8]
	cbz	x19, LBB0_18
; %bb.17:
	str	x0, [x19]
	mov	x24, x8
	b	LBB0_7
LBB0_18:
	bl	_jsstr_release
	ldr	x24, [x22]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_JSCLASS_REGEXP,4,2             ; @JSCLASS_REGEXP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a RegExp\n"

	.comm	_E_NOTIMPL,8,3                  ; @E_NOTIMPL
	.comm	_REG_GLOB,4,2                   ; @REG_GLOB
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_REM_RESET_INDEX,4,2            ; @REM_RESET_INDEX
	.no_dead_strip	_run_exec
.subsections_via_symbols
