	.file	"extr_brotli_bit_stream.c_BrotliStoreMetaBlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BrotliStoreMetaBlock
	.type	BrotliStoreMetaBlock, @function
BrotliStoreMetaBlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR 256[rsp]
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR 64[rsp], r9
	mov	r15, QWORD PTR 240[rsp]
	mov	QWORD PTR 32[rsp], rsi
	mov	r14d, DWORD PTR 248[rsp]
	mov	QWORD PTR 56[rsp], rdx
	mov	rbp, QWORD PTR 280[rsp]
	mov	QWORD PTR 24[rsp], rcx
	mov	edi, r14d
	mov	r12, QWORD PTR 288[rsp]
	mov	QWORD PTR 72[rsp], rax
	mov	rbx, QWORD PTR 272[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [r15]
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR 8[r15]
	mov	QWORD PTR [rsp], rax
	call	BROTLI_CONTEXT_LUT@PLT
	xor	edi, edi
	mov	DWORD PTR 44[rsp], eax
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS[rip], rax
	setge	dil
	call	BROTLI_DCHECK@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rcx, r12
	mov	rdx, rbp
	mov	rdi, QWORD PTR 232[rsp]
	call	StoreCompressedMetaBlockHeader@PLT
	mov	edx, DWORD PTR MAX_HUFFMAN_TREE_SIZE[rip]
	mov	esi, DWORD PTR HuffmanTree[rip]
	mov	rdi, r13
	call	BROTLI_ALLOC@PLT
	mov	rdi, r13
	mov	DWORD PTR tree[rip], eax
	call	BROTLI_IS_OOM@PLT
	test	rax, rax
	je	.L38
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	add	rsp, 168
	.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
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	mov	edi, DWORD PTR tree[rip]
	call	BROTLI_IS_NULL@PLT
	test	rax, rax
	jne	.L1
	mov	ecx, DWORD PTR 64[rbx]
	mov	rdx, QWORD PTR 48[rbx]
	lea	rdi, 116[rsp]
	mov	r9d, DWORD PTR 56[rbx]
	mov	r8d, DWORD PTR 60[rbx]
	mov	QWORD PTR 80[rsp], rdi
	mov	rsi, QWORD PTR BROTLI_NUM_LITERAL_SYMBOLS[rip]
	call	InitBlockEncoder@PLT
	lea	r11, 120[rsp]
	mov	ecx, DWORD PTR 112[rbx]
	mov	rdx, QWORD PTR 96[rbx]
	mov	r9d, DWORD PTR 104[rbx]
	mov	r8d, DWORD PTR 108[rbx]
	mov	rdi, r11
	mov	QWORD PTR 24[rsp], r11
	mov	rsi, QWORD PTR BROTLI_NUM_COMMAND_SYMBOLS[rip]
	call	InitBlockEncoder@PLT
	lea	r10, 124[rsp]
	mov	r9d, DWORD PTR 80[rbx]
	mov	r8d, DWORD PTR 84[rbx]
	mov	ecx, DWORD PTR 88[rbx]
	mov	rdx, QWORD PTR 72[rbx]
	mov	rdi, r10
	mov	QWORD PTR 88[rsp], r10
	mov	rsi, QWORD PTR [rsp]
	call	InitBlockEncoder@PLT
	mov	rdi, QWORD PTR 80[rsp]
	mov	rcx, r12
	mov	rdx, rbp
	mov	esi, DWORD PTR tree[rip]
	call	BuildAndStoreBlockSwitchEntropyCodes@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rcx, r12
	mov	rdx, rbp
	mov	esi, DWORD PTR tree[rip]
	call	BuildAndStoreBlockSwitchEntropyCodes@PLT
	mov	rdi, QWORD PTR 88[rsp]
	mov	rcx, r12
	mov	rdx, rbp
	mov	esi, DWORD PTR tree[rip]
	call	BuildAndStoreBlockSwitchEntropyCodes@PLT
	mov	esi, DWORD PTR 16[r15]
	mov	rcx, r12
	mov	rdx, rbp
	mov	edi, 2
	call	BrotliWriteBits@PLT
	mov	ecx, DWORD PTR 16[r15]
	mov	esi, DWORD PTR 20[r15]
	mov	rdx, rbp
	mov	edi, 4
	xor	r15d, r15d
	sar	esi, cl
	mov	rcx, r12
	call	BrotliWriteBits@PLT
	cmp	QWORD PTR 48[rbx], 0
	je	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rcx, r12
	mov	rdx, rbp
	mov	esi, r14d
	mov	edi, 2
	call	BrotliWriteBits@PLT
	add	r15, 1
	cmp	QWORD PTR 48[rbx], r15
	ja	.L3
.L6:
	mov	rdx, QWORD PTR [rbx]
	mov	r10d, DWORD PTR tree[rip]
	mov	edi, DWORD PTR 40[rbx]
	test	rdx, rdx
	je	.L4
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	mov	esi, DWORD PTR 20[rbx]
	mov	ecx, edi
	mov	r9, rbp
	push	r12
	.cfi_def_cfa_offset 240
	mov	r8d, r10d
	mov	rdi, r13
	call	EncodeContextMap@PLT
	mov	rdi, r13
	call	BROTLI_IS_OOM@PLT
	pop	rsi
	.cfi_def_cfa_offset 232
	pop	rdi
	.cfi_def_cfa_offset 224
	test	rax, rax
	jne	.L1
.L7:
	mov	rdx, QWORD PTR 8[rbx]
	mov	r10d, DWORD PTR tree[rip]
	mov	edi, DWORD PTR 24[rbx]
	test	rdx, rdx
	jne	.L8
	mov	esi, DWORD PTR BROTLI_DISTANCE_CONTEXT_BITS[rip]
	mov	r8, r12
	mov	rcx, rbp
	mov	edx, r10d
	call	StoreTrivialContextMap@PLT
.L9:
	mov	ecx, DWORD PTR 40[rbx]
	mov	edx, DWORD PTR 44[rbx]
	push	r12
	.cfi_def_cfa_offset 232
	mov	rdi, r13
	mov	r9d, DWORD PTR tree[rip]
	mov	r8, QWORD PTR BROTLI_NUM_LITERAL_SYMBOLS[rip]
	push	rbp
	.cfi_def_cfa_offset 240
	mov	rsi, QWORD PTR 96[rsp]
	call	BuildAndStoreEntropyCodesLiteral@PLT
	mov	rdi, r13
	call	BROTLI_IS_OOM@PLT
	pop	r14
	.cfi_def_cfa_offset 232
	pop	r15
	.cfi_def_cfa_offset 224
	test	rax, rax
	jne	.L1
	mov	ecx, DWORD PTR 32[rbx]
	mov	edx, DWORD PTR 36[rbx]
	push	r12
	.cfi_def_cfa_offset 232
	mov	rdi, r13
	mov	r9d, DWORD PTR tree[rip]
	mov	r8, QWORD PTR BROTLI_NUM_COMMAND_SYMBOLS[rip]
	push	rbp
	.cfi_def_cfa_offset 240
	mov	rsi, QWORD PTR 40[rsp]
	call	BuildAndStoreEntropyCodesCommand@PLT
	mov	rdi, r13
	call	BROTLI_IS_OOM@PLT
	pop	r10
	.cfi_def_cfa_offset 232
	pop	r11
	.cfi_def_cfa_offset 224
	test	rax, rax
	jne	.L1
	mov	ecx, DWORD PTR 24[rbx]
	mov	edx, DWORD PTR 28[rbx]
	push	r12
	.cfi_def_cfa_offset 232
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 240
	mov	r9d, DWORD PTR tree[rip]
	mov	r8, QWORD PTR 64[rsp]
	mov	rsi, QWORD PTR 104[rsp]
	call	BuildAndStoreEntropyCodesDistance@PLT
	mov	rdi, r13
	call	BROTLI_IS_OOM@PLT
	pop	r8
	.cfi_def_cfa_offset 232
	pop	r9
	.cfi_def_cfa_offset 224
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR tree[rip]
	mov	rdi, r13
	call	BROTLI_FREE@PLT
	cmp	QWORD PTR 264[rsp], 0
	je	.L20
	mov	r15, QWORD PTR 72[rsp]
	mov	r14, QWORD PTR 56[rsp]
	mov	QWORD PTR 104[rsp], r13
	mov	rax, QWORD PTR 264[rsp]
	mov	r13, QWORD PTR 64[rsp]
	mov	QWORD PTR 48[rsp], r15
	lea	rax, [rax+rax*2]
	lea	rax, [r15+rax*8]
	mov	r15, QWORD PTR 80[rsp]
	mov	QWORD PTR 96[rsp], rax
	lea	rax, 128[rsp]
	mov	QWORD PTR 72[rsp], rax
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 48[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	rcx, r12
	mov	rdx, rbp
	movdqu	xmm0, XMMWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	movaps	XMMWORD PTR [rsp], xmm0
	mov	rsi, QWORD PTR [rsp]
	movaps	XMMWORD PTR 128[rsp], xmm0
	mov	QWORD PTR 144[rsp], rax
	call	StoreSymbol@PLT
	mov	rdi, QWORD PTR 72[rsp]
	mov	rdx, r12
	mov	rsi, rbp
	call	StoreCommandExtra@PLT
	cmp	QWORD PTR [rbx], 0
	mov	rax, QWORD PTR 136[rsp]
	jne	.L12
	test	rax, rax
	je	.L25
	add	rax, r14
	mov	QWORD PTR 56[rsp], r13
	mov	r13, r14
	mov	r14, QWORD PTR 32[rsp]
	mov	QWORD PTR [rsp], rax
	mov	QWORD PTR 64[rsp], rbx
	mov	rbx, rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, r12
	mov	rdx, rbp
	mov	rdi, r15
	and	rax, r13
	add	r13, 1
	mov	rsi, QWORD PTR [r14+rax*8]
	call	StoreSymbol@PLT
	cmp	rbx, r13
	jne	.L14
	mov	r13, QWORD PTR 56[rsp]
	mov	rbx, QWORD PTR 64[rsp]
.L13:
	mov	rdi, QWORD PTR 72[rsp]
	call	CommandCopyLen@PLT
	mov	r14, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 72[rsp]
	add	r14, rax
	call	CommandCopyLen@PLT
	test	rax, rax
	je	.L16
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	lea	rax, -2[r14]
	and	rax, rcx
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR 224[rsp], rax
	lea	rax, -1[r14]
	and	rax, rcx
	cmp	QWORD PTR 128[rsp], 127
	mov	r13, QWORD PTR [rdx+rax*8]
	jbe	.L16
	mov	eax, DWORD PTR 144[rsp]
	mov	r11d, DWORD PTR 148[rsp]
	mov	esi, eax
	sar	eax, 10
	and	esi, 1023
	cmp	QWORD PTR 8[rbx], 0
	movsx	r10, eax
	jne	.L17
	mov	rdi, QWORD PTR 88[rsp]
	mov	rcx, r12
	mov	rdx, rbp
	mov	DWORD PTR 56[rsp], r11d
	mov	QWORD PTR [rsp], r10
	call	StoreSymbol@PLT
	mov	r10, QWORD PTR [rsp]
	mov	r11d, DWORD PTR 56[rsp]
.L18:
	mov	rcx, r12
	mov	rdx, rbp
	mov	esi, r11d
	mov	rdi, r10
	call	BrotliWriteBits@PLT
.L16:
	add	QWORD PTR 48[rsp], 24
	mov	rax, QWORD PTR 48[rsp]
	cmp	rax, QWORD PTR 96[rsp]
	jne	.L19
	mov	r13, QWORD PTR 104[rsp]
.L20:
	mov	rsi, QWORD PTR 88[rsp]
	mov	rdi, r13
	call	CleanupBlockEncoder@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r13
	call	CleanupBlockEncoder@PLT
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, r13
	call	CleanupBlockEncoder@PLT
	cmp	QWORD PTR 232[rsp], 0
	je	.L1
	mov	rsi, r12
	mov	rdi, rbp
	call	JumpToByteBoundary@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR BROTLI_LITERAL_CONTEXT_BITS[rip]
	mov	r8, r12
	mov	rcx, rbp
	mov	edx, r10d
	call	StoreTrivialContextMap@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	mov	esi, DWORD PTR 16[rbx]
	mov	ecx, edi
	mov	r9, rbp
	push	r12
	.cfi_def_cfa_offset 240
	mov	r8d, r10d
	mov	rdi, r13
	call	EncodeContextMap@PLT
	mov	rdi, r13
	call	BROTLI_IS_OOM@PLT
	pop	rdx
	.cfi_def_cfa_offset 232
	pop	rcx
	.cfi_def_cfa_offset 224
	test	rax, rax
	je	.L9
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	test	rax, rax
	je	.L25
	add	rax, r14
	mov	rcx, rbp
	mov	rsi, QWORD PTR 224[rsp]
	mov	rbp, rbx
	mov	QWORD PTR [rsp], rax
	mov	rax, r12
	mov	rbx, rcx
	mov	r12, r13
	mov	QWORD PTR 224[rsp], r13
	mov	r13, rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L26:
	mov	QWORD PTR 224[rsp], r12
.L15:
	mov	edx, DWORD PTR 44[rsp]
	mov	rdi, r12
	call	BROTLI_CONTEXT@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	rdi, r15
	mov	r9, r13
	mov	rdx, rax
	mov	rax, QWORD PTR 16[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	mov	r8, rbx
	and	rax, r14
	add	r14, 1
	mov	r12, QWORD PTR [rcx+rax*8]
	mov	eax, DWORD PTR BROTLI_LITERAL_CONTEXT_BITS[rip]
	mov	ecx, DWORD PTR 20[rbp]
	push	rax
	.cfi_def_cfa_offset 240
	mov	rsi, r12
	call	StoreSymbolWithContext@PLT
	mov	rsi, QWORD PTR 240[rsp]
	pop	rcx
	.cfi_def_cfa_offset 232
	pop	rdi
	.cfi_def_cfa_offset 224
	cmp	QWORD PTR [rsp], r14
	jne	.L26
	mov	rcx, rbx
	mov	rax, r13
	mov	rbx, rbp
	mov	r13, r12
	mov	rbp, rcx
	mov	r12, rax
	jmp	.L13
.L17:
	mov	rdi, QWORD PTR 72[rsp]
	mov	DWORD PTR 64[rsp], r11d
	mov	QWORD PTR 56[rsp], r10
	mov	QWORD PTR [rsp], rsi
	call	CommandDistanceContext@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	mov	ecx, DWORD PTR 16[rbx]
	mov	r9, r12
	mov	rdx, rax
	mov	eax, DWORD PTR BROTLI_DISTANCE_CONTEXT_BITS[rip]
	mov	r8, rbp
	push	rax
	.cfi_def_cfa_offset 240
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 104[rsp]
	call	StoreSymbolWithContext@PLT
	pop	rax
	.cfi_def_cfa_offset 232
	pop	rdx
	.cfi_def_cfa_offset 224
	mov	r11d, DWORD PTR 64[rsp]
	mov	r10, QWORD PTR 56[rsp]
	jmp	.L18
.L25:
	mov	QWORD PTR [rsp], r14
	jmp	.L13
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BrotliStoreMetaBlock, .-BrotliStoreMetaBlock
	.comm	tree,4,4
	.comm	MAX_HUFFMAN_TREE_SIZE,4,4
	.comm	HuffmanTree,4,4
	.comm	BROTLI_NUM_LITERAL_SYMBOLS,8,8
	.comm	BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS,8,8
	.comm	BROTLI_NUM_COMMAND_SYMBOLS,8,8
	.comm	BROTLI_LITERAL_CONTEXT_BITS,4,4
	.comm	BROTLI_DISTANCE_CONTEXT_BITS,4,4
	.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_brotli_bit_stream.c_BrotliStoreMetaBlock.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BrotliStoreMetaBlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	BrotliStoreMetaBlock, %function
BrotliStoreMetaBlock:
	@ args = 44, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #84
	ldr	r10, [sp, #136]
	str	r3, [sp, #24]
	ldr	r3, .L38
	str	r1, [sp, #40]
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	ldr	r3, [r10]
	ldr	r9, [sp, #140]
	str	r3, [sp, #36]
	mov	fp, r2
	ldr	r3, [r10, #4]
	ldr	r2, [sp, #144]
	mov	r7, r0
	add	r4, sp, #152
	mov	r0, r9
	ldm	r4, {r4, r5, r6}
	str	r2, [sp, #28]
	str	r3, [sp, #20]
	bl	BROTLI_CONTEXT_LUT
	ldr	r3, .L38+4
	str	r0, [sp, #32]
	ldr	r0, [r3]
	ldr	r3, [sp, #20]
	ldr	r8, .L38+8
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	BROTLI_DCHECK
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [sp, #24]
	ldr	r0, [sp, #132]
	bl	StoreCompressedMetaBlockHeader
	ldr	r3, .L38+12
	ldr	r2, .L38+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r7
	bl	BROTLI_ALLOC
	mov	r3, r0
	mov	r0, r7
	str	r3, [r8]
	bl	BROTLI_IS_OOM
	cmp	r0, #0
	beq	.L36
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	ldr	r0, [r8]
	bl	BROTLI_IS_NULL
	subs	r2, r0, #0
	str	r2, [sp, #24]
	bne	.L1
	ldr	r2, [r4, #44]
	ldr	r3, [r4, #48]
	ldr	r0, .L38+20
	ldr	r1, [r0]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r4, #52]
	ldr	r2, [r4, #40]
	add	r0, sp, #48
	bl	InitBlockEncoder
	ldr	r2, [r4, #76]
	ldr	r3, [r4, #80]
	ldr	r0, .L38+24
	ldr	r1, [r0]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r4, #84]
	ldr	r2, [r4, #72]
	add	r0, sp, #52
	bl	InitBlockEncoder
	ldr	r2, [r4, #60]
	ldr	r3, [r4, #64]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r1, [sp, #20]
	ldr	r3, [r4, #68]
	ldr	r2, [r4, #56]
	add	r0, sp, #56
	bl	InitBlockEncoder
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [r8]
	add	r0, sp, #48
	bl	BuildAndStoreBlockSwitchEntropyCodes
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [r8]
	add	r0, sp, #52
	bl	BuildAndStoreBlockSwitchEntropyCodes
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [r8]
	add	r0, sp, #56
	bl	BuildAndStoreBlockSwitchEntropyCodes
	ldr	r1, [r10, #8]
	mov	r3, r6
	mov	r2, r5
	mov	r0, #2
	bl	BrotliWriteBits
	ldr	r2, [r10, #8]
	ldr	r1, [r10, #12]
	mov	r3, r6
	asr	r1, r1, r2
	mov	r0, #4
	mov	r2, r5
	bl	BrotliWriteBits
	ldr	r3, [r4, #40]
	cmp	r3, #0
	ldrne	r10, [sp, #24]
	beq	.L6
.L3:
	mov	r3, r6
	mov	r2, r5
	mov	r1, r9
	mov	r0, #2
	bl	BrotliWriteBits
	ldr	r0, [r4, #40]
	add	r10, r10, #1
	cmp	r0, r10
	bhi	.L3
.L6:
	ldr	r2, [r4]
	ldr	r3, [r4, #32]
	cmp	r2, #0
	ldr	r1, [r8]
	beq	.L4
	stm	sp, {r1, r5, r6}
	mov	r0, r7
	ldr	r1, [r4, #12]
	bl	EncodeContextMap
	mov	r0, r7
	bl	BROTLI_IS_OOM
	cmp	r0, #0
	bne	.L1
.L7:
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #16]
	cmp	r2, #0
	ldr	r1, [r8]
	bne	.L8
	ldr	ip, .L38+28
	str	r6, [sp]
	mov	r2, r1
	mov	r0, r3
	ldr	r1, [ip]
	mov	r3, r5
	bl	StoreTrivialContextMap
.L9:
	ldr	r3, .L38+20
	add	r1, sp, #48
	ldr	r2, [r3]
	ldr	r3, [r8]
	mov	r0, r7
	stm	sp, {r2, r3, r5, r6}
	ldr	r3, [r4, #32]
	ldr	r2, [r4, #36]
	bl	BuildAndStoreEntropyCodesLiteral
	mov	r0, r7
	bl	BROTLI_IS_OOM
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L38+24
	add	r1, sp, #52
	ldr	r2, [r3]
	ldr	r3, [r8]
	mov	r0, r7
	stm	sp, {r2, r3, r5, r6}
	ldr	r3, [r4, #24]
	ldr	r2, [r4, #28]
	bl	BuildAndStoreEntropyCodesCommand
	mov	r0, r7
	bl	BROTLI_IS_OOM
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r8]
	ldr	r2, [sp, #36]
	str	r6, [sp, #12]
	stm	sp, {r2, r3}
	str	r5, [sp, #8]
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #20]
	add	r1, sp, #56
	mov	r0, r7
	bl	BuildAndStoreEntropyCodesDistance
	mov	r0, r7
	bl	BROTLI_IS_OOM
	subs	r9, r0, #0
	bne	.L1
	mov	r0, r7
	ldr	r1, [r8]
	bl	BROTLI_FREE
	ldr	r3, [sp, #148]
	cmp	r3, #0
	beq	.L19
	str	r9, [sp, #36]
	str	r4, [sp, #20]
	ldr	r10, .L38+32
	ldr	r8, [sp, #40]
	ldr	r9, [sp, #120]
	ldr	r4, [sp, #124]
	str	r7, [sp, #44]
.L10:
	ldr	r2, [sp, #36]
	ldr	r3, [sp, #28]
	add	ip, sp, #60
	add	r3, r3, r2, lsl #4
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, r6
	mov	r1, r0
	mov	r2, r5
	add	r0, sp, #52
	bl	StoreSymbol
	mov	r2, r6
	mov	r1, r5
	add	r0, sp, #60
	bl	StoreCommandExtra
	ldr	r3, [sp, #20]
	ldr	r7, [sp, #64]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	cmp	r7, #0
	beq	.L25
	add	r7, r7, fp
.L14:
	and	r1, r9, fp
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [r8, r1, lsl #2]
	add	fp, fp, #1
	add	r0, sp, #48
	bl	StoreSymbol
	cmp	r7, fp
	bne	.L14
.L13:
	add	r0, sp, #60
	bl	CommandCopyLen
	mov	fp, r0
	add	r0, sp, #60
	bl	CommandCopyLen
	cmp	r0, #0
	add	fp, fp, r7
	beq	.L16
	sub	r2, fp, #2
	ldr	r1, [sp, #60]
	and	r2, r2, r9
	ldr	r2, [r8, r2, lsl #2]
	sub	r3, fp, #1
	and	r3, r3, r9
	cmp	r1, #127
	ldr	r4, [r8, r3, lsl #2]
	str	r2, [sp, #128]
	bls	.L16
	ldr	r3, [sp, #20]
	ldr	r7, [sp, #72]
	ldr	r2, [r3, #4]
	ldr	r3, [sp, #68]
	cmp	r2, #0
	lsl	r1, r3, #22
	asr	r3, r3, #10
	lsr	r1, r1, #22
	str	r3, [sp, #24]
	bne	.L17
	mov	r3, r6
	mov	r2, r5
	add	r0, sp, #56
	bl	StoreSymbol
.L18:
	mov	r1, r7
	mov	r3, r6
	mov	r2, r5
	ldr	r0, [sp, #24]
	bl	BrotliWriteBits
.L16:
	ldr	r3, [sp, #36]
	ldr	r2, [sp, #148]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #36]
	bne	.L10
	ldr	r7, [sp, #44]
.L19:
	add	r1, sp, #56
	mov	r0, r7
	bl	CleanupBlockEncoder
	add	r1, sp, #52
	mov	r0, r7
	bl	CleanupBlockEncoder
	mov	r0, r7
	add	r1, sp, #48
	bl	CleanupBlockEncoder
	ldr	r3, [sp, #132]
	cmp	r3, #0
	beq	.L1
	mov	r1, r6
	mov	r0, r5
	bl	JumpToByteBoundary
	b	.L1
.L4:
	ldr	ip, .L38+32
	str	r6, [sp]
	mov	r2, r1
	mov	r0, r3
	ldr	r1, [ip]
	mov	r3, r5
	bl	StoreTrivialContextMap
	b	.L7
.L8:
	stm	sp, {r1, r5, r6}
	mov	r0, r7
	ldr	r1, [r4, #8]
	bl	EncodeContextMap
	mov	r0, r7
	bl	BROTLI_IS_OOM
	cmp	r0, #0
	beq	.L9
	b	.L1
.L12:
	cmp	r7, #0
	beq	.L25
	ldr	r1, [sp, #128]
	str	r5, [sp, #24]
	add	r7, r7, fp
	ldr	r5, [sp, #32]
	str	r4, [sp, #128]
	b	.L15
.L26:
	str	r4, [sp, #128]
.L15:
	mov	r0, r4
	mov	r2, r5
	bl	BROTLI_CONTEXT
	and	r3, r9, fp
	ldr	r4, [r8, r3, lsl #2]
	ldr	r3, [r10]
	ldr	r1, [sp, #24]
	str	r3, [sp, #8]
	ldr	r3, [sp, #20]
	str	r1, [sp]
	str	r6, [sp, #4]
	mov	r2, r0
	mov	r1, r4
	ldr	r3, [r3, #12]
	add	fp, fp, #1
	add	r0, sp, #48
	bl	StoreSymbolWithContext
	cmp	r7, fp
	ldr	r1, [sp, #128]
	bne	.L26
	ldr	r5, [sp, #24]
	b	.L13
.L17:
	add	r0, sp, #60
	str	r1, [sp, #40]
	bl	CommandDistanceContext
	ldr	r3, .L38+28
	mov	r2, r0
	ldr	r3, [r3]
	stm	sp, {r5, r6}
	str	r3, [sp, #8]
	ldr	r3, [sp, #20]
	ldr	r1, [sp, #40]
	ldr	r3, [r3, #8]
	add	r0, sp, #56
	bl	StoreSymbolWithContext
	b	.L18
.L25:
	mov	r7, fp
	b	.L13
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC0
	.word	BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS
	.word	tree
	.word	HuffmanTree
	.word	MAX_HUFFMAN_TREE_SIZE
	.word	BROTLI_NUM_LITERAL_SYMBOLS
	.word	BROTLI_NUM_COMMAND_SYMBOLS
	.word	BROTLI_DISTANCE_CONTEXT_BITS
	.word	BROTLI_LITERAL_CONTEXT_BITS
	.size	BrotliStoreMetaBlock, .-BrotliStoreMetaBlock
	.comm	tree,4,4
	.comm	MAX_HUFFMAN_TREE_SIZE,4,4
	.comm	HuffmanTree,4,4
	.comm	BROTLI_NUM_LITERAL_SYMBOLS,4,4
	.comm	BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS,4,4
	.comm	BROTLI_NUM_COMMAND_SYMBOLS,4,4
	.comm	BROTLI_LITERAL_CONTEXT_BITS,4,4
	.comm	BROTLI_DISTANCE_CONTEXT_BITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
