	.file	"extr_stream_encoder_mt.c_stream_encoder_mt_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stream_encoder_mt_init, @function
stream_encoder_mt_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	mov	rdx, rsi
	mov	rsi, rdi
	lea	rdi, stream_encoder_mt_init[rip]
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	lzma_next_coder_init@PLT
	lea	rcx, 24[rsp]
	lea	rdx, 16[rsp]
	mov	rdi, rbx
	lea	rsi, 12[rsp]
	lea	r8, 32[rsp]
	call	get_options@PLT
	mov	edi, eax
	call	return_if_error@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	lzma_raw_encoder_memusage@PLT
	cmp	rax, QWORD PTR UINT64_MAX[rip]
	je	.L24
	mov	rdi, QWORD PTR 8[rbx]
	cmp	DWORD PTR LZMA_CHECK_ID_MAX[rip], edi
	mov	eax, DWORD PTR LZMA_PROG_ERROR[rip]
	jnb	.L25
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L26
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	call	lzma_check_is_supported@PLT
	test	eax, eax
	je	.L27
	mov	r12, QWORD PTR 24[r13]
	test	r12, r12
	je	.L28
.L6:
	mov	eax, DWORD PTR SEQ_STREAM_HEADER[rip]
	xor	edi, edi
	mov	QWORD PTR 112[r12], 0
	mov	DWORD PTR 124[r12], eax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR LZMA_OK[rip]
	mov	DWORD PTR 120[r12], eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	setg	dil
	call	assert@PLT
	mov	eax, DWORD PTR [rbx]
	cmp	DWORD PTR [r12], eax
	je	.L10
	mov	rsi, rbp
	mov	rdi, r12
	call	threads_end@PLT
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [r12], 0
	mov	rsi, rbp
	mov	QWORD PTR 88[r12], 0
	mov	QWORD PTR 104[r12], 0
	lea	edi, 0[0+rax*4]
	mov	QWORD PTR 96[r12], 0
	call	lzma_alloc@PLT
	mov	QWORD PTR 88[r12], rax
	test	rax, rax
	je	.L22
	mov	ecx, DWORD PTR [rbx]
	mov	DWORD PTR [r12], ecx
.L12:
	mov	rdx, QWORD PTR 32[rsp]
	lea	rdi, 84[r12]
	mov	rsi, rbp
	call	lzma_outq_init@PLT
	mov	edi, eax
	call	return_if_error@PLT
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 80[r12], eax
	mov	rax, QWORD PTR 72[r12]
	mov	rcx, QWORD PTR [rax]
	cmp	QWORD PTR LZMA_VLI_UNKNOWN[rip], rcx
	je	.L17
	mov	r13d, 16
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 8[rax]
	mov	rsi, rbp
	call	lzma_free@PLT
	mov	rsi, QWORD PTR 72[r12]
	mov	rcx, QWORD PTR LZMA_VLI_UNKNOWN[rip]
	lea	rax, [rsi+r13]
	add	r13, 16
	cmp	QWORD PTR [rax], rcx
	jne	.L14
.L13:
	mov	rdi, QWORD PTR 16[rsp]
	mov	rdx, rbp
	call	lzma_filters_copy@PLT
	mov	edi, eax
	call	return_if_error@PLT
	mov	rdi, QWORD PTR 64[r12]
	mov	rsi, rbp
	call	lzma_index_end@PLT
	mov	rdi, rbp
	call	lzma_index_init@PLT
	mov	QWORD PTR 64[r12], rax
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR 40[r12]
	lea	rdi, 48[r12]
	mov	QWORD PTR 56[r12], 0
	mov	QWORD PTR 48[r12], rax
	call	lzma_stream_header_encode@PLT
	mov	edi, eax
	call	return_if_error@PLT
	mov	eax, DWORD PTR LZMA_STREAM_HEADER_SIZE[rip]
	mov	QWORD PTR 32[r12], 0
	mov	QWORD PTR 24[r12], 0
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR LZMA_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	eax, DWORD PTR LZMA_OPTIONS_ERROR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rsi, rbp
	mov	edi, 144
	call	lzma_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L22
	mov	QWORD PTR 24[r13], rax
	lea	r14, 132[rax]
	mov	rdi, r14
	call	mythread_mutex_init@PLT
	test	rax, rax
	jne	.L21
	lea	rdi, 136[r12]
	call	mythread_cond_init@PLT
	test	rax, rax
	jne	.L29
	lea	rax, stream_encode_mt[rip]
	lea	rdi, 84[r12]
	mov	esi, 4
	mov	rdx, QWORD PTR LZMA_VLI_UNKNOWN[rip]
	mov	QWORD PTR 16[r13], rax
	lea	rax, stream_encoder_mt_end[rip]
	mov	QWORD PTR 8[r13], rax
	lea	rax, get_progress[rip]
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR 72[r12]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR LZMA_NEXT_CODER_INIT[rip]
	mov	QWORD PTR 64[r12], 0
	mov	DWORD PTR 128[r12], eax
	call	memzero@PLT
	mov	DWORD PTR [r12], 0
	mov	QWORD PTR 88[r12], 0
	mov	QWORD PTR 104[r12], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 1
	mov	rdi, r12
	call	threads_stop@PLT
	mov	ecx, DWORD PTR [rbx]
	jmp	.L12
