	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmv_process_packet_header
_xmv_process_packet_header:             ## @xmv_process_packet_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rbx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r13
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, 76(%r13)
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_avio_read
	cmpl	$8, %eax
	jne	LBB0_16
## %bb.1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_AV_RL32
	andl	$8388607, %eax                  ## imm = 0x7FFFFF
	movl	%eax, 16(%r13)
	movq	$0, 48(%r13)
	movq	%rbx, %rdi
	callq	_AV_RL32
	shrl	$23, %eax
	movzbl	%al, %eax
	movl	%eax, 20(%r13)
	movl	-68(%rbp), %ecx
	shrl	$7, %ecx
	andl	$1, %ecx
	movl	%ecx, 24(%r13)
	cmpl	$0, 28(%r13)
	jne	LBB0_4
## %bb.2:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 36(%rcx)
	movq	_AV_CODEC_ID_WMV2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rcx)
	movl	$87, %edi
	movl	$77, %esi
	movl	$86, %edx
	movl	$50, %ecx
	callq	_MKBETAG
	movq	8(%rbx), %rcx
	movl	%eax, 28(%rcx)
	movl	72(%r13), %eax
	movl	%eax, 44(%rcx)
	movl	68(%r13), %eax
	movl	%eax, 40(%rcx)
	movl	64(%r13), %eax
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rax
	movq	%rax, 32(%r13)
	movl	$1, 28(%r13)
	movl	20(%r13), %eax
LBB0_4:
	movl	(%r13), %ecx
	leal	(,%rcx,4), %edx
	subl	%edx, 16(%r13)
	movl	$0, 4(%r13)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, 20(%r13)
	xorl	%eax, %eax
	cmpl	$2, 8(%r13)
	setge	%al
	movl	%eax, 4(%r13)
LBB0_6:
	testl	%ecx, %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.7:
	movq	$-40, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	cltd
	idivl	20(%r13)
	movl	%eax, %ecx
	cltd
	idivl	72(%r12,%r14)
	subl	%edx, %ecx
	movl	%ecx, 68(%r12,%r14)
	incq	%r15
	movslq	(%r13), %rax
	addq	$64, %r14
	cmpq	%rax, %r15
	jae	LBB0_21
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r13), %r12
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	movl	$4, %edx
	callq	_avio_read
	cmpl	$4, %eax
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, 40(%r12,%r14)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rdx
	movl	%eax, 36(%rdx)
	movl	44(%r12,%r14), %eax
	movl	%eax, (%rdx)
	movl	48(%r12,%r14), %ecx
	movl	%ecx, 4(%rdx)
	movups	88(%r12,%r14), %xmm0
	movups	%xmm0, 20(%rdx)
	shll	$2, %eax
	leal	(%rax,%rax,8), %eax
	movl	%eax, 8(%rdx)
	movl	52(%r12,%r14), %edx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_avpriv_set_pts_info
	movq	(%rbx), %rax
	movq	%rax, 56(%r12,%r14)
	movl	64(%r13), %eax
	movl	%eax, 16(%rbx)
	movl	$1, 40(%r12,%r14)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-80(%rbp), %rdi
	callq	_AV_RL32
	andl	$8388607, %eax                  ## imm = 0x7FFFFF
	movl	%eax, 64(%r12,%r14)
	jne	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r15, %r15
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	56(%r13), %rax
	movl	(%rax,%r14), %eax
	movl	%eax, 64(%r12,%r14)
	jmp	LBB0_8
LBB0_16:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_18:
	movl	%eax, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.20:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, 40(%r13)
	movslq	16(%r13), %r9
	movslq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.22:
	addq	%r9, %rax
	movq	56(%r13), %r8
	leaq	-1(%rdi), %rsi
	movl	%edi, %edx
	andl	$3, %edx
	cmpq	$3, %rsi
	jae	LBB0_25
