	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rm_read_packet
_rm_read_packet:                        ## @rm_read_packet
	.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	%rsi, %r13
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	$1, -48(%rbp)
	xorl	%r12d, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_22
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_av_packet_unref
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %r12
	movl	(%r15), %esi
	movq	8(%r12), %rcx
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%r13, %r8
	callq	_ff_rm_retrieve_cache
	testl	%eax, %eax
	js	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -44(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	_AVDISCARD_NONKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$2, -44(%rbp)
	jne	LBB0_1
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movq	(%rax), %r12
	movq	8(%r12), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	cmpl	$0, 8(%rax)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax), %ecx
	imull	(%rax), %ecx
	movl	%ecx, %r13d
	shrl	$31, %r13d
	addl	%ecx, %r13d
	sarl	%r13d
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	-52(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_rm_sync
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movslq	-60(%rbp), %rcx
	movq	(%rax,%rcx,8), %r12
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_RAW_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -48(%rbp)
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	addl	%ecx, %ecx
	movl	%ecx, -44(%rbp)
	movl	(%r15), %edi
	callq	_avio_tell
	movl	%eax, -56(%rbp)
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %esi
	movq	8(%r12), %rcx
	movl	-44(%rbp), %eax
	movl	-52(%rbp), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%r13d, %r8d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r9
	pushq	%rbx
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	callq	_ff_rm_parse_packet
	addq	$32, %rsp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jl	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$2, -44(%rbp)
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax
	andl	$127, %eax
	cmpl	$1, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %edx
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_24:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
LBB0_25:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_26:
	movl	%eax, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_RAW_PACKET_SIZE,4,2            ## @RAW_PACKET_SIZE
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.comm	_AVDISCARD_NONKEY,8,3           ## @AVDISCARD_NONKEY
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.no_dead_strip	_rm_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rm_read_packet
_rm_read_packet:                        ; @rm_read_packet
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	ldr	x23, [x0, #16]
	mov	w8, #1
	str	w8, [sp, #24]
Lloh0:
	adrp	x24, _AVINDEX_KEYFRAME@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh2:
	adrp	x25, _AV_NOPTS_VALUE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _RAW_PACKET_SIZE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _RAW_PACKET_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _AVDISCARD_NONKEY@GOTPAGE
Lloh7:
	ldr	x27, [x27, _AVDISCARD_NONKEY@GOTPAGEOFF]
Lloh8:
	adrp	x28, _AVDISCARD_ALL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _AVDISCARD_ALL@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.lt	LBB0_22
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_av_packet_unref
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	ldr	x21, [x8, x9, lsl #3]
	ldr	w1, [x20]
	ldr	x3, [x21, #8]
	mov	x0, x20
	mov	x2, x21
	mov	x4, x19
	bl	_ff_rm_retrieve_cache
	tbnz	w0, #31, LBB0_25
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [sp, #12]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x27]
	cmp	x8, x9
	b.lt	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [sp, #12]
	tbnz	w9, #1, LBB0_1
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
	ldr	w9, [x25]
	str	w9, [sp, #20]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w8, [x8]
	mul	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w22, w8, #1
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #20
	add	x2, sp, #12
	add	x3, sp, #28
	add	x4, sp, #16
	mov	x0, x20
	bl	_rm_sync
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldrsw	x9, [sp, #28]
	ldr	x21, [x8, x9, lsl #3]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x26]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #24]
	cmp	w8, #1
	cset	w9, eq
	add	w8, w8, #1
	str	w8, [sp, #24]
	lsl	w8, w9, #1
	str	w8, [sp, #12]
	ldr	w0, [x20]
	bl	_avio_tell
	str	w0, [sp, #16]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	bl	_avio_feof
	cbnz	x0, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #0
	b.le	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20]
	ldr	x3, [x21, #8]
	ldr	w7, [sp, #12]
	ldr	w8, [sp, #20]
	str	w8, [sp]
	add	x6, sp, #24
	mov	x0, x20
	mov	x2, x21
	mov	x4, x22
	mov	x5, x19
	bl	_ff_rm_parse_packet
	mov	x22, x0
	cmn	w0, #1
	b.lt	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #12]
	tbz	w8, #1, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #24]
	and	w8, w8, #0x7f
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	w1, w2, [sp, #16]
	ldr	w5, [x24]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #0
	bl	_av_add_index_entry
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_3
	b	LBB0_6
LBB0_22:
	mov	w22, #0
	b	LBB0_26
LBB0_23:
Lloh10:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	b	LBB0_26
LBB0_24:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_25:
	mov	x22, x0
LBB0_26:
	mov	x0, x22
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_RAW_PACKET_SIZE,4,2            ; @RAW_PACKET_SIZE
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.comm	_AVDISCARD_NONKEY,8,3           ; @AVDISCARD_NONKEY
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.no_dead_strip	_rm_read_packet
.subsections_via_symbols
