	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_riff
_get_riff:                              ## @get_riff
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_avio_read
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_avio_tell
	addl	%eax, (%r15)
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_avio_read
	movq	_avi_headers@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	8(%rax,%rbx,8), %rsi
	incq	%rbx
	cmpq	$0, (%rsi)
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	(%r12), %rax
LBB0_5:
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	xorl	%ebx, %ebx
	cmpb	$25, -33(%rbp)
	jne	LBB0_9
## %bb.8:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	jmp	LBB0_9
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_avi_headers,8,3                ## @avi_headers
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This file has been generated by a totally broken muxer.\n"

	.no_dead_strip	_get_riff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_riff
_get_riff:                              ; @get_riff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	str	xzr, [sp, #8]
	add	x22, sp, #8
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	bl	_avio_read
	mov	x0, x20
	bl	_avio_rl32
	str	w0, [x21]
	mov	x0, x20
	bl	_avio_tell
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21]
	orr	x1, x22, #0x4
	mov	x0, x20
	mov	w2, #4
	bl	_avio_read
Lloh0:
	adrp	x20, _avi_headers@GOTPAGE
Lloh1:
	ldr	x20, [x20, _avi_headers@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8]
	ldr	x8, [x1]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x21, #1
	ldr	x8, [x20]
	add	x10, x8, x21, lsl #3
	ldr	x1, [x10, #8]
	ldr	x10, [x1]
	mov	x21, x9
	cbnz	x10, LBB0_2
; %bb.4:
	mov	x21, x9
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20]
LBB0_6:
	ldr	x8, [x8, w21, uxtw #3]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.7:
	ldrb	w8, [sp, #15]
	cmp	w8, #25
	b.ne	LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_avi_headers,8,3                ; @avi_headers
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This file has been generated by a totally broken muxer.\n"

	.no_dead_strip	_get_riff
.subsections_via_symbols
