	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_stream_properties
_asf_read_stream_properties:            ## @asf_read_stream_properties
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_ASF_MAX_STREAMS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r13
	movq	16(%r14), %r12
	movq	%r13, %rdi
	callq	_avio_tell
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	testb	$1, 24(%r12)
	jne	LBB0_8
## %bb.4:
	movq	16(%r12), %rbx
	movq	%r13, %rdi
	callq	_avio_size
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:
	movq	%rax, %r15
	movq	32(%r12), %rax
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	subq	%rax, %rdi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	32(%r12), %rsi
	movq	%r15, %rdi
	callq	_FFMIN
	cmpl	%eax, -56(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_8
LBB0_7:
	movslq	28(%r12), %rax
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	cltq
	subq	%rbx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
LBB0_8:
	leaq	-44(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ff_get_guid
	movq	_ff_asf_audio_stream@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movq	_ff_asf_video_stream@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	movq	_ff_asf_jfif_media@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	movq	_ff_asf_command_stream@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	movq	_ff_asf_ext_stream_embed_stream_header@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_56
## %bb.13:
	movq	_AVMEDIA_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_16:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_AV_CODEC_ID_MJPEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_21
LBB0_19:
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_21:
	movb	$1, %bl
LBB0_22:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ff_get_guid
	movl	$8, %esi
	movq	%r13, %rdi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_rl16
	movl	%eax, %r15d
	andl	$127, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	(%r14), %rax
	decq	%rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	8(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl32
	movb	$1, %r12b
	testb	%bl, %bl
	jne	LBB0_25
## %bb.23:
	leaq	-44(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ff_get_guid
	movq	_ff_asf_ext_stream_audio_stream@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ff_get_guid
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ff_get_guid
	movq	%r13, %rdi
	callq	_avio_rl32
	xorl	%r12d, %r12d
LBB0_25:
	leaq	(%r15,%r15,2), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rdx)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_29
## %bb.26:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	callq	_ff_get_wav_header
	testl	%eax, %eax
	js	LBB0_56
## %bb.27:
	testb	%r12b, %r12b
	je	LBB0_39
## %bb.28:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rax
	jmp	LBB0_40
LBB0_29:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_55
## %bb.30:
	movq	%r13, %rdi
	callq	_avio_tell
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leaq	(%rbx,%r12), %rcx
	subq	%rax, %rcx
	addq	$-24, %rcx
	cmpq	$51, %rcx
	jl	LBB0_55
## %bb.31:
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rdi
	callq	_avio_r8
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	16(%r14), %rcx
	movq	%rax, 48(%rcx)
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	16(%r14), %rcx
	movq	%rax, 40(%rcx)
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	16(%r14), %rcx
	movl	%eax, 16(%rcx)
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$20, %esi
	movq	%r13, %rdi
	callq	_avio_skip
	cmpl	$41, %r12d
	jl	LBB0_34
## %bb.32:
	addl	$-40, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_ffio_limit
	movq	16(%r14), %rcx
	movq	%rax, 24(%rcx)
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_av_mallocz
	movq	16(%r14), %rcx
	movq	%rax, 32(%rcx)
	testq	%rax, %rax
	je	LBB0_57
## %bb.33:
	movq	24(%rcx), %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_avio_read
LBB0_34:
	movq	16(%r14), %rax
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.35:
	cmpl	$8, 16(%rax)
	jg	LBB0_37
## %bb.36:
	movq	%r15, %r12
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15,%r12,8), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FFMIN
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movl	$1, 12(%r15,%r12,8)
	movq	16(%r14), %rax
LBB0_37:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, 12(%rax)
	movq	_ff_codec_bmp_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ff_codec_get_id
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$68, %edi
	movl	$86, %esi
	movl	$82, %edx
	movl	$32, %ecx
	callq	_MKTAG
	cmpl	%r15d, %eax
	jne	LBB0_50
## %bb.38:
	movq	_AVSTREAM_PARSE_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	16(%r14), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rdi)
	addq	$32, %rdi
	callq	_av_freep
	movq	16(%r14), %rax
	movq	$0, 24(%rax)
	jmp	LBB0_51
LBB0_39:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, 4(%rdx)
	movq	16(%rdx), %rax
	movl	$0, 12(%rax)
LBB0_40:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_42
## %bb.41:
	movq	_AVSTREAM_PARSE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_42:
	movq	_AVSTREAM_PARSE_FULL@GOTPCREL(%rip), %rax
LBB0_43:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r15,8), %r14
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
	movq	%r13, %rdi
	callq	_avio_tell
	subq	%r12, %rax
	addq	$32, %rax
	cmpq	%rbx, %rax
	jg	LBB0_45
