	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function calc_quant_matrix
LCPI0_0:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_calc_quant_matrix:                     ## @calc_quant_matrix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ff_inv_aanscales@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_ff_mpeg1_default_intra_matrix@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r8d
	imull	(%r10), %r8d
	sarl	$11, %r8d
	movq	(%rdi), %rdx
	movl	%r8d, (%rdx)
	leaq	4(%rdx), %r8
	movq	%r8, %r9
	subq	%r10, %r9
	addq	$-4, %r9
	movl	$1, %edi
	cmpq	$16, %r9
	jb	LBB0_3
## %bb.1:
	subq	%rcx, %r8
	addq	$-4, %r8
	cmpq	$16, %r8
	jb	LBB0_3
## %bb.2:
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	4(%r10), %xmm2
	movdqu	4(%rcx), %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm1, %xmm2
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [32,32,32,32]
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 4(%rdx)
	movdqu	20(%r10), %xmm2
	movdqu	20(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 20(%rdx)
	movdqu	36(%r10), %xmm2
	movdqu	36(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 36(%rdx)
	movdqu	52(%r10), %xmm2
	movdqu	52(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 52(%rdx)
	movdqu	68(%r10), %xmm2
	movdqu	68(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 68(%rdx)
	movdqu	84(%r10), %xmm2
	movdqu	84(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 84(%rdx)
	movdqu	100(%r10), %xmm2
	movdqu	100(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 100(%rdx)
	movdqu	116(%r10), %xmm2
	movdqu	116(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 116(%rdx)
	movdqu	132(%r10), %xmm2
	movdqu	132(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 132(%rdx)
	movdqu	148(%r10), %xmm2
	movdqu	148(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 148(%rdx)
	movdqu	164(%r10), %xmm2
	movdqu	164(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 164(%rdx)
	movdqu	180(%r10), %xmm2
	movdqu	180(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 180(%rdx)
	movdqu	196(%r10), %xmm2
	movdqu	196(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 196(%rdx)
	movdqu	212(%r10), %xmm2
	movdqu	212(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 212(%rdx)
	movdqu	228(%r10), %xmm2
	movdqu	228(%rcx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$10, %xmm2
	movdqu	%xmm2, 228(%rdx)
	movl	$61, %edi
LBB0_3:
	movl	(%r10,%rdi,4), %eax
	imull	%esi, %eax
	imull	(%rcx,%rdi,4), %eax
	addl	$32, %eax
	sarl	$10, %eax
	movl	%eax, (%rdx,%rdi,4)
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r10,%rdi,4), %eax
	imull	%esi, %eax
	imull	4(%rcx,%rdi,4), %eax
	addl	$32, %eax
	sarl	$10, %eax
	movl	%eax, 4(%rdx,%rdi,4)
	movl	8(%r10,%rdi,4), %eax
	imull	%esi, %eax
	imull	8(%rcx,%rdi,4), %eax
	addl	$32, %eax
	sarl	$10, %eax
	movl	%eax, 8(%rdx,%rdi,4)
	addq	$2, %rdi
	cmpq	$63, %rdi
	jne	LBB0_4
## %bb.5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_inv_aanscales,8,3           ## @ff_inv_aanscales
	.comm	_ff_mpeg1_default_intra_matrix,8,3 ## @ff_mpeg1_default_intra_matrix
	.no_dead_strip	_calc_quant_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_quant_matrix
_calc_quant_matrix:                     ; @calc_quant_matrix
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ff_inv_aanscales@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_inv_aanscales@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _ff_mpeg1_default_intra_matrix@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_mpeg1_default_intra_matrix@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w11, [x9]
	mul	w10, w11, w10
	asr	w11, w10, #11
	ldr	x10, [x0]
	mov	x12, x10
	str	w11, [x12], #4
	sub	x11, x12, x8
	sub	x11, x11, #4
	sub	x12, x12, x9
	sub	x12, x12, #4
	cmp	x11, #16
	ccmp	x12, #16, #0, hs
	b.hs	LBB0_2
; %bb.1:
	mov	w11, #1
	b	LBB0_3
LBB0_2:
	dup.4s	v0, w1
	ldur	q1, [x8, #4]
	ldur	q2, [x9, #4]
	mul.4s	v3, v1, v0
	movi.4s	v1, #32
	movi.4s	v4, #32
	mla.4s	v4, v3, v2
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #4]
	ldur	q2, [x8, #20]
	ldur	q3, [x9, #20]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #20]
	ldur	q2, [x8, #36]
	ldur	q3, [x9, #36]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #36]
	ldur	q2, [x8, #52]
	ldur	q3, [x9, #52]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #52]
	ldur	q2, [x8, #68]
	ldur	q3, [x9, #68]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #68]
	ldur	q2, [x8, #84]
	ldur	q3, [x9, #84]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #84]
	ldur	q2, [x8, #100]
	ldur	q3, [x9, #100]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #100]
	ldur	q2, [x8, #116]
	ldur	q3, [x9, #116]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #116]
	ldur	q2, [x8, #132]
	ldur	q3, [x9, #132]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #132]
	ldur	q2, [x8, #148]
	ldur	q3, [x9, #148]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #148]
	ldur	q2, [x8, #164]
	ldur	q3, [x9, #164]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #164]
	ldur	q2, [x8, #180]
	ldur	q3, [x9, #180]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #180]
	ldur	q2, [x8, #196]
	ldur	q3, [x9, #196]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #196]
	ldur	q2, [x8, #212]
	ldur	q3, [x9, #212]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #10
	stur	q2, [x10, #212]
	ldur	q2, [x8, #228]
	ldur	q3, [x9, #228]
	mul.4s	v0, v2, v0
	mla.4s	v1, v0, v3
	sshr.4s	v0, v1, #10
	stur	q0, [x10, #228]
	mov	w11, #61
LBB0_3:
	lsl	x11, x11, #2
	orr	w12, wzr, #0x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8, x11]
	ldr	w14, [x9, x11]
	mul	w13, w13, w1
	madd	w13, w13, w14, w12
	asr	w13, w13, #10
	str	w13, [x10, x11]
	add	x11, x11, #4
	cmp	x11, #256
	b.ne	LBB0_4
; %bb.5:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_inv_aanscales,8,3           ; @ff_inv_aanscales
	.comm	_ff_mpeg1_default_intra_matrix,8,3 ; @ff_mpeg1_default_intra_matrix
	.no_dead_strip	_calc_quant_matrix
.subsections_via_symbols
