	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_number
_read_number:                           ## @read_number
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)
	movq	$0, -80(%rbp)
	xorl	%eax, %eax
	callq	_lua_getlocaledecpoint
	movb	%al, -42(%rbp)
	movb	$46, -41(%rbp)
	movq	%r15, %rdi
	callq	_l_lockfile
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_l_getc
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	%ebx, -56(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_test2
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_test2
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_test2
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r12b
	sete	%r14b
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r15
	cmoveq	%rax, %r15
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
	leaq	L_.str.4(%rip), %r15
	xorl	%r12d, %r12d
LBB0_5:
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_readdigits
	movq	%rax, %rbx
	addq	%r14, %rbx
	leaq	-42(%rbp), %rsi
	movq	%r13, %rdi
	callq	_test2
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-80(%rbp), %rdi
	movl	%r12d, %esi
	callq	_readdigits
	addq	%rax, %rbx
LBB0_7:
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.8:
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	callq	_test2
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_test2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_readdigits
LBB0_10:
	movl	-56(%rbp), %edi
	movq	-64(%rbp), %rsi
	callq	_ungetc
	movq	-64(%rbp), %rdi
	callq	_l_unlockfile
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rcx
	movb	$0, (%rcx,%rax)
	movq	-72(%rbp), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_lua_stringtonumber
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_lua_pushnil
	xorl	%eax, %eax
LBB0_12:
	addq	$56, %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	"-+"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"pP"

L_.str.4:                               ## @.str.4
	.asciz	"eE"

	.no_dead_strip	_read_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_number
_read_number:                           ; @read_number
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	str	x1, [sp, #32]
	str	xzr, [sp, #16]
	bl	_lua_getlocaledecpoint
	strb	w0, [sp, #14]
	mov	w8, #46
	strb	w8, [sp, #15]
	mov	x0, x20
	bl	_l_lockfile
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_l_getc
	mov	x21, x0
	bl	_isspace
	cbnz	x0, LBB0_1
; %bb.2:
	str	w21, [sp, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_test2
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_test2
Lloh4:
	adrp	x20, l_.str.4@PAGE
Lloh5:
	add	x20, x20, l_.str.4@PAGEOFF
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	bl	_test2
Lloh8:
	adrp	x8, l_.str.3@PAGE
Lloh9:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x20, x20, x8, eq
	cset	w21, ne
	cset	w22, eq
	b	LBB0_5
LBB0_4:
	mov	x22, #0
	mov	w21, #0
LBB0_5:
	add	x0, sp, #16
	mov	x1, x21
	bl	_readdigits
	add	x22, x0, x22
	add	x0, sp, #16
	add	x1, sp, #14
	bl	_test2
	cbz	x0, LBB0_7
; %bb.6:
	add	x0, sp, #16
	mov	x1, x21
	bl	_readdigits
	add	x22, x0, x22
LBB0_7:
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.8:
	add	x0, sp, #16
	mov	x1, x20
	bl	_test2
	cbz	x0, LBB0_10
; %bb.9:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_test2
	add	x0, sp, #16
	mov	w1, #0
	bl	_readdigits
LBB0_10:
	ldr	w0, [sp, #40]
	ldr	x1, [sp, #32]
	bl	_ungetc
	ldr	x0, [sp, #32]
	bl	_l_unlockfile
	ldp	x9, x8, [sp, #16]
	strb	wzr, [x8, x9]
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_lua_stringtonumber
	cbz	x0, LBB0_12
; %bb.11:
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_lua_pushnil
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-+"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"pP"

l_.str.4:                               ; @.str.4
	.asciz	"eE"

	.no_dead_strip	_read_number
.subsections_via_symbols
