	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_uint64
_parse_uint64:                          ## @parse_uint64
	.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, %r13
	movq	%rdi, %r15
	movsbl	(%rdi), %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	$0, (%r13)
	movl	$1, %r14d
	cmpb	$0, (%r15)
	je	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	movq	_UINT64_MAX@GOTPCREL(%rip), %r12
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %eax
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%r13)
	movzbl	(%rbx), %edi
	callq	_isdigit
	movsbl	%al, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%rbx), %eax
	movl	(%r13), %ecx
	addl	%ecx, %eax
	addl	$-48, %eax
	movl	%eax, (%r13)
	cmpb	$0, 1(%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_3
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_TEST_info
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	movq	%r15, %rsi
	callq	_TEST_error
LBB0_10:
	movl	$-1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid empty integer value"

	.comm	_UINT64_MAX,4,2                 ## @UINT64_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Integer overflow in string %s"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid character in string %s"

	.no_dead_strip	_parse_uint64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_uint64
_parse_uint64:                          ; @parse_uint64
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldrsb	w0, [x0]
	bl	_TEST_true
	cbz	w0, LBB0_7
; %bb.1:
	str	wzr, [x20]
	ldrb	w8, [x19]
	cbz	w8, LBB0_6
; %bb.2:
	mov	w8, #0
Lloh0:
	adrp	x21, _UINT64_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UINT64_MAX@GOTPAGEOFF]
	mov	w22, #26215
	movk	w22, #26214, lsl #16
	mov	x23, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x21]
	mul	x9, x9, x22
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	cmp	w8, w9
	b.gt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	str	w8, [x20]
	ldrb	w0, [x23]
	bl	_isdigit
	bl	_TEST_true
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w8, [x23]
	ldr	w9, [x20]
	add	w8, w8, w9
	sub	w8, w8, #48
	str	w8, [x20]
	ldrb	w9, [x23, #1]!
	cbnz	w9, LBB0_3
LBB0_6:
	mov	w0, #1
	b	LBB0_12
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEST_info
	b	LBB0_11
LBB0_8:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	mov	x1, x19
	bl	_TEST_error
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid empty integer value"

	.comm	_UINT64_MAX,4,2                 ; @UINT64_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Integer overflow in string %s"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid character in string %s"

	.no_dead_strip	_parse_uint64
.subsections_via_symbols
