	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_stbl_tag
_mov_write_stbl_tag:                    ## @mov_write_stbl_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_mov_write_stsd_tag
	testl	%eax, %eax
	js	LBB0_23
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_stts_tag
	movq	32(%rbx), %rax
	movq	(%rax), %rcx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rcx
	je	LBB0_4
## %bb.2:
	movq	8(%rax), %rcx
	movq	_AV_CODEC_ID_TRUEHD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	16(%rax), %r15
	movl	$114, %edi
	movl	$116, %esi
	movl	$112, %edx
	movl	$32, %ecx
	callq	_MKTAG
	cmpq	%rax, %r15
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_7
LBB0_4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpq	8(%rbx), %rax
	jge	LBB0_7
## %bb.6:
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_stss_tag
LBB0_7:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.8:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_sdtp_tag
LBB0_10:
	movq	16(%rbx), %rax
	movq	_MODE_MOV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	_MOV_TRACK_STPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_MOV_PARTIAL_SYNC_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_stss_tag
LBB0_13:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_17
## %bb.14:
	movq	_MOV_TRACK_CTTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_17
## %bb.15:
	cmpq	$0, 8(%rbx)
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_mov_write_ctts_tag
	testl	%eax, %eax
	js	LBB0_23
LBB0_17:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_stsc_tag
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_stsz_tag
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_stco_tag
	cmpq	$0, 40(%rbx)
	je	LBB0_19
## %bb.18:
	leaq	40(%rbx), %rdi
	movq	%r14, %rsi
	callq	_ff_mov_cenc_write_stbl_atoms
LBB0_19:
	movq	32(%rbx), %rax
	movq	8(%rax), %rax
	movq	_AV_CODEC_ID_OPUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.20:
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_preroll_write_stbl_atoms
LBB0_22:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stbl"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_TRUEHD,8,3         ## @AV_CODEC_ID_TRUEHD
	.comm	_MOV_SYNC_SAMPLE,4,2            ## @MOV_SYNC_SAMPLE
	.comm	_MODE_MOV,8,3                   ## @MODE_MOV
	.comm	_MOV_TRACK_STPS,4,2             ## @MOV_TRACK_STPS
	.comm	_MOV_PARTIAL_SYNC_SAMPLE,4,2    ## @MOV_PARTIAL_SYNC_SAMPLE
	.comm	_MOV_TRACK_CTTS,4,2             ## @MOV_TRACK_CTTS
	.comm	_AV_CODEC_ID_OPUS,8,3           ## @AV_CODEC_ID_OPUS
	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
	.no_dead_strip	_mov_write_stbl_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_stbl_tag
_mov_write_stbl_tag:                    ; @mov_write_stbl_tag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	bl	_mov_write_stsd_tag
	tbnz	w0, #31, LBB0_23
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_mov_write_stts_tag
	ldr	x8, [x20, #32]
	ldr	x9, [x8]
Lloh2:
	adrp	x23, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.2:
	ldr	x9, [x8, #8]
Lloh4:
	adrp	x10, _AV_CODEC_ID_TRUEHD@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AV_CODEC_ID_TRUEHD@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.3:
	ldr	x24, [x8, #16]
	mov	w0, #114
	mov	w1, #116
	mov	w2, #112
	mov	w3, #32
	bl	_MKTAG
	cmp	x24, x0
	b.ne	LBB0_7
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _MOV_SYNC_SAMPLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MOV_SYNC_SAMPLE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mov_write_stss_tag
LBB0_7:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_mov_write_sdtp_tag
LBB0_10:
	ldr	x8, [x20, #16]
Lloh10:
	adrp	x9, _MODE_MOV@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MODE_MOV@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [x20, #24]
Lloh13:
	adrp	x9, _MOV_TRACK_STPS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MOV_TRACK_STPS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _MOV_PARTIAL_SYNC_SAMPLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MOV_PARTIAL_SYNC_SAMPLE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mov_write_stss_tag
LBB0_13:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	ldr	w8, [x20, #24]
Lloh19:
	adrp	x9, _MOV_TRACK_CTTS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MOV_TRACK_CTTS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_mov_write_ctts_tag
	tbnz	w0, #31, LBB0_23
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_mov_write_stsc_tag
	mov	x0, x19
	mov	x1, x20
	bl	_mov_write_stsz_tag
	mov	x0, x19
	mov	x1, x20
	bl	_mov_write_stco_tag
	mov	x0, x20
	ldr	x8, [x0, #40]!
	cbz	x8, LBB0_19
; %bb.18:
	mov	x1, x19
	bl	_ff_mov_cenc_write_stbl_atoms
LBB0_19:
	ldr	x8, [x20, #32]
	ldr	x8, [x8, #8]
Lloh22:
	adrp	x9, _AV_CODEC_ID_OPUS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_CODEC_ID_OPUS@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
Lloh25:
	adrp	x9, _AV_CODEC_ID_AAC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_mov_preroll_write_stbl_atoms
LBB0_22:
	mov	x0, x19
	mov	x1, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_update_size
LBB0_23:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stbl"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_TRUEHD,8,3         ; @AV_CODEC_ID_TRUEHD
	.comm	_MOV_SYNC_SAMPLE,4,2            ; @MOV_SYNC_SAMPLE
	.comm	_MODE_MOV,8,3                   ; @MODE_MOV
	.comm	_MOV_TRACK_STPS,4,2             ; @MOV_TRACK_STPS
	.comm	_MOV_PARTIAL_SYNC_SAMPLE,4,2    ; @MOV_PARTIAL_SYNC_SAMPLE
	.comm	_MOV_TRACK_CTTS,4,2             ; @MOV_TRACK_CTTS
	.comm	_AV_CODEC_ID_OPUS,8,3           ; @AV_CODEC_ID_OPUS
	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
	.no_dead_strip	_mov_write_stbl_tag
.subsections_via_symbols
