	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_timecode_metadata
_add_timecode_metadata:                 ## @add_timecode_metadata
	.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
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movzbl	%bl, %eax
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_2:
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.4:
	movl	%ebx, %ecx
	shrl	$24, %ecx
	andl	$31, %ecx
	movl	%ebx, %edx
	shrl	$16, %edx
	movzbl	%dl, %r8d
	movzbl	%bh, %edx
	movl	%edx, %r9d
	andl	$536870912, %ebx                ## imm = 0x20000000
	cmpl	$1, %ebx
	movl	$59, %ebx
	sbbl	$0, %ebx
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	pushq	%rax
	pushq	%rbx
	callq	_snprintf
	addq	$16, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02d:%02d:%02d%c%02d"

	.no_dead_strip	_add_timecode_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_timecode_metadata
_add_timecode_metadata:                 ; @add_timecode_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	and	w7, w2, #0xff
	cbz	w3, LBB0_2
; %bb.1:
	sdiv	w7, w7, w3
LBB0_2:
	tbnz	w2, #31, LBB0_4
; %bb.3:
	ubfx	w3, w2, #24, #5
	ubfx	w4, w2, #16, #8
	ubfx	w5, w2, #8, #8
	tst	w2, #0x20000000
	mov	w8, #58
	cinc	w6, w8, ne
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #128
	bl	_snprintf
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_av_dict_set
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02d:%02d:%02d%c%02d"

	.no_dead_strip	_add_timecode_metadata
.subsections_via_symbols
