	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_header
_asf_read_header:                       ## @asf_read_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	16(%rdi), %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r13)
	leaq	-44(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ff_get_guid
	movq	_ff_asf_header@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ff_guidcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_2:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	%r12, %rdi
	movl	$6, %esi
	callq	_avio_skip
	movq	$0, 56(%r13)
	movq	%r12, %rdi
	callq	_avio_tell
	cmpq	(%r13), %rax
	jne	LBB0_3
LBB0_28:
	cmpq	$0, 56(%r13)
	je	LBB0_29
LBB0_7:
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.8:
	movl	48(%r13), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_avio_seek
LBB0_9:
	cmpl	$0, 24(%r13)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	40(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	shlq	$5, %rdx
	movq	(%rax,%rdx), %rsi
	movq	(%r14), %rax
	movq	(%rax,%rcx,8), %rdx
	addq	$16, %rdx
	movq	%r14, %rdi
	callq	_set_language
	incq	%rbx
	movslq	24(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	_ASF_MAX_STREAMS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.13:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movq	_ASF_MAX_STREAMS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %r12
	cmpq	%rax, %rbx
	jge	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_find_stream
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %r15
	leaq	16(%rax), %rdi
	movq	32(%r13), %rax
	movl	24(%rax,%r12), %esi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_dict_copy
	movq	32(%r13), %rcx
	movq	8(%rcx,%r12), %rax
	testq	%rax, %rax
	jle	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%rcx,%r12), %rcx
	testq	%rcx, %rcx
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, (%r15)
	movq	%rcx, 8(%r15)
	jmp	LBB0_18
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_3:
	leaq	-44(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_avio_tell
	cmpq	(%r13), %rax
	je	LBB0_28
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, (%r13)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ff_get_guid
	testl	%eax, %eax
	js	LBB0_5
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi
	callq	_find_guid
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	movq	%rcx, 8(%r13)
	movl	$1, 16(%r13)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 56(%r13)
	jne	LBB0_25
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_avio_rl64
	movq	(%r13), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_align_position
	cmpq	$0, 56(%r13)
	je	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_ASF_FLAG_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r13)
	je	LBB0_27
	jmp	LBB0_28
LBB0_29:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_30
LBB0_5:
	movl	%eax, %ebx
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_30
## %bb.6:
	cmpq	$0, 56(%r13)
	jne	LBB0_7
	jmp	LBB0_30
LBB0_22:
	movl	%eax, %ebx
LBB0_30:
	movq	%r14, %rdi
	callq	_asf_read_close
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_asf_header,4,2              ## @ff_asf_header
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_ASF_FLAG_BROADCAST,4,2         ## @ASF_FLAG_BROADCAST
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Data Object was not found.\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ASF_MAX_STREAMS,4,2            ## @ASF_MAX_STREAMS
	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
	.no_dead_strip	_asf_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_header
_asf_read_header:                       ; @asf_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldp	x20, x22, [x0, #8]
	stp	xzr, xzr, [x22, #64]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ff_get_guid
Lloh0:
	adrp	x1, _ff_asf_header@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ff_asf_header@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_ff_guidcmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_31
LBB0_2:
	mov	x0, x20
	mov	w1, #8
	bl	_avio_skip
	mov	x0, x20
	mov	w1, #6
	bl	_avio_skip
	str	xzr, [x22, #56]
	mov	x0, x20
	bl	_avio_tell
	ldr	x8, [x22]
Lloh5:
	adrp	x23, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_17
LBB0_3:
	ldr	x8, [x22, #56]
	cbz	x8, LBB0_26
LBB0_4:
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x22, #48]
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_avio_seek
LBB0_6:
	ldr	w8, [x22, #24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x22, #32]
	ldr	x9, [x9, x20, lsl #3]
	ldp	x10, x9, [x9]
	lsl	x10, x10, #5
	ldr	x1, [x8, x10]
	ldr	x8, [x19]
	ldr	x8, [x8, x9, lsl #3]
	add	x2, x8, #16
	mov	x0, x19
	bl	_set_language
	add	x20, x20, #1
	ldrsw	x8, [x22, #24]
	cmp	x20, x8
	b.lt	LBB0_8
LBB0_9:
Lloh10:
	adrp	x23, _ASF_MAX_STREAMS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ASF_MAX_STREAMS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x24, #0
	mov	x20, #0
Lloh12:
	adrp	x25, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh13:
	ldr	x25, [x25, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x23]
	add	x24, x24, #32
	cmp	x20, x8
	b.ge	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_find_stream
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x0
	add	x0, x0, #16
	ldr	x8, [x22, #32]
	add	x8, x8, x24
	ldr	w1, [x8, #24]
	ldr	w2, [x25]
	bl	_av_dict_copy
	ldr	x8, [x22, #32]
	add	x9, x8, x24
	ldr	x8, [x9, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x9, #16]
	cmp	x9, #1
	b.lt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x8, x9, [x21]
	b	LBB0_11
LBB0_16:
	mov	w21, #0
	b	LBB0_31
LBB0_17:
Lloh14:
	adrp	x24, _ASF_FLAG_BROADCAST@GOTPAGE
Lloh15:
	ldr	x24, [x24, _ASF_FLAG_BROADCAST@GOTPAGEOFF]
	mov	w25, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_avio_tell
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_tell
	str	x0, [x22]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ff_get_guid
	tbnz	w0, #31, LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [sp, #12]
	bl	_find_guid
	cbz	x0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x1, x0
	ldr	x8, [x22]
	str	x8, [x22, #8]
	str	w25, [x22, #16]
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x22, #56]
	cbnz	x8, LBB0_24
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_avio_rl64
	mov	x2, x0
	ldr	x1, [x22]
	mov	x0, x20
	bl	_align_position
	ldr	x8, [x22, #56]
	cbz	x8, LBB0_18
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x22, #20]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_18
	b	LBB0_3
LBB0_26:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh21:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	b	LBB0_30
LBB0_27:
	mov	x21, x0
Lloh24:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_30
; %bb.28:
	ldr	x8, [x22, #56]
	cbnz	x8, LBB0_4
	b	LBB0_30
LBB0_29:
	mov	x21, x0
LBB0_30:
	mov	x0, x19
	bl	_asf_read_close
LBB0_31:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_asf_header,4,2              ; @ff_asf_header
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_ASF_FLAG_BROADCAST,4,2         ; @ASF_FLAG_BROADCAST
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Data Object was not found.\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ASF_MAX_STREAMS,4,2            ; @ASF_MAX_STREAMS
	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
	.no_dead_strip	_asf_read_header
.subsections_via_symbols
