	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaG_errormsg
_luaG_errormsg:                         ## @luaG_errormsg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_restorestack
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ttisfunction
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_luaD_throw
LBB0_3:
	movq	8(%rbx), %rsi
	leaq	-1(%rsi), %rdx
	movq	%rbx, %rdi
	callq	_setobj
	movq	8(%rbx), %rsi
	decq	%rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_setobj
	movq	%rbx, %rdi
	callq	_incr_top
	movq	8(%rbx), %rsi
	addq	$-2, %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_luaD_call
LBB0_4:
	movq	%rbx, %rdi
	movl	$2, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_luaD_throw                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_luaG_errormsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaG_errormsg
_luaG_errormsg:                         ; @luaG_errormsg
	.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
	ldr	x1, [x0]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_restorestack
	mov	x20, x0
	bl	_ttisfunction
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #5
	bl	_luaD_throw
LBB0_3:
	ldr	x1, [x19, #8]
	sub	x2, x1, #1
	mov	x0, x19
	bl	_setobj
	ldr	x8, [x19, #8]
	sub	x1, x8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_setobj
	mov	x0, x19
	bl	_incr_top
	ldr	x8, [x19, #8]
	sub	x1, x8, #2
	mov	x0, x19
	mov	w2, #1
	bl	_luaD_call
LBB0_4:
	mov	x0, x19
	mov	w1, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_luaD_throw
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_luaG_errormsg
.subsections_via_symbols
