	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_stsz
_mov_read_stsz:                         ## @mov_read_stsz
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rsi, %rdi
	callq	_avio_r8
	movq	%rbx, %rdi
	callq	_avio_rb24
	movl	$115, %edi
	movl	$116, %esi
	movl	$115, %edx
	movl	$122, %ecx
	callq	_MKTAG
	movq	%rbx, %rdi
	cmpq	%r14, %rax
	jne	LBB0_6
## %bb.2:
	callq	_avio_rb32
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.3:
	movl	%eax, (%r15)
LBB0_4:
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	sete	-48(%rbp)                       ## 1-byte Folded Spill
	movl	$32, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_6:
	callq	_avio_rb24
	movq	%rbx, %rdi
	callq	_avio_r8
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movb	$1, -48(%rbp)                   ## 1-byte Folded Spill
LBB0_7:
	movq	%rbx, %rdi
	callq	_avio_rb32
	movl	%eax, %r14d
	movq	(%r13), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	%r14d, 8(%r15)
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
## %bb.8:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	$-4, %eax
	roll	$30, %eax
	cmpl	$7, %eax
	ja	LBB0_15
## %bb.9:
	movl	$139, %ecx
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.10:
	movl	%r14d, %r14d
	testq	%r14, %r14
	je	LBB0_18
## %bb.11:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-4, %eax
	xorl	%edx, %edx
	divl	-56(%rbp)                       ## 4-byte Folded Reload
	cmpl	%eax, %r14d
	jae	LBB0_16
## %bb.12:
	leaq	16(%r15), %r12
	cmpq	$0, 16(%r15)
	je	LBB0_19
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	(%r12), %rdi
	jmp	LBB0_20
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
LBB0_16:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %r12d
	jmp	LBB0_18
LBB0_19:
	xorl	%edi, %edi
LBB0_20:
	movq	%rbx, %r13
	callq	_av_free
	movl	$0, 8(%r15)
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_av_malloc_array
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_30
## %bb.21:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r12d
	imull	-56(%rbp), %r12d                ## 4-byte Folded Reload
	addl	$4, %r12d
	movl	%r12d, %ebx
	shrl	$3, %ebx
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.22:
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rbx
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ffio_read_size
	testl	%eax, %eax
	js	LBB0_31
## %bb.23:
	andl	$-8, %r12d
	leaq	-68(%rbp), %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%rdi, %r12
	callq	_init_get_bits
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_get_bits_long
	movq	16(%r15), %rcx
	movb	%al, (%rcx,%rbx)
	movq	16(%r15), %rax
	movzbl	(%rax,%rbx), %eax
	addl	%eax, 24(%r15)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_24
## %bb.26:
	movl	%r14d, %ebx
LBB0_27:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, 8(%r15)
	callq	_av_free
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.28:
	movq	(%r14), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	xorl	%r12d, %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_freep
LBB0_30:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_31:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_freep
	movq	%rbx, %rdi
	callq	_av_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sample_size = %u sample_count = %u\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid sample field size %u\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Duplicated STSZ atom\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"STSZ atom truncated\n"

L_.str.4:                               ## @.str.4
	.asciz	"reached eof, corrupted STSZ atom\n"

	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_mov_read_stsz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_stsz
_mov_read_stsz:                         ; @mov_read_stsz
	.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
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_29
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x26, [x8]
	mov	x0, x1
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_rb24
	mov	w0, #115
	mov	w1, #116
	mov	w2, #115
	mov	w3, #122
	bl	_MKTAG
	cmp	x0, x21
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_avio_rb32
	ldr	w8, [x26]
	cbnz	w8, LBB0_4
; %bb.3:
	str	w0, [x26]
LBB0_4:
	str	w0, [x26, #4]
	cmp	w0, #0
	cset	w23, eq
	mov	w21, #32
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	bl	_avio_r8
	mov	x21, x0
	mov	w23, #1
LBB0_6:
	mov	x0, x20
	bl	_avio_rb32
	mov	x22, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x26]
	stp	x8, x22, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	str	w22, [x26, #8]
	cbz	w23, LBB0_29
; %bb.7:
	sub	w8, w21, #4
	ror	w8, w8, #2
	cmp	w8, #7
	b.hi	LBB0_13
; %bb.8:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #139
	tst	w8, w9
	b.eq	LBB0_13
; %bb.9:
	mov	w22, w22
	cbz	w22, LBB0_29
; %bb.10:
Lloh5:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w8, w8, #4
	udiv	w8, w8, w21
	cmp	w22, w8
	b.hs	LBB0_14
; %bb.11:
	mov	x23, x26
	ldr	x8, [x23, #16]!
	cbz	x8, LBB0_16
; %bb.12:
	ldr	x0, [x19]
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	ldr	x0, [x23]
	b	LBB0_17
LBB0_13:
	ldr	x0, [x19]
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_14:
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_16:
	mov	x0, #0
LBB0_17:
	bl	_av_free
	str	wzr, [x26, #8]
	mov	x0, x22
	mov	w1, #1
	bl	_av_malloc_array
	str	x0, [x26, #16]
	cbz	x0, LBB0_27
; %bb.18:
	orr	w8, wzr, #0x4
	madd	w27, w22, w21, w8
	lsr	w25, w27, #3
Lloh20:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x0, x8, x25
	bl	_av_malloc
	cbz	x0, LBB0_26
; %bb.19:
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_ffio_read_size
	tbnz	w0, #31, LBB0_28
; %bb.20:
	and	w2, w27, #0xfffffff8
	add	x0, sp, #28
	mov	x1, x24
	bl	_init_get_bits
	mov	x23, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #28
	mov	x1, x21
	bl	_get_bits_long
	ldr	x8, [x26, #16]
	strb	w0, [x8, x23]
	ldr	x8, [x26, #16]
	ldrb	w8, [x8, x23]
	ldr	w9, [x26, #24]
	add	w8, w9, w8
	str	w8, [x26, #24]
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_21
; %bb.23:
	mov	x23, x22
LBB0_24:
	str	w23, [x26, #8]
	mov	x0, x24
	bl	_av_free
	ldr	x8, [x20]
	cbz	x8, LBB0_29
; %bb.25:
	ldr	x0, [x19]
Lloh23:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
Lloh28:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_15
LBB0_26:
	mov	x0, x23
	bl	_av_freep
LBB0_27:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_28:
	mov	x0, x23
	bl	_av_freep
	mov	x0, x24
	bl	_av_free
	ldr	x0, [x19]
Lloh33:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str.3@PAGE
Lloh37:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
LBB0_29:
	mov	w0, #0
LBB0_30:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sample_size = %u sample_count = %u\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid sample field size %u\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Duplicated STSZ atom\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"STSZ atom truncated\n"

l_.str.4:                               ; @.str.4
	.asciz	"reached eof, corrupted STSZ atom\n"

	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_mov_read_stsz
.subsections_via_symbols
