	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checktab
_checktab:                              ## @checktab
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_lua_type
	movq	_LUA_TTABLE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lua_getmetatable
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	_TAB_R@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$2, %r12d
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_checkfield
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_9
LBB0_3:
	movl	$1, %r12d
LBB0_5:
	movq	_TAB_W@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:
	incl	%r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_checkfield
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	_TAB_L@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.8:
	incl	%r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_checkfield
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lua_pop                        ## TAILCALL
LBB0_9:
	movq	(%r13), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaL_checktype                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TTABLE,8,3                 ## @LUA_TTABLE
	.comm	_TAB_R,4,2                      ## @TAB_R
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"__index"

	.comm	_TAB_W,4,2                      ## @TAB_W
L_.str.1:                               ## @.str.1
	.asciz	"__newindex"

	.comm	_TAB_L,4,2                      ## @TAB_L
L_.str.2:                               ## @.str.2
	.asciz	"__len"

	.no_dead_strip	_checktab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checktab
_checktab:                              ; @checktab
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_lua_type
Lloh0:
	adrp	x23, _LUA_TTABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LUA_TTABLE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_getmetatable
	cbz	x0, LBB0_11
; %bb.3:
Lloh2:
	adrp	x8, _TAB_R@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TAB_R@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w22, #2
	mov	x0, x19
	mov	w2, #2
	bl	_checkfield
	cbnz	x0, LBB0_6
	b	LBB0_11
LBB0_5:
	mov	w22, #1
LBB0_6:
Lloh7:
	adrp	x8, _TAB_W@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TAB_W@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	add	w22, w22, #1
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_checkfield
	cbz	x0, LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _TAB_L@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TAB_L@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
	add	w22, w22, #1
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_checkfield
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	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	_lua_pop
LBB0_11:
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x20
	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	_luaL_checktype
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TTABLE,8,3                 ; @LUA_TTABLE
	.comm	_TAB_R,4,2                      ; @TAB_R
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__index"

	.comm	_TAB_W,4,2                      ; @TAB_W
l_.str.1:                               ; @.str.1
	.asciz	"__newindex"

	.comm	_TAB_L,4,2                      ; @TAB_L
l_.str.2:                               ; @.str.2
	.asciz	"__len"

	.no_dead_strip	_checktab
.subsections_via_symbols