## %bb.44:
	movq	%r13, %rdi
	callq	_avio_r8
	movl	%eax, (%r14)
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 4(%r14,%r15,8)
	movq	%r13, %rdi
	callq	_avio_rl16
	movl	%eax, 8(%r14,%r15,8)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%r13, %rdi
	callq	_avio_r8
LBB0_45:
	cmpl	$2, (%r14)
	jl	LBB0_55
## %bb.46:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r15,8), %ecx
	testl	%ecx, %ecx
	je	LBB0_49
## %bb.47:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r15,8), %eax
	cltd
	idivl	%ecx
	cmpl	$2, %eax
	jl	LBB0_49
## %bb.48:
	testl	%edx, %edx
	je	LBB0_55
LBB0_49:
	movl	$0, (%r14)
	jmp	LBB0_55
LBB0_50:
	movq	16(%r14), %rax
LBB0_51:
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_53
## %bb.52:
	movq	_AVSTREAM_PARSE_FULL_ONCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
LBB0_53:
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_55
## %bb.54:
	movq	_AVSTREAM_PARSE_FULL_ONCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_55:
	movq	%r13, %rdi
	callq	_avio_tell
	addq	%r12, %rbx
	subq	%rax, %rbx
	addq	$-24, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_avio_skip
	xorl	%eax, %eax
LBB0_56:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_57:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_56
	.cfi_endproc
                                        ## -- End function
	.comm	_ASF_MAX_STREAMS,8,3            ## @ASF_MAX_STREAMS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many streams\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ff_asf_audio_stream,4,2        ## @ff_asf_audio_stream
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_ff_asf_video_stream,4,2        ## @ff_asf_video_stream
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_ff_asf_jfif_media,4,2          ## @ff_asf_jfif_media
	.comm	_AV_CODEC_ID_MJPEG,8,3          ## @AV_CODEC_ID_MJPEG
	.comm	_ff_asf_command_stream,4,2      ## @ff_asf_command_stream
	.comm	_AVMEDIA_TYPE_DATA,4,2          ## @AVMEDIA_TYPE_DATA
	.comm	_ff_asf_ext_stream_embed_stream_header,4,2 ## @ff_asf_ext_stream_embed_stream_header
	.comm	_AVMEDIA_TYPE_UNKNOWN,4,2       ## @AVMEDIA_TYPE_UNKNOWN
	.comm	_ff_asf_ext_stream_audio_stream,4,2 ## @ff_asf_ext_stream_audio_stream
	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
	.comm	_AVSTREAM_PARSE_NONE,8,3        ## @AVSTREAM_PARSE_NONE
	.comm	_AVSTREAM_PARSE_FULL,8,3        ## @AVSTREAM_PARSE_FULL
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AVPALETTE_SIZE,8,3             ## @AVPALETTE_SIZE
	.comm	_ff_codec_bmp_tags,4,2          ## @ff_codec_bmp_tags
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_AVSTREAM_PARSE_FULL_ONCE,8,3   ## @AVSTREAM_PARSE_FULL_ONCE
	.comm	_AV_CODEC_ID_MPEG4,8,3          ## @AV_CODEC_ID_MPEG4
	.no_dead_strip	_asf_read_stream_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_stream_properties
