	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_sidx_tag
_mov_write_sidx_tag:                    ## @mov_write_sidx_tag
	.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	%ecx, %r15d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_avio_tell
	cmpq	$0, 48(%r12)
	je	LBB0_2
## %bb.1:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	addq	(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rcx), %rdx
	addq	%rdx, %rax
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	16(%rcx), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	testq	%rax, %rax
	movl	$0, %r14d
	cmovgq	%rax, %r14
	cmovnsq	%rsi, %rax
	addq	8(%rcx), %rdx
	movq	16(%r12), %rcx
	subq	%rdx, %rcx
	addq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	24(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.3:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%r12), %rax
	movq	(%rax), %r14
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
LBB0_4:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_ffio_wfourcc
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_avio_w8
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb24
	movl	28(%r12), %esi
	movq	%r13, %rdi
	callq	_avio_wb32
	movl	32(%r12), %esi
	movq	%r13, %rdi
	callq	_avio_wb32
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_avio_wb64
	movq	%r13, %rdi
	callq	_avio_tell
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb64
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_avio_wb16
	movl	%ebx, %r15d
	cmpq	$0, 48(%r12)
	jne	LBB0_6
## %bb.5:
	movq	40(%r12), %rax
	movq	24(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	andl	$2147483647, %r14d              ## imm = 0x7FFFFFFF
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_avio_wb32
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_wb32
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	shll	$31, %esi
	movq	%r13, %rdi
	callq	_avio_wb32
	cmpl	$1, %r15d
	je	LBB0_16
## %bb.7:
	cmpq	$0, 48(%r12)
	jne	LBB0_9
## %bb.8:
	movq	40(%r12), %rax
	movq	56(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	48(%rax), %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	andl	$2147483647, %r14d              ## imm = 0x7FFFFFFF
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_avio_wb32
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_wb32
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	shll	$31, %esi
	movq	%r13, %rdi
	callq	_avio_wb32
	cmpl	$2, %r15d
	jne	LBB0_10
LBB0_16:
	movq	%r13, %rdi
	callq	_avio_tell
	movq	%rax, %r14
	movslq	-60(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rbx
	addq	%rax, %rbx
	subq	%r14, %rbx
	movq	_SEEK_SET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_avio_seek
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_avio_wb64
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_avio_seek
	movq	%r13, %rdi
	movq	%r12, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
LBB0_10:
	addq	$-2, %r15
	movabsq	$4294967297, %r14               ## imm = 0x100000001
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	40(%r12), %rax
	movq	88(%rax,%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	80(%rax,%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	andl	$2147483647, %esi               ## imm = 0x7FFFFFFF
	movq	%r13, %rdi
	callq	_avio_wb32
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_wb32
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	shll	$31, %esi
	movq	%r13, %rdi
	callq	_avio_wb32
	incq	%r14
	addq	$32, %rbx
	decq	%r15
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%r12)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	40(%r12), %rax
	movl	%r14d, %ecx
	shlq	$5, %rcx
	movslq	16(%rax,%rcx), %rdx
	addq	8(%rax,%rcx), %rdx
	cmpq	%rdx, 72(%rax,%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	jmp	LBB0_14
LBB0_17:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOV_SYNC_SAMPLE,4,2            ## @MOV_SYNC_SAMPLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sidx"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Non-consecutive fragments, writing incorrect sidx\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_mov_write_sidx_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_sidx_tag
_mov_write_sidx_tag:                    ; @mov_write_sidx_tag
	.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, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_avio_tell
	mov	x20, x0
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x8, x9, [x22]
	ldr	x10, [x22, #56]
	ldp	x11, x12, [x10]
	add	x8, x9, x8
	add	x8, x8, x11
	ldr	x9, [x22, #16]
	ldr	w10, [x10, #16]
Lloh0:
	adrp	x13, _MOV_SYNC_SAMPLE@GOTPAGE
Lloh1:
	ldr	x13, [x13, _MOV_SYNC_SAMPLE@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x13]
	and	w27, w13, w10
	cmp	x8, #0
	csel	x25, x8, xzr, gt
	csel	x8, x8, xzr, lt
	add	x10, x11, x12
	sub	x9, x9, x10
	add	x24, x9, x8
	mov	w26, #1
	b	LBB0_4
LBB0_2:
	ldr	w26, [x22, #24]
	cmp	w26, #1
	b.lt	LBB0_17
; %bb.3:
	ldr	x8, [x22, #40]
	ldr	x25, [x8]
                                        ; implicit-def: $x24
                                        ; implicit-def: $w27
LBB0_4:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #1
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb24
	ldr	w1, [x22, #28]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x22, #32]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x25
	bl	_avio_wb64
	mov	x0, x19
	bl	_avio_tell
	mov	x25, x0
	mov	x0, x19
	mov	x1, #0
	bl	_avio_wb64
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb16
	mov	x0, x19
	mov	x1, x26
	bl	_avio_wb16
	mov	w28, w26
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x22, #40]
	ldr	x24, [x8, #24]
	ldr	w23, [x8, #16]
	mov	w27, #1
LBB0_6:
	and	w26, w23, #0x7fffffff
	mov	x0, x19
	mov	x1, x26
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wb32
	lsl	w1, w27, #31
	mov	x0, x19
	bl	_avio_wb32
	cmp	w28, #1
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x22, #40]
	ldr	x24, [x8, #56]
	ldr	w23, [x8, #48]
	and	w26, w23, #0x7fffffff
	mov	w27, #1
LBB0_9:
	mov	x0, x19
	mov	x1, x26
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wb32
	lsl	w1, w27, #31
	mov	x0, x19
	bl	_avio_wb32
	cmp	w28, #2
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_avio_tell
	mov	x22, x0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	x8, x20, w8, sxtw
	sub	x21, x8, x0
Lloh5:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x25
	bl	_avio_seek
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wb64
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_avio_seek
	mov	x0, x19
	mov	x1, x20
	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
	b	_update_size
LBB0_11:
	mov	x21, #0
	sub	x28, x28, #2
	mov	x26, #4294967297
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x22, #40]
	add	x8, x8, x21
	ldr	x24, [x8, #88]
	ldr	w23, [x8, #80]
	mov	w27, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	and	w1, w23, #0x7fffffff
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wb32
	lsl	w1, w27, #31
	mov	x0, x19
	bl	_avio_wb32
	add	x26, x26, #1
	add	x21, x21, #32
	subs	x28, x28, #1
	b.eq	LBB0_10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x22, #40]
	add	x9, x8, x21
	ldr	x9, [x9, #72]
	and	x10, x26, #0xffffffff
	add	x8, x8, x10, lsl #5
	ldr	x10, [x8, #8]
	ldrsw	x8, [x8, #16]
	add	x8, x10, x8
	cmp	x9, x8
	b.eq	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, #0
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	b	LBB0_12
LBB0_17:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MOV_SYNC_SAMPLE,4,2            ; @MOV_SYNC_SAMPLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sidx"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Non-consecutive fragments, writing incorrect sidx\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_mov_write_sidx_tag
.subsections_via_symbols
