	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_mod                       ## -- Begin function luaV_mod
	.p2align	4, 0x90
_luaV_mod:                              ## @luaV_mod
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_l_castS2U
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_3
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_luaG_runerror
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rax
	cqto
	idivq	%r14
	movq	%rdx, %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	xorq	%r14, %rbx
	sarq	$63, %rbx
	andq	%r14, %rbx
	addq	%rbx, %rax
	jmp	LBB0_9
LBB0_7:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r14d
	movl	%edx, %eax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to perform 'n%%0'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_mod                       ; -- Begin function luaV_mod
	.p2align	2
_luaV_mod:                              ; @luaV_mod
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_l_castS2U
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_3
; %bb.1:
	cbnz	x19, LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_luaG_runerror
	b	LBB0_5
LBB0_3:
	sdiv	x8, x20, x19
	msub	x8, x8, x19, x20
	cbz	x8, LBB0_5
; %bb.4:
	eor	x9, x19, x20
	and	x9, x19, x9, asr #63
	add	x0, x8, x9
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to perform 'n%%0'"

.subsections_via_symbols
