	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tconcat
_tconcat:                               ## @tconcat
	.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, %r15
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movl	$2, %esi
	callq	_luaL_optlstring
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$5, %edx
	callq	_luaL_checktype
	movq	%r15, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_luaL_optint
	movl	%eax, %ebx
	movq	_luaL_checkint@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_luaL_getn
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	movl	%eax, %ecx
	callq	_luaL_opt
	movl	%eax, %r12d
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_luaL_buffinit
	cmpl	%r12d, %ebx
	jge	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_addfield
	movq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_luaL_addlstring
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	jne	LBB0_5
LBB0_4:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_addfield
LBB0_5:
	leaq	-44(%rbp), %rdi
	callq	_luaL_pushresult
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_luaL_checkint,4,2              ## @luaL_checkint
	.no_dead_strip	_tconcat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tconcat
_tconcat:                               ; @tconcat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, sp
	mov	w1, #2
	bl	_luaL_optlstring
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1
	mov	w2, #5
	bl	_luaL_checktype
	mov	x0, x19
	mov	w1, #3
	mov	w2, #1
	bl	_luaL_optint
	mov	x21, x0
Lloh2:
	adrp	x8, _luaL_checkint@GOTPAGE
Lloh3:
	ldr	x8, [x8, _luaL_checkint@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_getn
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4
	bl	_luaL_opt
	mov	x22, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_luaL_buffinit
	cmp	w21, w22
	b.ge	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x21
	bl	_addfield
	ldr	x2, [sp]
	add	x0, sp, #12
	mov	x1, x20
	bl	_luaL_addlstring
	add	w21, w21, #1
	cmp	w22, w21
	b.ne	LBB0_1
	b	LBB0_3
LBB0_2:
	b.ne	LBB0_4
LBB0_3:
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x22
	bl	_addfield
LBB0_4:
	add	x0, sp, #12
	bl	_luaL_pushresult
	mov	w0, #1
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_luaL_checkint,4,2              ; @luaL_checkint
	.no_dead_strip	_tconcat
.subsections_via_symbols
