	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaV_settable
_luaV_settable:                         ## @luaV_settable
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$100, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ttistable
	testq	%rax, %rax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_hvalue
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_luaH_set
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ttisnil
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r14), %esi
	movq	_TM_NEWINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fasttm
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TM_NEWINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_luaT_gettmbyobj
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ttisnil
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	leaq	L_.str(%rip), %rdx
	callq	_luaG_typeerror
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ttisfunction
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-76(%rbp), %r14
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_setobj
	decl	%r13d
	jne	LBB0_1
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_luaG_runerror
	jmp	LBB0_11
LBB0_4:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_setobj
	movq	$0, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_luaC_barriert
	jmp	LBB0_11
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_callTM
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TM_NEWINDEX,4,2                ## @TM_NEWINDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index"

L_.str.1:                               ## @.str.1
	.asciz	"loop in settable"

	.no_dead_strip	_luaV_settable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaV_settable
_luaV_settable:                         ; @luaV_settable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	w27, #100
Lloh0:
	adrp	x28, _TM_NEWINDEX@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TM_NEWINDEX@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ttistable
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_hvalue
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_luaH_set
	mov	x26, x0
	bl	_ttisnil
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x24, #8]
	ldr	w2, [x28]
	mov	x0, x20
	bl	_fasttm
	mov	x25, x0
	cbnz	x0, LBB0_6
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x22
	bl	_luaT_gettmbyobj
	mov	x25, x0
	bl	_ttisnil
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_luaG_typeerror
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	bl	_ttisfunction
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, sp, #12
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x25
	bl	_setobj
	subs	w27, w27, #1
	b.ne	LBB0_1
; %bb.8:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_luaG_runerror
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x26
	mov	x2, x19
	bl	_setobj
	str	xzr, [x24]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	bl	_luaC_barriert
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_callTM
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TM_NEWINDEX,4,2                ; @TM_NEWINDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index"

l_.str.1:                               ; @.str.1
	.asciz	"loop in settable"

	.no_dead_strip	_luaV_settable
.subsections_via_symbols
