	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_fps
_read_fps:                              ## @read_fps
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdx
	callq	_read_int
                                        ## kill: def $eax killed $eax def $rax
	movq	-24(%rbp), %rdx
	movb	(%rdx), %sil
	cmpb	$46, %sil
	jne	LBB0_2
## %bb.1:
	leaq	1(%rdx), %rcx
	movq	%rcx, -24(%rbp)
	movb	1(%rdx), %sil
	movq	%rcx, %rdx
LBB0_2:
	leal	-48(%rsi), %edi
	movl	$1, %ecx
	cmpb	$9, %dil
	ja	LBB0_7
## %bb.3:
	movq	_INT64_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leal	-9(%rcx), %edi
	movslq	%edi, %rdi
	imulq	$1717986919, %rdi, %r8          ## imm = 0x66666667
	movq	%r8, %rbx
	shrq	$63, %rbx
	sarq	$34, %r8
	addl	%ebx, %r8d
	imulq	$1717986919, %rcx, %rbx         ## imm = 0x66666667
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$34, %rbx
	addl	%ecx, %ebx
	incq	%rdx
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r8d, %eax
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, %ecx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%sil, %esi
	leal	(%rax,%rax,4), %eax
	leal	(%rsi,%rax,2), %eax
	addl	$-48, %eax
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movq	%rdx, -24(%rbp)
	movzbl	(%rdx), %esi
	leal	-48(%rsi), %edi
	incq	%rdx
	cmpb	$10, %dil
	jb	LBB0_4
LBB0_7:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$-1, (%r14)
LBB0_9:
	leaq	-28(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	movl	%eax, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$2147483647, %r8d               ## imm = 0x7FFFFFFF
	callq	_av_reduce
	movq	-32(%rbp), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,4,2                  ## @INT64_MAX
	.no_dead_strip	_read_fps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_fps
_read_fps:                              ; @read_fps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	str	x0, [sp]
	mov	x1, sp
	mov	x2, x19
	bl	_read_int
	mov	x2, x0
	ldr	x11, [sp]
	ldrb	w8, [x11]
	cmp	w8, #46
	b.ne	LBB0_2
; %bb.1:
	add	x9, x11, #1
	str	x9, [sp]
	ldrb	w8, [x11, #1]
	mov	x11, x9
LBB0_2:
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_9
; %bb.3:
Lloh0:
	adrp	x9, _INT64_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT64_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x9]
	sub	w9, w10, #9
	mov	w12, #26215
	movk	w12, #26214, lsl #16
	smull	x9, w9, w12
	lsr	x13, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w13
	mul	x10, x10, x12
	lsr	x12, x10, #63
	asr	x10, x10, #34
	add	w10, w10, w12
	add	x11, x11, #1
	mov	w3, #1
	mov	w12, #10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w2, w9
	b.gt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w3, w10
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	w8, w2, w12, w8
	sub	w2, w8, #48
	add	w8, w3, w3, lsl #2
	lsl	w3, w8, #1
	str	x11, [sp]
	ldrb	w8, [x11], #1
	sub	w13, w8, #48
	cmp	w13, #10
	b.lo	LBB0_4
LBB0_7:
	cbz	w2, LBB0_10
LBB0_8:
	add	x8, sp, #8
	orr	x0, x8, #0x4
	add	x1, sp, #8
	mov	w4, #2147483647
	bl	_av_reduce
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	mov	w3, #1
	cbnz	w2, LBB0_8
LBB0_10:
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,4,2                  ; @INT64_MAX
	.no_dead_strip	_read_fps
.subsections_via_symbols
