	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	-1(%rdi), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r12), %edi
	incq	%r12
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movb	(%r12), %r11b
	leal	-43(%r11), %ecx
	xorl	%eax, %eax
	testb	$-3, %cl
	sete	%al
	leaq	(%r12,%rax), %r14
	testl	%r15d, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.3:
	cmpl	$16, %r15d
	jne	LBB0_7
## %bb.4:
	movb	(%r12,%rax), %dl
	movl	$16, %r15d
	movq	%r14, %r13
	cmpb	$48, %dl
	je	LBB0_5
	jmp	LBB0_13
LBB0_9:
	movb	(%r12,%rax), %dl
	movl	$8, %r15d
	cmpb	$48, %dl
	jne	LBB0_10
LBB0_5:
	movb	1(%r12,%rax), %cl
	orb	$32, %cl
	cmpb	$120, %cl
	jne	LBB0_6
## %bb.11:
	leaq	(%r12,%rax), %r13
	addq	$2, %r13
	movsbl	2(%r12,%rax), %edi
	movq	%r11, %rbx
	callq	_isxdigit
	movq	%rbx, %r11
	testq	%rax, %rax
	cmoveq	%r14, %r13
	movl	$16, %eax
	cmovel	%r15d, %eax
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_7:
	leal	-37(%r15), %eax
	movq	%r14, %r13
	cmpl	$-36, %eax
	ja	LBB0_12
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_10:
	movl	$10, %r15d
	movq	%r14, %r13
LBB0_13:
	testb	%dl, %dl
	je	LBB0_14
LBB0_15:
	movl	%r15d, %esi
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	movslq	%eax, %r10
	xorl	%eax, %eax
	movl	$1, %r8d
	movl	$255, %r9d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$97, %dl
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	addb	$-87, %dl
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$65, %dl
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	addb	$-55, %dl
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	leal	-48(%rdx), %ebx
	cmpb	$58, %dl
	movzbl	%bl, %edx
	cmovael	%r9d, %edx
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movzbl	%dl, %edi
	cmpl	%edi, %r15d
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movzbl	%cl, %ebx
	imulq	%rsi, %rbx
	addq	%rbx, %rdi
	sarq	$8, %rcx
	imulq	%rsi, %rcx
	movq	%rdi, %rdx
	shrq	$8, %rdx
	addq	%rcx, %rdx
	cmpq	%r10, %rdx
	cmoval	%r8d, %eax
	shlq	$8, %rdx
	movzbl	%dil, %ecx
	orq	%rdx, %rcx
	movzbl	1(%r13), %edx
	incq	%r13
	testb	%dl, %dl
	jne	LBB0_16
LBB0_23:
	cmpq	%r13, %r14
	jne	LBB0_25
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	xorl	%ecx, %ecx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_25:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.26:
	movq	%r13, (%rdx)
LBB0_27:
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	jmp	LBB0_30
LBB0_29:
	movq	%rcx, %rax
	negq	%rax
	cmpb	$45, %r11b
	cmovneq	%rcx, %rax
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %r13
LBB0_12:
	movb	(%r13), %dl
	testb	%dl, %dl
	jne	LBB0_15
LBB0_14:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	cmpq	%r13, %r14
	jne	LBB0_25
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ULLONG_MAX,4,2                 ## @ULLONG_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x24, x0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldursb	w0, [x24, #-1]
	bl	_isspace
	add	x24, x24, #1
	cbnz	x0, LBB0_1
; %bb.2:
	ldurb	w22, [x24, #-2]
	cmp	w22, #45
	mov	w8, #43
	ccmp	w22, w8, #4, ne
	cset	w8, eq
	cinc	x9, x24, eq
	sub	x23, x9, #2
	cbz	w21, LBB0_6
; %bb.3:
	cmp	w21, #16
	b.ne	LBB0_10
; %bb.4:
	ldurb	w11, [x9, #-2]
	cmp	w11, #48
	b.eq	LBB0_8
; %bb.5:
	mov	x8, x23
	b	LBB0_15
LBB0_6:
	ldurb	w11, [x9, #-2]
	cmp	w11, #48
	b.ne	LBB0_12
; %bb.7:
	mov	w21, #8
LBB0_8:
	add	x24, x24, x8
	ldurb	w8, [x24, #-1]
	orr	w8, w8, #0x20
	cmp	w8, #120
	b.ne	LBB0_13
; %bb.9:
	ldrsb	w0, [x24]
	bl	_isxdigit
	cmp	x0, #0
	csel	x8, x23, x24, eq
	mov	w9, #16
	csel	w21, w21, w9, eq
	b	LBB0_14
LBB0_10:
	sub	w9, w21, #37
	mov	x8, x23
	cmn	w9, #36
	b.hi	LBB0_14
; %bb.11:
	mov	x0, #0
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]
	b	LBB0_27
LBB0_12:
	mov	w21, #10
	mov	x8, x23
	b	LBB0_15
LBB0_13:
	mov	x8, x23
LBB0_14:
	ldrb	w11, [x8]
LBB0_15:
Lloh6:
	adrp	x9, _ULLONG_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ULLONG_MAX@GOTPAGEOFF]
	cbz	w11, LBB0_19
; %bb.16:
	mov	w10, #0
	mov	x15, #0
	mov	w13, w21
	ldr	w12, [x9]
	sbfx	x14, x12, #8, #24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	and	w12, w11, #0xff
	sub	w16, w11, #48
	cmp	w12, #58
	csinv	w16, w16, wzr, lo
	sub	w17, w11, #55
	cmp	w12, #65
	csel	w16, w16, w17, lo
	sub	w11, w11, #87
	cmp	w12, #97
	csel	w11, w16, w11, lo
	cmp	w21, w11, uxtb
	b.le	LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	and	x12, x15, #0xff
	mul	x12, x12, x13
	add	x12, x12, w11, uxtb
	asr	x11, x15, #8
	mul	x11, x11, x13
	add	x11, x11, x12, lsr #8
	cmp	x11, x14
	csinc	w10, w10, wzr, ls
	bfi	x12, x11, #8, #56
	ldrb	w11, [x8, #1]!
	mov	x15, x12
	cbnz	w11, LBB0_17
	b	LBB0_20
LBB0_19:
	mov	x12, #0
	mov	w10, #0
LBB0_20:
	cmp	x23, x8
	b.ne	LBB0_22
LBB0_21:
	mov	x12, #0
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x11, _errno@GOTPAGE
Lloh12:
	ldr	x11, [x11, _errno@GOTPAGEOFF]
Lloh13:
	str	w8, [x11]
	mov	x8, x20
LBB0_22:
	cbz	x19, LBB0_24
; %bb.23:
	str	x8, [x19]
LBB0_24:
	cbz	w10, LBB0_26
; %bb.25:
Lloh14:
	adrp	x8, _ERANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x10, _errno@GOTPAGE
Lloh18:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x10]
	ldrsw	x0, [x9]
	b	LBB0_27
LBB0_26:
	cmp	w22, #45
	cneg	x0, x12, eq
LBB0_27:
	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_28:
	mov	x12, x15
	cmp	x23, x8
	b.ne	LBB0_22
	b	LBB0_21
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ULLONG_MAX,4,2                 ; @ULLONG_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
