	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaD_throw
_luaD_throw:                            ## @luaD_throw
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.4:
	movl	%r14d, (%rsi)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_LUAI_THROW                     ## TAILCALL
LBB0_1:
	movl	%r14d, %edi
	callq	_cast_byte
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_G
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_resetstack
	movq	%rbx, %rdi
	callq	_G
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_luaD_throw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaD_throw
_luaD_throw:                            ; @luaD_throw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	str	w1, [x8]
	mov	x1, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_LUAI_THROW
LBB0_2:
	mov	x19, x0
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x1
	bl	_cast_byte
	str	w0, [x19]
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x0, x19
	bl	_G
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_resetstack
	mov	x0, x19
	bl	_G
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
LBB0_4:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_luaD_throw
.subsections_via_symbols
