	.file	"extr_decode.c_ReadHuffmanCode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ReadHuffmanCode, @function
ReadHuffmanCode:
.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
	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, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [r8]
	add	eax, -128
	cmp	eax, 5
	ja	.L2
	mov	r13, rdx
	lea	rdx, .L4[rip]
	mov	r15, rdi
	mov	r12, rsi
	movsx	rax, DWORD PTR [rdx+rax*4]
	mov	rbp, rcx
	mov	rbx, r8
	lea	r14, 88[r8]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdx, 8[r8]
	mov	esi, 2
	mov	rdi, r14
	call	BrotliSafeReadBits@PLT
	test	eax, eax
	je	.L29
	mov	rdi, QWORD PTR 8[rbx]
	call	BROTLI_LOG_UINT@PLT
	cmp	QWORD PTR 8[rbx], 1
	jne	.L32
.L9:
	lea	rdx, 24[rbx]
	mov	esi, 2
	mov	rdi, r14
	call	BrotliSafeReadBits@PLT
	test	eax, eax
	je	.L33
	mov	QWORD PTR 8[rbx], 0
.L8:
	mov	rdx, rbx
	mov	rsi, r12
	mov	rdi, r15
	call	ReadSimpleHuffmanSymbols@PLT
	cmp	DWORD PTR BROTLI_DECODER_SUCCESS[rip], eax
	jne	.L1
.L7:
	mov	rdi, QWORD PTR 24[rbx]
	cmp	rdi, 3
	je	.L34
.L13:
	call	BROTLI_LOG_UINT@PLT
	mov	rcx, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR 84[rbx]
	mov	rdi, r13
	mov	esi, DWORD PTR HUFFMAN_TABLE_BITS[rip]
	call	BrotliBuildSimpleHuffmanTable@PLT
	test	rbp, rbp
	je	.L19
.L30:
	mov	QWORD PTR 0[rbp], rax
.L19:
	mov	DWORD PTR [rbx], 131
	mov	eax, DWORD PTR BROTLI_DECODER_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L35
	add	rsp, 24
	.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
.L32:
	.cfi_restore_state
	mov	eax, DWORD PTR BROTLI_HUFFMAN_MAX_CODE_LENGTH_CODE_LENGTH[rip]
	mov	DWORD PTR 16[rbx], 32
	xor	esi, esi
	mov	DWORD PTR 60[rbx], 0
	mov	rdi, QWORD PTR 48[rbx]
	lea	edx, 4[0+rax*4]
	call	memset@PLT
	mov	rdi, QWORD PTR 72[rbx]
	mov	edx, 8
	xor	esi, esi
	call	memset@PLT
	mov	DWORD PTR [rbx], 133
.L3:
	mov	rdi, rbx
	call	ReadCodeLengthCodeLengths@PLT
	cmp	DWORD PTR BROTLI_DECODER_SUCCESS[rip], eax
	jne	.L1
	mov	rdx, QWORD PTR 48[rbx]
	mov	rsi, QWORD PTR 72[rbx]
	mov	edi, DWORD PTR 80[rbx]
	call	BrotliBuildCodeLengthsHuffmanTable@PLT
	mov	rdi, QWORD PTR 48[rbx]
	mov	edx, 8
	xor	esi, esi
	call	memset@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	rsi, QWORD PTR 40[rbx]
	xor	edx, edx
	mov	rax, QWORD PTR BROTLI_HUFFMAN_MAX_CODE_LENGTH[rip]
	.p2align 4,,10
	.p2align 3
.L16:
	movsx	rcx, edx
	not	rax
	add	rax, rcx
	mov	QWORD PTR [rdi+rdx*8], rax
	add	rdx, 1
	mov	DWORD PTR [rsi+rax*4], 65535
	mov	rax, QWORD PTR BROTLI_HUFFMAN_MAX_CODE_LENGTH[rip]
	cmp	rax, rdx
	jnb	.L16
	mov	eax, DWORD PTR BROTLI_INITIAL_REPEATED_CODE_LENGTH[rip]
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 56[rbx], 0
	mov	DWORD PTR 64[rbx], eax
	mov	DWORD PTR 16[rbx], 32768
	mov	DWORD PTR [rbx], 132
.L5:
	mov	rsi, rbx
	mov	rdi, r12
	call	ReadSymbolCodeLengths@PLT
	cmp	DWORD PTR BROTLI_DECODER_NEEDS_MORE_INPUT[rip], eax
	je	.L36
