	.file	"631605.c"
	.intel_syntax noprefix
	.text
	.globl	LevelScale8x8Luma_Intra
	.bss
	.align 32
	.type	LevelScale8x8Luma_Intra, @object
	.size	LevelScale8x8Luma_Intra, 1536
LevelScale8x8Luma_Intra:
	.zero	1536
	.globl	LevelScale8x8Luma_Inter
	.align 32
	.type	LevelScale8x8Luma_Inter, @object
	.size	LevelScale8x8Luma_Inter, 1536
LevelScale8x8Luma_Inter:
	.zero	1536
	.globl	InvLevelScale8x8Luma_Intra
	.align 32
	.type	InvLevelScale8x8Luma_Intra, @object
	.size	InvLevelScale8x8Luma_Intra, 1536
InvLevelScale8x8Luma_Intra:
	.zero	1536
	.globl	InvLevelScale8x8Luma_Inter
	.align 32
	.type	InvLevelScale8x8Luma_Inter, @object
	.size	InvLevelScale8x8Luma_Inter, 1536
InvLevelScale8x8Luma_Inter:
	.zero	1536
	.globl	UseDefaultScalingMatrix8x8Flag
	.align 2
	.type	UseDefaultScalingMatrix8x8Flag, @object
	.size	UseDefaultScalingMatrix8x8Flag, 4
UseDefaultScalingMatrix8x8Flag:
	.zero	4
	.text
	.globl	CalculateQuant8Param
	.type	CalculateQuant8Param, @function
CalculateQuant8Param:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L2
.L9:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	je	.L4
	movzx	eax, WORD PTR UseDefaultScalingMatrix8x8Flag[rip]
	test	ax, ax
	je	.L5
.L4:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, quant_coef8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, LevelScale8x8Luma_Intra[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, dequant_coef8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -28[rbp]
	movsx	rcx, ecx
	sal	rdx, 3
	add	rdx, rcx
	sal	rdx, 3
	add	rdx, rsi
	lea	rcx, 0[0+rdx*4]
	lea	rdx, InvLevelScale8x8Luma_Intra[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L5:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L6
	movzx	eax, WORD PTR UseDefaultScalingMatrix8x8Flag[rip+2]
	test	ax, ax
	je	.L7
.L6:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, quant_coef8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, LevelScale8x8Luma_Inter[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, dequant_coef8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -28[rbp]
	movsx	rcx, ecx
	sal	rdx, 3
	add	rdx, rcx
	sal	rdx, 3
	add	rdx, rsi
	lea	rcx, 0[0+rdx*4]
	lea	rdx, InvLevelScale8x8Luma_Inter[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L7:
	add	DWORD PTR -32[rbp], 1
.L3:
	cmp	DWORD PTR -32[rbp], 7
	jle	.L8
	add	DWORD PTR -28[rbp], 1
.L2:
	cmp	DWORD PTR -28[rbp], 7
	jle	.L9
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	CalculateQuant8Param, .-CalculateQuant8Param
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"631605.c"
	.text
	.comm	LevelScale8x8Luma_Intra,1536,4
	.comm	LevelScale8x8Luma_Inter,1536,4
	.comm	InvLevelScale8x8Luma_Intra,1536,4
	.comm	InvLevelScale8x8Luma_Inter,1536,4
	.comm	UseDefaultScalingMatrix8x8Flag,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CalculateQuant8Param
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateQuant8Param, %function
CalculateQuant8Param:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L9:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L3
.L8:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L11+4
	ldrsh	r3, [r3]
	cmp	r3, #0
	beq	.L5
.L4:
	ldr	r1, .L11+8
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	lsl	r2, r3, #4
	ldr	r0, .L11+12
	ldr	r3, [fp, #-24]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	lsl	r1, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
	ldr	r1, .L11+16
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r1, r3, lsl #2]
	ldr	r0, .L11+20
	ldr	r3, [fp, #-24]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	lsl	r1, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L11+4
	ldrsh	r3, [r3, #2]
	cmp	r3, #0
	beq	.L7
.L6:
	ldr	r1, .L11+8
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	lsl	r2, r3, #4
	ldr	r0, .L11+24
	ldr	r3, [fp, #-24]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	lsl	r1, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
	ldr	r1, .L11+16
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r1, r3, lsl #2]
	ldr	r0, .L11+28
	ldr	r3, [fp, #-24]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	lsl	r1, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
.L7:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L3:
	ldr	r3, [fp, #-32]
	cmp	r3, #7
	ble	.L8
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #7
	ble	.L9
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	UseDefaultScalingMatrix8x8Flag
	.word	quant_coef8
	.word	LevelScale8x8Luma_Intra
	.word	dequant_coef8
	.word	InvLevelScale8x8Luma_Intra
	.word	LevelScale8x8Luma_Inter
	.word	InvLevelScale8x8Luma_Inter
	.size	CalculateQuant8Param, .-CalculateQuant8Param
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
