	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svq3_add_idct_c
_svq3_add_idct_c:                       ## @svq3_add_idct_c
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r10
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_svq3_dequant_coeff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$1, %r8d
	je	LBB0_3
## %bb.1:
	testl	%r8d, %r8d
	jne	LBB0_4
## %bb.2:
	movl	(%r10), %esi
	movl	$524288, -48(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x80000
	jmp	LBB0_6
LBB0_3:
	imull	$1538, (%r10), %eax             ## imm = 0x602
	jmp	LBB0_5
LBB0_4:
	movl	(%r10), %eax
	shrl	$3, %eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	shrl	%eax
LBB0_5:
	imull	$169, %eax, %eax
	addl	$524288, %eax                   ## imm = 0x80000
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
LBB0_6:
	movl	4(%r10), %eax
	movl	8(%r10), %edi
	leal	(%rdi,%rsi), %ecx
	leal	(%rcx,%rcx,2), %ebx
	leal	(%rcx,%rbx,4), %r8d
	subl	%edi, %esi
	leal	(%rsi,%rsi,2), %edi
	leal	(%rsi,%rdi,4), %r9d
	leal	(,%rax,8), %edi
	subl	%eax, %edi
	movl	12(%r10), %ebx
	movl	%ebx, %ecx
	shll	$4, %ecx
	addl	%ebx, %ecx
	subl	%ecx, %edi
	movl	%eax, %ecx
	shll	$4, %ecx
	addl	%eax, %ecx
	leal	(,%rbx,8), %esi
	subl	%ebx, %esi
	addl	%ecx, %esi
	leal	(%rsi,%r8), %eax
	movl	%eax, (%r10)
	leal	(%rdi,%r9), %ecx
	movl	%ecx, 4(%r10)
	subl	%edi, %r9d
	movl	%r9d, 8(%r10)
	subl	%esi, %r8d
	movl	%r8d, 12(%r10)
	movl	16(%r10), %esi
	movl	24(%r10), %edi
	leal	(%rdi,%rsi), %ecx
	leal	(%rcx,%rcx,2), %ebx
	leal	(%rcx,%rbx,4), %r8d
	subl	%edi, %esi
	leal	(%rsi,%rsi,2), %edi
	leal	(%rsi,%rdi,4), %r9d
	movl	20(%r10), %ebx
	leal	(,%rbx,8), %edi
	subl	%ebx, %edi
	movl	28(%r10), %ecx
	movl	%ecx, %esi
	shll	$4, %esi
	addl	%ecx, %esi
	subl	%esi, %edi
	movl	%ebx, %esi
	shll	$4, %esi
	addl	%ebx, %esi
	leal	(,%rcx,8), %ebx
	subl	%ecx, %ebx
	addl	%esi, %ebx
	leal	(%rbx,%r8), %ecx
	movl	%ecx, 16(%r10)
	leal	(%rdi,%r9), %ecx
	movl	%ecx, 20(%r10)
	subl	%edi, %r9d
	movl	%r9d, 24(%r10)
	subl	%ebx, %r8d
	movl	%r8d, 28(%r10)
	movl	32(%r10), %esi
	movl	40(%r10), %edi
	leal	(%rdi,%rsi), %ecx
	leal	(%rcx,%rcx,2), %ebx
	leal	(%rcx,%rbx,4), %r8d
	subl	%edi, %esi
	leal	(%rsi,%rsi,2), %edi
	leal	(%rsi,%rdi,4), %r9d
	movl	36(%r10), %ebx
	leal	(,%rbx,8), %edi
	subl	%ebx, %edi
	movl	44(%r10), %ecx
	movl	%ecx, %esi
	shll	$4, %esi
	addl	%ecx, %esi
	subl	%esi, %edi
	movl	%ebx, %esi
	shll	$4, %esi
	addl	%ebx, %esi
	leal	(,%rcx,8), %ebx
	subl	%ecx, %ebx
	addl	%esi, %ebx
	leal	(%rbx,%r8), %ecx
	movl	%ecx, 32(%r10)
	leal	(%rdi,%r9), %ecx
	movl	%ecx, 36(%r10)
	subl	%edi, %r9d
	movl	%r9d, 40(%r10)
	subl	%ebx, %r8d
	movl	%r8d, 44(%r10)
	movl	56(%r10), %r8d
	movl	48(%r10), %edi
	movl	52(%r10), %ebx
	leal	(%r8,%rdi), %ecx
	leal	(%rcx,%rcx,2), %esi
	leal	(%rcx,%rsi,4), %r9d
	subl	%r8d, %edi
	leal	(%rdi,%rdi,2), %esi
	leal	(%rdi,%rsi,4), %r8d
	leal	(,%rbx,8), %edi
	subl	%ebx, %edi
	movl	60(%r10), %ecx
	movl	%ecx, %esi
	shll	$4, %esi
	addl	%ecx, %esi
	subl	%esi, %edi
	movl	%ebx, %esi
	shll	$4, %esi
	addl	%ebx, %esi
	leal	(,%rcx,8), %ebx
	subl	%ecx, %ebx
	addl	%esi, %ebx
	leal	(%rbx,%r9), %ecx
	movl	%ecx, 48(%r10)
	leal	(%rdi,%r8), %ecx
	movl	%ecx, 52(%r10)
	subl	%edi, %r8d
	movl	%r8d, 56(%r10)
	subl	%ebx, %r9d
	movl	%r9d, 60(%r10)
	leal	(%rdx,%rdx), %ecx
	leal	(%rdx,%rdx,2), %esi
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movslq	%esi, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rsi,4), %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rcx,4), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rdx,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r10,%r13), %ecx
	movl	32(%r10,%r13), %edx
	leal	(%rdx,%rax), %esi
	leal	(%rsi,%rsi,2), %edi
	leal	(%rsi,%rdi,4), %r12d
	subl	%edx, %eax
	leal	(%rax,%rax,2), %edx
	leal	(%rax,%rdx,4), %ebx
	leal	(,%rcx,8), %esi
	subl	%ecx, %esi
	movl	48(%r10,%r13), %eax
	movl	%eax, %edx
	shll	$4, %edx
	addl	%eax, %edx
	subl	%edx, %esi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %edx
	shll	$4, %edx
	addl	%ecx, %edx
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	addl	%edx, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	leal	(%rcx,%r12), %edi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	imull	%r15d, %edi
	addl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	sarl	$20, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addl	(%r14,%r13), %edi
	callq	_av_clip_uint8
	movl	%eax, (%r14,%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rbx), %edi
	imull	%r15d, %edi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	addl	%r15d, %edi
	sarl	$20, %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	addl	(%r14,%r13), %edi
	callq	_av_clip_uint8
	movl	%eax, (%r14,%r13)
	subl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%r15d, %ebx
	sarl	$20, %ebx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	addl	(%r14,%r13), %ebx
	movl	%ebx, %edi
	callq	_av_clip_uint8
	movl	%eax, (%r14,%r13)
	subl	-104(%rbp), %r12d               ## 4-byte Folded Reload
	imull	-44(%rbp), %r12d                ## 4-byte Folded Reload
	addl	%r15d, %r12d
	sarl	$20, %r12d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	addl	(%rbx,%r13), %r12d
	movl	%r12d, %edi
	callq	_av_clip_uint8
	movl	%eax, (%rbx,%r13)
	cmpq	$12, %r13
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movl	4(%r10,%r13), %eax
	addq	$4, %r13
	jmp	LBB0_7
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$64, %edx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_svq3_dequant_coeff,8,3         ## @svq3_dequant_coeff
	.no_dead_strip	_svq3_add_idct_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svq3_add_idct_c
