	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function internshrstr
_internshrstr:                          ## @internshrstr
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_G
	movq	%rax, %r14
	movl	16(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_luaS_hash
	movq	8(%r14), %r12
	movl	(%r14), %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_lmod
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_lua_assert
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12,%r13,8), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %r12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rbx, (%r12)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_getstr
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_isdead
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	callq	_changewhite
	jmp	LBB0_11
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,8), %r13
	movl	(%r14), %esi
	cmpl	%esi, 4(%r14)
	jl	LBB0_10
## %bb.8:
	movq	_MAX_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %esi
	jg	LBB0_10
## %bb.9:
	addl	%esi, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_luaS_resize
	movq	8(%r14), %r12
	movl	(%r14), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_lmod
	leaq	(%r12,%rax,8), %r13
LBB0_10:
	movq	_LUA_TSHRSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_createstrobj
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_getstr
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_cast_byte
	movq	%rax, (%r12)
	movq	(%r13), %rax
	movq	%rax, 8(%r12)
	movq	%r12, (%r13)
	incl	4(%r14)
LBB0_11:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INT,4,2                    ## @MAX_INT
	.comm	_LUA_TSHRSTR,4,2                ## @LUA_TSHRSTR
	.no_dead_strip	_internshrstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function internshrstr
_internshrstr:                          ; @internshrstr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_G
	mov	x19, x0
	ldr	w2, [x0, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_luaS_hash
	mov	x23, x0
	ldr	x24, [x19, #8]
	ldr	w1, [x19]
	bl	_lmod
	add	x25, x24, x0, lsl #3
	cmp	x21, #0
	cset	w0, ne
	bl	_lua_assert
	ldr	x24, [x25]
	cbnz	x24, LBB0_7
LBB0_1:
	ldp	w8, w9, [x19]
	cmp	w9, w8
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _MAX_INT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_INT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	b.gt	LBB0_4
; %bb.3:
	lsl	w1, w8, #1
	mov	x0, x22
	bl	_luaS_resize
	ldr	x24, [x19, #8]
	ldr	w1, [x19]
	mov	x0, x23
	bl	_lmod
	add	x25, x24, x0, lsl #3
LBB0_4:
Lloh3:
	adrp	x8, _LUA_TSHRSTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUA_TSHRSTR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x3, x23
	bl	_createstrobj
	mov	x24, x0
	bl	_getstr
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	x0, x20
	bl	_cast_byte
	ldr	x8, [x25]
	stp	x0, x8, [x24]
	str	x24, [x25]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_getstr
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_memcmp
	cbnz	x0, LBB0_6
; %bb.9:
	mov	x0, x19
	mov	x1, x24
	bl	_isdead
	cbz	x0, LBB0_5
; %bb.10:
	mov	x0, x24
	bl	_changewhite
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INT,4,2                    ; @MAX_INT
	.comm	_LUA_TSHRSTR,4,2                ; @LUA_TSHRSTR
	.no_dead_strip	_internshrstr
.subsections_via_symbols
