	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetnum                        ## -- Begin function cgetnum
	.p2align	4, 0x90
_cgetnum:                               ## @cgetnum
	.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
	movq	%rdx, %r14
	movl	$35, %edx
	callq	_cgetcap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$10, %ecx
	cmpb	$48, (%rax)
	jne	LBB0_6
## %bb.3:
	movb	1(%rax), %cl
	orb	$32, %cl
	cmpb	$120, %cl
	jne	LBB0_4
## %bb.5:
	addq	$2, %rax
	movl	$16, %ecx
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_4:
	incq	%rax
	movl	$8, %ecx
LBB0_6:
	movl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rax), %esi
	leal	-48(%rsi), %ebx
	movl	$-48, %edi
	cmpb	$10, %bl
	jb	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	-97(%rsi), %ebx
	movl	$-87, %edi
	cmpb	$6, %bl
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	-65(%rsi), %ebx
	movl	$-55, %edi
	cmpb	$5, %bl
	ja	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%esi, %edi
	cmpl	%ecx, %edi
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	imulq	%rcx, %rdx
	movslq	%edi, %rsi
	addq	%rsi, %rdx
	incq	%rax
	jmp	LBB0_7
LBB0_12:
	movq	%rdx, (%r14)
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetnum                        ; -- Begin function cgetnum
	.p2align	2
_cgetnum:                               ; @cgetnum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	w2, #35
	bl	_cgetcap
	cbz	x0, LBB0_3
; %bb.1:
	ldrb	w8, [x0]
	cmp	w8, #48
	b.ne	LBB0_4
; %bb.2:
	add	x8, x0, #2
	ldrb	w9, [x0, #1]!
	mov	w10, #8
	orr	w9, w9, #0x20
	mov	w11, #16
	cmp	w9, #120
	csel	w9, w11, w10, eq
	csel	x0, x8, x0, eq
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_15
LBB0_4:
	mov	w9, #10
LBB0_5:
	mov	x8, #0
	mov	w9, w9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w10, [x0]
	sub	w11, w10, #48
	cmp	w11, #10
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w11, #-48
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w11, w10, #97
	cmp	w11, #6
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w11, #-87
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w11, w10, #65
	cmp	w11, #5
	b.hi	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w11, #-55
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w10, w11, w10
	cmp	w10, w9
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mul	x8, x8, x9
	add	x8, x8, w10, sxtw
	add	x0, x0, #1
	b	LBB0_6
LBB0_14:
	mov	w0, #0
	str	x8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
