	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_regexp_match_next
_do_regexp_match_next:                  ## @do_regexp_match_next
	.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, %r12
	movq	%r8, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ebx
	leaq	24(%rdi), %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_jsstr_length
	movl	%ebx, %edi
	movq	%r14, %rbx
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	movq	%r12, %r14
	movq	%r12, %r9
	callq	_regexp_execute
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_21
## %bb.1:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	_S_FALSE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r15
	jne	LBB0_4
## %bb.2:
	movq	_REM_RESET_INDEX@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_21
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_set_last_index
	movq	(%rbx), %r15
	jmp	LBB0_21
LBB0_4:
	movq	_REM_NO_CTX_UPDATE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movq	%r14, %r12
	jmp	LBB0_8
LBB0_6:
	movq	16(%r13), %rdi
	cmpq	%rsi, %rdi
	movq	%r14, %r12
	je	LBB0_8
## %bb.7:
	movq	%rsi, %rbx
	callq	_jsstr_release
	movq	%rbx, %rdi
	callq	_jsstr_addref
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, 16(%r13)
	movl	(%r15), %eax
LBB0_8:
	testl	%edx, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_18
## %bb.9:
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	24(%r12), %esi
	movl	%eax, %edi
	callq	_min
	testl	%eax, %eax
	jle	LBB0_10
## %bb.11:
	movq	16(%r12), %rbx
	movl	%eax, %r14d
	movl	%eax, %ecx
	movq	8(%r13), %rdi
	shlq	$4, %rcx
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%esi, (%rdi,%rdx)
	movq	8(%rbx,%rdx), %rsi
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rsi, 8(%rdi,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx), %esi
	cmpl	$-1, %esi
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$0, (%rdi,%rdx)
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_10:
	movl	%eax, %r14d
	movq	8(%r13), %rdi
LBB0_16:
	callq	_ARRAY_SIZE
	cmpl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jge	LBB0_18
## %bb.17:
	movslq	%r14d, %rdi
	shlq	$4, %rdi
	addq	8(%r13), %rdi
	shll	$4, %r14d
	movl	$8, %edx
	subl	%r14d, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	movq	8(%r12), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subq	%rbx, %rsi
	shrq	$2, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_last_index
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r15)
	jne	LBB0_20
## %bb.19:
	movq	8(%r12), %rax
	subq	%rbx, %rax
	shrq	$2, %rax
	movl	(%r12), %ecx
	subl	%ecx, %eax
	movl	%eax, (%r13)
	movl	%ecx, 4(%r13)
LBB0_20:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_21:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_FALSE,8,3                    ## @S_FALSE
	.comm	_REM_RESET_INDEX,4,2            ## @REM_RESET_INDEX
	.comm	_REM_NO_CTX_UPDATE,4,2          ## @REM_NO_CTX_UPDATE
	.comm	_S_OK,8,3                       ## @S_OK
	.no_dead_strip	_do_regexp_match_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_regexp_match_next
_do_regexp_match_next:                  ; @do_regexp_match_next
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w25, [x1]
	add	x26, x0, #24
	mov	x0, x3
	bl	_jsstr_length
	mov	x4, x0
	mov	x0, x25
	mov	x1, x20
	mov	x2, x26
	mov	x3, x21
	mov	x5, x19
	bl	_regexp_execute
	mov	x25, x0
	bl	_FAILED
	cbnz	x0, LBB0_20
; %bb.1:
Lloh0:
	adrp	x26, _S_FALSE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _S_FALSE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x25, x8
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _REM_RESET_INDEX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REM_RESET_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_20
; %bb.3:
	mov	x0, x22
	mov	w1, #0
	bl	_set_last_index
	ldr	x25, [x26]
	b	LBB0_20
LBB0_4:
Lloh5:
	adrp	x25, _REM_NO_CTX_UPDATE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _REM_NO_CTX_UPDATE@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w23
	b.ne	LBB0_7
; %bb.5:
	ldr	x0, [x20, #16]
	cmp	x0, x24
	b.eq	LBB0_7
; %bb.6:
	bl	_jsstr_release
	mov	x0, x24
	bl	_jsstr_addref
	str	x0, [x20, #16]
	ldr	w8, [x25]
LBB0_7:
	tst	w8, w23
	b.ne	LBB0_17
; %bb.8:
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	ldr	w1, [x19, #24]
	bl	_min
	mov	x24, x0
	cmp	w0, #0
	b.le	LBB0_14
; %bb.9:
	mov	x8, #0
	ldr	x9, [x19, #16]
	mov	w10, w24
	ldr	x0, [x20, #8]
	lsl	x10, x10, #4
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	w11, [x0, x8]
	add	x11, x9, x8
	ldr	x11, [x11, #8]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x12, x0, x8
	str	x11, [x12, #8]
	add	x8, x8, #16
	cmp	x10, x8
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x8]
	cmn	w11, #1
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x11, #0
	str	wzr, [x0, x8]
	b	LBB0_11
LBB0_14:
	ldr	x0, [x20, #8]
LBB0_15:
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.ge	LBB0_17
; %bb.16:
	ldr	x8, [x20, #8]
	add	x0, x8, w24, sxtw #4
	mov	w8, #8
	sub	w2, w8, w24, lsl #4
	mov	w1, #0
	bl	_memset
LBB0_17:
	ldr	x8, [x19, #8]
	sub	x8, x8, x21
	lsr	x1, x8, #2
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_set_last_index
	ldr	w8, [x25]
	tst	w8, w23
	b.ne	LBB0_19
; %bb.18:
	ldr	x8, [x19, #8]
	sub	x8, x8, x21
	lsr	x8, x8, #2
	ldr	w9, [x19]
	sub	w8, w8, w9
	stp	w8, w9, [x20]
LBB0_19:
Lloh7:
	adrp	x8, _S_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh9:
	ldr	x25, [x8]
LBB0_20:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_S_FALSE,8,3                    ; @S_FALSE
	.comm	_REM_RESET_INDEX,4,2            ; @REM_RESET_INDEX
	.comm	_REM_NO_CTX_UPDATE,4,2          ; @REM_NO_CTX_UPDATE
	.comm	_S_OK,8,3                       ; @S_OK
	.no_dead_strip	_do_regexp_match_next
.subsections_via_symbols
