	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function MtDec_Code
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_MtDec_Code
	.p2align	4, 0x90
_MtDec_Code:                            ## @MtDec_Code
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, 208(%rdi)
	movl	$1, (%rdi)
	movq	_False@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 56(%rdi)
	movq	%rax, 48(%rdi)
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rdi)
	movq	_True@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 40(%rdi)
	movq	%rax, 200(%rdi)
	movq	%rax, 192(%rdi)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255]
	movups	%xmm0, 176(%rdi)
	movq	%rcx, 168(%rdi)
	movq	%rcx, 160(%rdi)
	movq	%rax, 152(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 120(%rdi)
	movups	%xmm0, 136(%rdi)
	movl	16(%rdi), %ecx
	movq	_MTDEC__THREADS_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%eax, %ecx
	cmovael	%eax, %ecx
	movl	%ecx, 20(%rdi)
	movq	$0, 64(%rdi)
	movq	24(%rdi), %rcx
	cmpq	32(%rdi), %rcx
	je	LBB0_9
## %bb.1:
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movl	%eax, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rdi
	cmpq	$0, 8(%rdi,%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %rdi
	callq	_MtDecThread_FreeInBufs
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_6:
	movq	104(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	112(%r12), %edi
	callq	_ISzAlloc_Free
	movq	$0, 104(%r12)
LBB0_8:
	movq	24(%r12), %rax
	movq	%rax, 32(%r12)
LBB0_9:
	leaq	100(%r12), %rdi
	movl	96(%r12), %esi
	callq	_MtProgress_Init
	movq	(%r13), %rax
	movq	%rax, 88(%r12)
	movq	$0, 80(%r12)
	movq	64(%r12), %rbx
	movq	72(%r12), %r13
	leaq	1(%rbx), %rax
	movq	%rax, 64(%r12)
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %r15
	movq	%r15, %rdi
	callq	_MtDecThread_CreateEvents
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	leaq	(%rbx,%r13), %rdi
	addq	$4, %rdi
	callq	_Event_Set
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	%r15, %rdi
	callq	_Event_Set
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	movq	%r15, %rdi
	callq	_ThreadFunc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r14
	movq	_False@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	%r12, %rdi
	callq	_MtDec_CloseThreads
	jmp	LBB0_15
LBB0_13:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rdi
	callq	_MY_SRes_HRESULT_FROM_WRes
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rax, 8(%r12)
LBB0_17:
	cmpq	$0, 56(%r12)
	movq	_False@GOTPCREL(%rip), %rsi
	je	LBB0_19
## %bb.18:
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_23
LBB0_19:
	movq	8(%r12), %rdx
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_23
## %bb.20:
	cmpq	$0, 48(%r12)
	jne	LBB0_22
## %bb.21:
	movq	(%rsi), %rcx
	movq	%rcx, 40(%r12)
LBB0_22:
	movq	%rdx, %rcx
LBB0_23:
	cmpq	$0, 40(%r12)
	cmoveq	%rax, %rcx
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_False,8,3                      ## @False
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_True,8,3                       ## @True
	.comm	_MTDEC__THREADS_MAX,4,2         ## @MTDEC__THREADS_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function MtDec_Code
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	-1                              ; 0xffffffffffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_MtDec_Code
	.p2align	2
_MtDec_Code:                            ; @MtDec_Code
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	str	xzr, [x0, #208]
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x22, _False@GOTPAGE
Lloh1:
	ldr	x22, [x22, _False@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x23, _SZ_OK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x0, #8]
Lloh4:
	adrp	x10, _True@GOTPAGE
Lloh5:
	ldr	x10, [x10, _True@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	stp	x10, x9, [x0, #40]
	stp	x9, x9, [x0, #192]
Lloh7:
	adrp	x10, lCPI0_0@PAGE
Lloh8:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	str	q0, [x0, #176]
	stp	x8, x8, [x0, #160]
	str	x9, [x0, #152]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #120]
	stur	q0, [x0, #136]
	ldr	w10, [x0, #16]
Lloh9:
	adrp	x20, _MTDEC__THREADS_MAX@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MTDEC__THREADS_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w10, w8
	csel	w10, w10, w8, lo
	str	w10, [x0, #20]
	stp	x9, xzr, [x0, #56]
	ldp	x9, x10, [x0, #24]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.1:
	cbz	w8, LBB0_6
; %bb.2:
	mov	x21, #0
	mov	x24, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x21, x21, #16
	cmp	x24, w8, uxtw
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #72]
	add	x0, x9, x21
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_MtDecThread_FreeInBufs
	ldr	w8, [x20]
	b	LBB0_3
LBB0_6:
	ldr	x1, [x19, #104]
	cbz	x1, LBB0_8
; %bb.7:
	ldr	w0, [x19, #112]
	bl	_ISzAlloc_Free
	str	xzr, [x19, #104]
LBB0_8:
	ldr	x8, [x19, #24]
	str	x8, [x19, #32]
LBB0_9:
	add	x0, x19, #100
	ldr	w1, [x19, #96]
	bl	_MtProgress_Init
	ldr	x8, [x22]
	stp	xzr, x8, [x19, #80]
	ldp	x9, x8, [x19, #64]
	add	x10, x9, #1
	str	x10, [x19, #64]
	add	x20, x8, x9, lsl #4
	mov	x0, x20
	bl	_MtDecThread_CreateEvents
	mov	x21, x0
	cbnz	x0, LBB0_14
; %bb.10:
	add	x0, x20, #4
	bl	_Event_Set
	mov	x21, x0
	cbnz	x0, LBB0_14
; %bb.11:
	mov	x0, x20
	bl	_Event_Set
	mov	x21, x0
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x20
	bl	_ThreadFunc
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x22]
	str	x8, [x19, #40]
	mov	x0, x19
	bl	_MtDec_CloseThreads
LBB0_14:
	mov	x0, x21
	bl	_MY_SRes_HRESULT_FROM_WRes
	cbz	x0, LBB0_16
; %bb.15:
	str	x0, [x19, #8]
LBB0_16:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x23]
	b	LBB0_22
LBB0_18:
	ldr	x9, [x19, #8]
	ldr	x8, [x23]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.19:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_21
; %bb.20:
	ldr	x8, [x22]
	str	x8, [x19, #40]
LBB0_21:
	mov	x8, x9
LBB0_22:
	ldr	x9, [x19, #40]
	cmp	x9, #0
	csel	x0, x0, x8, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_False,8,3                      ; @False
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_True,8,3                       ; @True
	.comm	_MTDEC__THREADS_MAX,4,2         ; @MTDEC__THREADS_MAX
.subsections_via_symbols
