	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rm_sync
_rm_sync:                               ## @rm_sync
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_avio_feof
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_19
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avio_skip
	movl	$0, (%rbx)
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	jne	LBB0_26
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	%r14, %rdi
	callq	_avio_tell
	addq	$-3, %rax
	movq	%rax, (%r13)
	movl	(%rbx), %r15d
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %r13d
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	xorl	%ebx, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rdx
	addl	%r13d, %ebx
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rcx,8), %rsi
	cmpl	(%rsi), %ebx
	je	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ebx
	shll	$8, %ebx
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, %r12d
	addl	%ebx, %r12d
	movl	$73, %edi
	movl	$78, %esi
	movl	$68, %edx
	movl	$88, %ecx
	callq	_MKBETAG
	cmpl	%eax, %r12d
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_rb32
	movl	%eax, %r9d
	shll	$4, %r9d
	subl	%eax, %r9d
	subl	%eax, %r9d
	addl	$20, %r9d
	cmpl	$20, %r15d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$68, %edi
	movl	$65, %esi
	movl	$84, %edx
	movl	$65, %ecx
	callq	_MKBETAG
	cmpl	%eax, %r12d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	-65536(%r12), %eax
	cmpl	$-65523, %eax                   ## imm = 0xFFFF000D
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %r9d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$14, %r15d
	jl	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$-14, %r15d
	jmp	LBB0_24
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	$-12, %r12d
	movq	%r14, %rdi
	callq	_avio_rb16
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_avio_r8
                                        ## kill: def $eax killed $eax def $rax
	sarl	%eax
	leal	-1(%rax), %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	shll	$16, %ebx
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%r12d, %r15d
	movl	$-1, %r12d
	jmp	LBB0_16
LBB0_26:
	movl	$-1, %r15d
	jmp	LBB0_27
LBB0_19:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
LBB0_27:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Index size %d (%d pkts) is wrong, should be %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"DATA tag in middle of chunk, file may be broken.\n"

	.no_dead_strip	_rm_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rm_sync
_rm_sync:                               ; @rm_sync
	.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	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldp	x24, x25, [x0, #16]
	mov	x0, x24
	bl	_avio_feof
	cbz	w0, LBB0_3
LBB0_1:
	mov	w27, #-1
LBB0_2:
	mov	x0, x27
	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
LBB0_3:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	mov	w19, #-1
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #0
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	w9, w8
	b.ne	LBB0_24
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	mov	x1, x27
	bl	_avio_skip
	str	wzr, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_avio_feof
	cbnz	w0, LBB0_1
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x24
	bl	_avio_tell
	sub	x8, x0, #3
	str	x8, [x20]
	ldr	w27, [x25]
	cmp	w27, #1
	b.lt	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	mov	w26, #0
	ldr	w28, [x25, #4]
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x22]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	str	w0, [x21]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, #0
	ldr	x10, [x23, #8]
	add	w11, w26, w28
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x10, x9, lsl #3]
	ldr	w12, [x12]
	cmp	w11, w12
	b.eq	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_12
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_avio_r8
	add	w19, w0, w19, lsl #8
	mov	w0, #73
	mov	w1, #78
	mov	w2, #68
	mov	w3, #88
	bl	_MKBETAG
	cmp	w19, w0
	b.ne	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_avio_rb32
	mov	x27, x0
	mov	x0, x24
	mov	w1, #2
	bl	_avio_skip
	mov	x0, x24
	bl	_avio_rb32
	mov	w8, #14
	mul	w8, w0, w8
	add	w8, w8, #20
	cmp	w27, #20
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, w27
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh3:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	str	x8, [sp, #16]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	mov	x8, x27
	stp	x8, x0, [sp]
	mov	x0, x23
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x27
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	subs	w27, w8, #14
	b.ge	LBB0_6
	b	LBB0_7
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #68
	mov	w1, #65
	mov	w2, #84
	mov	w3, #65
	bl	_MKBETAG
	cmp	w19, w0
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x23
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w19, #16, lsl #12           ; =65536
	mov	w9, #-65523
	cmp	w8, w9
	b.lo	LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w27, w19, #12
	mov	x0, x24
	bl	_avio_rb16
	mov	x28, x0
	mov	x0, x24
	bl	_avio_rb32
	str	x0, [x22]
	mov	x0, x24
	bl	_avio_r8
	asr	w8, w0, #1
	sub	w0, w8, #1
	mov	w1, #0
	bl	_FFMAX
	lsl	w26, w0, #16
	mov	x0, x24
	bl	_avio_r8
	mov	w19, #-1
	b	LBB0_10
LBB0_24:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w9, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Index size %d (%d pkts) is wrong, should be %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"DATA tag in middle of chunk, file may be broken.\n"

	.no_dead_strip	_rm_sync
.subsections_via_symbols