.L29:
	mov	rdi, r14
	call	mythread_mutex_destroy@PLT
.L21:
	mov	rsi, rbp
	mov	rdi, r12
	call	lzma_free@PLT
	mov	QWORD PTR 24[r13], 0
.L22:
	mov	eax, DWORD PTR LZMA_MEM_ERROR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	eax, DWORD PTR LZMA_UNSUPPORTED_CHECK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, rax
	jmp	.L13
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stream_encoder_mt_init, .-stream_encoder_mt_init
	.comm	stream_encoder_mt_end,4,4
	.comm	stream_encode_mt,4,4
	.comm	get_progress,4,4
	.comm	UINT64_MAX,8,8
	.comm	SIZE_MAX,8,8
	.comm	SEQ_STREAM_HEADER,4,4
	.comm	LZMA_VLI_UNKNOWN,8,8
	.comm	LZMA_UNSUPPORTED_CHECK,4,4
	.comm	LZMA_STREAM_HEADER_SIZE,4,4
	.comm	LZMA_PROG_ERROR,4,4
	.comm	LZMA_OPTIONS_ERROR,4,4
	.comm	LZMA_OK,4,4
	.comm	LZMA_NEXT_CODER_INIT,4,4
	.comm	LZMA_MEM_ERROR,4,4
	.comm	LZMA_CHECK_ID_MAX,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_stream_encoder_mt.c_stream_encoder_mt_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stream_encoder_mt_init, %function
