	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaT_callTM                    ## -- Begin function luaT_callTM
	.p2align	4, 0x90
_luaT_callTM:                           ## @luaT_callTM
	.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
	movl	%r9d, %r14d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %rsi
	callq	_savestack
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_setobj2s
	leaq	1(%r12), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_setobj2s
	leaq	2(%r12), %rsi
	movq	%rbx, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_setobj2s
	movq	(%rbx), %rax
	leaq	3(%rax), %rsi
	movq	%rsi, (%rbx)
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	addq	$4, %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_setobj2s
LBB0_2:
	movl	8(%rbx), %edi
	callq	_isLua
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_luaD_call
	testl	%r14d, %r14d
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_restorestack
	movq	(%rbx), %rdx
	decq	%rdx
	movq	%rdx, (%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setobjs2s                      ## TAILCALL
LBB0_4:
	callq	_luaD_callnoyield
	testl	%r14d, %r14d
	jne	LBB0_7
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaT_callTM                    ; -- Begin function luaT_callTM
	.p2align	2
_luaT_callTM:                           ; @luaT_callTM
	.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	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
	mov	x1, x4
	bl	_savestack
	mov	x21, x0
	ldr	x22, [x19]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	bl	_setobj2s
	add	x1, x22, #1
	mov	x0, x19
	mov	x2, x25
	bl	_setobj2s
	add	x1, x22, #2
	mov	x0, x19
	mov	x2, x24
	bl	_setobj2s
	ldr	x8, [x19]
	add	x1, x8, #3
	str	x1, [x19]
	cbnz	w20, LBB0_2
; %bb.1:
	add	x8, x8, #4
	str	x8, [x19]
	mov	x0, x19
	mov	x2, x23
	bl	_setobj2s
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_isLua
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_luaD_call
	cbz	w20, LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_restorestack
	mov	x1, x0
	ldr	x8, [x19]
	sub	x2, x8, #1
	str	x2, [x19]
	mov	x0, x19
	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
	b	_setobjs2s
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_luaD_callnoyield
	cbnz	w20, LBB0_4
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
