	.file	"extr_encode.c_ShouldUseComplexStaticContextMap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ShouldUseComplexStaticContextMap, @function
ShouldUseComplexStaticContextMap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 1896
	.cfi_def_cfa_offset 1952
	mov	rax, QWORD PTR 1952[rsp]
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 1960[rsp]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1880[rsp], rax
	xor	eax, eax
	call	BROTLI_UNUSED@PLT
	cmp	r13, 1048575
	jbe	.L11
	lea	rdi, 80[rsp]
	xor	eax, eax
	lea	rsi, [rbx+r15]
	mov	ecx, 16
	mov	QWORD PTR 48[rsp], rdi
	add	rbx, 64
	rep stosq
	lea	rdi, 208[rsp]
	mov	ecx, 208
	mov	QWORD PTR 24[rsp], rsi
	mov	QWORD PTR 56[rsp], rdi
	rep stosq
	mov	DWORD PTR 20[rsp], 0
	cmp	rsi, rbx
	jb	.L4
	lea	r13, kStaticContextMapComplexUTF8.1941[rip]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rcx, QWORD PTR 8[rsp]
	lea	rax, -64[rbx]
	and	rax, rcx
	mov	esi, DWORD PTR 0[rbp+rax*4]
	lea	rax, -63[rbx]
	and	rax, rcx
	mov	rcx, rbx
	add	rcx, -62
	mov	r14d, DWORD PTR 0[rbp+rax*4]
	mov	r15, rcx
	jnc	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[rsp]
	mov	r12d, r14d
	mov	edx, DWORD PTR CONTEXT_UTF8[rip]
	mov	edi, r12d
	and	rax, r15
	add	r15, 1
	mov	r14d, DWORD PTR 0[rbp+rax*4]
	call	Context@PLT
	mov	esi, r12d
	mov	r8, rax
	mov	eax, r14d
	sar	eax, 3
	movsx	rdx, eax
	movsx	rax, DWORD PTR 0[r13+r8*4]
	add	DWORD PTR 80[rsp+rdx*4], 1
	sal	rax, 5
	add	rax, rdx
	add	DWORD PTR 208[rsp+rax*4], 1
	cmp	r15, rbx
	jne	.L8
	add	DWORD PTR 20[rsp], 62
.L7:
	add	rbx, 4096
	cmp	rbx, QWORD PTR 24[rsp]
	jbe	.L9
.L4:
	mov	rdi, QWORD PTR 48[rsp]
	lea	rbx, 72[rsp]
	mov	esi, 32
	lea	r12, 1872[rsp]
	mov	rdx, rbx
	call	ShannonEntropy@PLT
	pxor	xmm3, xmm3
	mov	rbp, QWORD PTR 56[rsp]
	movsd	QWORD PTR 24[rsp], xmm0
	movsd	QWORD PTR 8[rsp], xmm3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	mov	rdx, rbx
	mov	esi, 32
	sub	rbp, -128
	call	ShannonEntropy@PLT
	addsd	xmm0, QWORD PTR 8[rsp]
	movsd	QWORD PTR 8[rsp], xmm0
	cmp	r12, rbp
	jne	.L10
	pxor	xmm0, xmm0
	movsd	xmm1, QWORD PTR .LC1[rip]
	cvtsi2sd	xmm0, DWORD PTR 20[rsp]
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR 8[rsp]
	mulsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC2[rip]
	ja	.L11
	mulsd	xmm1, QWORD PTR 24[rsp]
	subsd	xmm1, xmm0
	movapd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC3[rip]
	comisd	xmm1, xmm0
	ja	.L11
	mov	rax, QWORD PTR 32[rsp]
	lea	rcx, kStaticContextMapComplexUTF8.1941[rip]
	mov	QWORD PTR [rax], 13
	mov	rax, QWORD PTR 40[rsp]
	mov	QWORD PTR [rax], rcx
	mov	eax, DWORD PTR BROTLI_TRUE[rip]
	jmp	.L1
