	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmatch_aux
_gmatch_aux:                            ## @gmatch_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
	movq	%rdi, %r15
	movl	$1, %edi
	callq	_lua_upvalueindex
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lua_tolstring
	movq	%rax, %r13
	movl	$2, %edi
	callq	_lua_upvalueindex
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lua_tostring
	movq	%rax, %r12
	movq	%r15, -64(%rbp)
	movq	%r13, -88(%rbp)
	movq	-56(%rbp), %r14
	leaq	(%r14,%r13), %rax
	movq	%rax, -80(%rbp)
	movl	$3, %edi
	callq	_lua_upvalueindex
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lua_tointeger
	movq	%rax, %rbx
	xorl	%eax, %eax
	cmpq	%r14, %rbx
	jg	LBB0_6
## %bb.1:
	movq	%r13, %rax
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	addq	%r13, %rbx
	leaq	-88(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -72(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_match
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	-80(%rbp), %rbx
	jbe	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rax, %r13
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	xorl	%esi, %esi
	cmpq	%r13, %rbx
	sete	%sil
	addl	%eax, %esi
	movq	%r15, %rdi
	callq	_lua_pushinteger
	movl	$3, %edi
	callq	_lua_upvalueindex
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lua_replace
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_push_captures
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gmatch_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmatch_aux
_gmatch_aux:                            ; @gmatch_aux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	mov	w0, #1
	bl	_lua_upvalueindex
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	bl	_lua_tolstring
	mov	x20, x0
	mov	w0, #2
	bl	_lua_upvalueindex
	mov	x1, x0
	mov	x0, x19
	bl	_lua_tostring
	mov	x22, x0
	str	x19, [sp, #40]
	ldr	x21, [sp, #8]
	add	x8, x20, x21
	stp	x20, x8, [sp, #16]
	mov	w0, #3
	bl	_lua_upvalueindex
	mov	x1, x0
	mov	x0, x19
	bl	_lua_tointeger
	cmp	x0, x21
	b.gt	LBB0_4
; %bb.1:
	add	x21, x20, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #32]
	add	x0, sp, #16
	mov	x1, x21
	mov	x2, x22
	bl	_match
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	x8, [sp, #24]
	cmp	x21, x8
	b.ls	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x23, x0
	sub	w8, w23, w20
	cmp	x21, x0
	cinc	w1, w8, eq
	mov	x0, x19
	bl	_lua_pushinteger
	mov	w0, #3
	bl	_lua_upvalueindex
	mov	x1, x0
	mov	x0, x19
	bl	_lua_replace
	add	x0, sp, #16
	mov	x1, x21
	mov	x2, x23
	bl	_push_captures
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gmatch_aux
.subsections_via_symbols
