	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_pred_ac               ## -- Begin function ff_mpeg4_pred_ac
	.p2align	4, 0x90
_ff_mpeg4_pred_ac:                      ## @ff_mpeg4_pred_ac
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rdi
	movq	(%rax), %rax
	movslq	%edx, %rsi
	movslq	(%rdi,%rsi,4), %rbx
	shlq	$6, %rbx
	addq	(%rax), %rbx
	cmpq	$0, 48(%r14)
	je	LBB0_1
## %bb.2:
	movq	56(%r14), %r8
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.8:
	movl	20(%r14), %eax
	movq	32(%r14), %rcx
	movslq	(%rcx,%rsi,4), %r13
	shlq	$4, %r13
	negq	%r13
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	andl	$-2, %edx
	cmpl	$2, %edx
	je	LBB0_12
## %bb.10:
	movl	16(%r14), %ecx
	movl	24(%r14), %edx
	imull	%edx, %eax
	subl	%edx, %ecx
	addl	%eax, %ecx
	movl	28(%r14), %esi
	movslq	%ecx, %r12
	movl	(%r8,%r12,4), %edi
	cmpl	%edi, %esi
	je	LBB0_12
## %bb.11:
	imull	36(%rbx,%r13,4), %edi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	8(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	imull	40(%rbx,%r13,4), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	16(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	imull	44(%rbx,%r13,4), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	24(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	imull	48(%rbx,%r13,4), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	32(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	imull	52(%rbx,%r13,4), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	40(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	imull	56(%rbx,%r13,4), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	48(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	imull	60(%rbx,%r13,4), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	56(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	jmp	LBB0_14
LBB0_1:
	movq	40(%r14), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	40(%r14), %rcx
	movl	36(%rbx,%r13,4), %eax
	movq	8(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	40(%rbx,%r13,4), %eax
	movq	16(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	44(%rbx,%r13,4), %eax
	movq	24(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	48(%rbx,%r13,4), %eax
	movq	32(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	52(%rbx,%r13,4), %eax
	movq	40(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	56(%rbx,%r13,4), %eax
	movq	48(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	60(%rbx,%r13,4), %eax
	movq	56(%rcx), %rdx
	jmp	LBB0_13
LBB0_3:
	movl	16(%r14), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	andl	$-3, %edx
	cmpl	$1, %edx
	je	LBB0_7
## %bb.5:
	movl	24(%r14), %ecx
	movl	28(%r14), %esi
	imull	20(%r14), %ecx
	addl	%ecx, %eax
	decl	%eax
	movslq	%eax, %r13
	movl	(%r8,%r13,4), %edi
	cmpl	%edi, %esi
	je	LBB0_7
## %bb.6:
	imull	-60(%rbx), %edi
	movq	%r8, %r12
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	64(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movl	(%r12,%r13,4), %edi
	imull	-56(%rbx), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	128(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movl	(%r12,%r13,4), %edi
	imull	-52(%rbx), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	192(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movl	(%r12,%r13,4), %edi
	imull	-48(%rbx), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	256(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movl	(%r12,%r13,4), %edi
	imull	-44(%rbx), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	320(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movl	(%r12,%r13,4), %edi
	imull	-40(%rbx), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	384(%rcx), %rcx
	addl	%eax, (%r15,%rcx,4)
	movl	(%r12,%r13,4), %edi
	imull	-36(%rbx), %edi
	movl	28(%r14), %esi
	callq	_ROUNDED_DIV
	movq	40(%r14), %rcx
	movq	448(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	jmp	LBB0_14
LBB0_7:
	movq	40(%r14), %rcx
	movl	-60(%rbx), %eax
	movq	64(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	-56(%rbx), %eax
	movq	128(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	-52(%rbx), %eax
	movq	192(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	-48(%rbx), %eax
	movq	256(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	-44(%rbx), %eax
	movq	320(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	-40(%rbx), %eax
	movq	384(%rcx), %rdx
	addl	%eax, (%r15,%rdx,4)
	movl	-36(%rbx), %eax
	movq	448(%rcx), %rdx
LBB0_13:
	addl	%eax, (%r15,%rdx,4)
LBB0_14:
	movq	64(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 4(%rbx)
	movq	128(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 8(%rbx)
	movq	192(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 12(%rbx)
	movq	256(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 16(%rbx)
	movq	320(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 20(%rbx)
	movq	384(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 24(%rbx)
	movq	448(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 28(%rbx)
	movq	8(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 36(%rbx)
	movq	16(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 40(%rbx)
	movq	24(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 44(%rbx)
	movq	32(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 48(%rbx)
	movq	40(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 52(%rbx)
	movq	48(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 56(%rbx)
	movq	56(%rcx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 60(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_pred_ac               ; -- Begin function ff_mpeg4_pred_ac
	.p2align	2
_ff_mpeg4_pred_ac:                      ; @ff_mpeg4_pred_ac
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldrsw	x9, [x9, w2, sxtw #2]
	add	x21, x8, x9, lsl #6
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x22, [x20, #56]
	cbz	w3, LBB0_8
; %bb.2:
	sxtw	x9, w2
	ldr	w8, [x20, #20]
	ldr	x10, [x20, #32]
	ldrsw	x9, [x10, x9, lsl #2]
	sub	x23, x21, x9, lsl #6
	cbz	w8, LBB0_7
; %bb.3:
	and	w9, w2, #0xfffffffe
	cmp	w9, #2
	b.eq	LBB0_7
; %bb.4:
	ldr	w9, [x20, #16]
	ldp	w10, w1, [x20, #24]
	sub	w9, w9, w10
	madd	w9, w10, w8, w9
	ldr	w8, [x22, w9, sxtw #2]
	cmp	w1, w8
	b.eq	LBB0_7
; %bb.5:
	sxtw	x24, w9
	ldr	w9, [x23, #36]
	mul	w0, w8, w9
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #8]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldr	w8, [x23, #40]
	lsl	x24, x24, #2
	ldr	w9, [x22, x24]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #16]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldr	w8, [x23, #44]
	ldr	w9, [x22, x24]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #24]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldr	w8, [x23, #48]
	ldr	w9, [x22, x24]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #32]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldr	w8, [x23, #52]
	ldr	w9, [x22, x24]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #40]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldr	w8, [x23, #56]
	ldr	w9, [x22, x24]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #48]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldr	w8, [x23, #60]
	ldr	w9, [x22, x24]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x9, [x8, #56]
	b	LBB0_12
LBB0_6:
	ldr	x8, [x20, #40]
	b	LBB0_15
LBB0_7:
	ldr	x8, [x20, #40]
	ldr	w9, [x23, #36]
	ldp	x10, x11, [x8, #8]
	lsl	x10, x10, #2
	ldr	w12, [x19, x10]
	add	w9, w12, w9
	str	w9, [x19, x10]
	ldr	w9, [x23, #40]
	lsl	x10, x11, #2
	ldr	w11, [x19, x10]
	add	w9, w11, w9
	str	w9, [x19, x10]
	ldr	w9, [x23, #44]
	ldp	x10, x11, [x8, #24]
	lsl	x10, x10, #2
	ldr	w12, [x19, x10]
	add	w9, w12, w9
	str	w9, [x19, x10]
	ldr	w9, [x23, #48]
	lsl	x10, x11, #2
	ldr	w11, [x19, x10]
	add	w9, w11, w9
	str	w9, [x19, x10]
	ldr	w9, [x23, #52]
	ldp	x10, x11, [x8, #40]
	lsl	x10, x10, #2
	ldr	w12, [x19, x10]
	add	w9, w12, w9
	str	w9, [x19, x10]
	lsl	x9, x11, #2
	ldr	w10, [x19, x9]
	ldr	w11, [x23, #56]
	add	w10, w10, w11
	str	w10, [x19, x9]
	ldr	w9, [x23, #60]
	ldr	x10, [x8, #56]
	b	LBB0_14
LBB0_8:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_13
; %bb.9:
	and	w9, w2, #0xfffffffd
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.10:
	ldp	w9, w10, [x20, #20]
	madd	w8, w10, w9, w8
	sub	w8, w8, #1
	ldr	w1, [x20, #28]
	ldr	w9, [x22, w8, sxtw #2]
	cmp	w1, w9
	b.eq	LBB0_13
; %bb.11:
	sxtw	x23, w8
	ldur	w8, [x21, #-60]
	mul	w0, w9, w8
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #64]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldur	w8, [x21, #-56]
	lsl	x23, x23, #2
	ldr	w9, [x22, x23]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #128]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldur	w8, [x21, #-52]
	ldr	w9, [x22, x23]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #192]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldur	w8, [x21, #-48]
	ldr	w9, [x22, x23]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #256]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldur	w8, [x21, #-44]
	ldr	w9, [x22, x23]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #320]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldur	w8, [x21, #-40]
	ldr	w9, [x22, x23]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #384]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, w0
	str	w9, [x19, x8]
	ldur	w8, [x21, #-36]
	ldr	w9, [x22, x23]
	mul	w0, w9, w8
	ldr	w1, [x20, #28]
	bl	_ROUNDED_DIV
	ldr	x8, [x20, #40]
	ldr	x9, [x8, #448]
LBB0_12:
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	add	w10, w10, w0
	str	w10, [x19, x9]
	b	LBB0_15
LBB0_13:
	ldr	x8, [x20, #40]
	ldur	w9, [x21, #-60]
	ldr	x10, [x8, #64]
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	add	w9, w11, w9
	str	w9, [x19, x10]
	ldur	w9, [x21, #-56]
	ldr	x10, [x8, #128]
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	add	w9, w11, w9
	str	w9, [x19, x10]
	ldr	x9, [x8, #192]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	ldur	w11, [x21, #-52]
	add	w10, w10, w11
	str	w10, [x19, x9]
	ldur	w9, [x21, #-48]
	ldr	x10, [x8, #256]
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	add	w9, w11, w9
	str	w9, [x19, x10]
	ldur	w9, [x21, #-44]
	ldr	x10, [x8, #320]
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	add	w9, w11, w9
	str	w9, [x19, x10]
	ldr	x9, [x8, #384]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	ldur	w11, [x21, #-40]
	add	w10, w10, w11
	str	w10, [x19, x9]
	ldur	w9, [x21, #-36]
	ldr	x10, [x8, #448]
LBB0_14:
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	add	w9, w11, w9
	str	w9, [x19, x10]
LBB0_15:
	ldp	x10, x9, [x8, #56]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #4]
	ldr	x9, [x8, #128]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #8]
	ldr	x9, [x8, #192]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #12]
	ldr	x9, [x8, #256]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #16]
	ldr	x9, [x8, #320]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #20]
	ldr	x9, [x8, #384]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #24]
	ldr	x9, [x8, #448]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #28]
	ldp	x9, x11, [x8, #8]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #36]
	ldr	w9, [x19, x11, lsl #2]
	str	w9, [x21, #40]
	ldp	x9, x11, [x8, #24]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #44]
	ldr	w9, [x19, x11, lsl #2]
	str	w9, [x21, #48]
	ldp	x9, x8, [x8, #40]
	ldr	w9, [x19, x9, lsl #2]
	str	w9, [x21, #52]
	ldr	w8, [x19, x8, lsl #2]
	str	w8, [x21, #56]
	ldr	w8, [x19, x10, lsl #2]
	str	w8, [x21, #60]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
