	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtounum                      ## -- Begin function strtounum
	.p2align	4, 0x90
_strtounum:                             ## @strtounum
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	$0, (%rcx)
	cmpq	%rdx, %rsi
	jg	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoumax
	movq	-48(%rbp), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_1
## %bb.3:
	cmpb	$0, (%rcx)
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	%rdx, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	%r12, %rax
	jge	LBB0_6
## %bb.5:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_6:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmpq	%rcx, (%r13)
	je	LBB0_8
## %bb.7:
	cmpq	%r15, %rax
	jle	LBB0_9
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid"

	.comm	_ERANGE,8,3                     ## @ERANGE
L_.str.1:                               ## @.str.1
	.asciz	"too small"

L_.str.2:                               ## @.str.2
	.asciz	"too large"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtounum                      ; -- Begin function strtounum
	.p2align	2
_strtounum:                             ; @strtounum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	str	xzr, [x3]
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	cmp	x1, x2
	b.gt	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	xzr, [x23]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtoumax
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.eq	LBB0_3
; %bb.2:
	ldrb	w8, [x8]
	cbz	w8, LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
LBB0_4:
	mov	x0, #0
	str	x8, [x23]
	str	x9, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	cmp	x0, x21
	b.ge	LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _ERANGE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, l_.str.1@PAGE
Lloh11:
	add	x9, x9, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_8:
	ldr	x9, [x23]
Lloh12:
	adrp	x8, _ERANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x9, x8
	ccmp	x0, x20, #0, ne
	b.le	LBB0_5
; %bb.9:
Lloh15:
	adrp	x9, l_.str.2@PAGE
Lloh16:
	add	x9, x9, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid"

	.comm	_ERANGE,8,3                     ; @ERANGE
l_.str.1:                               ; @.str.1
	.asciz	"too small"

l_.str.2:                               ; @.str.2
	.asciz	"too large"

.subsections_via_symbols
