	.file	"extr_XzDec.c_XzDec_Init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	XzDec_Init
	.type	XzDec_Init, @function
XzDec_Init:
.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
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	ebx, DWORD PTR True[rip]
	call	XzBlock_GetNumFilters@PLT
	mov	ebp, eax
	cmp	DWORD PTR [r14], eax
	je	.L18
	test	ebx, ebx
	jne	.L19
.L5:
	test	ebp, ebp
	jle	.L9
	lea	r13d, -1[rbp]
	movsx	r13, r13d
.L8:
	sal	r13, 4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR [r12]
	mov	rax, rbx
	mov	ecx, DWORD PTR 16[r14]
	add	rbx, 1
	sal	rax, 4
	add	rax, QWORD PTR 24[r14]
	add	rdx, r13
	mov	edi, DWORD PTR [rax]
	sub	r13, 16
	mov	r8d, DWORD PTR 8[rdx]
	mov	esi, DWORD PTR 12[rdx]
	mov	edx, r8d
	call	[QWORD PTR 8[rax]]
	mov	edi, eax
	call	RINOK@PLT
	cmp	ebp, ebx
	jg	.L10
.L9:
	mov	rdi, r14
	call	MixCoder_Init@PLT
	mov	eax, DWORD PTR SZ_OK[rip]
	add	rsp, 8
	.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
.L18:
	.cfi_restore_state
	test	eax, eax
	jle	.L11
	movsx	rdx, eax
	lea	r8d, -1[rax]
	mov	rdi, QWORD PTR 8[r14]
	xor	eax, eax
	sal	rdx, 4
	add	rdx, QWORD PTR [r12]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	lea	ecx, 1[rax]
	lea	rsi, 1[rax]
	sub	rdx, 16
	cmp	r8, rax
	je	.L3
	mov	rax, rsi
.L4:
	mov	rsi, QWORD PTR -16[rdx]
	mov	ecx, eax
	cmp	QWORD PTR [rdi+rax*8], rsi
	je	.L20
.L3:
	xor	ebx, ebx
	cmp	ebp, ecx
	setne	bl
	test	ebx, ebx
	je	.L5
.L19:
	mov	rdi, r14
	call	MixCoder_Free@PLT
	mov	DWORD PTR [r14], ebp
	test	ebp, ebp
	jle	.L9
	lea	r13d, -1[rbp]
	xor	ebx, ebx
	movsx	r13, r13d
	mov	r15, r13
	sal	r15, 4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [r12]
	mov	esi, ebx
	mov	rdi, r14
	add	ebx, 1
	mov	rdx, QWORD PTR [rax+r15]
	sub	r15, 16
	call	MixCoder_SetFromMethod@PLT
	mov	edi, eax
	call	RINOK@PLT
	cmp	ebp, ebx
	jne	.L7
	jmp	.L8
.L11:
	xor	ecx, ecx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	XzDec_Init, .-XzDec_Init
	.comm	True,4,4
	.comm	SZ_OK,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_XzDec.c_XzDec_Init.c"
	.text
	.align	2
	.global	XzDec_Init
	.syntax unified
	.arm
	.fpu softvfp
	.type	XzDec_Init, %function
XzDec_Init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L21
	mov	r6, r0
	mov	r0, r1
	ldr	r4, [r3]
	mov	r8, r1
	bl	XzBlock_GetNumFilters
	ldr	r3, [r6]
	mov	r7, r0
	cmp	r3, r0
	beq	.L18
	cmp	r4, #0
	bne	.L19
.L5:
	cmp	r7, #0
	ble	.L9
	sub	r5, r7, #1
	lsl	r10, r5, #1
.L8:
	mov	r4, #0
	add	r5, r10, r5
	lsl	r5, r5, #2
.L10:
	ldr	ip, [r6, #12]
	ldr	r3, [r8]
	add	r0, ip, r4, lsl #3
	add	r3, r3, r5
	ldr	r2, [r3, #4]
	ldr	r1, [r3, #8]
	ldr	r9, [r0, #4]
	ldr	r3, [r6, #8]
	ldr	r0, [ip, r4, lsl #3]
	blx	r9
	add	r4, r4, #1
	bl	RINOK
	cmp	r7, r4
	sub	r5, r5, #12
	bgt	.L10
.L9:
	mov	r0, r6
	bl	MixCoder_Init
	ldr	r3, .L21+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	cmp	r0, #0
	mov	r3, #0
	ble	.L3
	ldr	r0, [r6, #4]
	ldr	r1, [r8]
	add	r2, r7, r7, lsl #1
	sub	r0, r0, #4
	add	r2, r1, r2, lsl #2
	b	.L4
.L20:
	add	r3, r3, #1
	cmp	r7, r3
	beq	.L3
.L4:
	ldr	r1, [r2, #-12]
	ldr	ip, [r0, #4]!
	sub	r2, r2, #12
	cmp	ip, r1
	beq	.L20
.L3:
	subs	r4, r7, r3
	movne	r4, #1
	cmp	r4, #0
	beq	.L5
.L19:
	mov	r0, r6
	bl	MixCoder_Free
	cmp	r7, #0
	str	r7, [r6]
	ble	.L9
	mov	r4, #0
	sub	r5, r7, #1
	add	r9, r5, r5, lsl #1
	lsl	r9, r9, #2
	lsl	r10, r5, #1
.L7:
	ldr	r3, [r8]
	mov	r1, r4
	ldr	r2, [r3, r9]
	mov	r0, r6
	bl	MixCoder_SetFromMethod
	add	r4, r4, #1
	bl	RINOK
	cmp	r7, r4
	sub	r9, r9, #12
	bne	.L7
	b	.L8
.L22:
	.align	2
.L21:
	.word	True
	.word	SZ_OK
	.size	XzDec_Init, .-XzDec_Init
	.comm	True,4,4
	.comm	SZ_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
