	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function registerlocalvar
_registerlocalvar:                      ## @registerlocalvar
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	(%r13), %rdx
	movq	8(%r13), %r12
	movl	(%r12), %ebx
	movl	(%rdi), %edi
	movq	8(%r12), %rsi
	movq	_LocVar@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_SHRT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rsp)
	movl	%ebx, %ecx
	callq	_luaM_growvector
	movl	(%r12), %eax
	movq	8(%r12), %r14
	cmpl	%eax, %ebx
	jge	LBB0_2
## %bb.1:
	movslq	%ebx, %rcx
	leaq	(%r14,%rcx,8), %rdi
	notl	%ebx
	addl	%ebx, %eax
	leaq	8(,%rax,8), %rsi
	callq	___bzero
LBB0_2:
	movq	(%r13), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%r14,%rax,8)
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_luaC_objbarrier
	movq	(%r13), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r13)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LocVar,4,2                     ## @LocVar
	.comm	_SHRT_MAX,4,2                   ## @SHRT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many local variables"

	.no_dead_strip	_registerlocalvar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function registerlocalvar
_registerlocalvar:                      ; @registerlocalvar
	.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, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldp	x2, x20, [x23]
	ldr	w22, [x20]
	ldr	w0, [x0]
	ldr	x1, [x20, #8]
Lloh0:
	adrp	x8, _LocVar@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LocVar@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _SHRT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHRT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x6, l_.str@PAGE
Lloh7:
	add	x6, x6, l_.str@PAGEOFF
	mov	x3, x22
	bl	_luaM_growvector
	ldr	w8, [x20]
	ldr	x24, [x20, #8]
	cmp	w22, w8
	b.ge	LBB0_2
; %bb.1:
	sxtw	x9, w22
	add	x0, x24, x9, lsl #3
	mvn	w9, w9
	add	w8, w8, w9
	lsl	x8, x8, #3
	add	x1, x8, #8
	bl	_bzero
LBB0_2:
	ldr	x8, [x23]
	str	x19, [x24, x8, lsl #3]
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_luaC_objbarrier
	ldr	x0, [x23]
	add	x8, x0, #1
	str	x8, [x23]
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LocVar,4,2                     ; @LocVar
	.comm	_SHRT_MAX,4,2                   ; @SHRT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many local variables"

	.no_dead_strip	_registerlocalvar
.subsections_via_symbols
