	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$1, %ebx
	leaq	-64(%rbp), %rdx
	movl	$1, %esi
	callq	_luaL_checklstring
	movq	%rax, %r12
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_luaL_checklstring
	movq	%rax, %r13
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_luaL_optinteger
	movq	-64(%rbp), %rsi
	movl	%eax, %edi
	callq	_posrelat
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	-64(%rbp), %ecx
	incl	%ecx
	movl	%eax, %ebx
	cmpl	%ecx, %eax
	jg	LBB0_2
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_lua_toboolean
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_nospecials
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movl	%ebx, %eax
	leaq	(%r12,%rax), %rdi
	decq	%rdi
	movq	-64(%rbp), %rsi
	subq	%rax, %rsi
	incq	%rsi
	movq	-56(%rbp), %rcx
	movq	%r13, %rdx
	callq	_lmemfind
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%rax, %rbx
	subl	%r12d, %ebx
	leal	1(%rbx), %esi
	movq	%r14, %rdi
	callq	_lua_pushinteger
	addl	-56(%rbp), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_pushinteger
	movl	$2, %eax
	jmp	LBB0_18
LBB0_8:
	movl	%ebx, %ebx
	movb	(%r13), %al
	cmpb	$94, %al
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	jne	LBB0_9
## %bb.10:
	incq	%r13
	movq	-56(%rbp), %r9
	decq	%r9
	movq	%r9, -56(%rbp)
	jmp	LBB0_11
LBB0_9:
	movq	-56(%rbp), %r9
LBB0_11:
	cmpb	$94, %al
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	-64(%rbp), %rcx
	leaq	-48(%rbp), %rdi
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %r15
	movq	%r13, %r8
	callq	_prepstate
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	-1(%r12), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r13), %r12
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_reprepstate
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_match
	testq	%rax, %rax
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	-48(%rbp), %rax
	cmpq	%rax, %r12
	setb	%al
	incq	%rbx
	testb	%al, -41(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_12
## %bb.16:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_2:
	movq	%r14, %rdi
	callq	_lua_pushnil
	movl	$1, %eax
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rax, %r14
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.14:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_lua_pushinteger
	subl	-80(%rbp), %r14d                ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_lua_pushinteger
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_push_captures
	addl	$2, %eax
	jmp	LBB0_18
LBB0_17:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rsi
	decq	%rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	callq	_push_captures
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.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	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	add	x2, sp, #24
	mov	w1, #1
	bl	_luaL_checklstring
	mov	x20, x0
	add	x2, sp, #16
	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, #24]
	bl	_posrelat
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	w8, [sp, #24]
	add	w8, w8, #1
	cmp	w0, w8
	b.gt	LBB0_14
; %bb.2:
	cbnz	w21, LBB0_4
	b	LBB0_8
LBB0_3:
	mov	w23, #1
	cbz	w21, LBB0_8
LBB0_4:
	mov	x0, x19
	mov	w1, #4
	bl	_lua_toboolean
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x1, [sp, #16]
	mov	x0, x22
	bl	_nospecials
	cbz	x0, LBB0_8
LBB0_6:
	mov	w8, w23
	add	x9, x20, x8
	sub	x0, x9, #1
	ldp	x3, x9, [sp, #16]
	sub	x8, x9, x8
	add	x1, x8, #1
	mov	x2, x22
	bl	_lmemfind
	cbz	x0, LBB0_14
; %bb.7:
	sub	w20, w0, w20
	add	w1, w20, #1
	mov	x0, x19
	bl	_lua_pushinteger
	ldr	w8, [sp, #16]
	add	w1, w8, w20
	mov	x0, x19
	bl	_lua_pushinteger
	mov	w0, #2
	b	LBB0_15
LBB0_8:
	mov	w23, w23
	ldrb	w8, [x22]
	cmp	w8, #94
	b.ne	LBB0_10
; %bb.9:
	add	x22, x22, #1
	ldr	x9, [sp, #16]
	sub	x5, x9, #1
	str	x5, [sp, #16]
	b	LBB0_11
LBB0_10:
	ldr	x5, [sp, #16]
LBB0_11:
	cmp	w8, #94
	cset	w26, ne
	ldr	x3, [sp, #24]
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x4, x22
	bl	_prepstate
	sub	x27, x20, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x25, x27, x23
	add	x0, sp, #8
	bl	_reprepstate
	add	x0, sp, #8
	mov	x1, x25
	mov	x2, x22
	bl	_match
	cbnz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x8, [sp, #8]
	cmp	x25, x8
	cset	w8, lo
	and	w8, w8, w26
	add	x23, x23, #1
	tbnz	w8, #0, LBB0_12
LBB0_14:
	mov	x0, x19
	bl	_lua_pushnil
	mov	w0, #1
LBB0_15:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	mov	x24, x0
	cbz	w21, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x23
	bl	_lua_pushinteger
	sub	w1, w24, w20
	mov	x0, x19
	bl	_lua_pushinteger
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_push_captures
	add	w0, w0, #2
	b	LBB0_15
LBB0_18:
	add	x8, x20, x23
	sub	x1, x8, #1
	add	x0, sp, #8
	mov	x2, x24
	bl	_push_captures
	b	LBB0_15
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_str_find_aux
.subsections_via_symbols
