	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strtoi_lim
_strtoi_lim:                            ## @strtoi_lim
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r9d, %r9d
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.2:
	movb	(%rdi), %r11b
	leal	-48(%r11), %eax
	movq	%rdi, %r8
	cmpb	$9, %al
	ja	LBB0_7
## %bb.3:
	cmpl	$11, %ecx
	movl	$10, %eax
	cmovgel	%ecx, %eax
	leaq	1(%rdi), %rbx
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r8
	movzbl	%r11b, %ebx
	leal	(%r10,%rbx), %r9d
	addl	$-48, %r9d
                                        ## kill: def $r10d killed $r10d killed $r10 def $r10
	addl	%ebx, %r10d
	leal	(%r10,%r10), %ebx
	addl	$-96, %ebx
	leal	(%rbx,%rbx,4), %r10d
	cmpl	%ecx, %r10d
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	-10(%rax), %ebx
	cmpl	$-19, %ebx
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rbx
	shrq	$63, %rbx
	sarq	$34, %rax
	addl	%ebx, %eax
	movzbl	(%r8), %r11d
	leal	-48(%r11), %r14d
	leaq	1(%r8), %rbx
	cmpb	$9, %r14b
	jbe	LBB0_5
	jmp	LBB0_7
LBB0_1:
	movq	%rdi, %r8
LBB0_7:
	cmpl	%ecx, %r9d
	movl	$-2, %eax
	movl	%r9d, %ecx
	cmovgl	%eax, %ecx
	cmpl	%edx, %r9d
	cmovll	%eax, %ecx
	cmpq	%rdi, %r8
	movl	$-1, %eax
	cmovnel	%ecx, %eax
	movq	%r8, (%rsi)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_strtoi_lim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strtoi_lim
_strtoi_lim:                            ; @strtoi_lim
	.cfi_startproc
; %bb.0:
	tbnz	w3, #31, LBB0_5
; %bb.1:
	ldrb	w13, [x0]
	sub	w8, w13, #48
	cmp	w8, #9
	b.hi	LBB0_5
; %bb.2:
	mov	w9, #0
	mov	w8, #10
	cmp	w3, #10
	csel	w11, w3, w8, gt
	add	x14, x0, #1
	mov	w12, #26215
	movk	w12, #26214, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x14
	add	w9, w9, w13
	sub	w10, w9, #48
	add	w9, w10, w10, lsl #2
	lsl	w9, w9, #1
	sub	w13, w11, #10
	cmp	w9, w3
	ccmn	w13, #19, #2, le
	b.hs	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	smull	x11, w11, w12
	lsr	x13, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w13
	mov	x14, x8
	ldrb	w13, [x14], #1
	sub	w15, w13, #48
	cmp	w15, #9
	b.ls	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w10, #0
	mov	x8, x0
LBB0_6:
	cmp	w10, w3
	ccmp	w10, w2, #8, le
	mov	w9, #-2
	csel	w9, w9, w10, lt
	cmp	x8, x0
	csinv	w0, w9, wzr, ne
	str	x8, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_strtoi_lim
.subsections_via_symbols
