	.file	"extr_LzmaEnc.c_LzmaEnc_AllocAndInit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	LzmaEnc_AllocAndInit, @function
LzmaEnc_AllocAndInit:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR kDicLogSizeMaxCompress[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	r10, rcx
	mov	rbx, rdi
	test	eax, eax
	jle	.L5
	mov	r8d, DWORD PTR [rdi]
	mov	r9d, eax
	xor	ecx, ecx
	mov	edi, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	ecx, 1
	cmp	ecx, r9d
	je	.L8
.L4:
	mov	eax, edi
	sal	eax, cl
	cmp	r8d, eax
	jg	.L3
.L8:
	add	ecx, ecx
.L2:
	mov	eax, DWORD PTR False[rip]
	mov	DWORD PTR 4[rbx], ecx
	mov	rdi, rbx
	mov	rcx, r10
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR SZ_OK[rip]
	mov	DWORD PTR 16[rbx], eax
	call	LzmaEnc_Alloc@PLT
	mov	edi, eax
	call	RINOK@PLT
	mov	rdi, rbx
	call	LzmaEnc_Init@PLT
	mov	rdi, rbx
	call	LzmaEnc_InitPrices@PLT
	mov	QWORD PTR 8[rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	eax, DWORD PTR SZ_OK[rip]
	ret
.L5:
	.cfi_restore_state
	xor	ecx, ecx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	LzmaEnc_AllocAndInit, .-LzmaEnc_AllocAndInit
	.comm	kDicLogSizeMaxCompress,8,8
	.comm	SZ_OK,4,4
	.comm	False,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_LzmaEnc.c_LzmaEnc_AllocAndInit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LzmaEnc_AllocAndInit, %function
LzmaEnc_AllocAndInit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L10
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [ip]
	mov	ip, #0
	cmp	r0, #0
	ble	.L2
	mov	r5, #1
	ldr	lr, [r4]
	b	.L4
.L3:
	add	ip, ip, #1
	cmp	ip, r0
	beq	.L8
.L4:
	cmp	lr, r5, lsl ip
	bgt	.L3
.L8:
	lsl	ip, ip, #1
.L2:
	ldr	r5, .L10+4
	ldr	r0, .L10+8
	str	ip, [r4, #4]
	ldr	lr, [r0]
	ldr	r0, [r5]
	str	lr, [r4, #16]
	str	r0, [r4, #12]
	mov	r0, r4
	bl	LzmaEnc_Alloc
	bl	RINOK
	mov	r0, r4
	bl	LzmaEnc_Init
	mov	r0, r4
	bl	LzmaEnc_InitPrices
	mov	r3, #0
	ldr	r0, [r5]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	kDicLogSizeMaxCompress
	.word	SZ_OK
	.word	False
	.size	LzmaEnc_AllocAndInit, .-LzmaEnc_AllocAndInit
	.comm	kDicLogSizeMaxCompress,4,4
	.comm	SZ_OK,4,4
	.comm	False,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
