	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_slice
_fill_slice:                            ## @fill_slice
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	32(%r13), %eax
	movl	%eax, (%rbx)
	shll	$3, %r15d
	movl	%r15d, 4(%rbx)
	movl	%r12d, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	40(%r13), %rcx
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	cmpl	$0, 24(%r13)
	je	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_3:
	movq	16(%r13), %r14
	addq	$9, %r14
LBB0_4:
	movq	%r14, 40(%rbx)
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmpq	$0, 8(%r13)
	jne	LBB0_6
## %bb.5:
	leaq	64(%r13), %rdi
	callq	_get_bits_count
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	_AV_CODEC_ID_VC1@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	sete	%cl
	shll	$5, %ecx
	addl	%eax, %ecx
	movl	32(%r13), %eax
LBB0_6:
	movl	%ecx, 12(%rbx)
	movb	(%r13), %cl
	sarl	%cl, %eax
	movslq	48(%r13), %rcx
	cltq
	imulq	%rcx, %rax
	addq	56(%r13), %rax
	movq	%rax, 32(%rbx)
	movl	4(%r13), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.comm	_AV_CODEC_ID_VC1,8,3            ## @AV_CODEC_ID_VC1
	.no_dead_strip	_fill_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_slice
_fill_slice:                            ; @fill_slice
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x9, #0
	ldr	w8, [x23, #32]
	lsl	w10, w21, #3
	stp	w8, w10, [x19]
	str	w22, [x19, #8]
	stp	xzr, xzr, [x19, #48]
	ldr	x10, [x23, #40]
Lloh0:
	adrp	x11, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.1:
	ldr	w9, [x23, #24]
	cbz	w9, LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_4
LBB0_3:
	ldr	x9, [x23, #16]
	add	x9, x9, #9
LBB0_4:
	str	x9, [x19, #40]
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_6
; %bb.5:
	mov	w9, #65535
	b	LBB0_7
LBB0_6:
	add	x0, x23, #64
	bl	_get_bits_count
Lloh3:
	adrp	x8, _AV_CODEC_ID_VC1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CODEC_ID_VC1@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, eq
	add	w9, w0, w8, lsl #5
	ldr	w8, [x23, #32]
LBB0_7:
	str	w9, [x19, #12]
	ldp	w9, w10, [x23]
	asr	w8, w8, w9
	ldrsw	x9, [x23, #48]
	sxtw	x8, w8
	ldr	x11, [x23, #56]
	madd	x8, x8, x9, x11
	str	x8, [x19, #32]
	str	w10, [x19, #24]
	str	xzr, [x19, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.comm	_AV_CODEC_ID_VC1,8,3            ; @AV_CODEC_ID_VC1
	.no_dead_strip	_fill_slice
.subsections_via_symbols
