	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regexp_string_match            ## -- Begin function regexp_string_match
	.p2align	4, 0x90
_regexp_string_match:                   ## @regexp_string_match
	.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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_regexp_from_jsdisp
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_jsstr_flatten
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	_REG_GLOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_regexp_match
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.4:
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_create_array
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)
	je	LBB0_28
## %bb.6:
	movl	$8, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movq	-8(%rax,%r13), %rdx
	movq	(%rax,%r13), %rsi
	movq	%r15, %rdi
	callq	_jsstr_substr
	testq	%rax, %rax
	je	LBB0_27
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	-56(%rbp), %r14
	movq	%rax, %rdi
	callq	_jsval_string
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_jsdisp_propput_idx
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_jsstr_release
	movq	%r14, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_28
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movl	-44(%rbp), %eax
	addq	$16, %r13
	cmpq	%rax, %r12
	jb	LBB0_7
	jmp	LBB0_28
LBB0_10:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_heap_pool_mark
	movq	%rax, %r13
	movq	8(%r14), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_alloc_match_state
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_regexp_match_next
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	%r13, %rdi
	callq	_heap_pool_clear
	jmp	LBB0_16
LBB0_13:
	movq	%r13, %rdi
	callq	_heap_pool_clear
LBB0_14:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %r14
LBB0_16:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	testq	%r13, %r13
	je	LBB0_26
## %bb.18:
	xorl	%eax, %eax
	callq	_jsval_null
	movl	%eax, (%r13)
	jmp	LBB0_26
LBB0_19:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_25
## %bb.20:
	movq	_S_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_23
## %bb.21:
	movq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_create_match_array
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movq	-56(%rbp), %rdi
	callq	_jsval_disp
	jmp	LBB0_24
LBB0_23:
	xorl	%eax, %eax
	callq	_jsval_null
LBB0_24:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_25:
	movq	%r13, %rdi
	callq	_heap_pool_clear
LBB0_26:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_27:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_28:
	movq	%r14, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_32
