	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_find_aux
_str_find_aux:                          ## @str_find_aux
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-48(%rbp), %rdx
	movl	$1, %esi
	callq	_luaL_checklstring
	movq	%rax, %r15
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_luaL_checklstring
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_luaL_optinteger
	movq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_posrelat
	decl	%eax
	movslq	%eax, %rbx
	movq	-48(%rbp), %rax
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_lua_toboolean
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	movq	%r15, %rdi
	addq	%rbx, %rdi
	movq	-48(%rbp), %rsi
	subq	%rbx, %rsi
	movq	-72(%rbp), %rcx
	movq	%r13, %rdx
	callq	_lmemfind
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	subl	%r15d, %ebx
	leal	1(%rbx), %esi
	movq	%r12, %rdi
	callq	_lua_pushinteger
	addl	-72(%rbp), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_lua_pushinteger
	movl	$2, %eax
	jmp	LBB0_14
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	-48(%rbp), %rax
LBB0_4:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%ecx, %ecx
	cmpb	$94, (%r13)
	setne	%r14b
	sete	%cl
	addq	%rcx, %r13
	movq	%r15, %rdx
	addq	%rbx, %r15
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)
	movq	%rdx, -112(%rbp)
	movq	%rdx, %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addq	%rdx, %rax
	movq	%rax, -104(%rbp)
	incl	%ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -96(%rbp)
	leaq	-112(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_match
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	-104(%rbp), %r15
	leaq	1(%r15), %r15
	setb	%al
	incl	%ebx
	testb	%r14b, %al
	jne	LBB0_5
## %bb.11:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movq	%r12, %rdi
	callq	_lua_pushnil
	movl	$1, %eax
	jmp	LBB0_14
LBB0_6:
	movq	%rax, %r12
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.7:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_pushinteger
	subl	-80(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_lua_pushinteger
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_push_captures
	addl	$2, %eax
	jmp	LBB0_14
LBB0_13:
	leaq	-112(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_push_captures
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"^$*+?.([%-"

	.no_dead_strip	_str_find_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_find_aux
_str_find_aux:                          ; @str_find_aux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
	add	x2, sp, #40
	mov	w1, #1
	bl	_luaL_checklstring
	mov	x20, x0
	add	x2, sp, #32
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checklstring
	mov	x22, x0
	mov	x0, x19
	mov	w1, #3
	mov	w2, #1
	bl	_luaL_optinteger
	ldr	x1, [sp, #40]
	bl	_posrelat
	sub	w8, w0, #1
	sxtw	x9, w8
	ldr	x8, [sp, #40]
	cmp	x8, x9
	csel	x25, x8, x9, lo
	cbz	w21, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #4
	bl	_lua_toboolean
	cbz	x0, LBB0_4
LBB0_2:
	add	x0, x20, x25
	ldp	x3, x8, [sp, #32]
	sub	x1, x8, x25
	mov	x2, x22
	bl	_lmemfind
	cbz	x0, LBB0_9
; %bb.3:
	sub	w20, w0, w20
	add	w1, w20, #1
	mov	x0, x19
	bl	_lua_pushinteger
	ldr	w8, [sp, #32]
	add	w1, w8, w20
	mov	x0, x19
	bl	_lua_pushinteger
	mov	w0, #2
	b	LBB0_13
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strpbrk
	cbz	x0, LBB0_2
; %bb.5:
	ldr	x8, [sp, #40]
LBB0_6:
	mov	x9, x22
	ldrb	w10, [x9], #1
	cmp	w10, #94
	cset	w26, ne
	csel	x22, x22, x9, ne
	str	x19, [sp, #24]
	add	x8, x20, x8
	stp	x20, x8, [sp]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x20, x25
	str	xzr, [sp, #16]
	mov	x0, sp
	mov	x1, x24
	mov	x2, x22
	bl	_match
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	cmp	x24, x8
	cset	w8, lo
	and	w8, w8, w26
	add	x25, x25, #1
	tbnz	w8, #0, LBB0_7
LBB0_9:
	mov	x0, x19
	bl	_lua_pushnil
	mov	w0, #1
	b	LBB0_13
LBB0_10:
	mov	x23, x0
	cbz	w21, LBB0_12
; %bb.11:
	add	w1, w25, #1
	mov	x0, x19
	bl	_lua_pushinteger
	sub	w1, w23, w20
	mov	x0, x19
	bl	_lua_pushinteger
	mov	x0, sp
	mov	x1, #0
	mov	x2, #0
	bl	_push_captures
	add	w0, w0, #2
	b	LBB0_13
LBB0_12:
	mov	x0, sp
	mov	x1, x24
	mov	x2, x23
	bl	_push_captures
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"^$*+?.([%-"

	.no_dead_strip	_str_find_aux
.subsections_via_symbols
