	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r12
	movl	(%r12), %eax
	movq	_ASF_MAX_STREAMS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_avio_rl64
	movl	%eax, %r14d
	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_3
## %bb.4:
	movq	_ff_asf_video_stream@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	movl	$128, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	_ff_asf_jfif_media@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	_ff_asf_command_stream@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_ff_asf_ext_stream_embed_stream_header@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_ff_guidcmp
	testl	%eax, %eax
	je	LBB0_9
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_34
LBB0_3:
	movl	$129, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_AVMEDIA_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ff_get_guid
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_rl32
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%rax, %r14
	movq	_ASF_STREAM_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	movq	8(%r12), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	cmpl	(%rsi), %ebx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_16:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %r12
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	movq	8(%r12), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	$64, %edi
	callq	_av_mallocz
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rdx
	movslq	(%rsi), %rcx
	movq	%rax, (%rdx,%rcx,8)
	movq	8(%rsi), %rax
	movq	(%rax,%rcx,8), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.19:
	incl	%ecx
	movl	%ecx, (%rsi)
	movl	%ebx, (%r15)
	movl	16(%r12), %eax
	movl	%eax, 56(%r15)
	movq	$0, 48(%r15)
	movq	_ASF_STREAM_NUM@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	%r14d, (%r12)
	leaq	40(%r15), %rdi
	callq	_av_init_packet
	movq	$0, 32(%r15)
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	$128, %eax
	je	LBB0_27
## %bb.20:
	cmpl	$129, %eax
	jne	LBB0_28
## %bb.21:
	movl	$129, 4(%r15)
	movq	8(%r12), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_ff_get_wav_header
	testl	%eax, %eax
	js	LBB0_34
## %bb.22:
	movq	%r15, %r12
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_32
## %bb.23:
	movq	%r13, %rdi
	callq	_avio_r8
	cmpl	$2, %eax
	jl	LBB0_30
## %bb.24:
	movl	%eax, 8(%r12)
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%rax, 16(%r12)
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.25:
	cmpq	$0, 16(%r12)
	je	LBB0_1
## %bb.26:
	addl	$-5, %ebx
	jmp	LBB0_31
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_34
LBB0_15:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movl	4(%r12), %esi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_33
LBB0_27:
	movl	$128, 4(%r15)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_parse_video_info
	testl	%eax, %eax
	jns	LBB0_29
	jmp	LBB0_34
LBB0_28:
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_avio_skip
LBB0_29:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_32
LBB0_31:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_avio_skip
LBB0_32:
	movl	4(%r15), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
