	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function str2int
_str2int:                               ## @str2int
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %ebx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%r12,4), %eax
	movq	(%r15), %rcx
	movsbl	(%rcx), %edx
	leal	(%rdx,%rax,2), %r12d
	addl	$-48, %r12d
	leaq	1(%rcx), %rax
	movq	%rax, (%r15)
	incl	%ebx
	movzbl	1(%rcx), %eax
	testb	%al, %al
	jne	LBB0_2
	jmp	LBB0_7
LBB0_5:
	testl	%ebx, %ebx
	jne	LBB0_7
LBB0_6:
	movl	$-1, %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_str2int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str2int
_str2int:                               ; @str2int
	.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
	ldr	x8, [x0]
	ldrb	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	w22, #0
	mov	w19, #0
	mov	w23, #10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isdigit
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, w20
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldrsb	w9, [x8]
	madd	w9, w19, w23, w9
	sub	w19, w9, #48
	add	x9, x8, #1
	str	x9, [x21]
	add	w22, w22, #1
	ldrb	w8, [x8, #1]
	cbnz	w8, LBB0_2
	b	LBB0_7
LBB0_5:
	cbnz	w22, LBB0_7
LBB0_6:
	mov	w19, #-1
LBB0_7:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_str2int
.subsections_via_symbols