## %bb.29:
	movq	-56(%rbp), %rbx
	movq	-64(%rbp), %rax
	movl	-44(%rbp), %ecx
	decl	%ecx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_jsval_number
	leaq	_regexp_string_match.indexW(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_jsdisp_propput_name
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_32
## %bb.30:
	movq	-56(%rbp), %rbx
	movq	-64(%rbp), %rax
	movl	-44(%rbp), %ecx
	decl	%ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	addq	8(%rax,%rcx), %rdi
	callq	_jsval_number
	leaq	_regexp_string_match.lastIndexW(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_jsdisp_propput_name
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:
	movq	-56(%rbp), %rbx
	movq	%r15, %rdi
	callq	_jsval_string
	leaq	_regexp_string_match.inputW(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_jsdisp_propput_name
	movq	%rax, %r14
LBB0_32:
	movq	-64(%rbp), %rdi
	callq	_heap_free
	movq	%r14, %rdi
	callq	_SUCCEEDED
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.33:
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	callq	_jsval_obj
	movl	%eax, (%rbx)
	jmp	LBB0_16
LBB0_35:
	callq	_jsdisp_release
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_regexp_string_match.indexW:            ## @regexp_string_match.indexW
	.asciz	"index"

_regexp_string_match.inputW:            ## @regexp_string_match.inputW
	.asciz	"input"

_regexp_string_match.lastIndexW:        ## @regexp_string_match.lastIndexW
	.asciz	"lastIndex"

	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_REG_GLOB,4,2                   ## @REG_GLOB
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no match\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regexp_string_match            ; -- Begin function regexp_string_match
	.p2align	2
_regexp_string_match:                   ; @regexp_string_match
	.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, x3
	mov	x20, x2
	mov	x22, x0
	mov	x0, x1
	bl	_regexp_from_jsdisp
	mov	x21, x0
	mov	x0, x20
	bl	_jsstr_flatten
	cbz	x0, LBB0_14
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _REG_GLOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_GLOB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x4, sp, #24
	add	x5, sp, #20
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_regexp_match
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_16
; %bb.3:
	ldr	w1, [sp, #20]
	cbz	w1, LBB0_17
; %bb.4:
	add	x2, sp, #8
	mov	x0, x22
	bl	_create_array
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_16
; %bb.5:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_28
; %bb.6:
	mov	x24, #0
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x8, x8, x24
	ldp	x2, x1, [x8]
	mov	x0, x20
	bl	_jsstr_substr
	cbz	x0, LBB0_27
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	ldr	x21, [sp, #8]
	bl	_jsval_string
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_jsdisp_propput_idx
	mov	x21, x0
	mov	x0, x23
	bl	_jsstr_release
	mov	x0, x21
	bl	_FAILED
	cbnz	x0, LBB0_28
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldr	w8, [sp, #20]
	add	x24, x24, #16
	cmp	x22, x8
	b.lo	LBB0_7
	b	LBB0_28
LBB0_10:
	mov	x24, x0
	mov	x0, x22
	bl	_heap_pool_mark
	mov	x23, x0
	ldr	x0, [x21, #8]
	mov	x1, x22
	mov	x2, x24
	bl	_alloc_match_state
	str	x0, [sp, #24]
	cbz	x0, LBB0_13
; %bb.11:
	add	x4, sp, #24
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	mov	x3, x20
	bl	_regexp_match_next
	mov	x21, x0
	bl	_FAILED
	cbz	x0, LBB0_19
; %bb.12:
	mov	x0, x23
	bl	_heap_pool_clear
	b	LBB0_16
LBB0_13:
	mov	x0, x23
	bl	_heap_pool_clear
LBB0_14:
Lloh6:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_15:
	ldr	x21, [x8]
LBB0_16:
	mov	x0, x21
	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_17:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x19, LBB0_26
; %bb.18:
	bl	_jsval_null
	str	w0, [x19]
	b	LBB0_26
LBB0_19:
	cbz	x19, LBB0_25
; %bb.20:
Lloh10:
	adrp	x8, _S_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_23
; %bb.21:
	ldr	x2, [sp, #24]
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_create_match_array
	bl	_SUCCEEDED
	cbz	x0, LBB0_25
; %bb.22:
	ldr	x0, [sp, #8]
	bl	_jsval_disp
	b	LBB0_24
LBB0_23:
	bl	_jsval_null
LBB0_24:
	str	w0, [x19]
LBB0_25:
	mov	x0, x23
	bl	_heap_pool_clear
LBB0_26:
Lloh13:
	adrp	x8, _S_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_15
LBB0_27:
Lloh15:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh17:
	ldr	x21, [x8]
LBB0_28:
	mov	x0, x21
	bl	_SUCCEEDED
	cbz	x0, LBB0_32
; %bb.29:
	ldr	x21, [sp, #8]
	ldr	x8, [sp, #24]
	ldr	w9, [sp, #20]
	sub	w9, w9, #1
	add	x8, x8, w9, uxtw #4
	ldr	x0, [x8, #8]
	bl	_jsval_number
	mov	x2, x0
Lloh18:
	adrp	x1, _regexp_string_match.indexW@PAGE
Lloh19:
	add	x1, x1, _regexp_string_match.indexW@PAGEOFF
	mov	x0, x21
	bl	_jsdisp_propput_name
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_32
; %bb.30:
	ldr	x21, [sp, #8]
	ldr	x8, [sp, #24]
	ldr	w9, [sp, #20]
	sub	w9, w9, #1
	add	x8, x8, w9, uxtw #4
	ldp	x8, x9, [x8]
	add	x0, x8, x9
	bl	_jsval_number
	mov	x2, x0
Lloh20:
	adrp	x1, _regexp_string_match.lastIndexW@PAGE
Lloh21:
	add	x1, x1, _regexp_string_match.lastIndexW@PAGEOFF
	mov	x0, x21
	bl	_jsdisp_propput_name
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_32
; %bb.31:
	ldr	x21, [sp, #8]
	mov	x0, x20
	bl	_jsval_string
	mov	x2, x0
Lloh22:
	adrp	x1, _regexp_string_match.inputW@PAGE
Lloh23:
	add	x1, x1, _regexp_string_match.inputW@PAGEOFF
	mov	x0, x21
	bl	_jsdisp_propput_name
	mov	x21, x0
LBB0_32:
	ldr	x0, [sp, #24]
	bl	_heap_free
	mov	x0, x21
	bl	_SUCCEEDED
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbz	x19, LBB0_35
; %bb.33:
	cbz	x8, LBB0_35
; %bb.34:
	bl	_jsval_obj
	str	w0, [x19]
	b	LBB0_16
LBB0_35:
	bl	_jsdisp_release
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_regexp_string_match.indexW:            ; @regexp_string_match.indexW
	.asciz	"index"

_regexp_string_match.inputW:            ; @regexp_string_match.inputW
	.asciz	"input"

_regexp_string_match.lastIndexW:        ; @regexp_string_match.lastIndexW
	.asciz	"lastIndex"

	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_REG_GLOB,4,2                   ; @REG_GLOB
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no match\n"

.subsections_via_symbols
