	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function numfromstr
_numfromstr:                            ## @numfromstr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %r9b
	testb	%r9b, %r9b
	je	LBB0_8
## %bb.1:
	incq	%rdi
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-58(%r9), %eax
	cmpb	$-10, %al
	jb	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%r9b, %r9d
	leal	(%r8,%r8,4), %eax
	leal	(%r9,%rax,2), %eax
	addl	$-48, %eax
	cmpl	%eax, %r8d
	jg	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%edx, %eax
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rdi), %r9d
	incq	%rdi
	movl	%eax, %r8d
	testb	%r9b, %r9b
	jne	LBB0_2
## %bb.6:
	cmpl	%esi, %eax
	jge	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_numfromstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function numfromstr
_numfromstr:                            ; @numfromstr
	.cfi_startproc
; %bb.0:
	ldrb	w10, [x0]
	cbz	w10, LBB0_6
; %bb.1:
	mov	w11, #0
	add	x8, x0, #1
	mov	w9, #10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w12, w10, #58
	cmn	w12, #10
	b.lo	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	madd	w10, w11, w9, w10
	sub	w12, w10, #48
	cmp	w11, w12
	ccmp	w12, w2, #0, le
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w10, [x8], #1
	mov	x11, x12
	cbnz	w10, LBB0_2
; %bb.5:
	cmp	w12, w1
	b.ge	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w0, #-1
	ret
LBB0_7:
	mov	w0, #0
	str	w12, [x3]
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_numfromstr
.subsections_via_symbols
