	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtonum                       ## -- Begin function strtonum
	.p2align	4, 0x90
_strtonum:                              ## @strtonum
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -112(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -96(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -80(%rbp)
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, -64(%rbp)
	movl	%eax, -56(%rbp)
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -104(%rbp)
	movl	$0, (%r13)
	cmpq	%rdx, %rsi
	jle	LBB0_2
## %bb.1:
	movq	_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_2:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-120(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoll
	movq	-120(%rbp), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_4
## %bb.3:
	cmpb	$0, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	_INVALID@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %ecx
LBB0_15:
	movslq	%ecx, %rdx
	testq	%r14, %r14
	je	LBB0_17
## %bb.16:
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movq	-112(%rbp,%rcx), %rcx
	movq	%rcx, (%r14)
LBB0_17:
	movq	%rdx, %rsi
	shlq	$4, %rsi
	xorl	%ecx, %ecx
	testl	%edx, %edx
	movl	-104(%rbp,%rsi), %edx
	cmoveq	%rax, %rcx
	movl	%edx, (%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movq	%rcx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_LLONG_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	movl	(%r13), %ecx
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_13
## %bb.7:
	cmpq	%r12, %rax
	jl	LBB0_13
LBB0_8:
	movq	_LLONG_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	(%r13), %ecx
	cmpl	(%rdx), %ecx
	je	LBB0_11
LBB0_10:
	xorl	%ecx, %ecx
	cmpq	%r15, %rax
	jle	LBB0_15
LBB0_11:
	movq	_TOOLARGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	cmpq	%r12, %rax
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	jge	LBB0_8
LBB0_13:
	movq	_TOOSMALL@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"too small"

	.comm	_ERANGE,4,2                     ## @ERANGE
L_.str.2:                               ## @.str.2
	.asciz	"too large"

	.comm	_errno,4,2                      ## @errno
	.comm	_INVALID,4,2                    ## @INVALID
	.comm	_LLONG_MIN,8,3                  ## @LLONG_MIN
	.comm	_TOOSMALL,4,2                   ## @TOOSMALL
	.comm	_LLONG_MAX,8,3                  ## @LLONG_MAX
	.comm	_TOOLARGE,4,2                   ## @TOOLARGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtonum                       ; -- Begin function strtonum
	.p2align	2
_strtonum:                              ; @strtonum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #24]
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp, #40]
Lloh10:
	adrp	x24, _ERANGE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ERANGE@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #48]
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	str	x9, [sp, #56]
	str	w8, [sp, #64]
Lloh14:
	adrp	x23, _errno@GOTPAGE
Lloh15:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #16]
	str	wzr, [x23]
	cmp	x1, x2
	b.le	LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_4
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x1, sp
	mov	w2, #10
	bl	_strtoll
	ldr	x8, [sp]
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.3:
	ldrb	w8, [x8]
	cbz	w8, LBB0_9
LBB0_4:
Lloh16:
	adrp	x8, _INVALID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INVALID@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	sxtw	x8, w8
	cbz	x19, LBB0_7
LBB0_6:
	lsl	x9, x8, #4
	add	x10, sp, #8
	ldr	x9, [x10, x9]
	str	x9, [x19]
LBB0_7:
	add	x9, sp, #8
	add	x9, x9, x8, lsl #4
	ldr	w9, [x9, #8]
	str	w9, [x23]
	cmp	w8, #0
	csel	x0, x0, xzr, eq
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
Lloh21:
	adrp	x8, _LLONG_MIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LLONG_MIN@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x23]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_16
LBB0_11:
	cmp	x0, x21
	b.lt	LBB0_16
; %bb.12:
Lloh24:
	adrp	x8, _LLONG_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LLONG_MAX@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x23]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_17
LBB0_14:
	cmp	x0, x20
	b.gt	LBB0_17
; %bb.15:
	mov	w8, #0
	sxtw	x8, w8
	cbnz	x19, LBB0_6
	b	LBB0_7
LBB0_16:
Lloh27:
	adrp	x8, _TOOSMALL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TOOSMALL@GOTPAGEOFF]
	b	LBB0_5
LBB0_17:
Lloh29:
	adrp	x8, _TOOLARGE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TOOLARGE@GOTPAGEOFF]
	b	LBB0_5
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"too small"

	.comm	_ERANGE,4,2                     ; @ERANGE
l_.str.2:                               ; @.str.2
	.asciz	"too large"

	.comm	_errno,4,2                      ; @errno
	.comm	_INVALID,4,2                    ; @INVALID
	.comm	_LLONG_MIN,8,3                  ; @LLONG_MIN
	.comm	_TOOSMALL,4,2                   ; @TOOSMALL
	.comm	_LLONG_MAX,8,3                  ; @LLONG_MAX
	.comm	_TOOLARGE,4,2                   ; @TOOLARGE
.subsections_via_symbols
