	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtol                         ## -- Begin function strtol
	.p2align	4, 0x90
_strtol:                                ## @strtol
	.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, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rdi, %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r14), %edi
	callq	_isspace
	incq	%r14
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	leaq	-1(%r14), %rbx
	cmpb	$45, -1(%r14)
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_6
## %bb.3:
	movsbl	(%r14), %edi
	callq	_isalnum
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, %rbx
	movb	$1, %r14b
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_strtoul
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:
	cmpq	%rbx, (%r12)
	jne	LBB0_10
## %bb.9:
	movq	%r13, (%r12)
LBB0_10:
	movq	_ABS_LONG_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_12
## %bb.11:
	movq	%rax, %rcx
	negq	%rcx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	cmoveq	%rcx, %rax
	jmp	LBB0_17
LBB0_12:
	sete	%cl
	testb	%cl, %r14b
	jne	LBB0_17
## %bb.13:
	testb	%r14b, %r14b
	je	LBB0_15
## %bb.14:
	movq	_LONG_MIN@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_LONG_MIN,8,3               ## @ABS_LONG_MIN
	.comm	_LONG_MIN,8,3                   ## @LONG_MIN
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strtol                         ; -- Begin function strtol
	.p2align	2
_strtol:                                ; @strtol
	.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
	mov	x23, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x23], #1
	bl	_isspace
	cbnz	x0, LBB0_1
; %bb.2:
	mov	x22, x23
	ldrb	w8, [x22, #-1]!
	cmp	w8, #45
	b.ne	LBB0_4
; %bb.3:
	ldrsb	w0, [x23]
	bl	_isalnum
	mov	w8, #1
	mov	w9, #1
	cmp	x0, #0
	csel	x22, x22, x23, eq
	csel	w24, w8, wzr, eq
	csel	w23, wzr, w9, eq
	b	LBB0_5
LBB0_4:
	mov	w23, #0
	mov	w24, #1
LBB0_5:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_strtoul
	cbz	x19, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	cmp	x8, x22
	b.ne	LBB0_8
; %bb.7:
	str	x20, [x19]
LBB0_8:
Lloh0:
	adrp	x8, _ABS_LONG_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_LONG_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_10
; %bb.9:
	cmp	w24, #0
	cneg	x0, x0, eq
	b	LBB0_12
LBB0_10:
	cset	w8, eq
	and	w8, w23, w8
	tbnz	w8, #0, LBB0_12
; %bb.11:
Lloh3:
	adrp	x8, _LONG_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LONG_MIN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _LONG_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LONG_MAX@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x8, x9, ne
	ldr	x0, [x8]
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_LONG_MIN,8,3               ; @ABS_LONG_MIN
	.comm	_LONG_MIN,8,3                   ; @LONG_MIN
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
.subsections_via_symbols
