	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_ext_content
_asf_read_ext_content:                  ## @asf_read_ext_content
	.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	$24, %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	8(%rdi), %r12
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rl64
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_avio_rl16
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movq	%r12, %rdi
	callq	_avio_rl16
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_av_malloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_avio_get_str16le
	movq	%r12, %rdi
	callq	_avio_rl16
	movl	%eax, %ebx
	movq	_ASF_BOOL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ASF_DWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_avio_rl16
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movl	%ebx, %r8d
	movq	%r14, %r9
	callq	_process_metadata
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%r13d
	jne	LBB0_3
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_align_position
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ASF_BOOL,4,2                   ## @ASF_BOOL
	.comm	_ASF_DWORD,4,2                  ## @ASF_DWORD
	.no_dead_strip	_asf_read_ext_content
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_ext_content
_asf_read_ext_content:                  ; @asf_read_ext_content
	.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	x20, x0
	ldp	x19, x25, [x0, #8]
	mov	x0, x19
	bl	_avio_rl64
	mov	x21, x0
	mov	x0, x19
	bl	_avio_rl16
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x26, _ASF_BOOL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ASF_BOOL@GOTPAGEOFF]
Lloh2:
	adrp	x27, _ASF_DWORD@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ASF_DWORD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	mov	x0, x19
	bl	_avio_rl16
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	bl	_av_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	x3, x23
	bl	_avio_get_str16le
	mov	x0, x19
	bl	_avio_rl16
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w0, w8
	csel	w24, w9, w0, eq
	mov	x0, x19
	bl	_avio_rl16
	mov	x3, x0
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x23
	mov	x4, x24
	mov	x5, x20
	bl	_process_metadata
	mov	x23, x0
	add	x0, sp, #8
	bl	_av_freep
	tbnz	w23, #31, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_6:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_align_position
	mov	w23, #0
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
LBB0_9:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ASF_BOOL,4,2                   ; @ASF_BOOL
	.comm	_ASF_DWORD,4,2                  ; @ASF_DWORD
	.no_dead_strip	_asf_read_ext_content
.subsections_via_symbols