.L17:
	cmp	DWORD PTR BROTLI_DECODER_SUCCESS[rip], eax
	jne	.L1
	movsx	rdi, DWORD PTR 16[rbx]
	test	edi, edi
	jne	.L37
	mov	rcx, QWORD PTR 48[rbx]
	mov	rdx, QWORD PTR 40[rbx]
	mov	rdi, r13
	mov	esi, DWORD PTR HUFFMAN_TABLE_BITS[rip]
	call	BrotliBuildHuffmanTable@PLT
	test	rbp, rbp
	jne	.L30
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L33:
	mov	DWORD PTR [rbx], 128
.L29:
	mov	eax, DWORD PTR BROTLI_DECODER_NEEDS_MORE_INPUT[rip]
	jmp	.L1
.L2:
	mov	edi, DWORD PTR BROTLI_DECODER_ERROR_UNREACHABLE[rip]
	call	BROTLI_FAILURE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdx, rsp
	mov	esi, 1
	mov	rdi, r14
	call	BrotliSafeReadBits@PLT
	test	eax, eax
	je	.L38
	mov	rdi, QWORD PTR [rsp]
	add	rdi, QWORD PTR 24[rbx]
	mov	QWORD PTR 24[rbx], rdi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rsi, rbx
	mov	rdi, r12
	call	SafeReadSymbolCodeLengths@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	mov	DWORD PTR [rbx], 130
	mov	eax, DWORD PTR BROTLI_DECODER_NEEDS_MORE_INPUT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	call	BROTLI_LOG@PLT
	mov	edi, DWORD PTR BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE[rip]
	call	BROTLI_FAILURE@PLT
	jmp	.L1
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ReadHuffmanCode, .-ReadHuffmanCode
	.comm	HUFFMAN_TABLE_BITS,4,4
	.comm	BROTLI_INITIAL_REPEATED_CODE_LENGTH,4,4
	.comm	BROTLI_HUFFMAN_MAX_CODE_LENGTH_CODE_LENGTH,4,4
	.comm	BROTLI_HUFFMAN_MAX_CODE_LENGTH,8,8
	.comm	BROTLI_DECODER_SUCCESS,4,4
	.comm	BROTLI_DECODER_NEEDS_MORE_INPUT,4,4
	.comm	BROTLI_DECODER_ERROR_UNREACHABLE,4,4
	.comm	BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE,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_decode.c_ReadHuffmanCode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadHuffmanCode, %function
