	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_read_riff_info              ## -- Begin function ff_read_riff_info
	.p2align	4, 0x90
_ff_read_riff_info:                     ## @ff_read_riff_info
	.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
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_avio_tell
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	js	LBB0_31
## %bb.1:
	leal	(%rbx,%r15), %ecx
	addl	$-8, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %r14d
	jg	LBB0_31
## %bb.2:
	addl	%r15d, %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	subl	%r15d, %eax
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %eax
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$-9, %esi
	callq	_avio_seek
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	%rax, %r15
	movl	%ebx, %eax
	subl	%r15d, %eax
	jl	LBB0_28
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %eax
	jl	LBB0_28
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_28
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %ebx
	andl	$1, %ebx
	addl	%r15d, %ebx
	testq	%r13, %r13
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_AV_WL32
	movb	$0, -44(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rdx
	callq	_av_log
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AV_DICT_DONT_STRDUP_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdx
	callq	_av_dict_set
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_avio_skip
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_avio_tell
	testl	%eax, %eax
	js	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_3
	jmp	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.21:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	jmp	LBB0_24
LBB0_22:
	testq	%r13, %r13
	jne	LBB0_27
## %bb.23:
	testl	%r15d, %r15d
	jne	LBB0_27
LBB0_24:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_25:
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_26:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_31
LBB0_27:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_29
LBB0_28:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_29:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %eax
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INFO subchunk truncated\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
L_.str.1:                               ## @.str.1
	.asciz	"too big INFO subchunk\n"

L_.str.2:                               ## @.str.2
	.asciz	"truncated file\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"out of memory, unable to read INFO tag\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"premature end of file while reading INFO tag\n"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ## @AV_DICT_DONT_STRDUP_VAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_read_riff_info              ; -- Begin function ff_read_riff_info
	.p2align	2
_ff_read_riff_info:                     ; @ff_read_riff_info
	.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, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_avio_tell
	mov	x23, x0
	mov	x0, x20
	bl	_avio_tell
	mov	x22, x0
	mov	w0, #0
	tbnz	w22, #31, LBB0_29
; %bb.1:
	add	w25, w23, w21
	sub	w26, w25, #8
	cmp	w22, w26
	b.gt	LBB0_29
; %bb.2:
Lloh0:
	adrp	x28, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x28, [x28, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x21, _SEEK_CUR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SEEK_CUR@GOTPAGEOFF]
Lloh4:
	adrp	x27, _AV_DICT_DONT_STRDUP_VAL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _AV_DICT_DONT_STRDUP_VAL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	strb	wzr, [sp, #12]
	str	wzr, [sp, #8]
	mov	x0, x20
	bl	_avio_rl32
	mov	x23, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x24, x0
	mov	x0, x20
	bl	_avio_feof
	cbnz	x0, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w8, w25, w24
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w22
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	cmp	w8, w24
	b.ne	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #-9
	bl	_avio_seek
	mov	x0, x20
	bl	_avio_rl32
	mov	x23, x0
	mov	x0, x20
	bl	_avio_rl32
	subs	w8, w25, w0
	b.lt	LBB0_24
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w22
	b.lt	LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	w8, [x28]
	cmp	w8, w0
	b.eq	LBB0_24
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w24, #0x1
	add	w22, w8, w24
	cbz	x23, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w22, #1
	bl	_av_mallocz
	cbz	x0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	add	x0, sp, #8
	mov	x1, x23
	bl	_AV_WL32
	strb	wzr, [sp, #12]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	bl	_avio_read
	cmp	w0, w22
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
Lloh9:
	adrp	x2, l_.str.4@PAGE
Lloh10:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x27]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x24
	bl	_av_dict_set
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_avio_skip
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_avio_tell
	mov	x22, x0
	mov	w0, #0
	tbnz	w22, #31, LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, w26
	b.le	LBB0_3
	b	LBB0_29
LBB0_20:
	cbnz	x23, LBB0_22
; %bb.21:
	cbz	w24, LBB0_27
LBB0_22:
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_25
LBB0_23:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_29
LBB0_24:
Lloh24:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_25:
	mov	x0, x19
	bl	_av_log
Lloh29:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh31:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str.2@PAGE
Lloh35:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_27:
Lloh36:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x8]
LBB0_29:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INFO subchunk truncated\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
l_.str.1:                               ; @.str.1
	.asciz	"too big INFO subchunk\n"

l_.str.2:                               ; @.str.2
	.asciz	"truncated file\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"out of memory, unable to read INFO tag\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"premature end of file while reading INFO tag\n"

	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ; @AV_DICT_DONT_STRDUP_VAL
.subsections_via_symbols
