	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jointable
_jointable:                             ## @jointable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_lua_getfenv
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_lua_objlen
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	$-2, %esi
	callq	_lua_getfenv
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$-2, %esi
	movl	$-1, %edx
	callq	_lua_equal
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_lua_pop
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_lua_objlen
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movl	%eax, %r15d
	leal	(%r15,%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_lua_createtable
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.7:
	movl	%r15d, %r13d
	negl	%r13d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$-2, %esi
	movl	%ebx, %edx
	callq	_lua_rawgeti
	movq	%r12, %rdi
	movl	$-2, %esi
	movl	%ebx, %edx
	callq	_lua_rawseti
	leal	(%rbx,%r13), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	jne	LBB0_8
LBB0_9:
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.10:
	negl	%r14d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$-3, %esi
	movl	%ebx, %edx
	callq	_lua_rawgeti
	leal	(%r15,%rbx), %edx
	movq	%r12, %rdi
	movl	$-2, %esi
	callq	_lua_rawseti
	leal	(%r14,%rbx), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	jne	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	movl	$-4, %esi
	callq	_lua_setfenv
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_lua_pop
	jmp	LBB0_4
LBB0_13:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%r12, %rdi
	movl	$-2, %esi
	callq	_lua_setfenv
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_jointable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jointable
_jointable:                             ; @jointable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_lua_getfenv
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_objlen
	mov	x20, x0
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_getfenv
	cbz	w20, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #-2
	mov	w2, #-1
	bl	_lua_equal
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x19
	mov	w1, #2
	bl	_lua_pop
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_objlen
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.5:
	add	w1, w21, w20
	mov	x0, x19
	mov	w2, #0
	bl	_lua_createtable
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	mov	x0, x19
	mov	w1, #-2
	mov	x2, x22
	bl	_lua_rawgeti
	mov	x0, x19
	mov	w1, #-2
	mov	x2, x22
	bl	_lua_rawseti
	cmp	w21, w22
	b.ne	LBB0_7
LBB0_8:
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.9:
	mov	w24, #0
	add	w23, w21, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w22, w24, #1
	mov	x0, x19
	mov	w1, #-3
	mov	x2, x22
	bl	_lua_rawgeti
	add	w2, w23, w24
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_rawseti
	mov	x24, x22
	cmp	w20, w22
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	mov	w1, #-4
	bl	_lua_setfenv
	mov	x0, x19
	mov	w1, #2
	bl	_lua_pop
	b	LBB0_3
LBB0_12:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setfenv
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_jointable
.subsections_via_symbols