ReadHuffmanCode:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	ldr	r4, [sp, #40]
	mov	r5, r3
	mov	r7, r4
	ldr	ip, [r7], #52
	ldr	r3, .L42
	sub	ip, ip, #128
	mov	r9, r0
	mov	r8, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	cmp	ip, #5
	ldrls	pc, [pc, ip, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L24
	.word	.L3
.L6:
	mov	r1, #2
	mov	r0, r7
	add	r2, r4, #4
	bl	BrotliSafeReadBits
	cmp	r0, #0
	beq	.L34
	ldr	r0, [r4, #4]
	bl	BROTLI_LOG_UINT
	ldr	r3, [r4, #4]
	cmp	r3, #1
	bne	.L35
.L9:
	mov	r1, #2
	mov	r0, r7
	add	r2, r4, #12
	bl	BrotliSafeReadBits
	cmp	r0, #0
	movne	r3, #0
	strne	r3, [r4, #4]
	beq	.L36
.L8:
	mov	r1, r8
	mov	r0, r9
	mov	r2, r4
	bl	ReadSimpleHuffmanSymbols
	ldr	r3, .L42+4
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
.L7:
	ldr	r0, [r4, #12]
	cmp	r0, #3
	beq	.L37
.L13:
	bl	BROTLI_LOG_UINT
	ldr	r3, .L42+8
	ldr	r2, [r4, #48]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r3, [r4, #12]
	bl	BrotliBuildSimpleHuffmanTable
	mov	r2, #131
	ldr	r3, .L42+4
	cmp	r5, #0
	strne	r0, [r5]
	str	r2, [r4]
	ldr	r0, [r3]
.L1:
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L24:
	ldr	r7, .L42+4
.L5:
	mov	r1, r4
	mov	r0, r8
	bl	ReadSymbolCodeLengths
	ldr	r3, .L42+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L39
.L17:
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L1
	ldr	r0, [r4, #8]
	cmp	r0, #0
	bne	.L40
	ldr	r3, .L42+8
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #24]
	bl	BrotliBuildHuffmanTable
	mov	r3, #131
	cmp	r5, #0
	strne	r0, [r5]
	ldr	r0, [r7]
	str	r3, [r4]
	b	.L1
.L35:
	mov	r2, #32
	mov	r7, #0
	ldr	r3, .L42+16
	str	r2, [r4, #8]
	ldr	r2, [r3]
	mov	r1, r7
	add	r2, r2, #1
	lsl	r2, r2, #2
	ldr	r0, [r4, #24]
	str	r7, [r4, #32]
	bl	memset
	mov	r2, #133
	ldr	r3, [r4, #40]
	strb	r7, [r3]
	strb	r7, [r3, #1]
	strb	r7, [r3, #2]
	strb	r7, [r3, #3]
	str	r2, [r4]
.L3:
	mov	r0, r4
	bl	ReadCodeLengthCodeLengths
	ldr	r7, .L42+4
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L1
	ldr	r2, [r4, #24]
	ldr	r1, [r4, #40]
	ldr	r0, [r4, #44]
	bl	BrotliBuildCodeLengthsHuffmanTable
	mov	r3, #0
	ldr	r1, [r4, #24]
	ldr	ip, .L42+20
	strb	r3, [r1]
	strb	r3, [r1, #1]
	strb	r3, [r1, #2]
	strb	r3, [r1, #3]
	ldr	r0, [r4, #16]
	mov	r2, r3
	ldr	r9, [r4, #20]
	ldr	r3, [ip]
	ldr	lr, .L42+24
	sub	r0, r0, #4
.L16:
	mvn	r3, r3
	add	r1, r3, r2
	str	r1, [r0, #4]!
	ldr	r3, [ip]
	add	r2, r2, #1
	cmp	r3, r2
	str	lr, [r9, r1, lsl #2]
	bcs	.L16
	mov	r3, #0
	mov	r1, #32768
	mov	r2, #132
	ldr	r0, .L42+28
	str	r3, [r4, #12]
	ldr	r0, [r0]
	str	r3, [r4, #32]
	str	r0, [r4, #36]
	str	r3, [r4, #28]
	str	r1, [r4, #8]
	str	r2, [r4]
	b	.L5
.L36:
	mov	r2, #128
	ldr	r3, .L42+12
	str	r2, [r4]
	ldr	r0, [r3]
	b	.L1
.L37:
	mov	r0, r7
	mov	r2, sp
	mov	r1, #1
	bl	BrotliSafeReadBits
	cmp	r0, #0
	beq	.L41
	ldr	r0, [r4, #12]
	ldr	r3, [sp]
	add	r0, r0, r3
	str	r0, [r4, #12]
	b	.L13
.L39:
	mov	r0, r8
	mov	r1, r4
	bl	SafeReadSymbolCodeLengths
	b	.L17
.L41:
	mov	r2, #130
	ldr	r3, .L42+12
	str	r2, [r4]
	ldr	r0, [r3]
	b	.L1
.L40:
	bl	BROTLI_LOG
	ldr	r3, .L42+32
	ldr	r0, [r3]
	bl	BROTLI_FAILURE
	b	.L1
.L34:
	ldr	r3, .L42+12
	ldr	r0, [r3]
	b	.L1
.L38:
	bl	__stack_chk_fail
.L2:
	ldr	r3, .L42+36
	ldr	r0, [r3]
	bl	BROTLI_FAILURE
	b	.L1
.L43:
	.align	2
.L42:
	.word	.LC0
	.word	BROTLI_DECODER_SUCCESS
	.word	HUFFMAN_TABLE_BITS
	.word	BROTLI_DECODER_NEEDS_MORE_INPUT
	.word	BROTLI_HUFFMAN_MAX_CODE_LENGTH_CODE_LENGTH
	.word	BROTLI_HUFFMAN_MAX_CODE_LENGTH
	.word	65535
	.word	BROTLI_INITIAL_REPEATED_CODE_LENGTH
	.word	BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE
	.word	BROTLI_DECODER_ERROR_UNREACHABLE
	.size	ReadHuffmanCode, .-ReadHuffmanCode
	.comm	HUFFMAN_TABLE_BITS,4,4
	.comm	BROTLI_INITIAL_REPEATED_CODE_LENGTH,4,4
	.comm	BROTLI_HUFFMAN_MAX_CODE_LENGTH_CODE_LENGTH,4,4
	.comm	BROTLI_HUFFMAN_MAX_CODE_LENGTH,4,4
	.comm	BROTLI_DECODER_SUCCESS,4,4
	.comm	BROTLI_DECODER_NEEDS_MORE_INPUT,4,4
	.comm	BROTLI_DECODER_ERROR_UNREACHABLE,4,4
	.comm	BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
