	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtoull                       ## -- Begin function strtoull
	.p2align	4, 0x90
_strtoull:                              ## @strtoull
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %r13d
	incq	%rbx
	movzbl	%r13b, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	cmpb	$43, %r13b
	je	LBB0_4
## %bb.3:
	cmpb	$45, %r13b
	jne	LBB0_5
LBB0_4:
	movb	(%rbx), %sil
	incq	%rbx
	testl	$-17, %r12d
	je	LBB0_6
	jmp	LBB0_9
LBB0_5:
	movl	%r13d, %esi
	testl	$-17, %r12d
	jne	LBB0_9
LBB0_6:
	cmpb	$48, %sil
	jne	LBB0_9
## %bb.7:
	movb	(%rbx), %al
	orb	$32, %al
	cmpb	$120, %al
	jne	LBB0_10
## %bb.8:
	movb	1(%rbx), %sil
	addq	$2, %rbx
	movl	$16, %r12d
	jmp	LBB0_14
LBB0_9:
	testl	%r12d, %r12d
	sete	%al
	movl	$10, %ecx
	cmpb	$48, %sil
	je	LBB0_11
	jmp	LBB0_12
LBB0_10:
	testl	%r12d, %r12d
	sete	%al
LBB0_11:
	movl	$8, %ecx
	movb	$48, %sil
LBB0_12:
	testb	%al, %al
	cmovnel	%ecx, %r12d
	leal	-37(%r12), %eax
	cmpl	$-35, %eax
	jae	LBB0_14
## %bb.13:
	xorl	%ecx, %ecx
	jmp	LBB0_33
LBB0_14:
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	movl	%r8d, %eax
	cltd
	idivl	%r12d
	movslq	%eax, %r9
	movl	%r12d, %r10d
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rcx, %rax
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movzbl	(%rbx), %esi
	incq	%rbx
	movq	%rax, %rcx
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	-48(%rsi), %eax
	cmpb	$10, %al
	jb	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	leal	-65(%rsi), %eax
	cmpb	$25, %al
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	addb	$-55, %sil
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	leal	-97(%rsi), %eax
	cmpb	$25, %al
	ja	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	addb	$-87, %sil
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	%esi, %eax
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movzbl	%al, %esi
	cmpl	%esi, %r10d
	jle	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	testl	%edi, %edi
	movl	$-1, %edi
	js	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%r9, %rcx
	ja	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=1
	jne	LBB0_15
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r9, %rax
	cmpl	%esi, %edx
	jl	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	imulq	%r10, %rcx
	movl	%esi, %eax
	addq	%rcx, %rax
	movl	$1, %edi
	jmp	LBB0_16
LBB0_30:
	testl	%edi, %edi
	js	LBB0_34
## %bb.31:
	je	LBB0_33
## %bb.32:
	movq	%rcx, %r8
	negq	%r8
	cmpb	$45, %r13b
	cmovneq	%rcx, %r8
	jmp	LBB0_35
LBB0_33:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movb	$1, %al
	movq	%rcx, %r8
	testq	%r14, %r14
	jne	LBB0_36
	jmp	LBB0_37
LBB0_34:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_35:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_37
LBB0_36:
	decq	%rbx
	testb	%al, %al
	cmovneq	%r15, %rbx
	movq	%rbx, (%r14)
LBB0_37:
	movq	%r8, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULLONG_MAX,4,2                 ## @ULLONG_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtoull                       ; -- Begin function strtoull
	.p2align	2
_strtoull:                              ; @strtoull
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x23, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w21, [x23], #1
	mov	x0, x21
	bl	_isspace
	cbnz	x0, LBB0_1
; %bb.2:
	cmp	w21, #43
	b.eq	LBB0_4
; %bb.3:
	cmp	w21, #45
	b.ne	LBB0_5
LBB0_4:
	ldrb	w9, [x23], #1
	tst	w22, #0xffffffef
	b.eq	LBB0_6
	b	LBB0_9
LBB0_5:
	mov	x9, x21
	tst	w22, #0xffffffef
	b.ne	LBB0_9
LBB0_6:
	cmp	w9, #48
	b.ne	LBB0_9
; %bb.7:
	ldrb	w8, [x23]
	orr	w8, w8, #0x20
	cmp	w8, #120
	b.ne	LBB0_11
; %bb.8:
	ldrb	w9, [x23, #1]
	add	x23, x23, #2
	mov	w12, #16
	b	LBB0_15
LBB0_9:
	cmp	w22, #0
	cset	w8, eq
	cmp	w9, #48
	b.eq	LBB0_12
; %bb.10:
	mov	w10, #10
	b	LBB0_13
LBB0_11:
	cmp	w22, #0
	cset	w8, eq
LBB0_12:
	mov	w10, #8
	mov	w9, #48
LBB0_13:
	cmp	w8, #0
	csel	w12, w10, w22, ne
	sub	w8, w12, #37
	cmn	w8, #35
	b.hs	LBB0_15
; %bb.14:
	mov	x8, #0
	b	LBB0_32
LBB0_15:
	mov	x8, #0
	mov	w13, #0
Lloh0:
	adrp	x10, _ULLONG_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ULLONG_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x0, [x10]
	sdiv	w11, w0, w12
	sxtw	x10, w11
	msub	w11, w11, w12, w0
	mov	w12, w12
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mul	x8, x8, x12
	add	x8, x8, w9, uxtw
	mov	w14, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w9, [x23], #1
	mov	x13, x14
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	w14, w9, #48
	and	w15, w14, #0xff
	cmp	w15, #10
	b.lo	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w14, w9, #65
	and	w14, w14, #0xff
	cmp	w14, #25
	b.hi	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w14, w9, #55
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	w14, w9, #97
	and	w14, w14, #0xff
	cmp	w14, #25
	b.hi	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w14, w9, #87
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	and	w9, w14, #0xff
	cmp	w12, w9
	b.le	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w14, #-1
	tbnz	w13, #31, LBB0_17
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	x8, x10
	b.hi	LBB0_17
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	b.ne	LBB0_16
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w11, w9
	b.ge	LBB0_16
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w14, #-1
	mov	x8, x10
	b	LBB0_17
LBB0_29:
	tbnz	w13, #31, LBB0_35
; %bb.30:
	cbz	w13, LBB0_32
; %bb.31:
	mov	w9, #0
	cmp	w21, #45
	cneg	x0, x8, eq
	cbnz	x19, LBB0_33
	b	LBB0_34
LBB0_32:
Lloh3:
	adrp	x9, _EINVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _errno@GOTPAGE
Lloh7:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh8:
	str	w9, [x10]
	mov	w9, #1
	mov	x0, x8
	cbz	x19, LBB0_34
LBB0_33:
	sub	x8, x23, #1
	cmp	w9, #0
	csel	x8, x20, x8, ne
	str	x8, [x19]
LBB0_34:
	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
LBB0_35:
	mov	w9, #0
Lloh9:
	adrp	x8, _ERANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, _errno@GOTPAGE
Lloh13:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x10]
	cbnz	x19, LBB0_33
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ULLONG_MAX,4,2                 ; @ULLONG_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
