	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaX_newstring                 ## -- Begin function luaX_newstring
	.p2align	4, 0x90
_luaX_newstring:                        ## @luaX_newstring
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_luaS_newlstr
	movq	%rax, %r14
	movq	(%rbx), %rsi
	leaq	1(%rsi), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	callq	_setsvalue2s
	movl	(%r15), %esi
	movq	(%rbx), %rdx
	decq	%rdx
	movq	%rbx, %rdi
	callq	_luaH_set
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ttisnil
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	_setbvalue
	movq	%rbx, %rdi
	callq	_luaC_checkGC
	jmp	LBB0_3
LBB0_2:
	callq	_keyfromval
	movl	%eax, %edi
	callq	_tsvalue
	movq	%rax, %r14
LBB0_3:
	decq	(%rbx)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaX_newstring                 ; -- Begin function luaX_newstring
	.p2align	2
_luaX_newstring:                        ; @luaX_newstring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_luaS_newlstr
	mov	x20, x0
	ldr	x1, [x19]
	add	x8, x1, #1
	str	x8, [x19]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_setsvalue2s
	ldr	w1, [x21]
	ldr	x8, [x19]
	sub	x2, x8, #1
	mov	x0, x19
	bl	_luaH_set
	mov	x21, x0
	bl	_ttisnil
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #1
	bl	_setbvalue
	mov	x0, x19
	bl	_luaC_checkGC
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_keyfromval
	bl	_tsvalue
	mov	x20, x0
LBB0_3:
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
