	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv_format_frame
_dv_format_frame:                       ## @dv_format_frame
	.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	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpl	$720, (%rax)                    ## imm = 0x2D0
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	andl	$2, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
LBB0_2:
	cmpl	$0, 4(%rax)
	jle	LBB0_17
## %bb.3:
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	cmpl	4(%rax), %ecx
	jge	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
	cmpl	$0, 8(%rax)
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rcx,%rax), %ebx
	xorl	%r15d, %r15d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	incl	%r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	8(%rax), %r15d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jge	LBB0_16
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
	movq	%r14, %rdi
	movl	$255, %esi
	movl	$480, %edx                      ## imm = 0x1E0
	callq	_memset
	movq	_dv_sect_header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_dv_write_dif_id
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	cmpq	$0, 16(%rcx)
	movq	_dv_header625@GOTPCREL(%rip), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_dv_header525@GOTPCREL(%rip), %rcx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	cltq
	leaq	(%r14,%rax,4), %rbx
	movl	(%rcx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %r14
	addq	$288, %r14                      ## imm = 0x120
	movb	$1, %al
	xorl	%ecx, %ecx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_dv_sect_subcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_dv_write_dif_id
	cltq
	leaq	(%r14,%rax,4), %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movl	8(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorl	%esi, %esi
	cmpl	%ecx, %r15d
	setl	%sil
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_dv_write_ssyb_id
	leaq	(%rbx,%rax,4), %r14
	leaq	(%rbx,%rax,4), %rdx
	addq	$20, %rdx
	movq	(%r12), %rax
	movl	8(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorl	%esi, %esi
	cmpl	%ecx, %r15d
	setl	%sil
	movl	$1, %edi
	callq	_dv_write_ssyb_id
	movq	%r12, %r15
	leaq	(%r14,%rax,4), %r12
	addq	$20, %r12
	leaq	40(%r14,%rax,4), %rdx
	movq	(%r15), %rax
	movl	8(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorl	%esi, %esi
	cmpl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	setl	%sil
	movl	$2, %edi
	callq	_dv_write_ssyb_id
	leaq	(%r12,%rax,4), %r13
	addq	$20, %r13
	leaq	40(%r12,%rax,4), %rdx
	movq	%r15, %rbx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	(%rbx), %rax
	movl	8(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorl	%esi, %esi
	cmpl	%ecx, %r15d
	setl	%sil
	movl	$3, %edi
	callq	_dv_write_ssyb_id
	leaq	20(,%rax,4), %r14
	addq	%r13, %r14
	leaq	40(%r13,%rax,4), %rdx
	movq	(%rbx), %rax
	movl	8(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorl	%esi, %esi
	cmpl	%ecx, %r15d
	setl	%sil
	movl	$4, %edi
	callq	_dv_write_ssyb_id
	leaq	(%r14,%rax,4), %r12
	addq	$20, %r12
	leaq	40(%r14,%rax,4), %rdx
	movq	(%rbx), %rax
	movl	8(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorl	%esi, %esi
	cmpl	%ecx, %r15d
	setl	%sil
	movl	$5, %edi
	callq	_dv_write_ssyb_id
	movl	$1, %ecx
	leaq	(%r12,%rax,4), %r14
	addq	$156, %r14
	testb	$1, -60(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_dv_sect_vaux@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_dv_write_dif_id
	cltq
	leaq	(%r14,%rax,4), %rbx
	movq	_dv_video_source@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movq	_dv_video_control@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %r14
	leaq	(%rbx,%rax,4), %rdx
	addq	$140, %rdx
	movq	_dv_video_source@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_dv_write_pack
	cltq
	leaq	(%r14,%rax,4), %rbx
	addq	$140, %rbx
	movl	(%r13), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %r14
	leaq	(%rbx,%rax,4), %r8
	addq	$88, %r8
	movq	_dv_sect_vaux@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_dv_write_dif_id
	cltq
	leaq	(%r14,%rax,4), %rbx
	addq	$88, %rbx
	movq	_dv_video_source@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movq	_dv_video_control@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %r14
	leaq	(%rbx,%rax,4), %rdx
	addq	$140, %rdx
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_dv_write_pack
	cltq
	leaq	(%r14,%rax,4), %rbx
	addq	$140, %rbx
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %r14
	leaq	(%rbx,%rax,4), %r8
	addq	$88, %r8
	movq	_dv_sect_vaux@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$2, %ecx
	callq	_dv_write_dif_id
	cltq
	leaq	(%r14,%rax,4), %rbx
	addq	$88, %rbx
	movl	(%r13), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %r14
	leaq	(%rbx,%rax,4), %rdx
	addq	$140, %rdx
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_dv_write_pack
	cltq
	leaq	(%r14,%rax,4), %rbx
	addq	$140, %rbx
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dv_write_pack
	cltq
	leaq	(%rbx,%rax,4), %r14
	addq	$88, %r14
	movq	_dv_sect_audio@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	%r14, %rdi
	movl	$255, %esi
	movl	$80, %edx
	callq	_memset
	movl	(%r13), %edi
	movzbl	%r15b, %ecx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_dv_write_dif_id
	cltq
	leaq	(%r14,%rax,4), %r14
	addq	$308, %r14                      ## imm = 0x134
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	_dv_sect_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movq	%r14, %r8
	callq	_dv_write_dif_id
	cltq
	leaq	(%r14,%rax,4), %r14
	addq	$308, %r14                      ## imm = 0x134
	incl	%r12d
	cmpl	$135, %r12d
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	%r12b, %eax
	imull	$137, %eax, %r15d
	shrl	$11, %r15d
	movl	%r15d, %ecx
	shll	$4, %ecx
	movl	%r15d, %edx
	subl	%ecx, %edx
	addb	%dl, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dv_sect_header,4,2             ## @dv_sect_header
	.comm	_dv_header625,4,2               ## @dv_header625
	.comm	_dv_header525,4,2               ## @dv_header525
	.comm	_dv_sect_subcode,4,2            ## @dv_sect_subcode
	.comm	_dv_sect_vaux,4,2               ## @dv_sect_vaux
	.comm	_dv_video_source,4,2            ## @dv_video_source
	.comm	_dv_video_control,4,2           ## @dv_video_control
	.comm	_dv_sect_audio,4,2              ## @dv_sect_audio
	.comm	_dv_sect_video,4,2              ## @dv_sect_video
	.no_dead_strip	_dv_format_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv_format_frame
_dv_format_frame:                       ; @dv_format_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #720
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	ubfiz	w9, w9, #1, #1
	str	w9, [sp, #8]                    ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
LBB0_3:
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.4:
	mov	w10, #0
Lloh0:
	adrp	x26, _dv_sect_subcode@GOTPAGE
Lloh1:
	ldr	x26, [x26, _dv_sect_subcode@GOTPAGEOFF]
	mov	w27, #137
Lloh2:
	adrp	x25, _dv_sect_video@GOTPAGE
Lloh3:
	ldr	x25, [x25, _dv_sect_video@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w10, #1
	ldr	w9, [x8, #4]
	cmp	w10, w9
	b.ge	LBB0_16
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_14 Depth 3
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w20, #0
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	add	w21, w10, w8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w20, w20, #1
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	cmp	w20, w9
	b.ge	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_14 Depth 3
	mov	x0, x22
	mov	w1, #255
	mov	w2, #480
	bl	_memset
Lloh4:
	adrp	x8, _dv_sect_header@GOTPAGE
Lloh5:
	ldr	x8, [x8, _dv_sect_header@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x4, x22
	bl	_dv_write_dif_id
	add	x23, x22, w0, sxtw #2
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #0
Lloh7:
	adrp	x8, _dv_header625@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dv_header625@GOTPAGEOFF]
Lloh9:
	adrp	x9, _dv_header525@GOTPAGE
Lloh10:
	ldr	x9, [x9, _dv_header525@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x23
	bl	_dv_write_pack
	mov	w22, #0
	add	x8, x23, w0, sxtw #2
	add	x23, x8, #288
	mov	w8, #1
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x24, x8
	ldr	w0, [x26]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	bl	_dv_write_dif_id
	add	x22, x23, w0, sxtw #2
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w20, w8, asr #1
	cset	w1, lt
	mov	w0, #0
	mov	x2, x22
	bl	_dv_write_ssyb_id
	add	x8, x22, x0, lsl #2
	add	x23, x8, #20
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w20, w8, asr #1
	cset	w1, lt
	mov	w22, #1
	mov	w0, #1
	mov	x2, x23
	bl	_dv_write_ssyb_id
	add	x8, x23, x0, lsl #2
	add	x23, x8, #20
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w20, w8, asr #1
	cset	w1, lt
	mov	w0, #2
	mov	x2, x23
	bl	_dv_write_ssyb_id
	add	x8, x23, x0, lsl #2
	add	x23, x8, #20
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w20, w8, asr #1
	cset	w1, lt
	mov	w0, #3
	mov	x2, x23
	bl	_dv_write_ssyb_id
	add	x8, x23, x0, lsl #2
	add	x23, x8, #20
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w20, w8, asr #1
	cset	w1, lt
	mov	w0, #4
	mov	x2, x23
	bl	_dv_write_ssyb_id
	add	x8, x23, x0, lsl #2
	add	x23, x8, #20
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w20, w8, asr #1
	cset	w1, lt
	mov	w0, #5
	mov	x2, x23
	bl	_dv_write_ssyb_id
	mov	w8, #0
	add	x9, x23, x0, lsl #2
	add	x23, x9, #136
	tbnz	w24, #0, LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh11:
	adrp	x24, _dv_sect_vaux@GOTPAGE
Lloh12:
	ldr	x24, [x24, _dv_sect_vaux@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x4, x23
	bl	_dv_write_dif_id
	add	x22, x23, w0, sxtw #2
Lloh13:
	adrp	x23, _dv_video_source@GOTPAGE
Lloh14:
	ldr	x23, [x23, _dv_video_source@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x22, x22, w0, sxtw #2
Lloh15:
	adrp	x28, _dv_video_control@GOTPAGE
Lloh16:
	ldr	x28, [x28, _dv_video_control@GOTPAGEOFF]
	ldr	w0, [x28]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #140
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x22, x22, w0, sxtw #2
	ldr	w0, [x28]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #88
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	mov	x4, x22
	bl	_dv_write_dif_id
	add	x22, x22, w0, sxtw #2
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x22, x22, w0, sxtw #2
	ldr	w0, [x28]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #140
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x22, x22, w0, sxtw #2
	ldr	w0, [x28]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #88
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	mov	w3, #2
	mov	x4, x22
	bl	_dv_write_dif_id
	add	x22, x22, w0, sxtw #2
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x22, x22, w0, sxtw #2
	ldr	w0, [x28]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #140
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	add	x22, x22, w0, sxtw #2
	ldr	w0, [x28]
	mov	x1, x19
	mov	x2, x22
	bl	_dv_write_pack
	mov	w23, #0
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #88
Lloh17:
	adrp	x28, _dv_sect_audio@GOTPAGE
Lloh18:
	ldr	x28, [x28, _dv_sect_audio@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	bl	_dv_write_dif_id
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #308
	add	w23, w23, #1
	cmp	w23, #135
	b.eq	LBB0_9
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	and	w8, w23, #0xff
	mul	w8, w8, w27
	lsr	w24, w8, #11
	sub	w8, w24, w24, lsl #4
	add	w8, w23, w8
	tst	w8, #0xff
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x22
	mov	w1, #255
	mov	w2, #80
	bl	_memset
	ldr	w0, [x28]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x22
	bl	_dv_write_dif_id
	add	x8, x22, w0, sxtw #2
	add	x22, x8, #308
	b	LBB0_13
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dv_sect_header,4,2             ; @dv_sect_header
	.comm	_dv_header625,4,2               ; @dv_header625
	.comm	_dv_header525,4,2               ; @dv_header525
	.comm	_dv_sect_subcode,4,2            ; @dv_sect_subcode
	.comm	_dv_sect_vaux,4,2               ; @dv_sect_vaux
	.comm	_dv_video_source,4,2            ; @dv_video_source
	.comm	_dv_video_control,4,2           ; @dv_video_control
	.comm	_dv_sect_audio,4,2              ; @dv_sect_audio
	.comm	_dv_sect_video,4,2              ; @dv_sect_video
	.no_dead_strip	_dv_format_frame
.subsections_via_symbols