.L11:
	mov	eax, DWORD PTR BROTLI_FALSE[rip]
.L1:
	mov	rcx, QWORD PTR 1880[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L26
	add	rsp, 1896
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ShouldUseComplexStaticContextMap, .-ShouldUseComplexStaticContextMap
	.section	.rodata
	.align 32
	.type	kStaticContextMapComplexUTF8.1941, @object
	.size	kStaticContextMapComplexUTF8.1941, 256
kStaticContextMapComplexUTF8.1941:
	.long	11
	.long	11
	.long	12
	.long	12
	.long	0
	.long	0
	.long	0
	.long	0
	.long	1
	.long	1
	.long	9
	.long	9
	.long	2
	.long	2
	.long	2
	.long	2
	.long	1
	.long	1
	.long	1
	.long	1
	.long	8
	.long	3
	.long	3
	.long	3
	.long	1
	.long	1
	.long	1
	.long	1
	.long	2
	.long	2
	.long	2
	.long	2
	.long	8
	.long	4
	.long	4
	.long	4
	.long	8
	.long	7
	.long	4
	.long	4
	.long	8
	.long	0
	.long	0
	.long	0
	.long	3
	.long	3
	.long	3
	.long	3
	.long	5
	.long	5
	.long	10
	.long	5
	.long	5
	.long	5
	.long	10
	.long	5
	.long	6
	.long	6
	.long	6
	.long	6
	.long	6
	.long	6
	.long	6
	.long	6
	.comm	CONTEXT_UTF8,4,4
	.comm	BROTLI_TRUE,4,4
	.comm	BROTLI_FALSE,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1074266112
	.align 8
.LC3:
	.long	2576980378
	.long	1070176665
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_encode.c_ShouldUseComplexStaticContextMap.c"
	.text
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dcmpgt
	.global	__aeabi_dsub
	.global	__aeabi_dcmplt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ShouldUseComplexStaticContextMap, %function
ShouldUseComplexStaticContextMap:
	@ args = 16, pretend = 0, frame = 1824
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	sub	sp, sp, #1824
	ldr	r3, .L27
	sub	sp, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #1820]
	mov	r3,#0
	ldr	r3, [sp, #1872]
	ldr	r5, [sp, #1868]
	str	r3, [sp, #16]
	ldr	r3, [sp, #1876]
	mov	r7, r0
	ldr	r0, [sp, #1864]
	mov	r6, r1
	mov	r4, r2
	str	r3, [sp, #20]
	bl	BROTLI_UNUSED
	cmp	r5, #1048576
	bcc	.L11
	add	r4, r6, r4
	mov	r2, #128
	mov	r1, #0
	add	r0, sp, #28
	str	r4, [sp, #12]
	bl	memset
	mov	r2, #1664
	mov	r1, #0
	add	r0, sp, #156
	bl	memset
	mov	r3, #0
	add	r6, r6, #64
	cmp	r4, r6
	str	r3, [sp, #4]
	bcc	.L4
	ldr	r10, .L27+4
	ldr	r9, .L27+8
.L9:
	mvn	r2, #61
	sub	r1, r6, #64
	sub	r3, r6, #63
	adds	r4, r6, r2
	and	r3, r3, r8
	and	r2, r8, r1
	str	r1, [sp, #8]
	ldr	r5, [r7, r3, lsl #2]
	ldr	r1, [r7, r2, lsl #2]
	bcc	.L7
.L8:
	and	r3, r8, r4
	mov	r0, r5
	ldr	r2, [r10]
	mov	fp, r5
	ldr	r5, [r7, r3, lsl #2]
	bl	Context
	ldr	r3, [r9, r0, lsl #2]
	asr	r2, r5, #3
	add	r1, sp, #1824
	add	r3, r2, r3, lsl #5
	add	r3, r1, r3, lsl #2
	add	r2, r1, r2, lsl #2
	ldr	ip, [r3, #-1668]
	ldr	r0, [r2, #-1796]
	add	r4, r4, #1
	add	ip, ip, #1
	add	r0, r0, #1
	cmp	r4, r6
	mov	r1, fp
	str	ip, [r3, #-1668]
	str	r0, [r2, #-1796]
	bne	.L8
	ldr	r2, [sp, #4]
	sub	r3, r6, #2
	add	r3, r3, r2
	ldr	r2, [sp, #8]
	sub	r3, r3, r2
	str	r3, [sp, #4]
.L7:
	ldr	r3, [sp, #12]
	add	r6, r6, #4096
	cmp	r6, r3
	bls	.L9
.L4:
	add	r3, sp, #24
	mov	r2, r3
	mov	r1, #32
	add	r0, sp, #28
	str	r3, [sp, #8]
	bl	ShannonEntropy
	mov	r4, #0
	mov	r6, r0
	mov	r7, r1
	mov	r5, #0
	add	r9, sp, #1808
	add	r8, sp, #156
	add	r9, r9, #12
.L10:
	mov	r0, r8
	ldr	r2, [sp, #8]
	mov	r1, #32
	bl	ShannonEntropy
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	add	r8, r8, #128
	cmp	r9, r8
	mov	r4, r0
	mov	r5, r1
	bne	.L10
	ldr	r0, [sp, #4]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L27+12
	bl	__aeabi_ddiv
	mov	r8, r0
	mov	r9, r1
	mov	r0, r4
	mov	r1, r5
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dmul
	mov	r2, #0
	ldr	r3, .L27+16
	mov	r4, r0
	mov	r5, r1
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	bne	.L11
	mov	r2, r8
	mov	r3, r9
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dsub
	ldr	r2, .L27+20
	ldr	r3, .L27+24
	bl	__aeabi_dcmplt
	cmp	r0, #0
	bne	.L11
	mov	r2, #13
	ldr	r1, .L27+28
	ldr	r3, .L27+8
	ldr	r0, [r1]
	ldr	r1, [sp, #16]
	str	r2, [r1]
	ldr	r2, [sp, #20]
	str	r3, [r2]
	b	.L1
.L11:
	ldr	r3, .L27+32
	ldr	r0, [r3]
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #1820]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #1824
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	CONTEXT_UTF8
	.word	.LANCHOR0
	.word	1072693248
	.word	1074266112
	.word	-1717986918
	.word	1070176665
	.word	BROTLI_TRUE
	.word	BROTLI_FALSE
	.size	ShouldUseComplexStaticContextMap, .-ShouldUseComplexStaticContextMap
	.comm	CONTEXT_UTF8,4,4
	.comm	BROTLI_TRUE,4,4
	.comm	BROTLI_FALSE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	kStaticContextMapComplexUTF8.4225, %object
	.size	kStaticContextMapComplexUTF8.4225, 256
kStaticContextMapComplexUTF8.4225:
	.word	11
	.word	11
	.word	12
	.word	12
	.word	0
	.word	0
	.word	0
	.word	0
	.word	1
	.word	1
	.word	9
	.word	9
	.word	2
	.word	2
	.word	2
	.word	2
	.word	1
	.word	1
	.word	1
	.word	1
	.word	8
	.word	3
	.word	3
	.word	3
	.word	1
	.word	1
	.word	1
	.word	1
	.word	2
	.word	2
	.word	2
	.word	2
	.word	8
	.word	4
	.word	4
	.word	4
	.word	8
	.word	7
	.word	4
	.word	4
	.word	8
	.word	0
	.word	0
	.word	0
	.word	3
	.word	3
	.word	3
	.word	3
	.word	5
	.word	5
	.word	10
	.word	5
	.word	5
	.word	5
	.word	10
	.word	5
	.word	6
	.word	6
	.word	6
	.word	6
	.word	6
	.word	6
	.word	6
	.word	6
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
