	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_create_timecode_track
_mov_create_timecode_track:             ## @mov_create_timecode_track
	.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
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	(%r14), %rbx
	movslq	%esi, %r15
	movslq	%edx, %r12
	movq	(%rax,%r12,8), %r13
	movl	%r15d, -64(%rbp)
	movl	$4, -60(%rbp)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_find_fps
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r14), %eax
	leaq	(%r15,%r15,2), %r15
	shlq	$4, %r15
	movl	%eax, 40(%rbx,%r15)
	movl	$116, %edi
	movl	$109, %esi
	movl	$99, %edx
	movl	$100, %ecx
	callq	_MKTAG
	movl	%eax, 16(%rbx,%r15)
	movl	%r12d, (%rbx,%r15)
	movq	(%r14), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r12,%r12,2), %rcx
	shlq	$4, %rcx
	movl	36(%rax,%rcx), %eax
	movl	%eax, 36(%rbx,%r15)
	movq	_AV_TIMECODE_FLAG_DROPFRAME@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_MOV_TIMECODE_FLAG_DROPFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx,%r15)
LBB0_2:
	movq	%r13, 8(%rbx,%r15)
	xorl	%eax, %eax
	callq	_avcodec_parameters_alloc
	movq	%rax, 24(%rbx,%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	addq	%r15, %rbx
	addq	$16, %rbx
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_av_inv_q
	movq	-8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$4, %edi
	callq	_av_malloc
	movl	%eax, -56(%rbp)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	shrq	$32, %r14
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_AV_WB32
	leaq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_mov_write_packet
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	callq	_av_free
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AV_TIMECODE_FLAG_DROPFRAME,4,2 ## @AV_TIMECODE_FLAG_DROPFRAME
	.comm	_MOV_TIMECODE_FLAG_DROPFRAME,4,2 ## @MOV_TIMECODE_FLAG_DROPFRAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_DATA,4,2          ## @AVMEDIA_TYPE_DATA
	.no_dead_strip	_mov_create_timecode_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_create_timecode_track
_mov_create_timecode_track:             ; @mov_create_timecode_track
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldp	x8, x27, [x0]
	ldr	x25, [x27]
	sxtw	x26, w24
	ldr	x22, [x8, w2, sxtw #3]
	mov	w8, #4
	stp	w1, w8, [sp, #16]
Lloh0:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	mov	x1, x22
	bl	_find_fps
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w8, [x27, #8]
	mov	w28, #48
	smaddl	x24, w24, w28, x25
	str	w8, [x24, #40]
	mov	w0, #116
	mov	w1, #109
	mov	w2, #99
	mov	w3, #100
	bl	_MKTAG
	mov	x21, x24
	str	w0, [x21, #16]!
	str	w23, [x24]
	ldr	x8, [x27]
	smaddl	x8, w23, w28, x8
	ldr	w8, [x8, #36]
	str	w8, [x24, #36]
Lloh3:
	adrp	x8, _AV_TIMECODE_FLAG_DROPFRAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_TIMECODE_FLAG_DROPFRAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MOV_TIMECODE_FLAG_DROPFRAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MOV_TIMECODE_FLAG_DROPFRAME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #48
	madd	x9, x26, x9, x25
	ldr	w10, [x9, #32]
	orr	w8, w10, w8
	str	w8, [x9, #32]
LBB0_2:
	mov	w8, #48
	madd	x23, x26, x8, x25
	str	x22, [x23, #8]!
	bl	_avcodec_parameters_alloc
	str	x0, [x23, #16]
	cbz	x0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w8, [x21]
	str	w8, [x0]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_av_inv_q
	ldr	x8, [x23]
	str	w0, [x8]
	mov	w0, #4
	bl	_av_malloc
	str	w0, [sp, #24]
	cbz	w0, LBB0_5
; %bb.4:
	lsr	x1, x20, #32
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_AV_WB32
	add	x1, sp, #16
	mov	x0, x19
	bl	_ff_mov_write_packet
	mov	x19, x0
	ldr	w0, [sp, #24]
	bl	_av_free
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AV_TIMECODE_FLAG_DROPFRAME,4,2 ; @AV_TIMECODE_FLAG_DROPFRAME
	.comm	_MOV_TIMECODE_FLAG_DROPFRAME,4,2 ; @MOV_TIMECODE_FLAG_DROPFRAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_DATA,4,2          ; @AVMEDIA_TYPE_DATA
	.no_dead_strip	_mov_create_timecode_track
.subsections_via_symbols
