	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checked_uint8
_checked_uint8:                         ## @checked_uint8
	.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	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_save_errno
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_restore_errno
	movq	_LONG_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	sete	%cl
	movq	_LONG_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r12
	sete	%dl
	orb	%cl, %dl
	movl	$-1, %r13d
	cmpb	$1, %dl
	jne	LBB0_2
## %bb.1:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_2:
	movq	-48(%rbp), %rbx
	cmpq	%r14, %rbx
	je	LBB0_6
## %bb.3:
	movsbl	(%rbx), %edi
	callq	__UC
	movl	%eax, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r12, (%r15)
	notl	%r14d
	addl	%ebx, %r14d
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	__UC
	movl	%eax, %edi
	callq	_isspace
	incq	%rbx
	incl	%r13d
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MIN,8,3                   ## @LONG_MIN
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_checked_uint8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checked_uint8
_checked_uint8:                         ; @checked_uint8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_save_errno
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
	mov	x21, x0
	bl	_restore_errno
Lloh0:
	adrp	x8, _LONG_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LONG_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _LONG_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x21, x9
	ccmp	x21, x8, #4, ne
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w0, w8, #0, eq
	b.eq	LBB0_5
; %bb.1:
	ldr	x22, [sp, #8]
	cmp	x22, x19
	b.eq	LBB0_5
; %bb.2:
	ldrsb	w0, [x22]
	bl	__UC
	bl	_isspace
	cbz	x0, LBB0_5
; %bb.3:
	str	x21, [x20]
	mvn	w8, w19
	add	w19, w8, w22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22], #1
	bl	__UC
	bl	_isspace
	add	w19, w19, #1
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MIN,8,3                   ; @LONG_MIN
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_checked_uint8
.subsections_via_symbols