LBB0_33:
	callq	_align_position
	xorl	%eax, %eax
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	decl	%ebx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_ASF_MAX_STREAMS,4,2            ## @ASF_MAX_STREAMS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_asf_audio_stream,4,2        ## @ff_asf_audio_stream
	.comm	_ff_asf_video_stream,4,2        ## @ff_asf_video_stream
	.comm	_ff_asf_jfif_media,4,2          ## @ff_asf_jfif_media
	.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	_ASF_STREAM_NUM,4,2             ## @ASF_STREAM_NUM
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Duplicate stream found, this stream will be ignored.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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
	ldr	x26, [x0, #8]
	ldr	w8, [x26]
Lloh0:
	adrp	x9, _ASF_MAX_STREAMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASF_MAX_STREAMS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_avio_rl64
	mov	x28, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_ff_get_guid
Lloh3:
	adrp	x1, _ff_asf_audio_stream@GOTPAGE
Lloh4:
	ldr	x1, [x1, _ff_asf_audio_stream@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_8
; %bb.2:
Lloh5:
	adrp	x1, _ff_asf_video_stream@GOTPAGE
Lloh6:
	ldr	x1, [x1, _ff_asf_video_stream@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh7:
	adrp	x1, _ff_asf_jfif_media@GOTPAGE
Lloh8:
	ldr	x1, [x1, _ff_asf_jfif_media@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_7
; %bb.4:
Lloh9:
	adrp	x1, _ff_asf_command_stream@GOTPAGE
Lloh10:
	ldr	x1, [x1, _ff_asf_command_stream@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_9
; %bb.5:
Lloh11:
	adrp	x1, _ff_asf_ext_stream_embed_stream_header@GOTPAGE
Lloh12:
	ldr	x1, [x1, _ff_asf_ext_stream_embed_stream_header@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	w0, LBB0_10
LBB0_6:
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_34
LBB0_7:
	mov	w27, #128
	b	LBB0_12
LBB0_8:
	mov	w27, #129
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x8, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _AVMEDIA_TYPE_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVMEDIA_TYPE_UNKNOWN@GOTPAGEOFF]
LBB0_11:
	ldr	w27, [x8]
LBB0_12:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ff_get_guid
	mov	x0, x19
	mov	w1, #8
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	mov	x23, x0
	mov	x0, x19
	bl	_avio_rl32
	mov	x25, x0
	mov	x0, x19
	bl	_avio_rl16
	mov	x24, x0
Lloh20:
	adrp	x20, _ASF_STREAM_NUM@GOTPAGE
Lloh21:
	ldr	x20, [x20, _ASF_STREAM_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	and	w22, w8, w24
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.13:
	ldr	x9, [x26, #8]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	w10, [x10]
	cmp	w22, w10
	b.eq	LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_16:
	str	w25, [sp, #8]                   ; 4-byte Folded Spill
	mov	x0, x21
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_26
; %bb.17:
	mov	x25, x0
	str	w28, [sp, #4]                   ; 4-byte Folded Spill
	mov	w1, #32
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
	ldr	x8, [x25, #8]
	str	w27, [x8]
	mov	w0, #64
	bl	_av_mallocz
	ldr	x9, [x26, #8]
	ldrsw	x8, [x26]
	lsl	x10, x8, #3
	str	x0, [x9, x10]
	ldr	x9, [x26, #8]
	ldr	x28, [x9, x10]
	cbz	x28, LBB0_26
; %bb.18:
	add	w8, w8, #1
	str	w8, [x26]
	str	w22, [x28]
	ldr	w8, [x25, #16]
	str	w8, [x28, #56]
	str	xzr, [x28, #48]
	ldr	w8, [x20]
	and	w8, w8, w24
	str	w8, [x25]
	add	x0, x28, #40
	bl	_av_init_packet
	str	xzr, [x28, #32]
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
	cmp	w27, #128
	b.eq	LBB0_28
; %bb.19:
	cmp	w27, #129
	b.ne	LBB0_29
; %bb.20:
	mov	w8, #129
	str	w8, [x28, #4]
	ldr	x2, [x25, #8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x23
	mov	w4, #0
	bl	_ff_get_wav_header
	tbnz	w0, #31, LBB0_34
; %bb.21:
	ldr	w20, [sp, #8]                   ; 4-byte Folded Reload
	cbz	w20, LBB0_32
; %bb.22:
	mov	x0, x19
	bl	_avio_r8
	cmp	w0, #2
	b.lt	LBB0_35
; %bb.23:
	str	w0, [x28, #8]
	mov	x0, x19
	bl	_avio_rl16
	str	x0, [x28, #16]
	mov	x0, x19
	bl	_avio_rl16
	str	x0, [x28, #24]
	cbz	x0, LBB0_6
; %bb.24:
	ldr	x8, [x28, #16]
	cbz	x8, LBB0_6
; %bb.25:
	sub	w20, w20, #5
	b	LBB0_31
LBB0_26:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_34
LBB0_27:
Lloh25:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str@PAGE
Lloh29:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
	ldr	w1, [x26, #4]
	mov	x0, x19
	mov	x2, x28
	b	LBB0_33
LBB0_28:
	mov	w8, #128
	str	w8, [x28, #4]
	mov	x0, x19
	mov	x1, x25
	bl	_parse_video_info
	tbz	w0, #31, LBB0_30
	b	LBB0_34
LBB0_29:
	mov	x0, x19
	mov	x1, x23
	bl	_avio_skip
LBB0_30:
	ldr	w20, [sp, #8]                   ; 4-byte Folded Reload
	cbz	w20, LBB0_32
LBB0_31:
	mov	x0, x19
	mov	x1, x20
	bl	_avio_skip
LBB0_32:
	ldr	w1, [x26, #4]
	mov	x0, x19
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
LBB0_33:
	bl	_align_position
	mov	w0, #0
LBB0_34:
	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_35:
	sub	w20, w20, #1
	b	LBB0_31
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ASF_MAX_STREAMS,4,2            ; @ASF_MAX_STREAMS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_asf_audio_stream,4,2        ; @ff_asf_audio_stream
	.comm	_ff_asf_video_stream,4,2        ; @ff_asf_video_stream
	.comm	_ff_asf_jfif_media,4,2          ; @ff_asf_jfif_media
	.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	_ASF_STREAM_NUM,4,2             ; @ASF_STREAM_NUM
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Duplicate stream found, this stream will be ignored.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_asf_read_stream_properties
.subsections_via_symbols
