	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GCTM
_GCTM:                                  ## @GCTM
	.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	%esi, %r14d
	movq	%rdi, %r12
	callq	_G
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_udata2finalize
	leaq	-52(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_setgcovalue
	movq	_TM_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_luaT_gettmbyobj
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ttisfunction
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	8(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$0, 8(%r12)
	movl	$0, (%r15)
	movq	(%r12), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_setobj2s
	movq	(%r12), %rsi
	incq	%rsi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	callq	_setobj2s
	movq	(%r12), %rsi
	movq	16(%r12), %rax
	leaq	2(%rsi), %rcx
	movq	%rcx, (%r12)
	movq	_CIST_FIN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	%ecx, (%rax)
	movq	_dothecall@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_savestack
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_luaD_pcall
	movl	(%r13), %ecx
	notl	%ecx
	movq	16(%r12), %rdx
	andl	%ecx, (%rdx)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%r12)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r15)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.3:
	movq	_LUA_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.4:
	movq	_LUA_ERRRUN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.5:
	movq	(%r12), %rdi
	decq	%rdi
	callq	_ttisstring
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rdi
	decq	%rdi
	callq	_svalue
	movq	%rax, %rdx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdx
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_luaO_pushfstring
	movq	_LUA_ERRGCMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_luaD_throw
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TM_GC,4,2                      ## @TM_GC
	.comm	_CIST_FIN,4,2                   ## @CIST_FIN
	.comm	_dothecall,4,2                  ## @dothecall
	.comm	_LUA_OK,4,2                     ## @LUA_OK
	.comm	_LUA_ERRRUN,4,2                 ## @LUA_ERRRUN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no message"

L_.str.1:                               ## @.str.1
	.asciz	"error in __gc metamethod (%s)"

	.comm	_LUA_ERRGCMM,4,2                ## @LUA_ERRGCMM
	.no_dead_strip	_GCTM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GCTM
_GCTM:                                  ; @GCTM
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_G
	mov	x21, x0
	bl	_udata2finalize
	mov	x2, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_setgcovalue
Lloh0:
	adrp	x8, _TM_GC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TM_GC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_luaT_gettmbyobj
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
	bl	_ttisfunction
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w23, [x19, #8]
	ldr	w24, [x21]
	str	wzr, [x19, #8]
	str	wzr, [x21]
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x22
	bl	_setobj2s
	ldr	x8, [x19]
	add	x1, x8, #1
	add	x2, sp, #12
	mov	x0, x19
	bl	_setobj2s
	ldr	x1, [x19]
	add	x8, x1, #2
	str	x8, [x19]
Lloh3:
	adrp	x25, _CIST_FIN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CIST_FIN@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _dothecall@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dothecall@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_savestack
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	w4, #0
	bl	_luaD_pcall
	ldr	w8, [x25]
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	str	w23, [x19, #8]
	str	w24, [x21]
	cbz	w20, LBB0_10
; %bb.3:
	mov	x1, x0
Lloh8:
	adrp	x8, _LUA_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LUA_OK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.4:
Lloh11:
	adrp	x8, _LUA_ERRRUN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LUA_ERRRUN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19]
	sub	x0, x8, #1
	bl	_ttisstring
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	sub	x0, x8, #1
	bl	_svalue
	mov	x2, x0
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
LBB0_8:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_luaO_pushfstring
Lloh18:
	adrp	x8, _LUA_ERRGCMM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LUA_ERRGCMM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
LBB0_9:
	mov	x0, x19
	bl	_luaD_throw
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TM_GC,4,2                      ; @TM_GC
	.comm	_CIST_FIN,4,2                   ; @CIST_FIN
	.comm	_dothecall,4,2                  ; @dothecall
	.comm	_LUA_OK,4,2                     ; @LUA_OK
	.comm	_LUA_ERRRUN,4,2                 ; @LUA_ERRRUN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no message"

l_.str.1:                               ; @.str.1
	.asciz	"error in __gc metamethod (%s)"

	.comm	_LUA_ERRGCMM,4,2                ; @LUA_ERRGCMM
	.no_dead_strip	_GCTM
.subsections_via_symbols
