	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str_char
_str_char:                              ## @str_char
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_lua_gettop
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_luaL_buffinitsize
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	incl	%r13d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_luaL_checkinteger
	movsbl	%al, %r14d
	movl	%r14d, %edi
	callq	_uchar
	xorl	%esi, %esi
	cmpb	%r14b, %al
	sete	%sil
	movq	%r12, %rdi
	movl	%ebx, %edx
	leaq	L_.str(%rip), %rcx
	callq	_luaL_argcheck
	movl	%r14d, %edi
	callq	_uchar
	movb	%al, -1(%r15,%rbx)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_luaL_pushresultsize
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"value out of range"

	.no_dead_strip	_str_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_char
_str_char:                              ; @str_char
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_lua_gettop
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_luaL_buffinitsize
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x25, #0
	add	w8, w20, #1
	sub	x26, x8, #1
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x25, #1
	mov	x0, x19
	mov	x1, x23
	bl	_luaL_checkinteger
	mov	x24, x0
	bl	_uchar
	cmp	w0, w24
	cset	w1, eq
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	bl	_luaL_argcheck
	mov	x0, x24
	bl	_uchar
	strb	w0, [x21, x25]
	mov	x25, x23
	cmp	x26, x23
	b.ne	LBB0_2
LBB0_3:
	add	x0, sp, #12
	mov	x1, x20
	bl	_luaL_pushresultsize
	mov	w0, #1
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value out of range"

	.no_dead_strip	_str_char
.subsections_via_symbols
