	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_number_or_range            ## -- Begin function get_number_or_range
	.p2align	4, 0x90
_get_number_or_range:                   ## @get_number_or_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpb	$45, (%rax)
	jne	LBB0_1
## %bb.9:
	cmpb	$0, _get_number_or_range.in_range(%rip)
	je	LBB0_10
## %bb.11:
	movl	_get_number_or_range.last_retval(%rip), %eax
	incl	%eax
	movl	%eax, _get_number_or_range.last_retval(%rip)
	cmpl	_get_number_or_range.end_value(%rip), %eax
	jne	LBB0_13
## %bb.12:
	movq	_get_number_or_range.end_ptr(%rip), %rax
	movq	%rax, (%rbx)
	movb	$0, _get_number_or_range.in_range(%rip)
	jmp	LBB0_13
LBB0_1:
	movq	%rbx, %rdi
	movl	$45, %esi
	callq	_get_number_trailer
	movl	%eax, _get_number_or_range.last_retval(%rip)
	movq	(%rbx), %rax
	cmpb	$45, (%rax)
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %rcx
	movq	%rcx, _get_number_or_range.end_ptr(%rip)
	movsbl	1(%rax), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_get_number_or_range.end_ptr(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	jmp	LBB0_13
LBB0_4:
	leaq	_get_number_or_range.end_ptr(%rip), %rdi
	callq	_get_number
	movl	%eax, _get_number_or_range.end_value(%rip)
	cmpl	_get_number_or_range.last_retval(%rip), %eax
	jge	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_error
	jmp	LBB0_13
LBB0_6:
	jne	LBB0_8
## %bb.7:
	movq	_get_number_or_range.end_ptr(%rip), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_13
LBB0_8:
	movb	$1, _get_number_or_range.in_range(%rip)
LBB0_13:
	movl	_get_number_or_range.last_retval(%rip), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_number_or_range.last_retval,4,2 ## @get_number_or_range.last_retval
.zerofill __DATA,__bss,_get_number_or_range.end_value,4,2 ## @get_number_or_range.end_value
.zerofill __DATA,__bss,_get_number_or_range.end_ptr,8,3 ## @get_number_or_range.end_ptr
.zerofill __DATA,__bss,_get_number_or_range.in_range,1,2 ## @get_number_or_range.in_range
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inverted range"

L_.str.1:                               ## @.str.1
	.asciz	"negative value"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_number_or_range            ; -- Begin function get_number_or_range
	.p2align	2
_get_number_or_range:                   ; @get_number_or_range
	.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	x8, [x0]
	ldrb	w8, [x8]
	adrp	x20, _get_number_or_range.last_retval@PAGE
	cmp	w8, #45
	b.ne	LBB0_4
; %bb.1:
	adrp	x8, _get_number_or_range.in_range@PAGE
	ldrb	w9, [x8, _get_number_or_range.in_range@PAGEOFF]
	tbz	w9, #0, LBB0_8
; %bb.2:
	ldr	w9, [x20, _get_number_or_range.last_retval@PAGEOFF]
	add	w9, w9, #1
	str	w9, [x20, _get_number_or_range.last_retval@PAGEOFF]
Lloh0:
	adrp	x10, _get_number_or_range.end_value@PAGE
Lloh1:
	ldr	w10, [x10, _get_number_or_range.end_value@PAGEOFF]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.3:
Lloh2:
	adrp	x9, _get_number_or_range.end_ptr@PAGE
Lloh3:
	ldr	x9, [x9, _get_number_or_range.end_ptr@PAGEOFF]
	str	x9, [x19]
	strb	wzr, [x8, _get_number_or_range.in_range@PAGEOFF]
	b	LBB0_14
LBB0_4:
	mov	x0, x19
	mov	w1, #45
	bl	_get_number_trailer
	str	w0, [x20, _get_number_or_range.last_retval@PAGEOFF]
	ldr	x8, [x19]
	ldrb	w9, [x8]
	cmp	w9, #45
	b.ne	LBB0_14
; %bb.5:
	add	x9, x8, #1
	adrp	x21, _get_number_or_range.end_ptr@PAGE
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x9, [x21, _get_number_or_range.end_ptr@PAGEOFF]
	ldrsb	w0, [x8, #1]
	bl	_isspace
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, _get_number_or_range.end_ptr@PAGEOFF]
	add	x9, x8, #1
	b	LBB0_6
LBB0_8:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_14
LBB0_9:
Lloh6:
	adrp	x0, _get_number_or_range.end_ptr@PAGE
Lloh7:
	add	x0, x0, _get_number_or_range.end_ptr@PAGEOFF
	bl	_get_number
	adrp	x8, _get_number_or_range.end_value@PAGE
	str	w0, [x8, _get_number_or_range.end_value@PAGEOFF]
	ldr	w8, [x20, _get_number_or_range.last_retval@PAGEOFF]
	cmp	w0, w8
	b.ge	LBB0_11
; %bb.10:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	b	LBB0_14
LBB0_11:
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x21, _get_number_or_range.end_ptr@PAGEOFF]
	str	x8, [x19]
	b	LBB0_14
LBB0_13:
	mov	w8, #1
	adrp	x9, _get_number_or_range.in_range@PAGE
	strb	w8, [x9, _get_number_or_range.in_range@PAGEOFF]
LBB0_14:
	ldr	w0, [x20, _get_number_or_range.last_retval@PAGEOFF]
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_number_or_range.last_retval,4,2 ; @get_number_or_range.last_retval
.zerofill __DATA,__bss,_get_number_or_range.end_value,4,2 ; @get_number_or_range.end_value
.zerofill __DATA,__bss,_get_number_or_range.end_ptr,8,3 ; @get_number_or_range.end_ptr
.zerofill __DATA,__bss,_get_number_or_range.in_range,1,2 ; @get_number_or_range.in_range
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inverted range"

l_.str.1:                               ; @.str.1
	.asciz	"negative value"

.subsections_via_symbols
