	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scroll
_scroll:                                ## @scroll
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	movl	(%rsi), %esi
	callq	_fmodf
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	movl	4(%r12), %esi
	callq	_fmodf
	movq	%rax, %r15
	movl	%r15d, 4(%rbx)
	movl	(%rbx), %r14d
	testl	%r14d, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	js	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	js	LBB0_3
LBB0_4:
	movq	40(%rbx), %rax
	movl	4(%rax), %esi
	movl	%r15d, %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -56(%rbp)
	movl	%eax, -60(%rbp)
	movl	%r15d, -52(%rbp)
	movl	%r15d, -64(%rbp)
	movq	40(%rbx), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_AV_CEIL_RSHIFT
	movd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movd	%r14d, %xmm1
	pinsrd	$1, %eax, %xmm1
	pshufd	$20, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,1,0]
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pmulld	%xmm1, %xmm0
	movdqa	%xmm0, -160(%rbp)
	movl	12(%rbx), %eax
	testl	%eax, %eax
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	jle	LBB0_15
## %bb.5:
	xorl	%esi, %esi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	12(%rbx), %eax
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	16(%rbx), %rcx
	movl	(%rcx,%rsi,4), %edi
	testl	%edi, %edi
	jle	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r8), %rax
	movq	(%rax,%rsi,8), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movslq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movslq	(%rcx,%rsi,4), %rcx
	imulq	%rax, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%rsi,8), %rbx
	movl	-64(%rbp,%rsi,4), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	-160(%rbp,%rsi,4), %r9d
	movslq	%r9d, %rdx
	movq	%rcx, %rax
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%rdx, %rax
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	subl	%edx, %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%r9, %rax
	negq	%rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%r13, %rsi
	movslq	(%rax,%r13,4), %rax
	leaq	(%rbx,%rax,4), %rbx
	incl	%r14d
	movl	%r12d, %edi
	cmpl	%r14d, %r12d
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-136(%rbp), %rax                ## 8-byte Reload
	addl	%r14d, %eax
	cltd
	movl	%edi, %r12d
	idivl	%edi
	movq	8(%r8), %rax
	movq	%rsi, %r13
	movslq	(%rax,%rsi,4), %rax
	movslq	%edx, %rcx
	imulq	%rax, %rcx
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r15
	cmpl	%r9d, -104(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax,4), %rsi
	movq	%rbx, %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-96(%rbp), %r9                  ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	movq	%r15, %rsi
	movl	%r9d, %edx
	callq	_memcpy
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_12
LBB0_15:
	movl	(%r8), %eax
	imull	32(%rbx), %eax
	addl	%eax, (%rbx)
	movl	4(%r8), %eax
	imull	36(%rbx), %eax
	addl	%eax, 4(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	addl	(%r12), %r14d
	testl	%r15d, %r15d
	jns	LBB0_4
LBB0_3:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	4(%rax), %r15d
	jmp	LBB0_4
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scroll
_scroll:                                ; @scroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	w0, [x0]
	ldr	w1, [x1]
	bl	_fmodf
	str	w0, [x20]
	ldr	w0, [x20, #4]
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	ldr	w1, [x19, #4]
	bl	_fmodf
	mov	x23, x0
	str	w23, [x20, #4]
	ldr	w22, [x20]
	tbnz	w22, #31, LBB0_15
; %bb.1:
	tbnz	w23, #31, LBB0_16
LBB0_2:
	ldr	x8, [x20, #40]
	ldr	w1, [x8, #4]
	mov	x0, x23
	bl	_AV_CEIL_RSHIFT
	stp	w0, w23, [sp, #48]
	stp	w23, w0, [sp, #40]
	ldr	x8, [x20, #40]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_AV_CEIL_RSHIFT
	ldp	w9, w8, [x20, #8]
	mul	w10, w9, w0
	mul	w9, w9, w22
	stp	w10, w9, [sp, #64]
	stp	w9, w10, [sp, #56]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:
	mov	x26, #0
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x20, #12]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x9, [x20, #16]
	ldr	w27, [x9, x26, lsl #2]
	cmp	w27, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w28, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	x19, [x8, x26, lsl #3]
	ldr	w8, [x20, #8]
	ldr	x9, [x20, #24]
	lsl	x10, x26, #2
	ldr	w9, [x9, x10]
	mul	w8, w8, w9
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #16]
	ldr	x22, [x9, x26, lsl #3]
	add	x9, sp, #40
	ldr	w21, [x9, x10]
	add	x9, sp, #56
	ldr	w9, [x9, x10]
	sxtw	x23, w9
	sub	w10, w8, w9
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	sxtw	x20, w8
	neg	x24, x9
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8, x26, lsl #2]
	add	x22, x22, x8, lsl #2
	add	w28, w28, #1
	cmp	w27, w28
	b.eq	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w21, w28
	sdiv	w9, w8, w27
	msub	w8, w9, w27, w8
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	w9, [x9, x26, lsl #2]
	mul	w8, w9, w8
	add	x25, x19, w8, sxtw #2
	cmp	w20, w23
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x1, x25, x23, lsl #2
	mov	x0, x22
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_memcpy
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x8, x22, x20, lsl #2
	add	x0, x8, x24, lsl #2
	mov	x1, x25
	mov	x2, x23
	bl	_memcpy
	b	LBB0_8
LBB0_13:
	ldr	d0, [x20, #32]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	d1, [x8]
	ldr	d2, [x20]
	mla.2s	v2, v1, v0
	str	d2, [x20]
	ldr	x8, [sp, #72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_15:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	add	w22, w8, w22
	tbz	w23, #31, LBB0_2
LBB0_16:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
	add	w23, w8, w23
	b	LBB0_2
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scroll
.subsections_via_symbols
