	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readdecesc
_readdecesc:                            ## @readdecesc
	.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, %rbx
	movl	(%rdi), %edi
	callq	_lisdigit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %r14d
	addl	$-48, %r14d
	movq	%rbx, %rdi
	callq	_save_and_next
	movl	(%rbx), %edi
	callq	_lisdigit
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leal	(%r14,%r14,4), %eax
	movl	(%rbx), %ecx
	leal	(%rcx,%rax,2), %r14d
	addl	$-48, %r14d
	movq	%rbx, %rdi
	callq	_save_and_next
	movl	(%rbx), %edi
	callq	_lisdigit
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leal	(%r14,%r14,4), %eax
	movl	(%rbx), %ecx
	leal	(%rcx,%rax,2), %r14d
	addl	$-48, %r14d
	movq	%rbx, %rdi
	callq	_save_and_next
	movl	$3, %r15d
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_3:
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_5:
	movl	$2, %r15d
LBB0_7:
	movq	_UCHAR_MAX@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	(%rax), %r14d
	setle	%sil
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_esccheck
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	callq	_luaZ_buffremove
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCHAR_MAX,4,2                  ## @UCHAR_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decimal escape too large"

	.no_dead_strip	_readdecesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readdecesc
_readdecesc:                            ; @readdecesc
	.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	x19, x0
	ldr	w0, [x0]
	bl	_lisdigit
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	sub	w20, w8, #48
	mov	x0, x19
	bl	_save_and_next
	ldr	w0, [x19]
	bl	_lisdigit
	cbz	x0, LBB0_5
; %bb.2:
	mov	w21, #10
	ldr	w8, [x19]
	madd	w8, w20, w21, w8
	sub	w20, w8, #48
	mov	x0, x19
	bl	_save_and_next
	ldr	w0, [x19]
	bl	_lisdigit
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	madd	w8, w20, w21, w8
	sub	w20, w8, #48
	mov	x0, x19
	bl	_save_and_next
	mov	w21, #3
	b	LBB0_7
LBB0_4:
	mov	w21, #0
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	mov	w21, #1
	b	LBB0_7
LBB0_6:
	mov	w21, #2
LBB0_7:
Lloh0:
	adrp	x8, _UCHAR_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCHAR_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w1, le
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_esccheck
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_luaZ_buffremove
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UCHAR_MAX,4,2                  ; @UCHAR_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decimal escape too large"

	.no_dead_strip	_readdecesc
.subsections_via_symbols
