	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_finishget                 ## -- Begin function luaV_finishget
	.p2align	4, 0x90
_luaV_finishget:                        ## @luaV_finishget
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_MAXTAGLOOP@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.1:
	movq	%r8, %rbx
	movq	%rsi, %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_ttisnil
	movl	%eax, %edi
	callq	_lua_assert
	movq	%r14, %rdi
	callq	_hvalue
	movl	(%rax), %esi
	movq	_TM_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_fasttm
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_ttistable
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_lua_assert
	movq	_TM_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_luaT_gettmbyobj
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ttisnil
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	leaq	L_.str(%rip), %rdx
	callq	_luaG_typeerror
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_ttisfunction
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_luaH_get@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_luaV_fastget
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movq	%r13, %r14
	movq	_MAXTAGLOOP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_3
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaG_runerror                  ## TAILCALL
LBB0_12:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	$1, %r9d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaT_callTM                    ## TAILCALL
LBB0_9:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setobj2s                       ## TAILCALL
LBB0_11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setnilvalue                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXTAGLOOP,4,2                 ## @MAXTAGLOOP
	.comm	_TM_INDEX,4,2                   ## @TM_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index"

	.comm	_luaH_get,4,2                   ## @luaH_get
L_.str.1:                               ## @.str.1
	.asciz	"'__index' chain too long; possible loop"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_finishget                 ; -- Begin function luaV_finishget
	.p2align	2
_luaV_finishget:                        ; @luaV_finishget
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
Lloh0:
	adrp	x26, _MAXTAGLOOP@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MAXTAGLOOP@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	w27, #0
Lloh2:
	adrp	x28, _TM_INDEX@GOTPAGE
Lloh3:
	ldr	x28, [x28, _TM_INDEX@GOTPAGEOFF]
Lloh4:
	adrp	x23, _luaH_get@GOTPAGE
Lloh5:
	ldr	x23, [x23, _luaH_get@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_ttisnil
	bl	_lua_assert
	mov	x0, x24
	bl	_hvalue
	ldr	w1, [x0]
	ldr	w2, [x28]
	mov	x0, x22
	bl	_fasttm
	mov	x25, x0
	cbnz	x0, LBB0_6
	b	LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_ttistable
	cmp	w0, #0
	cset	w0, eq
	bl	_lua_assert
	ldr	w2, [x28]
	mov	x0, x22
	mov	x1, x24
	bl	_luaT_gettmbyobj
	mov	x25, x0
	bl	_ttisnil
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x24
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_luaG_typeerror
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_ttisfunction
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w4, [x23]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x20
	mov	x3, x21
	bl	_luaV_fastget
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w27, #1
	ldr	w8, [x26]
	mov	x24, x25
	cmp	w27, w8
	b.lt	LBB0_2
LBB0_9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_luaG_runerror
LBB0_10:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	mov	x3, x20
	mov	x4, x19
	mov	w5, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_luaT_callTM
LBB0_11:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_setobj2s
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_setnilvalue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXTAGLOOP,4,2                 ; @MAXTAGLOOP
	.comm	_TM_INDEX,4,2                   ; @TM_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index"

	.comm	_luaH_get,4,2                   ; @luaH_get
l_.str.1:                               ; @.str.1
	.asciz	"'__index' chain too long; possible loop"

.subsections_via_symbols
