	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rm_read_multi
_rm_read_multi:                         ## @rm_read_multi
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_avio_rb16
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_avio_rb16
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	callq	_avio_rb16
	movl	%eax, %ebx
	cmpl	$1, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_avpriv_request_sample
	testl	%ebx, %ebx
	jle	LBB0_13
LBB0_5:
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rbx
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movslq	%r13d, %rax
	addq	24(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	8(%r14), %rax
	movl	4(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	20(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_ff_rm_alloc_rmstream
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	movl	(%rbx), %ecx
	movq	%rbx, %rdx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_ff_rm_read_mdpr_codecdata
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	addl	$65536, %r13d                   ## imm = 0x10000
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MLTI with multiple (%d) MDPR"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_DATA,4,2          ## @AVMEDIA_TYPE_DATA
	.no_dead_strip	_rm_read_multi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rm_read_multi
_rm_read_multi:                         ; @rm_read_multi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_avio_rb16
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_rb16
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_avio_rb16
	mov	x22, x0
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_avpriv_request_sample
	cmp	w22, #1
	b.lt	LBB0_11
LBB0_5:
	mov	w23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
	mov	w26, w22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x19
	cbz	x24, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	x8, [x19, #24]
	add	x8, x8, w23, sxtw
	str	x8, [x0, #24]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	ldr	x9, [x0, #8]
	str	w8, [x9, #4]
	ldr	d0, [x19, #16]
	str	d0, [x0, #16]
	ldr	w8, [x25]
	str	w8, [x9]
	bl	_ff_rm_alloc_rmstream
	str	w0, [x22]
	cbz	w0, LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_avio_rb32
	mov	x4, x0
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x2, x22
	mov	x5, #0
	bl	_ff_rm_read_mdpr_codecdata
	tbnz	w0, #31, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	add	w23, w23, #16, lsl #12          ; =65536
	cmp	x26, x24
	b.ne	LBB0_6
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MLTI with multiple (%d) MDPR"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_DATA,4,2          ; @AVMEDIA_TYPE_DATA
	.no_dead_strip	_rm_read_multi
.subsections_via_symbols