## %bb.23:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_25:
	andq	$-4, %rdi
	leaq	232(%r8), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -192(%rsi)
	movslq	-208(%rsi), %rcx
	addq	%rax, %rcx
	movq	%rcx, -128(%rsi)
	movslq	-144(%rsi), %rax
	addq	%rcx, %rax
	movq	%rax, -64(%rsi)
	movslq	-80(%rsi), %rcx
	addq	%rax, %rcx
	movq	%rcx, (%rsi)
	movslq	-16(%rsi), %rax
	addq	%rcx, %rax
	addq	$4, %rbx
	addq	$256, %rsi                      ## imm = 0x100
	cmpq	%rbx, %rdi
	jne	LBB0_26
LBB0_27:
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.28:
	shlq	$6, %rbx
	leaq	(%r8,%rbx), %rsi
	addq	$40, %rsi
	shlq	$6, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rsi,%rdi)
	movslq	-16(%rsi,%rdi), %rcx
	addq	%rcx, %rax
	addq	$64, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_29
LBB0_30:
	xorl	%ebx, %ebx
	testl	%r9d, %r9d
	jle	LBB0_19
## %bb.31:
	cmpl	$0, 24(%r13)
	je	LBB0_19
## %bb.32:
	movl	44(%r13), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_xmv_read_extradata
	addl	$-4, 16(%r13)
	addl	$4, 40(%r13)
	movq	32(%r13), %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	(%rcx,%rax,8), %r14
	xorl	%edi, %edi
	cmpq	(%rdx), %rax
	setb	%dil
	callq	_av_assert0
	movq	8(%r14), %rdi
	cmpl	$3, 12(%rdi)
	jg	LBB0_35
## %bb.33:
	addq	$16, %rdi
	callq	_av_freep
	movq	8(%r14), %rdi
	movl	$4, %esi
	callq	_ff_alloc_extradata
	testl	%eax, %eax
	js	LBB0_18
## %bb.34:
	movq	8(%r14), %rdi
