	.file	"extr_msrle32.c_MSRLE32_GetMaxCompressedSize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	MSRLE32_GetMaxCompressedSize, @function
MSRLE32_GetMaxCompressedSize:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	setne	dil
	movzx	edi, dil
	call	assert@PLT
	movsx	rax, DWORD PTR [rbx]
	mov	rcx, rax
	imul	rax, rax, -2139062143
	mov	edi, ecx
	sar	edi, 31
	shr	rax, 32
	add	eax, ecx
	mov	r8d, eax
	sar	r8d, 7
	mov	edx, r8d
	sub	edx, edi
	mov	esi, edx
	sal	esi, 8
	sub	esi, edx
	sub	ecx, esi
	cmp	DWORD PTR 4[rbx], 4
	mov	edx, ecx
	jle	.L2
	mov	eax, r8d
	sub	eax, edi
.L3:
	lea	ecx, 2[rax]
	or	ecx, 2
	imul	eax, ecx
	lea	ecx, 2[rdx]
	or	ecx, 2
	imul	edx, ecx
	lea	eax, 2[rax+rdx]
	imul	eax, DWORD PTR 8[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	add	eax, 2
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	shr	ecx, 31
	sar	eax, 8
	add	edx, ecx
	sub	eax, edi
	sar	edx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	MSRLE32_GetMaxCompressedSize, .-MSRLE32_GetMaxCompressedSize
	.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_msrle32.c_MSRLE32_GetMaxCompressedSize.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MSRLE32_GetMaxCompressedSize, %function
MSRLE32_GetMaxCompressedSize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	ip, [r4]
	ldr	r2, .L6
	ldr	r1, [r4, #4]
	smull	r3, r2, ip, r2
	asr	lr, ip, #31
	add	r2, r2, ip
	rsb	r3, lr, r2, asr #7
	cmp	r1, #4
	mov	r1, r3
	movgt	r2, r1
	rsble	r2, lr, r2, asr #8
	add	r1, r2, #2
	rsb	r0, r3, r3, lsl #8
	orr	r1, r1, #2
	sub	r3, ip, r0
	mul	r1, r2, r1
	addle	r3, r3, r3, lsr #31
	asrle	r3, r3, #1
	add	r2, r3, #2
	add	r1, r1, #2
	orr	r2, r2, #2
	mla	r3, r2, r3, r1
	ldr	r0, [r4, #8]
	mul	r0, r3, r0
	add	r0, r0, #2
	pop	{r4, pc}
.L7:
	.align	2
.L6:
	.word	-2139062143
	.size	MSRLE32_GetMaxCompressedSize, .-MSRLE32_GetMaxCompressedSize
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
