	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtoul                        ## -- Begin function strtoul
	.p2align	4, 0x90
_strtoul:                               ## @strtoul
	.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), %cl
	movl	$16, %r15d
	movq	%r14, %r13
	cmpb	$48, %cl
	je	LBB0_5
	jmp	LBB0_13
LBB0_9:
	movb	(%r12,%rax), %cl
	movl	$8, %r15d
	cmpb	$48, %cl
	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	$-35, %eax
	jae	LBB0_12
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_10:
	movl	$10, %r15d
	movq	%r14, %r13
LBB0_13:
	testb	%cl, %cl
	je	LBB0_14
LBB0_15:
	movl	%r15d, %edx
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	movslq	%eax, %r10
	xorl	%eax, %eax
	movl	$1, %r8d
	movl	$255, %r9d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$97, %cl
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	addb	$-87, %cl
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$65, %cl
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	addb	$-55, %cl
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	leal	-48(%rcx), %ebx
	cmpb	$58, %cl
	movzbl	%bl, %ecx
	cmovael	%r9d, %ecx
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movzbl	%cl, %edi
	cmpl	%edi, %r15d
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movzbl	%sil, %ebx
	imulq	%rdx, %rbx
	addq	%rbx, %rdi
	shrq	$8, %rsi
	imulq	%rdx, %rsi
	movq	%rdi, %rcx
	shrq	$8, %rcx
	addq	%rsi, %rcx
	cmpq	%r10, %rcx
	cmoval	%r8d, %eax
	shlq	$8, %rcx
	movzbl	%dil, %esi
	orq	%rcx, %rsi
	movzbl	1(%r13), %ecx
	incq	%r13
	testb	%cl, %cl
	jne	LBB0_16
	jmp	LBB0_23
LBB0_6:
	movq	%r14, %r13
LBB0_12:
	movb	(%r13), %cl
	testb	%cl, %cl
	jne	LBB0_15
LBB0_14:
	xorl	%esi, %esi
	xorl	%eax, %eax
LBB0_23:
	xorl	%ecx, %ecx
	cmpq	%r13, %r14
	cmovneq	%rsi, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.24:
	cmpq	%r13, %r14
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmovneq	%r13, %rsi
	movq	%rsi, (%rdx)
LBB0_25:
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	jmp	LBB0_28
LBB0_27:
	movq	%rcx, %rax
	negq	%rax
	cmpb	$45, %r11b
	cmovneq	%rcx, %rax
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,4,2                  ## @ULONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtoul                        ; -- Begin function strtoul
	.p2align	2
_strtoul:                               ; @strtoul
	.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, #35
	b.hs	LBB0_14
; %bb.11:
	mov	x0, #0
	b	LBB0_26
LBB0_12:
	mov	w21, #10
	mov	x8, x23
	b	LBB0_15
LBB0_13:
	mov	x8, x23
LBB0_14:
	ldrb	w11, [x8]
LBB0_15:
Lloh0:
	adrp	x9, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ULONG_MAX@GOTPAGEOFF]
	cbz	w11, LBB0_19
; %bb.16:
	mov	w10, #0
	mov	x14, #0
	mov	w12, w21
	ldr	w13, [x9]
	sbfx	x13, x13, #8, #24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	and	w15, w11, #0xff
	sub	w16, w11, #48
	cmp	w15, #58
	csinv	w16, w16, wzr, lo
	sub	w17, w11, #55
	cmp	w15, #65
	csel	w16, w16, w17, lo
	sub	w11, w11, #87
	cmp	w15, #97
	csel	w11, w16, w11, lo
	cmp	w21, w11, uxtb
	b.le	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	and	x15, x14, #0xff
	mul	x15, x15, x12
	add	x15, x15, w11, uxtb
	lsr	x11, x14, #8
	mul	x11, x11, x12
	add	x11, x11, x15, lsr #8
	cmp	x11, x13
	csinc	w10, w10, wzr, ls
	bfi	x15, x11, #8, #56
	ldrb	w11, [x8, #1]!
	mov	x14, x15
	cbnz	w11, LBB0_17
	b	LBB0_21
LBB0_19:
	mov	x15, #0
	mov	w10, #0
	b	LBB0_21
LBB0_20:
	mov	x15, x14
LBB0_21:
	cmp	x23, x8
	csel	x11, xzr, x15, eq
	cbz	x19, LBB0_23
; %bb.22:
	cmp	x23, x8
	csel	x8, x20, x8, eq
	str	x8, [x19]
LBB0_23:
	cbz	w10, LBB0_25
; %bb.24:
	ldrsw	x0, [x9]
	b	LBB0_26
LBB0_25:
	cmp	w22, #45
	cneg	x0, x11, eq
LBB0_26:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,4,2                  ; @ULONG_MAX
.subsections_via_symbols
