	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv_inject_metadata
_dv_inject_metadata:                    ## @dv_inject_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.1:
	movq	%rdi, %r12
	leaq	344(%rsi), %rbx
	movq	%rsi, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_dv_video_recdate@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	1012(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movq	_dv_video_rectime@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	1032(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r15), %edi
	leaq	1192(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r14), %edi
	leaq	1212(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r15), %edi
	leaq	1332(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r14), %edi
	leaq	1352(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r15), %edi
	leaq	1512(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r14), %edi
	leaq	1532(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r15), %edi
	leaq	1652(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r14), %edi
	leaq	1672(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r15), %edi
	leaq	1832(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r14), %edi
	leaq	1852(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movq	%rbx, %r15
	addq	$48000, %r15                    ## imm = 0xBB80
	movq	(%r12), %rax
	movslq	(%rax), %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	$48000, %rbx                    ## imm = 0xBB80
	cmpq	%rax, %r15
	jae	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	subq	%rsi, %r15
	sarq	$2, %r15
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=2
	addq	$320, %rbx                      ## imm = 0x140
	addq	$80, %r14
	cmpq	$160, %r14
	jae	LBB0_15
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_dv_timecode@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	movl	(%r13), %edi
	leaq	32(%rbx), %rdx
	movq	%r12, %rsi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_dv_write_pack
	movl	(%r13), %edi
	leaq	64(%rbx), %rdx
	movq	%r12, %rsi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_dv_write_pack
	movl	(%r13), %edi
	leaq	96(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dv_write_pack
	movl	(%r13), %edi
	leaq	128(%rbx), %rdx
	movq	%r12, %rsi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	callq	_dv_write_pack
	movl	(%r13), %edi
	leaq	160(%rbx), %r13
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_dv_write_pack
	movq	(%r12), %rcx
	movslq	(%rcx), %rax
	movq	8(%rcx), %rsi
	movq	16(%rcx), %rcx
	imulq	%rsi, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	cqto
	idivq	%rsi
	cmpq	$6, %rdx
	jl	LBB0_14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	cmpq	$6, %rdx
	jl	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_dv_video_recdate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_dv_write_pack
	movq	_dv_video_rectime@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_dv_write_pack
	movq	_dv_video_recdate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_dv_write_pack
	movq	_dv_video_rectime@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_dv_write_pack
	jmp	LBB0_14
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dv_timecode,4,2                ## @dv_timecode
	.comm	_dv_video_recdate,4,2           ## @dv_video_recdate
	.comm	_dv_video_rectime,4,2           ## @dv_video_rectime
	.no_dead_strip	_dv_inject_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv_inject_metadata
_dv_inject_metadata:                    ; @dv_inject_metadata
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	add	x21, x1, #344
Lloh0:
	adrp	x27, _dv_timecode@GOTPAGE
Lloh1:
	ldr	x27, [x27, _dv_timecode@GOTPAGEOFF]
	mov	x22, x1
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x26, _dv_video_recdate@GOTPAGE
Lloh3:
	ldr	x26, [x26, _dv_video_recdate@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh4:
	adrp	x19, _dv_video_recdate@GOTPAGE
Lloh5:
	ldr	x19, [x19, _dv_video_recdate@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	add	x2, x22, #1012
	mov	x1, x20
	bl	_dv_write_pack
Lloh6:
	adrp	x21, _dv_video_rectime@GOTPAGE
Lloh7:
	ldr	x21, [x21, _dv_video_rectime@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x2, x22, #1032
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x19]
	add	x2, x22, #1192
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x21]
	add	x2, x22, #1212
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x19]
	add	x2, x22, #1332
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x21]
	add	x2, x22, #1352
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x19]
	add	x2, x22, #1512
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x21]
	add	x2, x22, #1532
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x19]
	add	x2, x22, #1652
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x21]
	add	x2, x22, #1672
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x19]
	add	x2, x22, #1832
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x21]
	add	x2, x22, #1852
	mov	x1, x20
	bl	_dv_write_pack
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x1, x8, lsl #2
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	mov	w9, #48000
	add	x21, x21, x9
	add	x22, x22, x9
	cmp	x22, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x28, #0
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	sub	x8, x22, x1
	asr	x19, x8, #2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x21, x21, #320
	add	x28, x28, #80
	cmp	x28, #160
	b.hs	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x27]
	mov	x1, x20
	mov	x2, x21
	bl	_dv_write_pack
	ldr	w0, [x27]
	add	x22, x21, #32
	mov	x1, x20
	mov	x2, x22
	bl	_dv_write_pack
	ldr	w0, [x27]
	add	x23, x21, #64
	mov	x1, x20
	mov	x2, x23
	bl	_dv_write_pack
	ldr	w0, [x27]
	add	x2, x21, #96
	mov	x1, x20
	bl	_dv_write_pack
	ldr	w0, [x27]
	add	x24, x21, #128
	mov	x1, x20
	mov	x2, x24
	bl	_dv_write_pack
	ldr	w0, [x27]
	add	x25, x21, #160
	mov	x1, x20
	mov	x2, x25
	bl	_dv_write_pack
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	ldp	x10, x8, [x8, #8]
	mul	x8, x8, x10
	sdiv	x8, x9, x8
	sdiv	x8, x19, x8
	sdiv	x9, x8, x10
	msub	x8, x9, x10, x8
	cmp	x8, #6
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [x26]
	mov	x1, x20
	mov	x2, x22
	bl	_dv_write_pack
Lloh8:
	adrp	x22, _dv_video_rectime@GOTPAGE
Lloh9:
	ldr	x22, [x22, _dv_video_rectime@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x23
	bl	_dv_write_pack
	ldr	w0, [x26]
	mov	x1, x20
	mov	x2, x24
	bl	_dv_write_pack
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x25
	bl	_dv_write_pack
	b	LBB0_4
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dv_timecode,4,2                ; @dv_timecode
	.comm	_dv_video_recdate,4,2           ; @dv_video_recdate
	.comm	_dv_video_rectime,4,2           ; @dv_video_rectime
	.no_dead_strip	_dv_inject_metadata
.subsections_via_symbols
