	.file	"extr_decode.c_DecodeWindowBits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DecodeWindowBits, @function
DecodeWindowBits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	esi, 1
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR BROTLI_FALSE[rip]
	lea	r12, 4[rsp]
	mov	rdx, r12
	mov	QWORD PTR 8[rdi], rax
	mov	rdi, rbp
	call	BrotliTakeBits@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jne	.L2
	mov	DWORD PTR [rbx], 16
	mov	eax, DWORD PTR BROTLI_DECODER_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, r12
	mov	esi, 3
	mov	rdi, rbp
	call	BrotliTakeBits@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L4
	add	eax, 17
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR BROTLI_DECODER_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, r12
	mov	esi, 3
	mov	rdi, rbp
	call	BrotliTakeBits@PLT
	mov	edx, DWORD PTR 4[rsp]
	cmp	edx, 1
	je	.L13
	lea	ecx, 8[rdx]
	test	edx, edx
	mov	edx, 17
	mov	eax, DWORD PTR BROTLI_DECODER_SUCCESS[rip]
	cmovne	edx, ecx
	mov	DWORD PTR [rbx], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	test	r13, r13
	je	.L6
	mov	rdx, r12
	mov	esi, 1
	mov	rdi, rbp
	call	BrotliTakeBits@PLT
	cmp	DWORD PTR 4[rsp], 1
	je	.L6
	mov	rax, QWORD PTR BROTLI_TRUE[rip]
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR BROTLI_DECODER_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS[rip]
	call	BROTLI_FAILURE@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	DecodeWindowBits, .-DecodeWindowBits
	.comm	BROTLI_TRUE,8,8
	.comm	BROTLI_FALSE,8,8
	.comm	BROTLI_DECODER_SUCCESS,4,4
	.comm	BROTLI_DECODER_ERROR_FORMAT_WINDOW_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_decode.c_DecodeWindowBits.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DecodeWindowBits, %function
DecodeWindowBits:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L14
	sub	sp, sp, #8
	ldr	r3, [r3]
	ldr	r6, [r0, #4]
	str	r3, [r4, #4]
	ldr	r3, .L14+4
	mov	r0, r1
	mov	r5, r1
	mov	r2, sp
	mov	r1, #1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	BrotliTakeBits
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L2
	mov	r2, #16
	ldr	r3, .L14+8
	str	r2, [r4]
	ldr	r0, [r3]
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r2, sp
	mov	r1, #3
	mov	r0, r5
	bl	BrotliTakeBits
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L4
	ldr	r2, .L14+8
	add	r3, r3, #17
	ldr	r0, [r2]
	str	r3, [r4]
	b	.L1
.L4:
	mov	r1, #3
	mov	r2, sp
	mov	r0, r5
	bl	BrotliTakeBits
	ldr	r1, [sp]
	cmp	r1, #1
	beq	.L13
	ldr	r3, .L14+8
	cmp	r1, #0
	ldr	r0, [r3]
	moveq	r3, #17
	addne	r1, r1, #8
	strne	r1, [r4]
	streq	r3, [r4]
	b	.L1
.L13:
	cmp	r6, #0
	beq	.L6
	mov	r2, sp
	mov	r0, r5
	bl	BrotliTakeBits
	ldr	r3, [sp]
	cmp	r3, #1
	beq	.L6
	ldr	r3, .L14+12
	ldr	r2, .L14+8
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r4, #4]
	b	.L1
.L6:
	ldr	r3, .L14+16
	ldr	r0, [r3]
	bl	BROTLI_FAILURE
	b	.L1
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	BROTLI_FALSE
	.word	.LC0
	.word	BROTLI_DECODER_SUCCESS
	.word	BROTLI_TRUE
	.word	BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS
	.size	DecodeWindowBits, .-DecodeWindowBits
	.comm	BROTLI_TRUE,4,4
	.comm	BROTLI_FALSE,4,4
	.comm	BROTLI_DECODER_SUCCESS,4,4
	.comm	BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
