	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stringcap
_stringcap:                             ## @stringcap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXSTRCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_updatecache
	movl	(%r14), %ebx
	movl	4(%r14), %edi
	callq	_subscache
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_lua_tolstring
	movq	%rax, %rbx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_getstrcaps
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpq	$0, -64(%rbp)
	je	LBB0_9
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_luaL_addchar
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	-64(%rbp), %r14
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r14), %eax
	cmpb	$37, %al
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rbx,%r14), %eax
	incq	%r14
	leal	-58(%rax), %ecx
	cmpb	$-11, %cl
	jbe	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %r13d
	addl	$-48, %r13d
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movsbl	%al, %edx
	leaq	L_.str(%rip), %rsi
	callq	_luaL_error
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	shlq	$4, %rax
	movq	(%r15,%rax), %rsi
	movq	8(%r15,%rax), %rdx
	subq	%rsi, %rdx
	movq	%r12, %rdi
	callq	_luaL_addlstring
	jmp	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXSTRCAPS,4,2                 ## @MAXSTRCAPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid capture index (%c)"

	.no_dead_strip	_stringcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stringcap
_stringcap:                             ; @stringcap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXSTRCAPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXSTRCAPS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x1, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_updatecache
	ldp	w22, w0, [x19]
	bl	_subscache
	mov	x1, x0
	sub	x2, x29, #80
	mov	x0, x22
	bl	_lua_tolstring
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_getstrcaps
	ldur	x8, [x29, #-80]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x23, x0
	mov	x25, #0
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w1, w8
	mov	x0, x20
	bl	_luaL_addchar
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldur	x8, [x29, #-80]
	cmp	x25, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x25]
	cmp	w8, #37
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrb	w8, [x22, x25]
	sub	w9, w8, #58
	and	w9, w9, #0xff
	cmp	w9, #245
	b.ls	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w26, w8, #48
	cmp	w26, w23
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	sxtb	w2, w8
	mov	x1, x24
	bl	_luaL_error
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, w26, uxtw #4
	ldp	x1, x8, [x8]
	sub	x2, x8, x1
	mov	x0, x20
	bl	_luaL_addlstring
	b	LBB0_3
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXSTRCAPS,4,2                 ; @MAXSTRCAPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid capture index (%c)"

	.no_dead_strip	_stringcap
.subsections_via_symbols
