	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_ext_stream_properties
_asf_read_ext_stream_properties:        ## @asf_read_ext_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rl64
	movq	%rbx, %rdi
	callq	_avio_rl64
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_avio_rl16
	cmpl	$127, %r15d
	jg	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movslq	%r15d, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rcx,%rdx,8)
LBB0_2:
	movq	%rbx, %rdi
	callq	_avio_rl64
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, %r13
	cmpl	$127, %r15d
	jg	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movslq	%r15d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	movq	8(%rdx), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movq	$0, 8(%rax,%rcx,8)
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_avio_skip
	decl	%r12d
	jne	LBB0_12
LBB0_5:
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.6:
	movslq	%r15d, %rax
	movl	%r13d, %r14d
	xorl	%r12d, %r12d
	leaq	(%rax,%rax,2), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	cmpq	%r12, %r14
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rsi
	callq	_ff_get_guid
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_avio_skip
	cmpl	$127, %r15d
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rax,%rcx,8), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r12
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rax,%rcx), %rax
	movq	-88(%rbp), %rcx
	movl	(%rcx), %edx
	movl	%edx, 4(%rax,%r12,8)
	movl	%r13d, (%rax,%r12,8)
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rcx), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %r8d
	callq	_av_log
	movq	8(%r15), %rax
	movq	%r14, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	8(%rax,%rcx)
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Payload extension %x %d\n"

	.no_dead_strip	_asf_read_ext_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_ext_stream_properties
_asf_read_ext_stream_properties:        ; @asf_read_ext_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
	ldp	x20, x25, [x0]
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x0, x20
	bl	_avio_rl64
	mov	x0, x20
	bl	_avio_rl64
	mov	x0, x20
	bl	_avio_rl32
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl32
	mov	x0, x20
	bl	_avio_rl16
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rl16
	cmp	w21, #127
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x25, #8]
	mov	w9, #24
	smull	x9, w21, w9
	str	w0, [x8, x9]
LBB0_2:
	mov	x0, x20
	bl	_avio_rl64
	mov	x0, x20
	bl	_avio_rl16
	mov	x24, x0
	mov	x0, x20
	bl	_avio_rl16
	mov	x23, x0
	cmp	w21, #127
	b.gt	LBB0_4
; %bb.3:
	sbfiz	x8, x21, #2, #32
	ldp	x9, x10, [x25]
	str	w22, [x9, x8]
	mov	w8, #24
	smaddl	x8, w21, w8, x10
	str	xzr, [x8, #8]
LBB0_4:
	cmp	w24, #1
	b.lt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_rl16
	mov	x0, x20
	bl	_avio_rl16
	mov	x1, x0
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_avio_skip
	subs	w24, w24, #1
	b.ne	LBB0_5
LBB0_6:
	cmp	w23, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x24, #0
	sxtw	x26, w21
	and	x27, x23, #0xffffffff
	mov	w28, #4
	mov	w22, #24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	add	x28, x28, #8
	cmp	x27, x24
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_ff_get_guid
	mov	x0, x20
	bl	_avio_rl16
	mov	x23, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x1, x0
	mov	x0, x20
	bl	_avio_skip
	cmp	w21, #127
	b.gt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x25, #8]
	madd	x8, x26, x22, x8
	ldr	x0, [x8, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	x24, w0, sxtw
	b.ge	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x25, #8]
	add	x9, x26, x26, lsl #1
	lsl	x19, x9, #3
	add	x8, x8, x19
	ldr	x8, [x8, #16]
	ldp	x0, x9, [sp]                    ; 8-byte Folded Reload
	ldr	w10, [x9]
	add	x8, x8, x28
	stp	w23, w10, [x8, #-4]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x9]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x23
	bl	_av_log
	ldr	x8, [x25, #8]
	add	x8, x8, x19
	ldr	x9, [x8, #8]
	add	x9, x9, #1
	str	x9, [x8, #8]
	b	LBB0_8
LBB0_12:
	mov	w0, #0
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Payload extension %x %d\n"

	.no_dead_strip	_asf_read_ext_stream_properties
.subsections_via_symbols
