	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$3, %edi
	callq	_lua_upvalueindex
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lua_touserdata
	movq	%rbx, 24(%rax)
	movq	(%rax), %rbx
	cmpq	16(%rax), %rbx
	jbe	LBB0_1
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r14
	movq	%rax, %r15
	addq	$16, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	ja	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_reprepstate
	movl	32(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_match
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	8(%r14), %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, 8(%r14)
	movq	%rax, (%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_push_captures                  ## TAILCALL
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	mov	w0, #3
	bl	_lua_upvalueindex
	mov	x1, x0
	mov	x0, x21
	bl	_lua_touserdata
	mov	x20, x0
	ldr	x8, [x20, #16]!
	str	x21, [x0, #24]
	ldr	x21, [x0]
	cmp	x21, x8
	b.ls	LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.hi	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_reprepstate
	ldr	w2, [x19, #32]
	mov	x0, x20
	mov	x1, x21
	bl	_match
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.6:
	stp	x2, x2, [x19]
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_push_captures
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gmatch_aux
.subsections_via_symbols
