	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcstol_l                       ## -- Begin function wcstol_l
	.p2align	4, 0x90
_wcstol_l:                              ## @wcstol_l
	.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	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	%ecx, %edi
	callq	_FIX_LOCALE
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %r14d
	incq	%rbx
	movsbl	%r14b, %edi
	movl	%r13d, %esi
	callq	_iswspace_l
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	cmpb	$43, %r14b
	je	LBB0_4
## %bb.3:
	cmpb	$45, %r14b
	jne	LBB0_5
LBB0_4:
	movb	(%rbx), %sil
	incq	%rbx
	testl	$-17, %r12d
	je	LBB0_6
	jmp	LBB0_9
LBB0_5:
	movl	%r14d, %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	%eax, %eax
	jmp	LBB0_36
LBB0_14:
	movq	_LONG_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r8, %rax
	negq	%rax
	cmpb	$45, %r14b
	movq	_LONG_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	cmovneq	%r9, %rax
	movl	%r12d, %r11d
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_16
## %bb.15:
	xorl	%edx, %edx
	divq	%r11
	movq	%rax, %r10
	jmp	LBB0_17
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r11d
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %r10d
LBB0_17:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, %rdi
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movzbl	(%rbx), %esi
	incq	%rbx
	movq	%rdi, %rax
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	leal	-48(%rsi), %edi
	cmpb	$10, %dil
	jb	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	leal	-65(%rsi), %edi
	cmpb	$25, %dil
	ja	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	addb	$-55, %sil
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	leal	-97(%rsi), %edi
	cmpb	$25, %dil
	ja	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	addb	$-87, %sil
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%esi, %edi
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	movzbl	%dil, %esi
	cmpl	%esi, %r11d
	jle	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=1
	testl	%ecx, %ecx
	movl	$-1, %ecx
	js	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	%r10, %rax
	ja	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	jne	LBB0_18
## %bb.30:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r10, %rdi
	cmpl	%edx, %esi
	jg	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=1
	imulq	%r11, %rax
	movl	%esi, %edi
	addq	%rax, %rdi
	movl	$1, %ecx
	jmp	LBB0_19
LBB0_33:
	testl	%ecx, %ecx
	js	LBB0_37
## %bb.34:
	je	LBB0_36
## %bb.35:
	movq	%rax, %rcx
	negq	%rcx
	cmpb	$45, %r14b
	cmoveq	%rcx, %rax
	xorl	%ecx, %ecx
	jmp	LBB0_38
LBB0_36:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movb	$1, %cl
	testq	%rsi, %rsi
	jne	LBB0_39
	jmp	LBB0_40
LBB0_37:
	cmpb	$45, %r14b
	cmoveq	%r8, %r9
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ecx, %ecx
	movq	%r9, %rax
LBB0_38:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_40
LBB0_39:
	decq	%rbx
	testb	%cl, %cl
	cmovneq	%r15, %rbx
	movq	%rbx, (%rsi)
LBB0_40:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MIN,8,3                   ## @LONG_MIN
	.comm	_LONG_MAX,8,3                   ## @LONG_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	_wcstol_l                       ; -- Begin function wcstol_l
	.p2align	2
_wcstol_l:                              ; @wcstol_l
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x3
	bl	_FIX_LOCALE
	mov	x24, x20
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w23, [x24], #1
	mov	x0, x23
	mov	x1, x22
	bl	_iswspace_l
	cbnz	x0, LBB0_1
; %bb.2:
	and	w8, w23, #0xff
	cmp	w8, #43
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, #45
	b.ne	LBB0_5
LBB0_4:
	ldrb	w9, [x24], #1
	tst	w21, #0xffffffef
	b.eq	LBB0_6
	b	LBB0_9
LBB0_5:
	mov	x9, x8
	tst	w21, #0xffffffef
	b.ne	LBB0_9
LBB0_6:
	cmp	w9, #48
	b.ne	LBB0_9
; %bb.7:
	ldrb	w9, [x24]
	orr	w9, w9, #0x20
	cmp	w9, #120
	b.ne	LBB0_11
; %bb.8:
	ldrb	w9, [x24, #1]
	add	x24, x24, #2
	mov	w12, #16
	b	LBB0_15
LBB0_9:
	cmp	w21, #0
	cset	w10, eq
	cmp	w9, #48
	b.eq	LBB0_12
; %bb.10:
	mov	w11, #10
	b	LBB0_13
LBB0_11:
	cmp	w21, #0
	cset	w10, eq
LBB0_12:
	mov	w11, #8
	mov	w9, #48
LBB0_13:
	cmp	w10, #0
	csel	w12, w11, w21, ne
	sub	w10, w12, #37
	cmn	w10, #35
	b.hs	LBB0_15
; %bb.14:
	mov	x0, #0
	b	LBB0_32
LBB0_15:
	mov	x0, #0
	mov	w15, #0
Lloh0:
	adrp	x10, _LONG_MIN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LONG_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _LONG_MAX@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	w8, #45
	csneg	x14, x11, x10, ne
	mov	w12, w12
	udiv	x13, x14, x12
	msub	w14, w13, w12, w14
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mul	x15, x0, x12
	add	x0, x15, w9, uxtw
	mov	w16, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w9, [x24], #1
	mov	x15, x16
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	w16, w9, #48
	and	w17, w16, #0xff
	cmp	w17, #10
	b.lo	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w16, w9, #65
	and	w16, w16, #0xff
	cmp	w16, #25
	b.hi	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w16, w9, #55
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	w16, w9, #97
	and	w16, w16, #0xff
	cmp	w16, #25
	b.hi	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w16, w9, #87
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	and	w9, w16, #0xff
	cmp	w12, w9
	b.le	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w16, #-1
	tbnz	w15, #31, LBB0_17
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	x0, x13
	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	w9, w14
	b.le	LBB0_16
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w16, #-1
	mov	x0, x13
	b	LBB0_17
LBB0_29:
	tbnz	w15, #31, LBB0_35
; %bb.30:
	cbz	w15, LBB0_32
; %bb.31:
	mov	w9, #0
	cmp	w8, #45
	cneg	x0, x0, eq
	cbnz	x19, LBB0_33
	b	LBB0_34
LBB0_32:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	mov	w9, #1
	cbz	x19, LBB0_34
LBB0_33:
	sub	x8, x24, #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
	cmp	w8, #45
	csel	x0, x10, x11, eq
Lloh12:
	adrp	x8, _ERANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _errno@GOTPAGE
Lloh16:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh17:
	str	w8, [x10]
	cbnz	x19, LBB0_33
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MIN,8,3                   ; @LONG_MIN
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
