	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_numeral
_read_numeral:                          ## @read_numeral
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movsbl	(%rdi), %edi
	callq	_isdigit
	movq	%rax, %rdi
	callq	_lua_assert
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_save_and_next
	movsbl	(%rbx), %edi
	callq	_isdigit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$46, (%rbx)
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_check_next
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_check_next
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_save_and_next
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$95, (%rbx)
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_save
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_buffreplace
	movl	4(%rbx), %edi
	callq	_luaZ_buffer
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_luaO_str2d
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trydecpoint                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ee"

L_.str.1:                               ## @.str.1
	.asciz	"+-"

	.no_dead_strip	_read_numeral
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_numeral
_read_numeral:                          ; @read_numeral
	.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	x19, x1
	mov	x20, x0
	ldrsb	w0, [x0]
	bl	_isdigit
	bl	_lua_assert
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_save_and_next
	ldrsb	w0, [x20]
	bl	_isdigit
	cbnz	x0, LBB0_1
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x20]
	cmp	w8, #46
	b.eq	LBB0_1
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_check_next
	cbz	x0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_check_next
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_save_and_next
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20]
	bl	_isalnum
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20]
	cmp	w8, #95
	b.eq	LBB0_5
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_save
	ldr	w2, [x20, #8]
	mov	x0, x20
	mov	w1, #46
	bl	_buffreplace
	ldr	w0, [x20, #4]
	bl	_luaZ_buffer
	mov	x1, x19
	bl	_luaO_str2d
	cbz	w0, LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trydecpoint
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ee"

l_.str.1:                               ; @.str.1
	.asciz	"+-"

	.no_dead_strip	_read_numeral
.subsections_via_symbols
