	.file	"extr_brotli_bit_stream.c_BrotliEncodeMlen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	BrotliEncodeMlen, @function
BrotliEncodeMlen:
.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, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	rdi, 1
	jne	.L7
.L4:
	mov	QWORD PTR 8[rsp], 0
	mov	r14d, 16
	mov	r15d, 1
.L2:
	xor	edi, edi
	test	rbx, rbx
	setne	dil
	call	BROTLI_DCHECK@PLT
	xor	edi, edi
	cmp	rbx, 16777216
	setbe	dil
	sub	rbx, 1
	call	BROTLI_DCHECK@PLT
	mov	edi, r15d
	call	BROTLI_DCHECK@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 0[r13], rax
	mov	QWORD PTR [r12], r14
	mov	QWORD PTR 0[rbp], rbx
	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
.L7:
	.cfi_restore_state
	lea	edi, -1[rdi]
	call	Log2FloorNonZero@PLT
	add	eax, 1
	cdqe
	cmp	rax, 15
	jbe	.L4
	lea	r14, 3[rax]
	xor	r15d, r15d
	shr	r14, 2
	cmp	rax, 24
	lea	rax, -4[r14]
	setbe	r15b
	sal	r14, 2
	mov	QWORD PTR 8[rsp], rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	BrotliEncodeMlen, .-BrotliEncodeMlen
	.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_BrotliEncodeMlen.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	BrotliEncodeMlen, %function
BrotliEncodeMlen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #1
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r6, r1
	mov	r7, r2
	mov	r8, r3
	sub	r9, r0, #1
	bne	.L7
.L4:
	mov	r5, #16
	mov	r10, #0
	mov	fp, #1
.L2:
	subs	r0, r4, #0
	movne	r0, #1
	bl	BROTLI_DCHECK
	cmp	r4, #16777216
	movhi	r0, #0
	movls	r0, #1
	bl	BROTLI_DCHECK
	mov	r0, fp
	bl	BROTLI_DCHECK
	str	r10, [r8]
	str	r5, [r7]
	str	r9, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r0, r9
	bl	Log2FloorNonZero
	add	fp, r0, #1
	cmp	fp, #15
	bls	.L4
	add	r5, r0, #4
	lsr	r5, r5, #2
	cmp	fp, #24
	sub	r10, r5, #4
	movhi	fp, #0
	movls	fp, #1
	lsl	r5, r5, #2
	b	.L2
	.size	BrotliEncodeMlen, .-BrotliEncodeMlen
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