LBB0_35:
	movl	16(%rdi), %edi
	movl	44(%r13), %esi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_19
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_WMV2,4,2           ## @AV_CODEC_ID_WMV2
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_xmv_process_packet_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmv_process_packet_header
_xmv_process_packet_header:             ; @xmv_process_packet_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldp	x20, x22, [x0, #16]
	mov	x0, x20
	bl	_avio_rl32
	str	w0, [x22, #76]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8
	bl	_avio_read
	cmp	w0, #8
	b.ne	LBB0_16
; %bb.1:
	add	x0, sp, #8
	bl	_AV_RL32
	and	w8, w0, #0x7fffff
	str	w8, [x22, #16]
	str	xzr, [x22, #48]
	add	x0, sp, #8
	bl	_AV_RL32
	ubfx	w8, w0, #23, #8
	ldr	w9, [sp, #20]
	ubfx	w9, w9, #7, #1
	stp	w8, w9, [x22, #20]
	ldr	w9, [x22, #28]
	cbnz	w9, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_30
; %bb.3:
	mov	x21, x0
	mov	w23, #1
	mov	w1, #32
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
Lloh6:
	adrp	x10, _AV_CODEC_ID_WMV2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_ID_WMV2@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #32]
	mov	w0, #87
	mov	w1, #77
	mov	w2, #86
	mov	w3, #50
	bl	_MKBETAG
	ldr	x8, [x21, #8]
	str	w0, [x8, #28]
	ldur	d0, [x22, #68]
	str	d0, [x8, #40]
	ldr	w8, [x22, #64]
	str	w8, [x21, #16]
	ldr	x8, [x21]
	str	x8, [x22, #32]
	str	w23, [x22, #28]
	ldr	w8, [x22, #20]
LBB0_4:
	ldr	w9, [x22]
	ldr	w10, [x22, #16]
	sub	w10, w10, w9, lsl #2
	str	w10, [x22, #16]
	str	wzr, [x22, #4]
	cbz	w8, LBB0_6
; %bb.5:
	cbnz	w9, LBB0_7
	b	LBB0_18
LBB0_6:
	mov	w8, #1
	str	w8, [x22, #20]
	ldr	w8, [x22, #8]
	cmp	w8, #1
	cset	w8, gt
	str	w8, [x22, #4]
	cbz	w9, LBB0_18
LBB0_7:
	mov	x23, #0
	mov	x24, #-40
	mov	w26, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x22, #20]
	sdiv	w8, w8, w9
	add	x9, x27, x24
	ldr	w10, [x9, #72]
	sdiv	w8, w8, w10
	mul	w8, w8, w10
	str	w8, [x9, #68]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x24, x24, #64
	cmp	x23, x8
	b.hs	LBB0_18
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x22, #56]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	bl	_avio_read
	cmp	w0, #4
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x28, x27, x24
	ldr	w8, [x28, #40]
	cbnz	w8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_30
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x0
Lloh9:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	str	w8, [x9, #36]
	add	x25, x27, x24
	ldr	w8, [x25, #44]
	str	w8, [x9]
	ldr	w3, [x25, #48]
	str	w3, [x9, #4]
	ldur	q0, [x25, #88]
	stur	q0, [x9, #20]
	add	w8, w8, w8, lsl #3
	lsl	w8, w8, #2
	str	w8, [x9, #8]
	ldr	w2, [x25, #52]
	mov	w1, #32
	bl	_avpriv_set_pts_info
	ldr	x8, [x21]
	str	x8, [x25, #56]
	ldr	w8, [x22, #64]
	str	w8, [x21, #16]
	str	w26, [x28, #40]
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	bl	_AV_RL32
	ands	w8, w0, #0x7fffff
	str	w8, [x28, #64]
	b.ne	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x23, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22, #56]
	ldr	w8, [x8, x24]
	str	w8, [x28, #64]
	b	LBB0_8
LBB0_16:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_28
LBB0_18:
	mov	x0, x20
	bl	_avio_tell
	str	w0, [x22, #40]
	ldrsw	x8, [x22, #16]
	ldrsw	x9, [x22]
	cbz	w9, LBB0_21
; %bb.19:
	add	x10, x0, x8
	ldr	x11, [x22, #56]
	add	x11, x11, #40
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	str	x10, [x11]
	ldursw	x12, [x11, #-16]
	add	x10, x10, x12
	add	x11, x11, #64
	subs	x9, x9, #1
	b.ne	LBB0_20
LBB0_21:
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.22:
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_27
; %bb.23:
	ldr	w0, [x22, #44]
	mov	x1, x20
	bl	_xmv_read_extradata
	ldr	w8, [x22, #16]
	sub	w8, w8, #4
	str	w8, [x22, #16]
	ldr	w8, [x22, #40]
	add	w8, w8, #4
	str	w8, [x22, #40]
	ldr	x8, [x22, #32]
	ldp	x10, x9, [x19]
	ldr	x19, [x9, x8, lsl #3]
	cmp	x8, x10
	cset	w0, lo
	bl	_av_assert0
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #12]
	cmp	w9, #3
	b.gt	LBB0_26
; %bb.24:
	add	x0, x8, #16
	bl	_av_freep
	ldr	x0, [x19, #8]
	mov	w1, #4
	bl	_ff_alloc_extradata
	tbnz	w0, #31, LBB0_28
; %bb.25:
	ldr	x8, [x19, #8]
LBB0_26:
	ldr	w0, [x8, #16]
	ldr	w1, [x22, #44]
	mov	w2, #4
	bl	_memcpy
LBB0_27:
	mov	w0, #0
LBB0_28:
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.29:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_30:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_WMV2,4,2           ; @AV_CODEC_ID_WMV2
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_xmv_process_packet_header
.subsections_via_symbols
