	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MtDec_Read                     ## -- Begin function MtDec_Read
	.p2align	4, 0x90
_MtDec_Read:                            ## @MtDec_Read
	.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, %r15
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.1:
	movq	8(%r15), %rax
	movq	64(%r15), %r12
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13,8), %rbx
	cmpq	$0, (%rsi)
	je	LBB0_6
## %bb.2:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rsi
	movq	(%rsi), %r14
	movl	56(%r15), %edi
	callq	_ISzAlloc_Free
	movq	%r14, (%rbx)
	cmpq	$0, 8(%r12,%r13,8)
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_MtDecThread_FreeInBufs
	decq	(%r15)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_10
## %bb.5:
	movq	8(%r15), %rax
	incq	%rax
	xorl	%ecx, %ecx
	cmpq	16(%r15), %rax
	cmovneq	%rax, %rcx
	movq	%rcx, 8(%r15)
	leaq	(%rcx,%rcx,2), %rbx
	shlq	$3, %rbx
	addq	64(%r15), %rbx
LBB0_6:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rcx
	jmp	LBB0_9
LBB0_10:
	movq	32(%r15), %rbx
	subq	40(%r15), %rbx
	jne	LBB0_11
## %bb.12:
	movq	$0, (%rsi)
	movq	48(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	movl	56(%r15), %edi
	callq	_ISzAlloc_Free
	movq	$0, 48(%r15)
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_8:
	movq	8(%rbx), %rcx
	movq	24(%r15), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
LBB0_9:
	subq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	%rax, (%rsi)
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MTDEC__DATA_PTR_FROM_LINK      ## TAILCALL
LBB0_11:
	leaq	32(%r15), %r14
	movq	48(%r15), %rdi
	movq	%rsi, %r12
	callq	_MTDEC__DATA_PTR_FROM_LINK
	movq	40(%r15), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rbx, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MtDec_Read                     ; -- Begin function MtDec_Read
	.p2align	2
_MtDec_Read:                            ; @MtDec_Read
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x22, [x20, #64]
	ldr	x23, [x20, #8]
	mov	w8, #24
	madd	x21, x23, x8, x22
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x1, [x21]
	ldr	x24, [x1]
	ldr	w0, [x20, #56]
	bl	_ISzAlloc_Free
	str	x24, [x21]
	mov	w8, #24
	madd	x8, x23, x8, x22
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
LBB0_3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
LBB0_4:
	str	xzr, [x21, #16]
	ldr	x9, [x21, #8]
	b	LBB0_8
LBB0_5:
	mov	x0, x21
	bl	_MtDecThread_FreeInBufs
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.eq	LBB0_9
; %bb.6:
	ldp	x8, x9, [x20, #8]
	add	x10, x8, #1
	cmp	x10, x9
	csinc	x8, xzr, x8, eq
	str	x8, [x20, #8]
	ldr	x9, [x20, #64]
	mov	w10, #24
	madd	x21, x8, x10, x9
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_4
LBB0_7:
	ldr	x9, [x21, #8]
	ldr	x8, [x20, #24]
	cmp	x8, x9
	csel	x8, x8, x9, lo
LBB0_8:
	sub	x9, x9, x8
	str	x9, [x21, #8]
	str	x8, [x19]
	ldr	x0, [x21]
	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
	b	_MTDEC__DATA_PTR_FROM_LINK
LBB0_9:
	mov	x21, x20
	ldp	x8, x9, [x21, #32]!
	subs	x22, x8, x9
	b.ne	LBB0_12
; %bb.10:
	str	xzr, [x19]
	ldr	x1, [x20, #48]
	cbz	x1, LBB0_13
; %bb.11:
	ldr	w0, [x20, #56]
	bl	_ISzAlloc_Free
	mov	x0, #0
	str	xzr, [x20, #48]
	b	LBB0_14
LBB0_12:
	ldr	x0, [x20, #48]
	bl	_MTDEC__DATA_PTR_FROM_LINK
	ldr	x8, [x20, #40]
	str	x22, [x19]
	add	x0, x0, x8, lsl #2
	stp	xzr, xzr, [x21]
	b	LBB0_14
LBB0_13:
	mov	x0, #0
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
