	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_concat
_lua_concat:                            ## @lua_concat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_api_checknelems
	cmpl	$2, %ebx
	jl	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_luaC_checkGC
	movq	(%r14), %rdi
	subq	8(%r14), %rdi
	callq	_cast_int
	leaq	-1(%rax), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_luaV_concat
	decl	%ebx
	subq	%rbx, (%r14)
	jmp	LBB0_3
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_luaS_newlstr
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_setsvalue
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_api_incr_top                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_lua_concat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_concat
_lua_concat:                            ; @lua_concat
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_api_checknelems
	cmp	w20, #2
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_luaC_checkGC
	ldp	x8, x9, [x19]
	sub	x0, x8, x9
	bl	_cast_int
	sub	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_luaV_concat
	sub	w8, w20, #1
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
	cbz	w20, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x20, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_luaS_newlstr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_setsvalue
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_api_incr_top
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_lua_concat
.subsections_via_symbols
