	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tqi_calculate_qtable
LCPI0_0:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tqi_calculate_qtable:                  ## @tqi_calculate_qtable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	addl	%esi, %esi
	leal	(%rsi,%rsi,4), %ecx
	movl	$1075, %r10d                    ## imm = 0x433
	subl	%ecx, %r10d
	movq	_ff_inv_aanscales@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ff_mpeg1_default_intra_matrix@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %r8d
	imull	(%rcx), %r8d
	sarl	$11, %r8d
	movq	(%rdi), %rsi
	movl	%r8d, (%rsi)
	leaq	4(%rsi), %r8
	movq	%r8, %r9
	subq	%rcx, %r9
	addq	$-4, %r9
	movl	$1, %edi
	cmpq	$16, %r9
	jb	LBB0_3
## %bb.1:
	subq	%rdx, %r8
	addq	$-4, %r8
	cmpq	$16, %r8
	jb	LBB0_3
## %bb.2:
	movd	%r10d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	4(%rcx), %xmm2
	movdqu	4(%rdx), %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm1, %xmm2
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [32,32,32,32]
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 4(%rsi)
	movdqu	20(%rcx), %xmm2
	movdqu	20(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 20(%rsi)
	movdqu	36(%rcx), %xmm2
	movdqu	36(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 36(%rsi)
	movdqu	52(%rcx), %xmm2
	movdqu	52(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 52(%rsi)
	movdqu	68(%rcx), %xmm2
	movdqu	68(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 68(%rsi)
	movdqu	84(%rcx), %xmm2
	movdqu	84(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 84(%rsi)
	movdqu	100(%rcx), %xmm2
	movdqu	100(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 100(%rsi)
	movdqu	116(%rcx), %xmm2
	movdqu	116(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 116(%rsi)
	movdqu	132(%rcx), %xmm2
	movdqu	132(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 132(%rsi)
	movdqu	148(%rcx), %xmm2
	movdqu	148(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 148(%rsi)
	movdqu	164(%rcx), %xmm2
	movdqu	164(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 164(%rsi)
	movdqu	180(%rcx), %xmm2
	movdqu	180(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 180(%rsi)
	movdqu	196(%rcx), %xmm2
	movdqu	196(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 196(%rsi)
	movdqu	212(%rcx), %xmm2
	movdqu	212(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 212(%rsi)
	movdqu	228(%rcx), %xmm2
	movdqu	228(%rdx), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$14, %xmm2
	movdqu	%xmm2, 228(%rsi)
	movl	$61, %edi
LBB0_3:
	movl	(%rcx,%rdi,4), %eax
	imull	%r10d, %eax
	imull	(%rdx,%rdi,4), %eax
	addl	$32, %eax
	sarl	$14, %eax
	movl	%eax, (%rsi,%rdi,4)
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rdi,4), %eax
	imull	%r10d, %eax
	imull	4(%rdx,%rdi,4), %eax
	addl	$32, %eax
	sarl	$14, %eax
	movl	%eax, 4(%rsi,%rdi,4)
	movl	8(%rcx,%rdi,4), %eax
	imull	%r10d, %eax
	imull	8(%rdx,%rdi,4), %eax
	addl	$32, %eax
	sarl	$14, %eax
	movl	%eax, 8(%rsi,%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	_tqi_calculate_qtable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tqi_calculate_qtable
_tqi_calculate_qtable:                  ; @tqi_calculate_qtable
	.cfi_startproc
; %bb.0:
	mov	w8, #-10
	mul	w8, w1, w8
	add	w8, w8, #1075
Lloh0:
	adrp	x9, _ff_inv_aanscales@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_inv_aanscales@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w11, [x9]
Lloh3:
	adrp	x10, _ff_mpeg1_default_intra_matrix@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ff_mpeg1_default_intra_matrix@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w12, [x10]
	mul	w11, w12, w11
	asr	w12, w11, #11
	ldr	x11, [x0]
	mov	x13, x11
	str	w12, [x13], #4
	sub	x12, x13, x9
	sub	x12, x12, #4
	sub	x13, x13, x10
	sub	x13, x13, #4
	cmp	x12, #16
	ccmp	x13, #16, #0, hs
	b.hs	LBB0_2
; %bb.1:
	mov	w12, #1
	b	LBB0_3
LBB0_2:
	dup.4s	v0, w8
	ldur	q1, [x9, #4]
	ldur	q2, [x10, #4]
	mul.4s	v3, v1, v0
	movi.4s	v1, #32
	movi.4s	v4, #32
	mla.4s	v4, v3, v2
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #4]
	ldur	q2, [x9, #20]
	ldur	q3, [x10, #20]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #20]
	ldur	q2, [x9, #36]
	ldur	q3, [x10, #36]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #36]
	ldur	q2, [x9, #52]
	ldur	q3, [x10, #52]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #52]
	ldur	q2, [x9, #68]
	ldur	q3, [x10, #68]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #68]
	ldur	q2, [x9, #84]
	ldur	q3, [x10, #84]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #84]
	ldur	q2, [x9, #100]
	ldur	q3, [x10, #100]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #100]
	ldur	q2, [x9, #116]
	ldur	q3, [x10, #116]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #116]
	ldur	q2, [x9, #132]
	ldur	q3, [x10, #132]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #132]
	ldur	q2, [x9, #148]
	ldur	q3, [x10, #148]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #148]
	ldur	q2, [x9, #164]
	ldur	q3, [x10, #164]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #164]
	ldur	q2, [x9, #180]
	ldur	q3, [x10, #180]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #180]
	ldur	q2, [x9, #196]
	ldur	q3, [x10, #196]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #196]
	ldur	q2, [x9, #212]
	ldur	q3, [x10, #212]
	mul.4s	v2, v2, v0
	movi.4s	v4, #32
	mla.4s	v4, v2, v3
	sshr.4s	v2, v4, #14
	stur	q2, [x11, #212]
	ldur	q2, [x9, #228]
	ldur	q3, [x10, #228]
	mul.4s	v0, v2, v0
	mla.4s	v1, v0, v3
	sshr.4s	v0, v1, #14
	stur	q0, [x11, #228]
	mov	w12, #61
LBB0_3:
	lsl	x12, x12, #2
	orr	w13, wzr, #0x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x9, x12]
	ldr	w15, [x10, x12]
	mul	w14, w14, w8
	madd	w14, w14, w15, w13
	asr	w14, w14, #14
	str	w14, [x11, x12]
	add	x12, x12, #4
	cmp	x12, #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	_tqi_calculate_qtable
.subsections_via_symbols
