	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_timestamp
_write_timestamp:                       ## @write_timestamp
	.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	%rsi, %r14
	movq	16(%rdi), %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	(%rsi), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_INDEX_BASE@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	orl	$1073741824, %ecx               ## imm = 0x40000000
	movq	_ff_timestamp_guid@GOTPCREL(%rip), %rsi
	movl	$56, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_write_chunk_header
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_write_pad
	movl	8(%r14), %esi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %esi
	movl	$-1, %r13d
	cmovel	%r13d, %esi
	movq	%r15, %rdi
	callq	_avio_wl64
	movl	8(%r14), %esi
	cmpl	(%rbx), %esi
	cmovel	%r13d, %esi
	movq	%r15, %rdi
	callq	_avio_wl64
	movl	8(%r14), %esi
	cmpl	(%rbx), %esi
	cmovel	%r13d, %esi
	movq	%r15, %rdi
	callq	_avio_wl64
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl64
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, 12(%r14)
	setne	%bl
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_wl64
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl64
	movl	(%r12), %eax
	movl	%eax, 4(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_timestamp_guid,4,2          ## @ff_timestamp_guid
	.comm	_INDEX_BASE,4,2                 ## @INDEX_BASE
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_write_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_timestamp
_write_timestamp:                       ; @write_timestamp
	.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, x1
	ldp	x21, x19, [x0, #8]
	ldr	x8, [x0]
	ldr	x9, [x1]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _INDEX_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INDEX_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w9
	orr	w3, w8, #0x40000000
Lloh3:
	adrp	x1, _ff_timestamp_guid@GOTPAGE
Lloh4:
	ldr	x1, [x1, _ff_timestamp_guid@GOTPAGEOFF]
	mov	w2, #56
	bl	_write_chunk_header
	mov	x0, x19
	mov	w1, #8
	bl	_write_pad
	ldr	w8, [x20, #8]
Lloh5:
	adrp	x23, _AV_NOPTS_VALUE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	csinv	w1, w8, wzr, ne
	mov	x0, x19
	bl	_avio_wl64
	ldr	w8, [x20, #8]
	ldr	w9, [x23]
	cmp	w8, w9
	csinv	w1, w8, wzr, ne
	mov	x0, x19
	bl	_avio_wl64
	ldr	w8, [x20, #8]
	ldr	w9, [x23]
	cmp	w8, w9
	csinv	w1, w8, wzr, ne
	mov	x0, x19
	bl	_avio_wl64
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl64
	mov	w1, #0
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20, #12]
Lloh10:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
LBB0_2:
	mov	x0, x19
	bl	_avio_wl64
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl64
	ldr	w8, [x21]
	str	w8, [x21, #4]
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_timestamp_guid,4,2          ; @ff_timestamp_guid
	.comm	_INDEX_BASE,4,2                 ; @INDEX_BASE
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_write_timestamp
.subsections_via_symbols
