	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_metadata
_asf_read_metadata:                     ## @asf_read_metadata
	.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	%rdi, %r12
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl16
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	$16, %r8d
	callq	_get_tag
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	incl	%ebx
	cmpl	%ebx, -76(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl16
	movq	%r13, %rdi
	callq	_avio_rl16
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl16
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_avio_rl16
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%r13, %rbx
	movl	%eax, %r15d
	leal	(%r12,%r12), %r13d
	incl	%r13d
	movl	%r13d, %edi
	callq	_av_malloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	movl	%r13d, %ecx
	callq	_avio_get_str16le
	movl	%r12d, %esi
	subl	%eax, %esi
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_skip
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	pushq	-48(%rbp)
	movq	%r15, %r13
	pushq	%r15
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	callq	_av_log
	addq	$32, %rsp
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movl	%r15d, %esi
	movl	$16, %edx
	callq	_get_value
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	$127, %edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	%edx, %rdx
	movl	%eax, 4(%rcx,%rdx,8)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	movl	%r15d, %esi
	movl	$16, %edx
	callq	_get_value
	cmpl	$127, %r14d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jg	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	movl	%eax, (%rcx,%rdx,8)
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d stream %d name_len %2d type %d len %4d <%s>\n"

L_.str.1:                               ## @.str.1
	.asciz	"AspectRatioX"

L_.str.2:                               ## @.str.2
	.asciz	"AspectRatioY"

	.no_dead_strip	_asf_read_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_metadata
_asf_read_metadata:                     ; @asf_read_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x20, x8, [x0]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	_avio_rl16
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x21, x0
	mov	w22, #0
Lloh0:
	adrp	x24, l_.str.1@PAGE
Lloh1:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, x27
	mov	x3, x28
	mov	w4, #16
	bl	_get_tag
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	bl	_av_freep
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_rl16
	mov	x0, x20
	bl	_avio_rl16
	mov	x26, x0
	mov	x0, x20
	bl	_avio_rl16
	mov	x25, x0
	mov	x0, x20
	bl	_avio_rl16
	mov	x27, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x28, x0
	mov	w23, #1
	bfi	w23, w25, #1, #31
	mov	x0, x23
	bl	_av_malloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	mov	x0, x20
	mov	x1, x25
	mov	x3, x23
	bl	_avio_get_str16le
	subs	w1, w25, w0
	b.le	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_avio_skip
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
	str	x8, [sp]
	mov	x0, x19
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x26
	mov	x5, x25
	mov	x6, x27
	mov	x7, x28
	bl	_av_log
	ldr	x0, [sp, #24]
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #24]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	mov	x1, x27
	mov	w2, #16
	bl	_get_value
	cmp	w26, #127
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x8, x8, w26, sxtw #3
	str	w0, [x8, #4]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19]
	mov	x1, x27
	mov	w2, #16
	bl	_get_value
	cmp	w26, #127
	b.gt	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	sbfiz	x9, x26, #3, #32
	str	w0, [x8, x9]
	b	LBB0_3
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_15:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d stream %d name_len %2d type %d len %4d <%s>\n"

l_.str.1:                               ; @.str.1
	.asciz	"AspectRatioX"

l_.str.2:                               ; @.str.2
	.asciz	"AspectRatioY"

	.no_dead_strip	_asf_read_metadata
.subsections_via_symbols
