	.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	$56, %rsp
	.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, %rbx
	movq	%rdi, %r14
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %r13d
	incq	%r15
	movsbl	%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	(%r15), %al
	incq	%r15
	jmp	LBB0_6
LBB0_5:
	movl	%r13d, %eax
LBB0_6:
	testl	$-17, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_10
## %bb.7:
	cmpb	$48, %al
	jne	LBB0_10
## %bb.8:
	movb	(%r15), %al
	orb	$32, %al
	cmpb	$120, %al
	jne	LBB0_12
## %bb.9:
	movb	1(%r15), %al
	addq	$2, %r15
	movl	$16, %r12d
LBB0_10:
	testl	%r12d, %r12d
	sete	%cl
	cmpb	$48, %al
	je	LBB0_13
## %bb.11:
	movsbl	%al, %ebx
	movl	$10, %eax
	jmp	LBB0_14
LBB0_12:
	testl	%r12d, %r12d
	sete	%cl
LBB0_13:
	movl	$8, %eax
	movl	$48, %ebx
LBB0_14:
	testb	%cl, %cl
	cmovnel	%eax, %r12d
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rsi
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_16
## %bb.15:
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_17
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	decq	%r15
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rax
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movsbl	1(%r15), %ebx
	incq	%r15
	movq	%rax, %r14
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ISDIGIT
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addl	$-48, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, %edi
	callq	_ISALPHA
	testq	%rax, %rax
	je	LBB0_31
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, %edi
	callq	_ISUPPER
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$5, %ecx
	addl	%ecx, %ebx
	addl	$-87, %ebx
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	testl	%r12d, %r12d
	movl	$-1, %r12d
	js	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	ja	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=1
	jne	LBB0_18
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=1
	imulq	%rcx, %r14
	movslq	%ebx, %rax
	addq	%r14, %rax
	movl	$1, %r12d
	jmp	LBB0_19
LBB0_31:
	testl	%r12d, %r12d
	js	LBB0_33
## %bb.32:
	movq	%r14, %rax
	negq	%rax
	cmpb	$45, %r13b
	cmovneq	%r14, %rax
	jmp	LBB0_34
LBB0_33:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
LBB0_34:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_36
## %bb.35:
	testl	%r12d, %r12d
	cmoveq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%r15, (%rcx)
LBB0_36:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_errno,4,2                      ## @errno
.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x24, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w22, [x24], #1
	mov	x0, x22
	bl	_ISSPACE
	cbnz	x0, LBB0_1
; %bb.2:
	and	w23, w22, #0xff
	cmp	w23, #43
	b.eq	LBB0_4
; %bb.3:
	cmp	w23, #45
	b.ne	LBB0_5
LBB0_4:
	ldrb	w9, [x24], #1
	b	LBB0_6
LBB0_5:
	mov	x9, x23
LBB0_6:
	tst	w21, #0xffffffef
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.ne	LBB0_10
; %bb.7:
	cmp	w9, #48
	b.ne	LBB0_10
; %bb.8:
	ldrb	w8, [x24]
	orr	w8, w8, #0x20
	cmp	w8, #120
	b.ne	LBB0_12
; %bb.9:
	ldrb	w9, [x24, #1]
	add	x24, x24, #2
	mov	w21, #16
LBB0_10:
	cmp	w21, #0
	cset	w8, eq
	cmp	w9, #48
	b.eq	LBB0_13
; %bb.11:
	sxtb	w22, w9
	mov	w9, #10
	b	LBB0_14
LBB0_12:
	cmp	w21, #0
	cset	w8, eq
LBB0_13:
	mov	w9, #8
	mov	w22, #48
LBB0_14:
	mov	x25, #0
	mov	w19, #0
	cmp	w8, #0
	csel	w8, w9, w21, ne
Lloh0:
	adrp	x9, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ULONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sxtw	x27, w8
	udiv	x28, x9, x27
	msub	w26, w28, w27, w9
	sub	x21, x24, #1
	mov	w24, #-55
	mov	w20, #-87
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mul	x8, x25, x27
	add	x25, x8, w9, sxtw
	mov	w8, #1
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldrsb	w22, [x21, #1]!
	mov	x19, x8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ISDIGIT
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	sub	w9, w22, #48
	cmp	w9, w27
	b.lt	LBB0_21
	b	LBB0_26
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_ISALPHA
	cbz	x0, LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_ISUPPER
	cmp	x0, #0
	csel	w8, w20, w24, eq
	add	w9, w8, w22
	cmp	w9, w27
	b.ge	LBB0_26
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #-1
	tbnz	w19, #31, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	x25, x28
	b.hi	LBB0_16
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	b.ne	LBB0_15
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w9, w26
	b.le	LBB0_15
; %bb.25:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #-1
	mov	x25, x28
	b	LBB0_16
LBB0_26:
	tbnz	w19, #31, LBB0_30
; %bb.27:
	cmp	w23, #45
	cneg	x0, x25, eq
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_29
LBB0_28:
	cmp	w19, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	csel	x8, x8, x21, eq
	str	x8, [x9]
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_30:
Lloh3:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbnz	x9, LBB0_28
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
