	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msghandler
_msghandler:                            ## @msghandler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_lua_tostring
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_luaL_callmeta
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_type
	movq	_LUA_TSTRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_luaL_typename
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_lua_pushfstring
LBB0_4:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	$1, %ecx
	callq	_luaL_traceback
LBB0_5:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"__tostring"

	.comm	_LUA_TSTRING,8,3                ## @LUA_TSTRING
L_.str.1:                               ## @.str.1
	.asciz	"(error object is a %s value)"

	.no_dead_strip	_msghandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msghandler
_msghandler:                            ; @msghandler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #1
	bl	_lua_tostring
	mov	x2, x0
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_callmeta
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_type
Lloh2:
	adrp	x8, _LUA_TSTRING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LUA_TSTRING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_typename
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_lua_pushfstring
	mov	x2, x0
LBB0_4:
	mov	x0, x19
	mov	x1, x19
	mov	w3, #1
	bl	_luaL_traceback
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__tostring"

	.comm	_LUA_TSTRING,8,3                ; @LUA_TSTRING
l_.str.1:                               ; @.str.1
	.asciz	"(error object is a %s value)"

	.no_dead_strip	_msghandler
.subsections_via_symbols
