	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpgv_read_sequence_header
_mpgv_read_sequence_header:             ## @mpgv_read_sequence_header
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rdx
	movl	$32, %ecx
	callq	_bytestream_peek_at
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %ebx
	shll	$4, %eax
	movl	%ebx, %r14d
	sarl	$4, %r14d
	orl	%eax, %r14d
	je	LBB0_5
## %bb.2:
	andl	$15, %ebx
	shll	$8, %ebx
	orl	-56(%rbp), %ebx
	je	LBB0_5
## %bb.3:
	movl	-52(%rbp), %eax
	cmpl	$16, %eax
	jb	LBB0_5
## %bb.4:
	movl	%eax, %ecx
	andl	$15, %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.6:
	sarl	$4, %eax
	movl	%r14d, (%r15)
	movl	%ebx, (%r13)
	leaq	_mpgv_read_sequence_header.frame_rate(%rip), %rdx
	movl	(%rdx,%rcx,8), %esi
	movl	4(%rdx,%rcx,8), %ecx
	movl	%esi, (%r12)
	movl	%ecx, (%rdi)
	leaq	_mpgv_read_sequence_header.aspect_ratio(%rip), %rcx
	imull	(%rcx,%rax,8), %ebx
	imull	4(%rcx,%rax,8), %r14d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_vc_container_maths_gcd
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
LBB0_8:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	16(%rbp), %rcx
	movl	%ebx, (%rcx)
	movq	24(%rbp), %rcx
	movl	%r14d, (%rcx)
	jmp	LBB0_9
LBB0_5:
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mpgv_read_sequence_header.frame_rate
_mpgv_read_sequence_header.frame_rate:
	.space	8
	.long	24000                           ## 0x5dc0
	.long	1001                            ## 0x3e9
	.long	24                              ## 0x18
	.long	1                               ## 0x1
	.long	25                              ## 0x19
	.long	1                               ## 0x1
	.long	30000                           ## 0x7530
	.long	1001                            ## 0x3e9
	.long	30                              ## 0x1e
	.long	1                               ## 0x1
	.long	50                              ## 0x32
	.long	1                               ## 0x1
	.long	60000                           ## 0xea60
	.long	1001                            ## 0x3e9
	.long	60                              ## 0x3c
	.long	1                               ## 0x1
	.long	15                              ## 0xf
	.long	1001                            ## 0x3e9
	.long	5                               ## 0x5
	.long	1001                            ## 0x3e9
	.long	10                              ## 0xa
	.long	1001                            ## 0x3e9
	.long	12                              ## 0xc
	.long	1001                            ## 0x3e9
	.long	15                              ## 0xf
	.long	1001                            ## 0x3e9
	.space	8
	.space	8

	.p2align	4                               ## @mpgv_read_sequence_header.aspect_ratio
_mpgv_read_sequence_header.aspect_ratio:
	.space	8
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	16                              ## 0x10
	.long	9                               ## 0x9
	.long	221                             ## 0xdd
	.long	100                             ## 0x64
	.space	88

	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,8,3 ## @VC_CONTAINER_ERROR_CORRUPTED
	.no_dead_strip	_mpgv_read_sequence_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpgv_read_sequence_header
_mpgv_read_sequence_header:             ; @mpgv_read_sequence_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x2, sp, #8
	mov	w3, #32
	bl	_bytestream_peek_at
Lloh3:
	adrp	x25, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldp	w8, w9, [sp, #24]
	asr	w10, w9, #4
	orr	w8, w10, w8, lsl #4
	ubfiz	w9, w9, #8, #4
	ldp	w10, w11, [sp, #32]
	orr	w9, w9, w10
	and	x10, x11, #0xf
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	ccmp	w11, #16, #0, ne
	ccmp	w10, #0, #4, hs
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	b	LBB0_6
LBB0_3:
	asr	w11, w11, #4
	str	w8, [x24]
	str	w9, [x23]
Lloh8:
	adrp	x12, _mpgv_read_sequence_header.frame_rate@PAGE
Lloh9:
	add	x12, x12, _mpgv_read_sequence_header.frame_rate@PAGEOFF
	add	x10, x12, x10, lsl #3
	ldp	w12, w10, [x10]
	str	w12, [x22]
Lloh10:
	adrp	x12, _mpgv_read_sequence_header.aspect_ratio@PAGE
Lloh11:
	add	x12, x12, _mpgv_read_sequence_header.aspect_ratio@PAGEOFF
	str	w10, [x21]
	add	x10, x12, w11, uxtw #3
	ldp	w11, w10, [x10]
	mul	w22, w11, w9
	mul	w21, w10, w8
	mov	x0, x22
	mov	x1, x21
	bl	_vc_container_maths_gcd
	cbz	w0, LBB0_5
; %bb.4:
	udiv	w22, w22, w0
	udiv	w21, w21, w0
LBB0_5:
	str	w22, [x20]
	str	w21, [x19]
	ldr	x0, [x25]
LBB0_6:
	ldr	x8, [sp, #40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mpgv_read_sequence_header.frame_rate
_mpgv_read_sequence_header.frame_rate:
	.space	8
	.long	24000                           ; 0x5dc0
	.long	1001                            ; 0x3e9
	.long	24                              ; 0x18
	.long	1                               ; 0x1
	.long	25                              ; 0x19
	.long	1                               ; 0x1
	.long	30000                           ; 0x7530
	.long	1001                            ; 0x3e9
	.long	30                              ; 0x1e
	.long	1                               ; 0x1
	.long	50                              ; 0x32
	.long	1                               ; 0x1
	.long	60000                           ; 0xea60
	.long	1001                            ; 0x3e9
	.long	60                              ; 0x3c
	.long	1                               ; 0x1
	.long	15                              ; 0xf
	.long	1001                            ; 0x3e9
	.long	5                               ; 0x5
	.long	1001                            ; 0x3e9
	.long	10                              ; 0xa
	.long	1001                            ; 0x3e9
	.long	12                              ; 0xc
	.long	1001                            ; 0x3e9
	.long	15                              ; 0xf
	.long	1001                            ; 0x3e9
	.space	8
	.space	8

	.p2align	2                               ; @mpgv_read_sequence_header.aspect_ratio
_mpgv_read_sequence_header.aspect_ratio:
	.space	8
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	16                              ; 0x10
	.long	9                               ; 0x9
	.long	221                             ; 0xdd
	.long	100                             ; 0x64
	.space	88

	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CORRUPTED,8,3 ; @VC_CONTAINER_ERROR_CORRUPTED
	.no_dead_strip	_mpgv_read_sequence_header
.subsections_via_symbols
