	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regexp_match
_regexp_match:                          ## @regexp_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r14
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_regexp_from_jsdisp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_heap_pool_mark
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_jsstr_flatten
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%rax, %rbx
	callq	_alloc_match_state
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	movq	%rax, %rbx
	movq	%rax, %r9
	callq	_do_regexp_match_next
	movq	_S_FALSE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.4:
	xorl	%r12d, %r12d
LBB0_5:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_20:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_heap_pool_clear
	movq	%r15, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	%r12, %rdi
	callq	_heap_free
	jmp	LBB0_25
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_6:
	movq	%r15, %rdi
	callq	_heap_pool_clear
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_7:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	8(%r9), %rax
	subq	%r8, %rax
	shrq	$2, %rax
	movl	(%r9), %ecx
	subl	%ecx, %eax
	movl	%eax, (%r12,%r14,8)
	movl	%ecx, 4(%r12,%r14,8)
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_do_regexp_match_next
	movq	%rax, %r15
	incq	%r14
	cmpq	(%r13), %rax
	je	LBB0_5
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	cmpq	%rax, %r14
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%r12, %r12
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %esi
	shll	$4, %esi
	movq	%r12, %rdi
	callq	_heap_realloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%ebx, %ebx
	movq	%rax, %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rsi), %rax
	movq	_REG_GLOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_22
	jmp	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$32, %edi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r12
	movl	$4, %ebx
	jmp	LBB0_10
LBB0_23:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %r15
LBB0_25:
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	incl	%r14d
	jmp	LBB0_5
LBB0_18:
	movq	%r12, %rdi
	callq	_heap_free
LBB0_19:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_S_FALSE,8,3                    ## @S_FALSE
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_REG_GLOB,4,2                   ## @REG_GLOB
	.no_dead_strip	_regexp_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regexp_match
_regexp_match:                          ; @regexp_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x5
	mov	x22, x4
	str	w3, [sp, #44]                   ; 4-byte Folded Spill
	mov	x23, x2
	mov	x25, x0
	mov	x0, x1
	bl	_regexp_from_jsdisp
	mov	x26, x0
	mov	x0, x25
	bl	_heap_pool_mark
	mov	x20, x0
	mov	x0, x23
	bl	_jsstr_flatten
	cbz	x0, LBB0_5
; %bb.1:
	mov	x27, x0
	ldr	x0, [x26]
	mov	x1, x25
	mov	x2, x27
	bl	_alloc_match_state
	cbz	x0, LBB0_4
; %bb.2:
	mov	x28, x0
	mov	x0, x25
	mov	x1, x26
	mov	w2, #0
	mov	x3, x23
	mov	x4, x27
	mov	x5, x28
	bl	_do_regexp_match_next
Lloh0:
	adrp	x24, _S_FALSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _S_FALSE@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	b.ne	LBB0_7
; %bb.3:
	mov	w20, #0
	mov	x23, #0
	b	LBB0_19
LBB0_4:
	mov	x0, x20
	bl	_heap_pool_clear
LBB0_5:
Lloh2:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_6:
	ldr	x19, [x8]
	b	LBB0_27
LBB0_7:
	mov	x19, x0
	str	x23, [sp, #32]                  ; 8-byte Folded Spill
	stp	x22, x21, [sp, #8]              ; 16-byte Folded Spill
	mov	x21, #0
	mov	x20, #0
	mov	x23, #0
	mov	w22, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x28, #8]
	sub	x8, x8, x27
	lsr	x8, x8, #2
	ldr	w9, [x28]
	sub	w8, w8, w9
	add	x10, x23, x21
	stp	w8, w9, [x10]
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x25
	mov	x1, x26
	mov	w2, #0
	ldr	x3, [sp, #32]                   ; 8-byte Folded Reload
	mov	x4, x27
	mov	x5, x28
	bl	_do_regexp_match_next
	mov	x19, x0
	ldr	x8, [x24]
	add	x21, x21, #8
	add	x20, x20, #1
	cmp	x0, x8
	b.eq	LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_FAILED
	cbnz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x20, w22, uxtw
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x23, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	w1, w22, #4
	mov	x0, x23
	bl	_heap_realloc
	cbz	x0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	w22, w22, #1
	mov	x23, x0
	b	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x26]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _REG_GLOB@GOTPAGE
Lloh5:
	ldr	x9, [x9, _REG_GLOB@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #32
	bl	_heap_alloc
	cbz	x0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, x0
	mov	w22, #4
	b	LBB0_8
LBB0_18:
	ldp	x22, x21, [sp, #8]              ; 16-byte Folded Reload
LBB0_19:
Lloh7:
	adrp	x8, _S_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh9:
	ldr	x19, [x8]
	b	LBB0_25
LBB0_20:
	add	w20, w20, #1
Lloh10:
	adrp	x8, _S_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	mov	x0, x23
	bl	_heap_free
LBB0_22:
	mov	x23, #0
Lloh12:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_23:
	ldr	x19, [x8]
LBB0_24:
	ldp	x22, x21, [sp, #8]              ; 16-byte Folded Reload
LBB0_25:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_heap_pool_clear
	mov	x0, x19
	bl	_FAILED
	cbz	x0, LBB0_28
; %bb.26:
	mov	x0, x23
	bl	_heap_free
LBB0_27:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_28:
	str	x23, [x22]
	str	w20, [x21]
Lloh14:
	adrp	x8, _S_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_S_FALSE,8,3                    ; @S_FALSE
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_REG_GLOB,4,2                   ; @REG_GLOB
	.no_dead_strip	_regexp_match
.subsections_via_symbols
