	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaS_init                      ## -- Begin function luaS_init
	.p2align	4, 0x90
_luaS_init:                             ## @luaS_init
	.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
	movq	%rdi, %r14
	callq	_G
	movq	%rax, %rbx
	movq	_MINSTRTABSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_luaS_resize
	movq	_MEMERRMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_luaS_newliteral
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_obj2gco
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_luaC_fix
	movq	_STRCACHE_N@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	testl	%edi, %edi
	jle	LBB0_7
## %bb.1:
	movq	_STRCACHE_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	%edi, %rax
	cmpq	%rax, %rdx
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%esi, %esi
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%rdx,8), %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %esi
	movl	%esi, (%rdi,%rax,4)
	incq	%rax
	movslq	(%rcx), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %edi
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MINSTRTABSIZE,4,2              ## @MINSTRTABSIZE
	.comm	_MEMERRMSG,4,2                  ## @MEMERRMSG
	.comm	_STRCACHE_N,4,2                 ## @STRCACHE_N
	.comm	_STRCACHE_M,4,2                 ## @STRCACHE_M
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaS_init                      ; -- Begin function luaS_init
	.p2align	2
_luaS_init:                             ; @luaS_init
	.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, x0
	bl	_G
	mov	x19, x0
Lloh0:
	adrp	x8, _MINSTRTABSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINSTRTABSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_luaS_resize
Lloh3:
	adrp	x8, _MEMERRMSG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMERRMSG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_luaS_newliteral
	str	w0, [x19]
	bl	_obj2gco
	mov	x1, x0
	mov	x0, x20
	bl	_luaC_fix
Lloh6:
	adrp	x8, _STRCACHE_N@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRCACHE_N@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x9, #0
Lloh8:
	adrp	x10, _STRCACHE_M@GOTPAGE
Lloh9:
	ldr	x10, [x10, _STRCACHE_M@GOTPAGEOFF]
	ldr	w12, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, w11, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	ldr	x12, [x19, #8]
	ldr	x13, [x12, x9, lsl #3]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x19]
	str	w12, [x13, x11, lsl #2]
	add	x11, x11, #1
	ldrsw	x12, [x10]
	cmp	x11, x12
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x8]
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MINSTRTABSIZE,4,2              ; @MINSTRTABSIZE
	.comm	_MEMERRMSG,4,2                  ; @MEMERRMSG
	.comm	_STRCACHE_N,4,2                 ; @STRCACHE_N
	.comm	_STRCACHE_M,4,2                 ; @STRCACHE_M
.subsections_via_symbols
