	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaV_concat
_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_tostring
	movl	$2, %r13d
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	decl	%r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%r13d, %eax
	subl	%r13d, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$1, %eax
	jle	LBB0_21
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movl	(%r15), %r13d
	leal	(%rbx,%r13), %r14d
	leal	(%rbx,%r13), %r12d
	decl	%r12d
	movl	%r12d, %edi
	callq	_ttisstring
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %edi
	callq	_ttisnumber
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_tostring
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_tsvalue
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_tsvalue
	movq	(%rax), %r12
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rbx,%r13), %r15d
	decl	%r15d
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	addq	%rbx, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	decl	%r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_1 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_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	%r15d, %edi
	callq	_tsvalue
	movq	(%rax), %rbx
	movq	$-3, %rax
	subq	%r12, %rax
	cmpq	%rax, %rbx
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_luaG_runerror
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TM_CONCAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_call_binTM
	movl	$2, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_luaG_concaterror
	jmp	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rbx,%r13), %eax
	incl	%eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_G
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_luaZ_openspace
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r13d
	subl	%eax, %r14d
	incl	%r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %r12
	movl	%r14d, %edi
	callq	_tsvalue
	movq	(%rax), %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r15
	movl	%r14d, %edi
	callq	_svalue
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%r12, %rbx
	decl	%r13d
	incl	%r14d
	cmpl	$1, %r13d
	jg	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	subl	%r13d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_luaS_newlstr
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_setsvalue
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TM_CONCAT,4,2                  ## @TM_CONCAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"string length overflow"

	.no_dead_strip	_luaV_concat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaV_concat
_luaV_concat:                           ; @luaV_concat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x28, #-3
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_tostring
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #2
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w20, #1
	sub	w22, w22, w8
	sub	w19, w19, w8
	cmp	w22, #1
	b.le	LBB0_21
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w26, [x21]
	add	w23, w26, w19
	sub	w24, w23, #1
	mov	x0, x24
	bl	_ttisstring
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_ttisnumber
	cbz	x0, LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_tostring
	cbz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_tsvalue
	ldr	x8, [x0]
	cbz	x8, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_tsvalue
	ldr	x24, [x0]
	cmp	w22, #2
	b.lt	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w19, w26
	sub	w25, w8, #1
	mov	w20, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x24, x27, x24
	add	w20, w20, #1
	sub	w25, w25, #1
	cmp	w22, w20
	b.eq	LBB0_17
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x25
	bl	_tostring
	cbz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x25
	bl	_tsvalue
	ldr	x27, [x0]
	sub	x8, x28, x24
	cmp	x27, x8
	b.lo	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x21
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_luaG_runerror
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x8, _TM_CONCAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TM_CONCAT@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	mov	x3, x24
	bl	_call_binTM
	cbnz	w0, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_luaG_concaterror
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x22
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w23, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	_G
	mov	x1, x0
	mov	x0, x21
	mov	x2, x24
	bl	_luaZ_openspace
	mov	x24, x0
	mov	x23, #0
	add	w28, w20, #1
	add	w8, w19, w26
	sub	w8, w8, w20
	add	w25, w8, #1
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	bl	_tsvalue
	ldr	x26, [x0]
	add	x27, x24, x23
	mov	x0, x25
	bl	_svalue
	mov	x1, x0
	mov	x0, x27
	mov	x2, x26
	bl	_memcpy
	add	x23, x26, x23
	sub	w28, w28, #1
	add	w25, w25, #1
	cmp	w28, #1
	b.gt	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w25, w8, w20
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_luaS_newlstr
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_setsvalue
	mov	x28, #-3
	b	LBB0_3
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TM_CONCAT,4,2                  ; @TM_CONCAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"string length overflow"

	.no_dead_strip	_luaV_concat
.subsections_via_symbols
