	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_prft_tag
_mov_write_prft_tag:                    ## @mov_write_prft_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_avio_tell
	testl	%ebx, %ebx
	jg	LBB0_12
## %bb.1:
	movq	16(%r12), %rbx
	cmpl	$0, 24(%rbx)
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_6
## %bb.5:
	movl	8(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movl	8(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rcx
	movq	_MOV_PRFT_SRC_WALLCLOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_ff_ntp_time
	jmp	LBB0_10
LBB0_8:
	movq	_MOV_PRFT_SRC_PTS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.9:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	_NTP_OFFSET_US@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
LBB0_10:
	movq	%rax, %rdi
	callq	_ff_get_formatted_ntp_time
	movq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_ffio_wfourcc
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_avio_w8
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb24
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_avio_wb32
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_avio_wb64
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_avio_wb64
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
LBB0_11:
	movl	8(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to write PRFT, no entries in the track\n"

	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
L_.str.1:                               ## @.str.1
	.asciz	"Unable to write PRFT, first PTS is invalid\n"

	.comm	_MOV_PRFT_SRC_WALLCLOCK,8,3     ## @MOV_PRFT_SRC_WALLCLOCK
	.comm	_MOV_PRFT_SRC_PTS,8,3           ## @MOV_PRFT_SRC_PTS
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_NTP_OFFSET_US,8,3              ## @NTP_OFFSET_US
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported PRFT box configuration: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"prft"

	.no_dead_strip	_mov_write_prft_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_prft_tag
_mov_write_prft_tag:                    ; @mov_write_prft_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_avio_tell
	cmp	w22, #0
	b.gt	LBB0_6
; %bb.1:
	ldr	x22, [x21, #16]
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21, #8]
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_5:
	bl	_av_log
LBB0_6:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _MOV_PRFT_SRC_WALLCLOCK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MOV_PRFT_SRC_WALLCLOCK@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	bl	_ff_ntp_time
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x9, _MOV_PRFT_SRC_PTS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MOV_PRFT_SRC_PTS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x22, #16]
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_av_rescale_q
Lloh22:
	adrp	x8, _NTP_OFFSET_US@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NTP_OFFSET_US@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, x0
LBB0_11:
	bl	_ff_get_formatted_ntp_time
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@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, #8]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wb64
	ldr	x8, [x22]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_avio_wb64
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #64
	b	_update_size
LBB0_12:
	ldr	w0, [x21, #8]
Lloh27:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to write PRFT, no entries in the track\n"

	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
l_.str.1:                               ; @.str.1
	.asciz	"Unable to write PRFT, first PTS is invalid\n"

	.comm	_MOV_PRFT_SRC_WALLCLOCK,8,3     ; @MOV_PRFT_SRC_WALLCLOCK
	.comm	_MOV_PRFT_SRC_PTS,8,3           ; @MOV_PRFT_SRC_PTS
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_NTP_OFFSET_US,8,3              ; @NTP_OFFSET_US
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported PRFT box configuration: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"prft"

	.no_dead_strip	_mov_write_prft_tag
.subsections_via_symbols
