	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capture_to_close
_capture_to_close:                      ## @capture_to_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rcx), %rax
	movq	8(%rdi), %rdx
	cmpl	$-1, -4(%rdx,%rcx,4)
	movq	%rax, %rcx
	jne	LBB0_1
## %bb.3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_luaL_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pattern capture"

	.no_dead_strip	_capture_to_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capture_to_close
_capture_to_close:                      ; @capture_to_close
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x8, x9, #1
	ldr	x10, [x0, #8]
	add	x9, x10, x9, lsl #2
	ldur	w10, [x9, #-4]
	mov	x9, x8
	cmn	w10, #1
	b.ne	LBB0_1
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	_luaL_error
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pattern capture"

	.no_dead_strip	_capture_to_close
.subsections_via_symbols
