	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_getluaproto
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_currentpc
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_luaF_getlocalname
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	leaq	8(%rbx), %rax
	cmpq	%rbx, 8(%r15)
	cmoveq	%r15, %rax
	movl	(%rax), %eax
	subl	4(%rbx), %eax
	xorl	%ecx, %ecx
	cmpl	%r14d, %eax
	leaq	L_.str(%rip), %rax
	cmovlq	%rcx, %rax
	testl	%r14d, %r14d
	cmovleq	%rcx, %rax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_getluaproto
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_currentpc
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_luaF_getlocalname
	cbnz	x0, LBB0_3
LBB0_2:
	ldr	x8, [x21, #8]
	add	x9, x20, #8
	cmp	x8, x20
	csel	x8, x21, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	sub	w8, w8, w9
	cmp	w8, w19
	ccmp	w19, #0, #4, ge
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	csel	x0, x8, xzr, gt
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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