_asf_read_stream_properties:            ; @asf_read_stream_properties
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ASF_MAX_STREAMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASF_MAX_STREAMS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_av_log
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
	mov	x19, x1
	ldp	x20, x26, [x23, #8]
	mov	x0, x20
	bl	_avio_tell
	mov	x27, x0
	mov	x0, x23
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	mov	w1, #32
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
	ldrb	w8, [x26, #24]
	tbnz	w8, #0, LBB0_8
; %bb.4:
	ldr	x21, [x26, #16]
	mov	x0, x20
	bl	_avio_size
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [x26, #32]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x24, x0
	sub	x0, x0, x8
	bl	_FFABS
	add	w8, w0, w0, lsl #2
	lsl	w25, w8, #2
	ldr	x1, [x26, #32]
	mov	x0, x24
	bl	_FFMIN
	cmp	w25, w0
	b.ge	LBB0_8
LBB0_7:
	ldrsw	x8, [x26, #28]
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	sxtw	x8, w8
	sub	x8, x8, x21
	str	x8, [x22, #24]
LBB0_8:
	add	x1, sp, #12
	mov	x0, x20
	bl	_ff_get_guid
Lloh10:
	adrp	x1, _ff_asf_audio_stream@GOTPAGE
Lloh11:
	ldr	x1, [x1, _ff_asf_audio_stream@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
Lloh12:
	adrp	x21, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh13:
	ldr	x21, [x21, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	cbz	w0, LBB0_16
; %bb.9:
Lloh14:
	adrp	x1, _ff_asf_video_stream@GOTPAGE
Lloh15:
	ldr	x1, [x1, _ff_asf_video_stream@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_17
; %bb.10:
Lloh16:
	adrp	x1, _ff_asf_jfif_media@GOTPAGE
Lloh17:
	ldr	x1, [x1, _ff_asf_jfif_media@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_18
; %bb.11:
Lloh18:
	adrp	x1, _ff_asf_command_stream@GOTPAGE
Lloh19:
	ldr	x1, [x1, _ff_asf_command_stream@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_19
; %bb.12:
Lloh20:
	adrp	x1, _ff_asf_ext_stream_embed_stream_header@GOTPAGE
Lloh21:
	ldr	x1, [x1, _ff_asf_ext_stream_embed_stream_header@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_48
; %bb.13:
	mov	w0, #-1
	b	LBB0_55
LBB0_14:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_16:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x19, x21
	ldr	w28, [x21]
	b	LBB0_21
LBB0_17:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x19, x21
Lloh24:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x19, x21
Lloh26:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh28:
	ldr	w28, [x8]
Lloh29:
	adrp	x8, _AV_CODEC_ID_MJPEG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_CODEC_ID_MJPEG@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x9, [x22, #16]
	str	x8, [x9]
	b	LBB0_21
LBB0_19:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x19, x21
Lloh32:
	adrp	x8, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
LBB0_20:
	ldr	w28, [x8]
LBB0_21:
	mov	w21, #1
LBB0_22:
	add	x1, sp, #12
	mov	x0, x20
	bl	_ff_get_guid
	mov	x0, x20
	mov	w1, #8
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rl32
	mov	x24, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl16
	and	w25, w0, #0x7f
	str	w25, [x22]
	ldr	x8, [x23]
	sub	x8, x8, #1
	ldp	x9, x26, [x26]
	str	x8, [x9, w25, uxtw #3]
	mov	x0, x20
	bl	_avio_rl32
	tbnz	w21, #0, LBB0_24
; %bb.23:
	add	x1, sp, #12
	mov	x0, x20
	bl	_ff_get_guid
Lloh34:
	adrp	x1, _ff_asf_ext_stream_audio_stream@GOTPAGE
Lloh35:
	ldr	x1, [x1, _ff_asf_ext_stream_audio_stream@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_39
LBB0_24:
	mov	w21, #1
LBB0_25:
	ldr	x2, [x22, #16]
	str	w28, [x2, #8]
	ldr	w8, [x19]
	cmp	w28, w8
	b.ne	LBB0_29
; %bb.26:
	mov	x0, x23
	mov	x1, x20
	mov	x3, x24
	mov	w4, #0
	bl	_ff_get_wav_header
	tbnz	w0, #31, LBB0_55
; %bb.27:
	mov	w8, #24
	umaddl	x23, w25, w8, x26
	cbz	w21, LBB0_40
; %bb.28:
	ldr	x8, [x22, #16]
	b	LBB0_41
LBB0_29:
Lloh36:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w28, w8
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	b.ne	LBB0_54
; %bb.30:
	mov	x0, x20
	bl	_avio_tell
	add	x8, x19, x27
	sub	x8, x8, x0
	sub	x8, x8, #24
	cmp	x8, #51
	b.lt	LBB0_54
; %bb.31:
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_rl16
	mov	x0, x20
	bl	_avio_rl32
	mov	x24, x0
	mov	x0, x20
	bl	_avio_rl32
	ldr	x8, [x22, #16]
	str	x0, [x8, #48]
	mov	x0, x20
	bl	_avio_rl32
	ldr	x8, [x22, #16]
	str	x0, [x8, #40]
	mov	x0, x20
	bl	_avio_rl16
	mov	x0, x20
	bl	_avio_rl16
	ldr	x8, [x22, #16]
	str	w0, [x8, #16]
	mov	x0, x20
	bl	_avio_rl32
	mov	x23, x0
	mov	x0, x20
	mov	w1, #20
	bl	_avio_skip
	cmp	w24, #41
	b.lt	LBB0_34
; %bb.32:
	sub	w1, w24, #40
	mov	x0, x20
	bl	_ffio_limit
	ldr	x8, [x22, #16]
	str	x0, [x8, #24]
Lloh39:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x0, x8, x0
	bl	_av_mallocz
	ldr	x8, [x22, #16]
	str	x0, [x8, #32]
	cbz	x0, LBB0_56
; %bb.33:
	mov	x1, x0
	ldr	x2, [x8, #24]
	mov	x0, x20
	bl	_avio_read
LBB0_34:
	ldr	x8, [x22, #16]
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_37
; %bb.35:
	ldr	w9, [x8, #16]
	cmp	w9, #8
	b.gt	LBB0_37
; %bb.36:
	mov	w9, #24
	madd	x21, x25, x9, x26
	ldr	x24, [x21, #16]
	ldr	x25, [x8, #32]
Lloh42:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_memcpy
	mov	w8, #1
	str	w8, [x21, #12]
	ldr	x8, [x22, #16]
LBB0_37:
	str	w23, [x8, #12]
Lloh45:
	adrp	x8, _ff_codec_bmp_tags@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ff_codec_bmp_tags@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_ff_codec_get_id
	ldr	x8, [x22, #16]
	str	x0, [x8]
	mov	w0, #68
	mov	w1, #86
	mov	w2, #82
	mov	w3, #32
	bl	_MKTAG
	cmp	w0, w23
	b.ne	LBB0_49
; %bb.38:
Lloh48:
	adrp	x8, _AVSTREAM_PARSE_FULL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AVSTREAM_PARSE_FULL@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	str	x8, [x22, #8]
	ldr	x8, [x22, #16]
	add	x0, x8, #32
	stp	xzr, xzr, [x8, #40]
	bl	_av_freep
	ldr	x8, [x22, #16]
	str	xzr, [x8, #24]
	b	LBB0_50
LBB0_39:
	ldr	w28, [x19]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ff_get_guid
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	add	x1, sp, #12
	mov	x0, x20
	bl	_ff_get_guid
	mov	x0, x20
	bl	_avio_rl32
	mov	w21, #0
	b	LBB0_25
LBB0_40:
	mov	w8, #1
	str	w8, [x22, #4]
	ldr	x8, [x22, #16]
	str	wzr, [x8, #12]
LBB0_41:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh51:
	adrp	x9, _AV_CODEC_ID_AAC@GOTPAGE
Lloh52:
	ldr	x9, [x9, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
Lloh54:
	adrp	x10, _AVSTREAM_PARSE_NONE@GOTPAGE
Lloh55:
	ldr	x10, [x10, _AVSTREAM_PARSE_NONE@GOTPAGEOFF]
Lloh56:
	adrp	x11, _AVSTREAM_PARSE_FULL@GOTPAGE
Lloh57:
	ldr	x11, [x11, _AVSTREAM_PARSE_FULL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	str	x8, [x22, #8]
	mov	x0, x20
	bl	_avio_tell
	sub	x8, x0, x27
	add	x8, x8, #32
	cmp	x8, x19
	b.gt	LBB0_43
; %bb.42:
	mov	x0, x20
	bl	_avio_r8
	str	w0, [x23]
	mov	x0, x20
	bl	_avio_rl16
	mov	w8, #24
	madd	x21, x25, x8, x26
	str	w0, [x21, #4]
	mov	x0, x20
	bl	_avio_rl16
	str	w0, [x21, #8]
	mov	x0, x20
	bl	_avio_rl16
	mov	x0, x20
	bl	_avio_r8
LBB0_43:
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_54
; %bb.44:
	mov	w8, #24
	madd	x8, x25, x8, x26
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_47
; %bb.45:
	mov	w9, #24
	madd	x9, x25, x9, x26
	ldr	w9, [x9, #4]
	sdiv	w10, w9, w8
	cmp	w10, #2
	b.lt	LBB0_47
; %bb.46:
	msub	w8, w10, w8, w9
	cbz	w8, LBB0_54
LBB0_47:
	str	wzr, [x23]
	b	LBB0_54
LBB0_48:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x19, x21
	mov	w21, #0
Lloh58:
	adrp	x8, _AVMEDIA_TYPE_UNKNOWN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _AVMEDIA_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh60:
	ldr	w28, [x8]
	b	LBB0_22
LBB0_49:
	ldr	x8, [x22, #16]
LBB0_50:
	ldr	x8, [x8]
Lloh61:
	adrp	x9, _AV_CODEC_ID_H264@GOTPAGE
Lloh62:
	ldr	x9, [x9, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh63:
	ldr	x10, [x9]
Lloh64:
	adrp	x9, _AVSTREAM_PARSE_FULL_ONCE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _AVSTREAM_PARSE_FULL_ONCE@GOTPAGEOFF]
	cmp	x8, x10
	b.ne	LBB0_52
; %bb.51:
	ldr	x10, [x9]
	str	x10, [x22, #8]
LBB0_52:
Lloh66:
	adrp	x10, _AV_CODEC_ID_MPEG4@GOTPAGE
Lloh67:
	ldr	x10, [x10, _AV_CODEC_ID_MPEG4@GOTPAGEOFF]
Lloh68:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_54
; %bb.53:
	ldr	x8, [x9]
	str	x8, [x22, #8]
LBB0_54:
	mov	x0, x20
	bl	_avio_tell
	add	x8, x19, x27
	sub	x8, x8, x0
	sub	x1, x8, #24
	mov	x0, x20
	bl	_avio_skip
	mov	w0, #0
LBB0_55:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_56:
Lloh69:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_55
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_ASF_MAX_STREAMS,8,3            ; @ASF_MAX_STREAMS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many streams\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ff_asf_audio_stream,4,2        ; @ff_asf_audio_stream
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_ff_asf_video_stream,4,2        ; @ff_asf_video_stream
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_ff_asf_jfif_media,4,2          ; @ff_asf_jfif_media
	.comm	_AV_CODEC_ID_MJPEG,8,3          ; @AV_CODEC_ID_MJPEG
	.comm	_ff_asf_command_stream,4,2      ; @ff_asf_command_stream
	.comm	_AVMEDIA_TYPE_DATA,4,2          ; @AVMEDIA_TYPE_DATA
	.comm	_ff_asf_ext_stream_embed_stream_header,4,2 ; @ff_asf_ext_stream_embed_stream_header
	.comm	_AVMEDIA_TYPE_UNKNOWN,4,2       ; @AVMEDIA_TYPE_UNKNOWN
	.comm	_ff_asf_ext_stream_audio_stream,4,2 ; @ff_asf_ext_stream_audio_stream
	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
	.comm	_AVSTREAM_PARSE_NONE,8,3        ; @AVSTREAM_PARSE_NONE
	.comm	_AVSTREAM_PARSE_FULL,8,3        ; @AVSTREAM_PARSE_FULL
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_AVPALETTE_SIZE,8,3             ; @AVPALETTE_SIZE
	.comm	_ff_codec_bmp_tags,4,2          ; @ff_codec_bmp_tags
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_AVSTREAM_PARSE_FULL_ONCE,8,3   ; @AVSTREAM_PARSE_FULL_ONCE
	.comm	_AV_CODEC_ID_MPEG4,8,3          ; @AV_CODEC_ID_MPEG4
	.no_dead_strip	_asf_read_stream_properties
.subsections_via_symbols
