	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_num
_extract_num:                           ## @extract_num
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	%esi, %rax
	leaq	(%rdi,%rax), %r9
	movq	%rdi, %r10
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	%rdi, %r10
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r10), %eax
	addb	$-58, %al
	cmpb	$-11, %al
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	cmpq	%r9, %r10
	jb	LBB0_2
LBB0_4:
	cmpq	%r9, %r10
	je	LBB0_16
## %bb.5:
	movabsq	$922337203685477580, %r8        ## imm = 0xCCCCCCCCCCCCCCC
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	%r9, %r10
	jae	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	movq	%r10, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbq	(%rcx), %rsi
	leal	-48(%rsi), %r11d
	cmpb	$9, %r11b
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpq	%r8, %rax
	jae	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	leaq	(%rax,%rax,4), %rax
	addl	$-48, %esi
	leaq	(%rsi,%rax,2), %rax
	incq	%rcx
	cmpq	%r9, %rcx
	jb	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r10, %rcx
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$10, %r11b
	jb	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdi, %r10
	jne	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rcx), %r10
	cmpb	$126, (%rcx)
	je	LBB0_6
	jmp	LBB0_17
LBB0_15:
	movq	$-1, %rax
	movq	%rcx, %r10
	jmp	LBB0_17
LBB0_16:
	movq	$-1, %rax
	movq	%r9, %r10
LBB0_17:
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.18:
	movq	%r10, (%rdx)
LBB0_19:
	popq	%rbp
	retq
LBB0_20:
	movq	$-1, %rax
	jmp	LBB0_17
LBB0_22:
	movq	%rcx, %r10
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_extract_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_num
_extract_num:                           ; @extract_num
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x8, w1
	add	x10, x0, x8
	mov	x9, x0
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9]
	sub	w11, w11, #58
	cmn	w11, #11
	b.hi	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x9, x10
	b.lo	LBB0_2
LBB0_4:
	cmp	x9, x10
	b.eq	LBB0_21
; %bb.5:
	add	x11, x0, x8
	sub	x12, x11, #1
	mov	x13, #-3689348814741910324
	movk	x13, #3276, lsl #48
	mov	w14, #10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	x9, x10
	b.hs	LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w15, [x9]
	sub	w8, w15, #48
	cmp	w8, #9
	b.hi	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	add	x1, x9, #1
	sub	x17, x12, x9
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x16, x1
	cmp	x8, x13
	b.hs	LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	sxtb	w15, w15
	sub	w15, w15, #48
	madd	x8, x8, x14, x15
	cbz	x17, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x16
	ldrb	w15, [x1], #1
	sub	w3, w15, #48
	sub	x17, x17, #1
	cmp	w3, #9
	b.ls	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x15, x1, #1
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	mov	w16, #1
	mov	x15, x9
	cmp	x15, x9
	b.ne	LBB0_16
	b	LBB0_24
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x15, x11
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x16, x10
	cset	w16, lo
	cmp	x15, x9
	b.eq	LBB0_24
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, x0
	b.ne	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	eor	w9, w16, #0x1
	tbnz	w9, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w16, [x15], #1
	mov	x9, x15
	cmp	w16, #126
	b.eq	LBB0_6
LBB0_19:
	mov	x9, x15
	cbnz	x2, LBB0_25
LBB0_20:
	mov	x0, x8
	ret
LBB0_21:
	mov	x8, #-1
	mov	x9, x10
	cbnz	x2, LBB0_25
	b	LBB0_20
LBB0_22:
	mov	x8, #-1
	cbz	x2, LBB0_20
; %bb.23:
	sub	x9, x16, #1
	b	LBB0_25
LBB0_24:
	mov	x8, #-1
	cbz	x2, LBB0_20
LBB0_25:
	str	x9, [x2]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_extract_num
.subsections_via_symbols