_svq3_add_idct_c:                       ; @svq3_add_idct_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _svq3_dequant_coeff@GOTPAGE
Lloh1:
	ldr	x8, [x8, _svq3_dequant_coeff@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w3, sxtw #2]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	cmp	w4, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w4, LBB0_4
; %bb.2:
	ldr	w8, [x1]
	mov	w9, #524288
	b	LBB0_6
LBB0_3:
	ldr	w8, [x1]
	mov	w9, #1538
	mul	w9, w8, w9
	b	LBB0_5
LBB0_4:
	ldr	w8, [x1]
	lsr	w8, w8, #3
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	mul	w8, w8, w9
	lsr	w9, w8, #1
LBB0_5:
	mov	w8, #0
	mov	w10, #169
	orr	w11, wzr, #0x80000
	madd	w9, w9, w10, w11
LBB0_6:
	str	w9, [sp, #32]                   ; 4-byte Folded Spill
	mov	x23, #0
	ldp	w10, w9, [x1, #4]
	add	w11, w9, w8
	mov	w16, #13
	mul	w11, w11, w16
	sub	w8, w8, w9
	mul	w9, w8, w16
	lsl	w8, w10, #3
	ldp	w12, w13, [x1, #12]
	add	w14, w12, w12, lsl #4
	sub	w8, w8, w10
	sub	w14, w8, w14
	add	w8, w10, w10, lsl #4
	lsl	w10, w12, #3
	sub	w10, w10, w12
	add	w10, w10, w8
	add	w8, w10, w11
	add	w12, w14, w9
	stp	w8, w12, [x1]
	sub	w9, w9, w14
	sub	w10, w11, w10
	stp	w9, w10, [x1, #8]
	ldp	w10, w9, [x1, #20]
	add	w11, w9, w13
	mul	w11, w11, w16
	sub	w9, w13, w9
	mul	w9, w9, w16
	lsl	w12, w10, #3
	ldr	w13, [x1, #28]
	add	w14, w13, w13, lsl #4
	sub	w12, w12, w10
	sub	w12, w12, w14
	add	w10, w10, w10, lsl #4
	lsl	w14, w13, #3
	sub	w13, w14, w13
	add	w10, w13, w10
	add	w13, w10, w11
	add	w14, w12, w9
	stp	w13, w14, [x1, #16]
	sub	w9, w9, w12
	sub	w10, w11, w10
	stp	w9, w10, [x1, #24]
	mov	x17, x1
	ldr	w9, [x17, #32]!
	ldp	w11, w10, [x1, #36]
	add	w12, w10, w9
	mul	w12, w12, w16
	sub	w9, w9, w10
	mul	w9, w9, w16
	lsl	w10, w11, #3
	ldp	w13, w14, [x1, #44]
	add	w15, w13, w13, lsl #4
	sub	w10, w10, w11
	sub	w10, w10, w15
	add	w11, w11, w11, lsl #4
	lsl	w15, w13, #3
	sub	w13, w15, w13
	add	w11, w13, w11
	add	w13, w11, w12
	str	x17, [sp, #24]                  ; 8-byte Folded Spill
	str	w13, [x17]
	add	w13, w10, w9
	sub	w9, w9, w10
	stp	w13, w9, [x1, #36]
	sub	w9, w12, w11
	ldp	w11, w10, [x1, #52]
	add	w12, w10, w14
	mul	w12, w12, w16
	sub	w10, w14, w10
	mul	w10, w10, w16
	lsl	w13, w11, #3
	ldr	w14, [x1, #60]
	add	w15, w14, w14, lsl #4
	sub	w13, w13, w11
	sub	w13, w13, w15
	add	w11, w11, w11, lsl #4
	lsl	w15, w14, #3
	sub	w14, w15, w14
	add	w11, w14, w11
	add	w14, w11, w12
	stp	w9, w14, [x1, #44]
	add	w9, w13, w10
	sub	w10, w10, w13
	stp	w9, w10, [x1, #52]
	sub	w9, w12, w11
	str	w9, [x1, #60]
	mov	w9, #12
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	smaddl	x9, w2, w9, x10
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	add	x9, x10, w2, sxtw #3
	stp	x1, x9, [sp]                    ; 16-byte Folded Spill
	add	x28, x10, w2, sxtw #2
	ldp	w27, w26, [sp, #32]             ; 8-byte Folded Reload
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x19, x9, x23
	ldr	w9, [x19]
	add	w10, w9, w8
	mov	w11, #13
	mul	w24, w10, w11
	sub	w8, w8, w9
	mul	w25, w8, w11
	ldur	w8, [x19, #-16]
	lsl	w9, w8, #3
	ldr	w10, [x19, #16]
	add	w11, w10, w10, lsl #4
	sub	w9, w9, w8
	sub	w20, w9, w11
	add	w8, w8, w8, lsl #4
	lsl	w9, w10, #3
	sub	w9, w9, w10
	add	w21, w9, w8
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [x22, x23]
	add	w9, w21, w24
	madd	w9, w9, w26, w27
	add	w0, w8, w9, asr #20
	bl	_av_clip_uint8
	str	w0, [x22, x23]
	ldr	w8, [x28, x23]
	add	w9, w20, w25
	madd	w9, w9, w26, w27
	add	w0, w8, w9, asr #20
	bl	_av_clip_uint8
	str	w0, [x28, x23]
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x22, x23]
	sub	w9, w25, w20
	madd	w9, w9, w26, w27
	add	w0, w8, w9, asr #20
	bl	_av_clip_uint8
	str	w0, [x22, x23]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w8, [x20, x23]
	sub	w9, w24, w21
	madd	w9, w9, w26, w27
	add	w0, w8, w9, asr #20
	bl	_av_clip_uint8
	str	w0, [x20, x23]
	cmp	x23, #12
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w8, [x19, #-28]
	add	x23, x23, #4
	b	LBB0_7
LBB0_9:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	w1, #0
	mov	w2, #64
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_memset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_svq3_dequant_coeff,8,3         ; @svq3_dequant_coeff
	.no_dead_strip	_svq3_add_idct_c
.subsections_via_symbols
