	.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
	.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	_TK_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_luaX_lexerror                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ee"

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

L_.str.2:                               ## @.str.2
	.asciz	"malformed number"

	.comm	_TK_NUMBER,4,2                  ## @TK_NUMBER
	.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	x20, x1
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_save_and_next
	ldrsb	w0, [x19]
	bl	_isdigit
	cbnz	x0, LBB0_1
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x19]
	cmp	w8, #46
	b.eq	LBB0_1
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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, x19
	bl	_check_next
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_save_and_next
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19]
	bl	_isalnum
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x19]
	cmp	w8, #95
	b.eq	LBB0_5
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_save
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #46
	bl	_buffreplace
	ldr	w0, [x19, #4]
	bl	_luaZ_buffer
	mov	x1, x20
	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:
Lloh4:
	adrp	x8, _TK_NUMBER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TK_NUMBER@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_luaX_lexerror
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ee"

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

l_.str.2:                               ; @.str.2
	.asciz	"malformed number"

	.comm	_TK_NUMBER,4,2                  ; @TK_NUMBER
	.no_dead_strip	_read_numeral
.subsections_via_symbols
