	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movl	%r15d, %edi
	callq	_lisdigit
	movl	%eax, %edi
	callq	_lua_assert
	movq	%rbx, %rdi
	callq	_save_and_next
	cmpl	$48, %r15d
	jne	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_check_next2
	testq	%rax, %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.2(%rip), %r15
	cmoveq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %r15
LBB0_3:
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_save_and_next
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_check_next2
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_check_next2
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	callq	_lisxdigit
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$46, (%rbx)
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_save
	movl	4(%rbx), %edi
	callq	_luaZ_buffer
	leaq	-36(%rbp), %rsi
	movl	%eax, %edi
	callq	_luaO_str2num
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_TK_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lexerror
LBB0_11:
	leaq	-36(%rbp), %rdi
	callq	_ttisinteger
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	-36(%rbp), %rdi
	callq	_ivalue
	movl	%eax, 4(%r14)
	movq	_TK_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ttisfloat
	movl	%eax, %edi
	callq	_lua_assert
	movq	%rbx, %rdi
	callq	_fltvalue
	movl	%eax, (%r14)
	movq	_TK_FLT@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ee"

L_.str.1:                               ## @.str.1
	.asciz	"xX"

L_.str.2:                               ## @.str.2
	.asciz	"Pp"

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

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

	.comm	_TK_FLT,4,2                     ## @TK_FLT
	.comm	_TK_INT,4,2                     ## @TK_INT
	.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:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	ldr	w22, [x0]
	mov	x0, x22
	bl	_lisdigit
	bl	_lua_assert
	mov	x0, x20
	bl	_save_and_next
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	cmp	w22, #48
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_check_next2
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x21, x21, x8, eq
LBB0_2:
Lloh6:
	adrp	x22, l_.str.3@PAGE
Lloh7:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_save_and_next
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_check_next2
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_check_next2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_lisxdigit
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cmp	w8, #46
	b.eq	LBB0_3
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_save
	ldr	w0, [x20, #4]
	bl	_luaZ_buffer
	add	x1, sp, #12
	bl	_luaO_str2num
	cbnz	x0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _TK_FLT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TK_FLT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_lexerror
LBB0_10:
	add	x0, sp, #12
	bl	_ttisinteger
	cbz	x0, LBB0_12
; %bb.11:
	add	x0, sp, #12
	bl	_ivalue
	str	w0, [x19, #4]
Lloh13:
	adrp	x8, _TK_INT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TK_INT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	add	x0, sp, #12
	bl	_ttisfloat
	bl	_lua_assert
	add	x0, sp, #12
	bl	_fltvalue
	str	w0, [x19]
Lloh15:
	adrp	x8, _TK_FLT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TK_FLT@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ee"

l_.str.1:                               ; @.str.1
	.asciz	"xX"

l_.str.2:                               ; @.str.2
	.asciz	"Pp"

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

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

	.comm	_TK_FLT,4,2                     ; @TK_FLT
	.comm	_TK_INT,4,2                     ; @TK_INT
	.no_dead_strip	_read_numeral
.subsections_via_symbols
