	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_getmetatable
_lua_getmetatable:                      ## @lua_getmetatable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_index2adr
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ttype
	cmpq	$7, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$5, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_hvalue
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_uvalue
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_G
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_ttype
	leaq	(%r15,%rax,8), %rax
LBB0_5:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_sethvalue
	movq	%r14, %rdi
	callq	_api_incr_top
	movl	$1, %eax
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lua_getmetatable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_getmetatable
_lua_getmetatable:                      ; @lua_getmetatable
	.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, x0
	bl	_index2adr
	mov	x20, x0
	bl	_ttype
	cmp	x0, #7
	b.eq	LBB0_3
; %bb.1:
	cmp	x0, #5
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_hvalue
	ldr	x2, [x0]
	cbnz	x2, LBB0_4
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_uvalue
	ldr	x2, [x0]
	cbz	x2, LBB0_6
LBB0_4:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_sethvalue
	mov	x0, x19
	bl	_api_incr_top
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_G
	ldr	x21, [x0]
	mov	x0, x20
	bl	_ttype
	add	x0, x21, x0, lsl #3
	ldr	x2, [x0]
	cbnz	x2, LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lua_getmetatable
.subsections_via_symbols
