	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tablecap
_tablecap:                              ## @tablecap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_lua_newtable
	movl	(%r15), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_isfullcap
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	(%r15), %edi
	callq	_isclosecap
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	incl	(%r15)
LBB0_8:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%r12d, %r14d
	movl	(%r15), %edi
	callq	_isclosecap
	movl	%r14d, %r12d
	testl	%eax, %eax
	jne	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r15, %rdi
	callq	_pushcapture
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %ebx
	notl	%ebx
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r15), %edi
	leal	(%r12,%r13), %edx
	movl	%ebx, %esi
	callq	_lua_rawseti
	leal	-1(%r13), %eax
	incl	%ebx
	cmpl	$1, %r13d
	movl	%eax, %r13d
	ja	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tablecap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tablecap
_tablecap:                              ; @tablecap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w0, [x0, #4]
	bl	_lua_newtable
	ldr	w0, [x19]
	add	w8, w0, #1
	str	w8, [x19]
	bl	_isfullcap
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_isclosecap
	cbz	w0, LBB0_4
LBB0_2:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w20, w22
	ldr	w0, [x19]
	bl	_isclosecap
	cbnz	w0, LBB0_2
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x19
	bl	_pushcapture
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mvn	w21, w20
	mov	x23, x20
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #4]
	add	w2, w22, w23
	mov	x1, x21
	bl	_lua_rawseti
	add	w21, w21, #1
	subs	w23, w23, #1
	b.hi	LBB0_8
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tablecap
.subsections_via_symbols
