	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_concat                    ## -- Begin function luaV_concat
	.p2align	4, 0x90
_luaV_concat:                           ## @luaV_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	cmpl	$2, %esi
	setge	%dil
	callq	_lua_assert
	movl	(%r14), %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	leal	-2(%r13), %r15d
	movl	%r15d, %edi
	callq	_ttisstring
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	callq	_cvt2str
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%r13), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_tostring
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_isemptystr
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_tostring
	movq	%rax, %rdi
	callq	_cast_void
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	callq	_isemptystr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_setobjs2s
	jmp	LBB0_3
LBB0_1:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%r13d
	movl	%r13d, %ebx
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_TM_CONCAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_luaT_trybinTM
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$2, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%ebx
	subl	%ebx, %r12d
	movl	(%r14), %r13d
	subl	%ebx, %r13d
	movl	%r13d, (%r14)
	cmpl	$1, %r12d
	jg	LBB0_5
	jmp	LBB0_23
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_vslen
	movq	%rax, %r14
	movl	$1, %ebx
	cmpl	$2, %r12d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jl	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	addq	%r12, %r14
	incl	%ebx
	decl	%r15d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	cmpl	%ebx, %r12d
	je	LBB0_18
LBB0_15:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_tostring
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	%r15d, %edi
	callq	_vslen
	movq	%rax, %r12
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%r14, %rax
	cmpq	%rax, %r12
	jb	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_luaG_runerror
	jmp	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %ebx
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_LUAI_MAXSHORTLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	jbe	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_luaS_createlngstrobj
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_getstr
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_copy2buff
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_copy2buff
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_luaS_newlstr
	movq	%rax, %r14
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	subl	%ebx, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_setsvalue2s
	movq	%r15, %r14
	jmp	LBB0_4
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TM_CONCAT,4,2                  ## @TM_CONCAT
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"string length overflow"

	.comm	_LUAI_MAXSHORTLEN,8,3           ## @LUAI_MAXSHORTLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_concat                    ; -- Begin function luaV_concat
	.p2align	2
_luaV_concat:                           ; @luaV_concat
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cmp	w1, #1
	cset	w0, gt
	bl	_lua_assert
	ldr	w22, [x20]
Lloh3:
	adrp	x27, _TM_CONCAT@GOTPAGE
Lloh4:
	ldr	x27, [x27, _TM_CONCAT@GOTPAGEOFF]
Lloh5:
	adrp	x28, _MAX_SIZE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _MAX_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	sub	w24, w22, #2
	mov	x0, x24
	bl	_ttisstring
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_cvt2str
	cbz	x0, LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	w23, w22, #1
	mov	x0, x20
	mov	x1, x23
	bl	_tostring
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_isemptystr
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_tostring
	bl	_cast_void
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_isemptystr
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_setobjs2s
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	w23, w22, #1
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w4, [x27]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x24
	bl	_luaT_trybinTM
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w23, #2
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w23, #1
	sub	w19, w19, w8
	ldr	w9, [x20]
	sub	w22, w9, w8
	str	w22, [x20]
	cmp	w19, #1
	b.gt	LBB0_1
	b	LBB0_22
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_vslen
	mov	x25, x0
	mov	w23, #1
	cmp	w19, #2
	b.ge	LBB0_14
	b	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x25, x26, x25
	add	w23, w23, #1
	sub	w24, w24, #1
	cmp	w19, w23
	b.eq	LBB0_17
LBB0_14:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x24
	bl	_tostring
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x24
	bl	_vslen
	mov	x26, x0
	ldrsw	x8, [x28]
	sub	x8, x8, x25
	cmp	x0, x8
	b.lo	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_luaG_runerror
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x19
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh9:
	adrp	x8, _LUAI_MAXSHORTLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LUAI_MAXSHORTLEN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ls	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_luaS_createlngstrobj
	mov	x24, x0
	bl	_getstr
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_copy2buff
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, sp
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_copy2buff
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_luaS_newlstr
	mov	x24, x0
	mov	sp, x26
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w1, w22, w23
	mov	x0, x20
	mov	x2, x24
	bl	_setsvalue2s
	b	LBB0_11
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TM_CONCAT,4,2                  ; @TM_CONCAT
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"string length overflow"

	.comm	_LUAI_MAXSHORTLEN,8,3           ; @LUAI_MAXSHORTLEN
.subsections_via_symbols
