	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmove
_tmove:                                 ## @tmove
	.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
	movq	%rdi, %r14
	movl	$2, %esi
	callq	_luaL_checkinteger
	movq	%rax, %r13
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_luaL_checkinteger
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_luaL_checkinteger
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_lua_isnoneornil
	xorl	%ecx, %ecx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	sete	%cl
	leal	1(,%rcx,4), %r12d
	movq	_TAB_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_checktab
	movq	_TAB_W@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_checktab
	movq	%r15, %rax
	subq	%r13, %rax
	jl	LBB0_11
## %bb.1:
	testq	%r13, %r13
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	setg	%al
	movq	_LUA_MAXINTEGER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r13, %rcx
	cmpq	%rcx, %r15
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_luaL_argcheck
	movq	_LUA_MAXINTEGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	xorl	%esi, %esi
	cmpq	%rax, %rbx
	setle	%sil
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_luaL_argcheck
	cmpq	%r15, %rbx
	jg	LBB0_5
## %bb.2:
	movq	%rbx, %rax
	subq	%r13, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.3:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.4:
	movq	_LUA_OPEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_lua_compare
	testl	%eax, %eax
	je	LBB0_5
LBB0_8:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	js	LBB0_11
## %bb.9:
	decq	%r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_lua_geti
	leaq	(%rbx,%r15), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_lua_seti
	decq	%r15
	cmpq	%r15, %r13
	jne	LBB0_10
	jmp	LBB0_11
LBB0_5:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	js	LBB0_11
## %bb.6:
	incq	%r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_lua_geti
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_lua_seti
	incq	%r13
	incq	%rbx
	cmpq	%r13, %r15
	jne	LBB0_7
LBB0_11:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_lua_pushvalue
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAB_R,4,2                      ## @TAB_R
	.comm	_TAB_W,4,2                      ## @TAB_W
	.comm	_LUA_MAXINTEGER,8,3             ## @LUA_MAXINTEGER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many elements to move"

L_.str.1:                               ## @.str.1
	.asciz	"destination wrap around"

	.comm	_LUA_OPEQ,4,2                   ## @LUA_OPEQ
	.no_dead_strip	_tmove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmove
_tmove:                                 ; @tmove
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	w1, #2
	bl	_luaL_checkinteger
	mov	x21, x0
	mov	x0, x19
	mov	w1, #3
	bl	_luaL_checkinteger
	mov	x22, x0
	mov	x0, x19
	mov	w1, #4
	bl	_luaL_checkinteger
	mov	x23, x0
	mov	w20, #5
	mov	x0, x19
	mov	w1, #5
	bl	_lua_isnoneornil
	mov	x24, x0
	cmp	w0, #0
	csinc	w20, w20, wzr, eq
Lloh0:
	adrp	x8, _TAB_R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAB_R@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_checktab
Lloh3:
	adrp	x8, _TAB_W@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TAB_W@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_checktab
	subs	x25, x22, x21
	b.lt	LBB0_11
; %bb.1:
	cmp	x21, #0
Lloh6:
	adrp	x26, _LUA_MAXINTEGER@GOTPAGE
Lloh7:
	ldr	x26, [x26, _LUA_MAXINTEGER@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x8, x8, x21
	ccmp	x22, x8, #8, le
	cset	w1, lt
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #3
	bl	_luaL_argcheck
	ldr	x8, [x26]
	sub	x8, x8, x25
	cmp	x23, x8
	cset	w1, le
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_luaL_argcheck
	cmp	x23, x22
	b.gt	LBB0_8
; %bb.2:
	subs	x26, x23, x21
	b.le	LBB0_8
; %bb.3:
	cbnz	w24, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _LUA_OPEQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LUA_OPEQ@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_lua_compare
	cbz	w0, LBB0_8
LBB0_5:
	tbnz	x25, #63, LBB0_11
; %bb.6:
	sub	x21, x21, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x22
	bl	_lua_geti
	add	x2, x26, x22
	mov	x0, x19
	mov	x1, x20
	bl	_lua_seti
	sub	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_7
	b	LBB0_11
LBB0_8:
	tbnz	x25, #63, LBB0_11
; %bb.9:
	add	x22, x22, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_lua_geti
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_lua_seti
	add	x21, x21, #1
	add	x23, x23, #1
	cmp	x22, x21
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_lua_pushvalue
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TAB_R,4,2                      ; @TAB_R
	.comm	_TAB_W,4,2                      ; @TAB_W
	.comm	_LUA_MAXINTEGER,8,3             ; @LUA_MAXINTEGER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many elements to move"

l_.str.1:                               ; @.str.1
	.asciz	"destination wrap around"

	.comm	_LUA_OPEQ,4,2                   ; @LUA_OPEQ
	.no_dead_strip	_tmove
.subsections_via_symbols