stream_encoder_mt_init:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	ldr	r3, .L28
	sub	sp, sp, #32
	mov	r2, r1
	mov	r7, r0
	mov	r4, r1
	mov	r1, r0
	ldr	r0, .L28+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	lzma_next_coder_init
	add	r3, sp, #24
	add	r2, sp, #16
	add	r1, sp, #12
	str	r3, [sp]
	mov	r0, r6
	add	r3, sp, #20
	bl	get_options
	bl	return_if_error
	ldr	r0, [sp, #16]
	bl	lzma_raw_encoder_memusage
	ldr	r3, .L28+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L22
	ldr	r3, .L28+12
	ldr	r0, [r6, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	bls	.L4
	ldr	r3, .L28+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	bl	lzma_check_is_supported
	cmp	r0, #0
	beq	.L24
	ldr	r5, [r7, #12]
	cmp	r5, #0
	beq	.L25
.L6:
	mov	r7, #0
	ldr	r3, .L28+20
	ldr	r8, .L28+24
	ldr	r0, [r6]
	ldr	r1, [r3]
	ldr	r2, [r8]
	ldr	r3, [sp, #20]
	cmp	r0, r7
	movle	r0, #0
	movgt	r0, #1
	str	r2, [r5, #64]
	str	r3, [r5, #4]
	str	r1, [r5, #68]
	str	r7, [r5, #60]
	bl	assert
	ldr	r2, [r5]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L10
	mov	r1, r4
	mov	r0, r5
	bl	threads_end
	ldr	r0, [r6]
	mov	r1, r4
	str	r7, [r5, #48]
	str	r7, [r5]
	str	r7, [r5, #56]
	str	r7, [r5, #52]
	lsl	r0, r0, #2
	bl	lzma_alloc
	cmp	r0, r7
	str	r0, [r5, #48]
	beq	.L20
	ldr	r3, [r6]
	str	r3, [r5]
.L12:
	mov	r1, r4
	ldr	r2, [sp, #24]
	add	r0, r5, #44
	bl	lzma_outq_init
	bl	return_if_error
	ldr	r9, .L28+28
	ldr	r3, [r5, #36]
	ldr	r0, [r9]
	ldr	r1, [r3]
	ldr	r2, [r6, #8]
	cmp	r0, r1
	str	r2, [r5, #40]
	beq	.L17
	mov	r7, #8
.L14:
	mov	r1, r4
	ldr	r0, [r3, #4]
	bl	lzma_free
	ldr	r1, [r5, #36]
	ldr	r2, [r9]
	add	r3, r1, r7
	ldr	r0, [r3]
	add	r7, r7, #8
	cmp	r0, r2
	bne	.L14
.L13:
	mov	r2, r4
	ldr	r0, [sp, #16]
	bl	lzma_filters_copy
	bl	return_if_error
	mov	r1, r4
	ldr	r0, [r5, #32]
	bl	lzma_index_end
	mov	r0, r4
	bl	lzma_index_init
	cmp	r0, #0
	str	r0, [r5, #32]
	beq	.L20
	mov	r4, #0
	ldr	r3, [r6, #4]
	ldr	r1, [r5, #20]
	str	r3, [r5, #24]
	str	r4, [r5, #28]
	add	r0, r5, #24
	bl	lzma_stream_header_encode
	bl	return_if_error
	ldr	r3, .L28+32
	ldr	r0, [r8]
	ldr	r3, [r3]
	str	r4, [r5, #16]
	str	r4, [r5, #12]
	str	r3, [r5, #8]
	b	.L1
.L22:
	ldr	r3, .L28+36
	ldr	r0, [r3]
	b	.L1
.L25:
	mov	r1, r4
	mov	r0, #84
	bl	lzma_alloc
	subs	r5, r0, #0
	beq	.L20
	add	r10, r5, #76
	mov	r0, r10
	str	r5, [r7, #12]
	bl	mythread_mutex_init
	subs	r9, r0, #0
	bne	.L26
	add	r0, r5, #80
	bl	mythread_cond_init
	subs	r8, r0, #0
	bne	.L27
	ldr	r2, .L28+28
	ldr	r3, .L28+40
	ldr	r0, [r2]
	ldr	r2, .L28+44
	ldr	r3, [r3]
	str	r2, [r7, #8]
	ldr	r2, .L28+48
	ldr	r1, .L28+52
	str	r2, [r7]
	ldr	r2, [r5, #36]
	str	r1, [r7, #4]
	str	r0, [r2]
	mov	r1, #4
	add	r0, r5, #44
	str	r8, [r5, #32]
	str	r3, [r5, #72]
	bl	memzero
	str	r8, [r5, #48]
	str	r8, [r5]
	str	r8, [r5, #56]
	b	.L6
.L10:
	mov	r1, #1
	mov	r0, r5
	bl	threads_stop
	ldr	r3, [r6]
	b	.L12
.L24:
	ldr	r3, .L28+56
	ldr	r0, [r3]
	b	.L1
.L20:
	ldr	r3, .L28+60
	ldr	r0, [r3]
	b	.L1
.L26:
	mov	r1, r4
	mov	r0, r5
	bl	lzma_free
	mov	r2, #0
	ldr	r3, .L28+60
	str	r2, [r7, #12]
	ldr	r0, [r3]
	b	.L1
.L17:
	mov	r1, r3
	b	.L13
.L27:
	mov	r0, r10
	bl	mythread_mutex_destroy
	mov	r1, r4
	mov	r0, r5
	bl	lzma_free
	ldr	r3, .L28+60
	str	r9, [r7, #12]
	ldr	r0, [r3]
	b	.L1
.L23:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	stream_encoder_mt_init
	.word	UINT64_MAX
	.word	LZMA_CHECK_ID_MAX
	.word	LZMA_PROG_ERROR
	.word	SEQ_STREAM_HEADER
	.word	LZMA_OK
	.word	LZMA_VLI_UNKNOWN
	.word	LZMA_STREAM_HEADER_SIZE
	.word	LZMA_OPTIONS_ERROR
	.word	LZMA_NEXT_CODER_INIT
	.word	stream_encode_mt
	.word	get_progress
	.word	stream_encoder_mt_end
	.word	LZMA_UNSUPPORTED_CHECK
	.word	LZMA_MEM_ERROR
	.size	stream_encoder_mt_init, .-stream_encoder_mt_init
	.comm	stream_encoder_mt_end,4,4
	.comm	stream_encode_mt,4,4
	.comm	get_progress,4,4
	.comm	UINT64_MAX,4,4
	.comm	SIZE_MAX,4,4
	.comm	SEQ_STREAM_HEADER,4,4
	.comm	LZMA_VLI_UNKNOWN,4,4
	.comm	LZMA_UNSUPPORTED_CHECK,4,4
	.comm	LZMA_STREAM_HEADER_SIZE,4,4
	.comm	LZMA_PROG_ERROR,4,4
	.comm	LZMA_OPTIONS_ERROR,4,4
	.comm	LZMA_OK,4,4
	.comm	LZMA_NEXT_CODER_INIT,4,4
	.comm	LZMA_MEM_ERROR,4,4
	.comm	LZMA_CHECK_ID_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
