	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_metadata_obj
_asf_read_metadata_obj:                 ## @asf_read_metadata_obj
	.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), %r15
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_avio_rl64
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_avio_rl16
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movl	%eax, %ebx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_asf_store_aspect_ratio
	testl	%eax, %eax
	jns	LBB0_12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rl16
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_avio_rl16
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	leal	1(%r13,%r13), %r12d
	movq	%r15, %rdi
	callq	_avio_rl16
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_avio_rl32
	movq	%r15, %rbx
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_av_malloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	callq	_avio_get_str16le
	movq	-48(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ASF_MAX_STREAMS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movslq	%r14d, %r9
	shlq	$2, %r9
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %r9
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_process_metadata
	testl	%eax, %eax
	js	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_14
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	-88(%rbp), %r15                 ## 8-byte Reload
LBB0_13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_align_position
	xorl	%eax, %eax
LBB0_14:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AspectRatioX"

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

	.comm	_ASF_MAX_STREAMS,4,2            ## @ASF_MAX_STREAMS
	.no_dead_strip	_asf_read_metadata_obj
.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_obj
_asf_read_metadata_obj:                 ; @asf_read_metadata_obj
	.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	x21, x0
	ldp	x19, x24, [x0]
	mov	x0, x19
	bl	_avio_rl64
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x19
	bl	_avio_rl16
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x27
	bl	_asf_store_aspect_ratio
	tbnz	w0, #31, LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	bl	_av_freep
	subs	w22, w22, #1
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl16
	mov	x25, x0
	mov	x0, x19
	bl	_avio_rl16
	cbz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	w20, #1
	bfi	w20, w0, #1, #31
	mov	x0, x19
	bl	_avio_rl16
	mov	x27, x0
	mov	x0, x19
	bl	_avio_rl32
	mov	x28, x0
	mov	x0, x20
	bl	_av_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	mov	x3, x20
	bl	_avio_get_str16le
	ldr	x0, [sp, #8]
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _ASF_MAX_STREAMS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ASF_MAX_STREAMS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ge	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]
	ldr	x8, [x24, #8]
	add	x5, x8, w25, sxtw #2
	mov	x0, x21
	mov	x2, x26
	mov	x3, x28
	mov	x4, x27
	bl	_process_metadata
	tbz	w0, #31, LBB0_3
LBB0_10:
	add	x0, sp, #8
	bl	_av_freep
LBB0_11:
	ldr	w1, [x24]
	mov	x0, x19
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_align_position
	mov	w0, #0
LBB0_12:
	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_13:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AspectRatioX"

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

	.comm	_ASF_MAX_STREAMS,4,2            ; @ASF_MAX_STREAMS
	.no_dead_strip	_asf_read_metadata_obj
.subsections_via_symbols
