	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function mov_write_trak_tag
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mov_write_trak_tag:                    ## @mov_write_trak_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_FF_MOV_FLAG_EMPTY_MOOV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_mov_write_tkhd_tag
	movq	8(%r13), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_assert2
	movq	8(%rbx), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.3:
	cmpq	$0, 8(%r13)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_mov_write_edts_tag
	jmp	LBB0_10
LBB0_5:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	48(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
LBB0_7:
	movq	16(%rbx), %rax
	movq	_MODE_PSP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_is_clcp_track
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movl	16(%r13), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
LBB0_10:
	cmpq	$0, 40(%rbx)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_tref_tag
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_mov_write_mdia_tag
	testl	%eax, %eax
	js	LBB0_26
## %bb.13:
	movq	16(%rbx), %rax
	movq	_MODE_PSP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_uuid_tag_psp
LBB0_15:
	movq	24(%rbx), %r12
	movl	$114, %edi
	movl	$116, %esi
	movl	$112, %edx
	movl	$32, %ecx
	callq	_MKTAG
	cmpq	%rax, %r12
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_udta_sdp
LBB0_17:
	movq	16(%rbx), %rax
	movq	_MODE_MOV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.18:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.19:
	movq	(%r15), %rdi
	callq	_av_q2d
	cmpq	$0, (%r15)
	je	LBB0_22
## %bb.20:
	ucomisd	LCPI0_0(%rip), %xmm0
	jne	LBB0_21
	jnp	LBB0_22
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_tapt_tag
LBB0_22:
	movq	%rbx, %rdi
	callq	_is_clcp_track
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	cmpq	$0, (%r15)
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mov_write_tapt_tag
LBB0_25:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_mov_write_track_udta_tag
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_MOV_FLAG_EMPTY_MOOV,4,2     ## @FF_MOV_FLAG_EMPTY_MOOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trak"

	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_MODE_PSP,8,3                   ## @MODE_PSP
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Not writing any edit list even though one would have been required\n"

	.comm	_MODE_MOV,8,3                   ## @MODE_MOV
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.no_dead_strip	_mov_write_trak_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_trak_tag
_mov_write_trak_tag:                    ; @mov_write_trak_tag
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x24, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x23, x0
	ldr	d8, [x19]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _FF_MOV_FLAG_EMPTY_MOOV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FF_MOV_FLAG_EMPTY_MOOV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wb32
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_mov_write_tkhd_tag
	ldr	x8, [x22, #8]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_av_assert2
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.3:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_mov_write_edts_tag
	b	LBB0_10
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	cbnz	x8, LBB0_9
LBB0_7:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _MODE_PSP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MODE_PSP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_is_clcp_track
	cbz	x0, LBB0_10
LBB0_9:
	ldr	w0, [x22, #16]
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_10:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_mov_write_tref_tag
LBB0_12:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	_mov_write_mdia_tag
	tbnz	w0, #31, LBB0_26
; %bb.13:
	ldr	x8, [x19, #16]
Lloh16:
	adrp	x9, _MODE_PSP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MODE_PSP@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_mov_write_uuid_tag_psp
LBB0_15:
	ldr	x24, [x19, #24]
	mov	w0, #114
	mov	w1, #116
	mov	w2, #112
	mov	w3, #32
	bl	_MKTAG
	cmp	x24, x0
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	bl	_mov_write_udta_sdp
LBB0_17:
	ldr	x8, [x19, #16]
Lloh19:
	adrp	x9, _MODE_MOV@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MODE_MOV@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.18:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.19:
	ldr	x0, [x21]
	bl	_av_q2d
	ldr	x8, [x21]
	cbz	x8, LBB0_22
; %bb.20:
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x20
	mov	x1, x19
	bl	_mov_write_tapt_tag
LBB0_22:
	mov	x0, x19
	bl	_is_clcp_track
	cbz	x0, LBB0_25
; %bb.23:
	ldr	x8, [x21]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x20
	mov	x1, x19
	bl	_mov_write_tapt_tag
LBB0_25:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_mov_write_track_udta_tag
	str	d8, [x19]
	mov	x0, x20
	mov	x1, x23
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_update_size
LBB0_26:
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_MOV_FLAG_EMPTY_MOOV,4,2     ; @FF_MOV_FLAG_EMPTY_MOOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trak"

	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_MODE_PSP,8,3                   ; @MODE_PSP
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Not writing any edit list even though one would have been required\n"

	.comm	_MODE_MOV,8,3                   ; @MODE_MOV
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.no_dead_strip	_mov_write_trak_tag
.subsections_via_symbols
