	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mpga_reader_read
LCPI0_0:
	.quad	1                               ## 0x1
	.space	8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mpga_reader_read:                      ## @mpga_reader_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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %r13
	movq	(%rax), %r14
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_mpga_sync
	movq	%rax, %rdi
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_21
LBB0_3:
	movl	8(%r13), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movl	%ecx, %eax
	shll	$5, %eax
	subl	%ecx, %eax
	addl	12(%r13), %eax
	sarl	$5, %eax
	jmp	LBB0_6
LBB0_5:
	movl	12(%r13), %eax
LBB0_6:
	movl	%eax, 8(%r13)
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.7:
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_11
## %bb.8:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
LBB0_11:
	movl	$0, 32(%r15)
	movq	(%r13), %rsi
	movq	16(%r13), %rax
	cmpq	%rax, %rsi
	jne	LBB0_12
## %bb.13:
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_9:
	movq	%rdi, %r12
	movq	16(%r13), %rsi
	movq	%rbx, %rdi
	callq	_SKIP_BYTES
	movq	$0, (%r13)
	cmpl	$0, (%r14)
	jne	LBB0_19
## %bb.10:
	movq	_VC_CONTAINER_ERROR_CONTINUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_19
LBB0_12:
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rdx
LBB0_14:
	movl	(%rdx), %edx
	movl	%edx, 28(%r15)
	movq	%rsi, (%r15)
	movq	24(%r13), %rdx
	movq	%rdx, 8(%r15)
	movq	_VC_CONTAINER_TIME_UNKNOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%r15)
	testl	%r12d, %ecx
	je	LBB0_16
## %bb.15:
	movq	%rdi, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_SKIP_BYTES
	movq	$0, (%r13)
LBB0_19:
	movdqu	32(%r13), %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <1,u>
	pinsrq	$1, 16(%r13), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 32(%r13)
	movq	%rbx, %rdi
	callq	_mpga_calculate_frame_time
	movq	%rax, 24(%r13)
LBB0_20:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	%r12, %rdi
	cmpq	(%rax), %r12
	jne	LBB0_21
## %bb.22:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
LBB0_16:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_18
## %bb.17:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_21:
	movq	%rdi, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rdi, %r12
	movl	20(%r15), %edi
	callq	_MIN
	movq	%rax, (%r15)
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_READ_BYTES
	movq	%rax, (%r15)
	subq	%rax, (%r13)
	je	LBB0_19
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ## @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ## @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_ERROR_CONTINUE,8,3 ## @VC_CONTAINER_ERROR_CONTINUE
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_TIME_UNKNOWN,4,2  ## @VC_CONTAINER_TIME_UNKNOWN
	.no_dead_strip	_mpga_reader_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpga_reader_read
_mpga_reader_read:                      ; @mpga_reader_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x9, x8, [x0, #8]
	ldr	x24, [x8]
	ldr	x25, [x9]
Lloh0:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x20, [x23]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mpga_sync
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_17
LBB0_3:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_5
; %bb.4:
	lsl	w9, w8, #5
	ldr	w10, [x24, #12]
	sub	w8, w9, w8
	add	w8, w10, w8
	asr	w8, w8, #5
	b	LBB0_6
LBB0_5:
	ldr	w8, [x24, #12]
LBB0_6:
	str	w8, [x24, #8]
	ldr	w8, [x25]
	cbz	w8, LBB0_11
; %bb.7:
Lloh2:
	adrp	x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ands	w9, w8, w22
	b.eq	LBB0_9
; %bb.8:
Lloh5:
	adrp	x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_11
LBB0_9:
	ldr	x1, [x24]
Lloh8:
	adrp	x10, _VC_CONTAINER_PACKET_FLAG_FRAME@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VC_CONTAINER_PACKET_FLAG_FRAME@GOTPAGEOFF]
Lloh10:
	adrp	x11, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh11:
	ldr	x11, [x11, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
	ldp	x8, x12, [x24, #16]
	cmp	x1, x8
	csel	x10, x10, x11, eq
	str	wzr, [x21, #32]
	ldr	w10, [x10]
	stp	x1, x12, [x21]
Lloh12:
	adrp	x11, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	stp	w11, w10, [x21, #24]
	cbz	w9, LBB0_15
; %bb.10:
	mov	x0, x19
	mov	x1, x8
	bl	_SKIP_BYTES
	str	xzr, [x24]
	b	LBB0_12
LBB0_11:
	ldr	x1, [x24, #16]
	mov	x0, x19
	bl	_SKIP_BYTES
	str	xzr, [x24]
	ldr	w8, [x25]
Lloh15:
	adrp	x9, _VC_CONTAINER_ERROR_CONTINUE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VC_CONTAINER_ERROR_CONTINUE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x20, x9, x20, eq
LBB0_12:
	ldp	x8, x9, [x24, #32]
	add	x8, x8, #1
	ldr	x10, [x24, #16]
	add	x9, x9, x10
	stp	x8, x9, [x24, #32]
	mov	x0, x19
	bl	_mpga_calculate_frame_time
	str	x0, [x24, #24]
LBB0_13:
	ldr	x8, [x23]
	cmp	x20, x8
	b.ne	LBB0_17
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_STREAM_STATUS
LBB0_15:
Lloh18:
	adrp	x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.16:
	ldr	x20, [x23]
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	w0, [x21, #20]
	bl	_MIN
	mov	x2, x0
	str	x0, [x21]
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_READ_BYTES
	str	x0, [x21]
	ldr	x8, [x24]
	subs	x8, x8, x0
	str	x8, [x24]
	b.eq	LBB0_12
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ; @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ; @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_ERROR_CONTINUE,8,3 ; @VC_CONTAINER_ERROR_CONTINUE
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_TIME_UNKNOWN,4,2  ; @VC_CONTAINER_TIME_UNKNOWN
	.no_dead_strip	_mpga_reader_read
.subsections_via_symbols
