	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_long
_scan_long:                             ## @scan_long
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movsbl	(%rdi,%rsi), %eax
	xorl	%r13d, %r13d
	cmpl	$43, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$45, %eax
	jne	LBB0_4
## %bb.2:
	movl	$1, %r13d
LBB0_3:
	incq	%rbx
LBB0_4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%rbx), %edi
	callq	_isdigit
	movq	%rax, %rcx
	movzbl	(%r12,%rbx), %eax
	movq	$-48, %rdx
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	%al, %edi
	callq	_isalpha
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	(%r12,%rbx), %edi
	callq	_toupper
	movq	$-55, %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movsbq	%al, %rax
	addq	%rdx, %rax
	cmpq	%r15, %rax
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	imulq	%r15, %r14
	addq	%rax, %r14
	incq	%rbx
	jmp	LBB0_5
LBB0_10:
	movq	%r14, %rax
	negq	%rax
	testq	%r13, %r13
	cmoveq	%r14, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scan_long
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_long
_scan_long:                             ; @scan_long
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x23, #0
	ldrsb	w8, [x0, x1]
	cmp	w8, #43
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #45
	b.ne	LBB0_4
; %bb.2:
	mov	w23, #1
LBB0_3:
	add	x20, x20, #1
LBB0_4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22, x20]
	bl	_isdigit
	mov	x8, x0
	ldrb	w0, [x22, x20]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #-48
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w0, w0
	bl	_isalpha
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w0, [x22, x20]
	bl	_toupper
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, #-55
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, w0, sxtb
	cmp	x8, x21
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x24, x24, x21, x8
	add	x20, x20, #1
	b	LBB0_5
LBB0_11:
	cmp	x23, #0
	cneg	x8, x24, ne
	str	x8, [x19]
	mov	x0, x20
	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	_scan_long
.subsections_via_symbols
