	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ffv1_clear_slice_state      ## -- Begin function ff_ffv1_clear_slice_state
	.p2align	4, 0x90
_ff_ffv1_clear_slice_state:             ## @ff_ffv1_clear_slice_state
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_15
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movabsq	$549755814016, %r8              ## imm = 0x8000000080
	movq	_AC_GOLOMB_RICE@GOTPCREL(%rip), %r13
	movabsq	$4294967300, %r12               ## imm = 0x100000004
	xorps	%xmm0, %xmm0
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movq	8(%rcx,%rdi,8), %rdx
	movq	(%rax,%rdx,8), %rsi
	movl	16(%rcx,%rdi,8), %edx
	movq	_CONTEXT_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	movl	32(%rcx,%rdi,8), %edi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_memcpy
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	movabsq	$549755814016, %r8              ## imm = 0x8000000080
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	24(%r15), %rcx
	leaq	(%rbx,%rbx,4), %rdi
	movq	(%rcx,%rdi,8), %rax
	movq	%r8, (%rax)
	movq	8(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rcx,%rdi,8), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rcx,%rdi,8), %rcx
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$128, %esi
	callq	_memset
	jmp	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	andl	$-2, %esi
	leaq	32(%rcx), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, -32(%rdi)
	movups	%xmm0, -24(%rdi)
	movq	%r12, -8(%rdi)
	movups	%xmm0, (%rdi)
	addq	$2, %rdx
	addq	$48, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%rdx,2), %rax
	movq	%r12, (%rcx,%rax,8)
	movups	%xmm0, 8(%rcx,%rax,8)
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_GOLOMB_RICE,8,3             ## @AC_GOLOMB_RICE
	.comm	_CONTEXT_SIZE,4,2               ## @CONTEXT_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ff_ffv1_clear_slice_state
lCPI0_0:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_ffv1_clear_slice_state
	.p2align	2
_ff_ffv1_clear_slice_state:             ; @ff_ffv1_clear_slice_state
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	mov	w22, #40
	movi.2s	v8, #128
Lloh0:
	adrp	x23, _AC_GOLOMB_RICE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AC_GOLOMB_RICE@GOTPAGEOFF]
	mov	w24, #24
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d9, [x8, lCPI0_0@PAGEOFF]
	mov	x25, #4
	movk	x25, #1, lsl #32
	movi.2d	v0, #0000000000000000
Lloh4:
	adrp	x26, _CONTEXT_SIZE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CONTEXT_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #128
	bl	_memset
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	movi.2d	v0, #0000000000000000
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x9, [x19, #24]
	mul	x8, x21, x22
	ldr	x8, [x9, x8]
	str	d8, [x8]
	ldr	x8, [x19, #8]
	ldr	x10, [x23]
	cmp	x8, x10
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x21, x22, x9
	ldr	w8, [x8, #16]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x9, x21, x22, x9
	ldr	x9, [x9, #24]
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, #0
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	madd	x9, x21, x22, x9
	ldr	x10, [x9, #8]
	ldr	x1, [x8, x10, lsl #3]
	ldr	w0, [x9, #32]
	ldr	w8, [x26]
	ldr	w9, [x9, #16]
	mul	w2, w9, w8
	cbz	x1, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_memcpy
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x10, x8, #0xfffffffc
	add	x11, x9, #48
	mov	x12, x10
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x25, [x11]
	str	x25, [x11, #24]
	stp	xzr, x25, [x11, #-32]
	stp	x25, xzr, [x11, #-48]
	stur	q0, [x11, #-16]
	stur	q0, [x11, #8]
	str	q0, [x11, #32]
	add	x11, x11, #96
	subs	x12, x12, #4
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x10, x8
	b.eq	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x9, x10, x24, x9
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	xzr, xzr, [x9]
	stur	d9, [x9, #-8]
	add	x9, x9, #24
	subs	x8, x8, #1
	b.ne	LBB0_15
	b	LBB0_4
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_GOLOMB_RICE,8,3             ; @AC_GOLOMB_RICE
	.comm	_CONTEXT_SIZE,4,2               ; @CONTEXT_SIZE
.subsections_via_symbols
