	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_slices
_encode_slices:                         ## @encode_slices
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %r12
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_avpriv_align_put_bits
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_put_bits_ptr
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	4(%r15), %r8d
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%edx
	cmpl	%ecx, %edx
	jge	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%edx, %r8d
	movslq	%r8d, %r14
	addq	%r13, %r14
	shlq	$4, %r14
	leaq	(%r12,%r14), %rdi
	addq	$8, %rdi
	movslq	%ebx, %rbx
	leaq	(%rax,%rbx,4), %rsi
	movq	24(%r15), %rdx
	addq	(%r12,%r14), %rdx
	movq	%r15, %r12
	movq	%rax, %r15
	callq	_init_put_bits
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rax
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addl	(%r12,%r14), %ebx
	movl	4(%r15), %r8d
	incq	%r13
	cmpl	%r8d, %r13d
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ecx
	jmp	LBB0_7
LBB0_1:
	movl	4(%r15), %r8d
	xorl	%ebx, %ebx
LBB0_8:
	imull	%ecx, %r8d
	movq	16(%r15), %rdi
	movq	_encode_hq_slice@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movl	$16, %r9d
	callq	*(%rdi)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_skip_put_bytes
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_encode_hq_slice,4,2            ## @encode_hq_slice
	.no_dead_strip	_encode_slices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_slices
_encode_slices:                         ; @encode_slices
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	ldr	x20, [x0, #32]
	add	x19, x0, #8
	mov	x0, x19
	bl	_avpriv_align_put_bits
	mov	x0, x19
	bl	_flush_put_bits
	mov	x0, x19
	bl	_put_bits_ptr
	ldr	w9, [x21]
	cmp	w9, #0
	b.le	LBB0_7
; %bb.1:
	mov	x23, x0
	mov	w24, #0
	mov	w22, #0
	ldr	w8, [x21, #4]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	cmp	w24, w9
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w8, w24, w8
	add	x8, x25, w8, sxtw
	add	x26, x20, x8, lsl #4
	add	x0, x26, #8
	add	x1, x23, w22, sxtw #2
	ldr	x8, [x26]
	ldr	x9, [x21, #24]
	add	x2, x9, x8
	bl	_init_put_bits
	ldr	w8, [x26]
	add	w22, w22, w8
	ldr	w8, [x21, #4]
	add	x25, x25, #1
	cmp	w25, w8
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
	b	LBB0_2
LBB0_7:
	mov	w22, #0
	ldr	w8, [x21, #4]
LBB0_8:
	ldr	x0, [x21, #16]
	ldr	x10, [x0]
Lloh0:
	adrp	x11, _encode_hq_slice@GOTPAGE
Lloh1:
	ldr	x11, [x11, _encode_hq_slice@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x11]
	mul	w4, w8, w9
	mov	x2, x20
	mov	x3, #0
	mov	w5, #16
	blr	x10
	mov	x0, x19
	mov	x1, x22
	bl	_skip_put_bytes
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_encode_hq_slice,4,2            ; @encode_hq_slice
	.no_dead_strip	_encode_slices
.subsections_via_symbols
