	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findlocal
_findlocal:                             ## @findlocal
	.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	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_isLua
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testl	%r12d, %r12d
	js	LBB0_2
## %bb.4:
	movl	16(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_ci_func
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_currentpc
	movl	%r13d, %edi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_luaF_getlocalname
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	cmpq	%rbx, 8(%r15)
	je	LBB0_7
LBB0_6:
	movq	8(%rbx), %r15
LBB0_7:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.8:
	movl	(%r15), %ecx
	subl	%r14d, %ecx
	cmpl	%r12d, %ecx
	jl	LBB0_11
## %bb.9:
	leaq	L_.str(%rip), %rax
LBB0_10:
	leal	(%r12,%r14), %ecx
	decl	%ecx
	movl	%ecx, (%r13)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %r14d
	incl	%r14d
	cmpq	%rbx, 8(%r15)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_2:
	negl	%r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_findvararg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(*temporary)"

	.no_dead_strip	_findlocal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findlocal
_findlocal:                             ; @findlocal
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_isLua
	cbz	x0, LBB0_3
; %bb.1:
	tbnz	w20, #31, LBB0_11
; %bb.2:
	ldr	w24, [x22, #16]
	mov	x0, x22
	bl	_ci_func
	ldr	w23, [x0]
	mov	x0, x22
	bl	_currentpc
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	bl	_luaF_getlocalname
	cbnz	x0, LBB0_9
	b	LBB0_4
LBB0_3:
	ldr	w8, [x22]
	add	w24, w8, #1
LBB0_4:
	ldr	x8, [x21, #8]
	cmp	x8, x22
	b.eq	LBB0_6
; %bb.5:
	ldr	x21, [x22, #8]
LBB0_6:
	mov	x0, #0
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.7:
	ldr	w8, [x21]
	sub	w8, w8, w24
	cmp	w8, w20
	b.lt	LBB0_10
; %bb.8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	add	w8, w20, w24
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_10:
	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_11:
	neg	w1, w20
	mov	x0, x22
	mov	x2, x19
	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
	b	_findvararg
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(*temporary)"

	.no_dead_strip	_findlocal
.subsections_via_symbols
