	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_cdci_common
_mxf_write_cdci_common:                 ## @mxf_write_cdci_common
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movl	(%rax), %r14d
	leal	15(%r14), %eax
	addl	$30, %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	andl	$-16, %r14d
	callq	_mxf_write_generic_desc
	movl	%eax, %r12d
	movq	(%r15), %rax
	movl	32(%rax), %esi
	xorl	%edi, %edi
	callq	_get_trc
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movq	_AV_CODEC_ID_DVVIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_5
## %bb.1:
	movl	(%rax), %ecx
	cmpl	$1080, %ecx                     ## imm = 0x438
	je	LBB0_2
## %bb.3:
	cmpl	$720, %ecx                      ## imm = 0x2D0
	jne	LBB0_5
## %bb.4:
	movl	$1280, %r12d                    ## imm = 0x500
	jmp	LBB0_6
LBB0_5:
	movl	16(%rax), %r12d
	leal	15(%r12), %eax
	addl	$30, %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	andl	$-16, %r12d
	jmp	LBB0_6
LBB0_2:
	movl	$1920, %r12d                    ## imm = 0x780
LBB0_6:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12803, %edx                    ## imm = 0x3203
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12802, %edx                    ## imm = 0x3202
	callq	_mxf_write_local_tag
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movb	(%r15), %cl
	sarl	%cl, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_avio_wb32
	movq	(%r13), %rax
	cmpq	_ff_mxf_d10_muxer@GOTPCREL(%rip), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12822, %edx                    ## imm = 0x3216
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12819, %edx                    ## imm = 0x3213
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12820, %edx                    ## imm = 0x3214
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
LBB0_8:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12805, %edx                    ## imm = 0x3205
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12804, %edx                    ## imm = 0x3204
	callq	_mxf_write_local_tag
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %esi
	movb	(%r15), %cl
	sarl	%cl, %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12806, %edx                    ## imm = 0x3206
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12807, %edx                    ## imm = 0x3207
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12809, %edx                    ## imm = 0x3209
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	movq	%r14, %rcx
	movq	(%r14), %rax
	movl	(%rax), %r14d
	cmpl	$608, %r14d                     ## imm = 0x260
	movq	%r15, %r13
	je	LBB0_9
## %bb.10:
	cmpl	$512, %r14d                     ## imm = 0x200
	jne	LBB0_12
## %bb.11:
	movl	$486, %r14d                     ## imm = 0x1E6
	jmp	LBB0_12
LBB0_9:
	movl	$576, %r14d                     ## imm = 0x240
LBB0_12:
	movq	%rcx, %r15
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12808, %edx                    ## imm = 0x3208
	callq	_mxf_write_local_tag
	movb	(%r13), %cl
	movl	%r14d, %esi
	sarl	%cl, %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12810, %edx                    ## imm = 0x320A
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12811, %edx                    ## imm = 0x320B
	callq	_mxf_write_local_tag
	movq	(%r15), %rax
	movl	(%rax), %esi
	subl	%r14d, %esi
	movb	(%r13), %cl
	sarl	%cl, %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	cmpl	$0, (%r13)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12823, %edx                    ## imm = 0x3217
	callq	_mxf_write_local_tag
	movq	(%r15), %rax
	movl	(%rax), %esi
	subl	%r14d, %esi
	andl	$1, %esi
	negl	%esi
	movq	%rbx, %rdi
	callq	_avio_wb32
LBB0_14:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$13057, %edx                    ## imm = 0x3301
	callq	_mxf_write_local_tag
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$13058, %edx                    ## imm = 0x3302
	callq	_mxf_write_local_tag
	movl	8(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$13064, %edx                    ## imm = 0x3308
	callq	_mxf_write_local_tag
	movl	12(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$13059, %edx                    ## imm = 0x3303
	callq	_mxf_write_local_tag
	movl	16(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_w8
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$13063, %edx                    ## imm = 0x3307
	callq	_mxf_write_local_tag
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	(%r15), %rax
	movq	24(%rax), %rdx
	movq	_AVCOL_RANGE_UNSPECIFIED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_19
## %bb.15:
	movl	4(%r13), %eax
	movl	$-1, %r12d
	movl	%eax, %ecx
	shll	%cl, %r12d
	movq	_AVCOL_RANGE_MPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_16
## %bb.17:
	leal	-4(%rax), %edx
	movl	$1, %r14d
	movl	%edx, %ecx
	shll	%cl, %r14d
	addb	$-8, %al
	movl	$235, %r12d
	movl	%eax, %ecx
	shll	%cl, %r12d
	movl	$14, %r13d
	movl	%edx, %ecx
	shll	%cl, %r13d
	orl	$1, %r13d
	jmp	LBB0_18
LBB0_16:
	notl	%r12d
	movl	%r12d, %r13d
LBB0_18:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$13060, %edx                    ## imm = 0x3304
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$13061, %edx                    ## imm = 0x3305
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$13062, %edx                    ## imm = 0x3306
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_avio_wb32
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_19:
	cmpl	$0, 20(%r13)
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$12821, %edx                    ## imm = 0x3215
	callq	_mxf_write_local_tag
	movl	20(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_w8
LBB0_21:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$12812, %edx                    ## imm = 0x320C
	callq	_mxf_write_local_tag
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_w8
	movq	(%r15), %rcx
	movl	(%rcx), %eax
	movl	$7, %r14d
	cmpl	$607, %eax                      ## imm = 0x25F
	jg	LBB0_26
## %bb.22:
	cmpl	$480, %eax                      ## imm = 0x1E0
	je	LBB0_31
## %bb.23:
	cmpl	$512, %eax                      ## imm = 0x200
	je	LBB0_32
## %bb.24:
	cmpl	$576, %eax                      ## imm = 0x240
	jne	LBB0_34
## %bb.25:
	movq	8(%rcx), %rax
	xorl	%ecx, %ecx
	movq	_AV_CODEC_ID_DVVIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%cl
	movl	$336, %r12d                     ## imm = 0x150
	subl	%ecx, %r12d
	movl	$23, %r14d
	jmp	LBB0_35
LBB0_26:
	cmpl	$608, %eax                      ## imm = 0x260
	je	LBB0_27
## %bb.28:
	cmpl	$720, %eax                      ## imm = 0x2D0
	je	LBB0_33
## %bb.29:
	cmpl	$1080, %eax                     ## imm = 0x438
	jne	LBB0_34
## %bb.30:
	movl	$584, %r12d                     ## imm = 0x248
	movl	$21, %r14d
	jmp	LBB0_35
LBB0_31:
	movq	8(%rcx), %rax
	xorl	%ecx, %ecx
	movq	_AV_CODEC_ID_DVVIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%cl
	leal	(%rcx,%rcx), %r12d
	addl	$283, %r12d                     ## imm = 0x11B
	movl	$20, %r14d
	jmp	LBB0_35
LBB0_32:
	movl	$270, %r12d                     ## imm = 0x10E
	jmp	LBB0_35
LBB0_27:
	movl	$320, %r12d                     ## imm = 0x140
	jmp	LBB0_35
LBB0_33:
	xorl	%r12d, %r12d
	movl	$26, %r14d
	jmp	LBB0_35
LBB0_34:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
LBB0_35:
	cmpl	$0, (%r13)
	sete	%al
	testl	%r12d, %r12d
	setne	%cl
	andb	%al, %cl
	shll	%cl, %r14d
	xorl	%eax, %eax
	testb	%cl, %cl
	cmovnel	%eax, %r12d
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$12813, %edx                    ## imm = 0x320D
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$12814, %edx                    ## imm = 0x320E
	callq	_mxf_write_local_tag
	movl	40(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	44(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$12816, %edx                    ## imm = 0x3210
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_avio_write
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$12801, %edx                    ## imm = 0x3201
	callq	_mxf_write_local_tag
	movq	32(%r13), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_avio_write
	cmpl	$0, (%r13)
	je	LBB0_38
## %bb.36:
	cmpl	$0, 24(%r13)
	je	LBB0_38
## %bb.37:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$12818, %edx                    ## imm = 0x3212
	callq	_mxf_write_local_tag
	movl	24(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_w8
LBB0_38:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_41
## %bb.39:
	cmpl	$0, 28(%r13)
	jne	LBB0_41
## %bb.40:
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	$33024, %edx                    ## imm = 0x8100
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mxf_write_refs_count
	movq	_AVCSubDescriptor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mxf_write_uuid
LBB0_41:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_DVVIDEO,8,3        ## @AV_CODEC_ID_DVVIDEO
	.comm	_ff_mxf_d10_muxer,4,2           ## @ff_mxf_d10_muxer
	.comm	_AVCOL_RANGE_UNSPECIFIED,8,3    ## @AVCOL_RANGE_UNSPECIFIED
	.comm	_AVCOL_RANGE_MPEG,8,3           ## @AVCOL_RANGE_MPEG
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_AVCSubDescriptor,4,2           ## @AVCSubDescriptor
	.no_dead_strip	_mxf_write_cdci_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_cdci_common
_mxf_write_cdci_common:                 ; @mxf_write_cdci_common
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x23, x0
	ldr	x19, [x0, #8]
	ldp	x8, x25, [x1]
	ldr	w8, [x8]
	add	w9, w8, #15
	add	w8, w8, #30
	cmp	w9, #0
	csel	w8, w8, w9, lt
	and	w24, w8, #0xfffffff0
	bl	_mxf_write_generic_desc
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w1, [x8, #32]
	mov	x0, #0
	bl	_get_trc
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x26, _AV_CODEC_ID_DVVIDEO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_CODEC_ID_DVVIDEO@GOTPAGEOFF]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, #1080
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #720
	b.ne	LBB0_4
; %bb.3:
	mov	w22, #1280
	b	LBB0_6
LBB0_4:
	ldr	w8, [x8, #16]
	add	w9, w8, #15
	add	w8, w8, #30
	cmp	w9, #0
	csel	w8, w8, w9, lt
	and	w22, w8, #0xfffffff0
	b	LBB0_6
LBB0_5:
	mov	w22, #1920
LBB0_6:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12803
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12802
	bl	_mxf_write_local_tag
	ldr	w8, [x25]
	asr	w1, w24, w8
	mov	x0, x19
	bl	_avio_wb32
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _ff_mxf_d10_muxer@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ff_mxf_d10_muxer@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12822
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12819
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12820
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
LBB0_8:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12805
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12804
	bl	_mxf_write_local_tag
	ldr	x8, [x21]
	ldr	w8, [x8]
	ldr	w9, [x25]
	asr	w1, w8, w9
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12806
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12807
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12809
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	ldr	x8, [x21]
	ldr	w8, [x8]
	mov	w9, #576
	mov	w10, #486
	cmp	w8, #512
	csel	w10, w8, w10, ne
	cmp	w8, #608
	csel	w22, w9, w10, eq
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12808
	bl	_mxf_write_local_tag
	ldr	w8, [x25]
	asr	w1, w22, w8
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12810
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12811
	bl	_mxf_write_local_tag
	ldr	x8, [x21]
	ldr	w8, [x8]
	sub	w8, w8, w22
	ldr	w9, [x25]
	asr	w1, w8, w9
	mov	x0, x19
	bl	_avio_wb32
	ldr	w8, [x25]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12823
	bl	_mxf_write_local_tag
	ldr	x8, [x21]
	ldr	w8, [x8]
	sub	w8, w8, w22
	and	w8, w8, #0x1
	neg	w1, w8
	mov	x0, x19
	bl	_avio_wb32
LBB0_10:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #13057
	bl	_mxf_write_local_tag
	ldr	w1, [x25, #4]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #13058
	bl	_mxf_write_local_tag
	ldr	w1, [x25, #8]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #13064
	bl	_mxf_write_local_tag
	ldr	w1, [x25, #12]
	mov	x0, x19
	bl	_avio_wb32
	mov	w22, #1
	mov	x0, x19
	mov	w1, #1
	mov	w2, #13059
	bl	_mxf_write_local_tag
	ldr	w1, [x25, #16]
	mov	x0, x19
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #2
	mov	w2, #13063
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb16
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
Lloh4:
	adrp	x9, _AVCOL_RANGE_UNSPECIFIED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AVCOL_RANGE_UNSPECIFIED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	ldr	w9, [x25, #4]
	mov	w10, #-1
	lsl	w10, w10, w9
Lloh7:
	adrp	x11, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh8:
	ldr	x11, [x11, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	sub	w12, w9, #4
	lsl	w13, w22, w12
	sub	w9, w9, #8
	mov	w14, #235
	lsl	w9, w14, w9
	mov	w14, #14
	lsl	w12, w14, w12
	orr	w12, w12, #0x1
	cmp	x8, x11
	csel	w22, wzr, w13, ne
	csinv	w23, w9, w10, eq
	csinv	w24, w12, w10, eq
	mov	x0, x19
	mov	w1, #4
	mov	w2, #13060
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #13061
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, x23
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	mov	w2, #13062
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, x24
	bl	_avio_wb32
LBB0_12:
	ldr	w8, [x25, #20]
	cbz	w8, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #12821
	bl	_mxf_write_local_tag
	ldr	w1, [x25, #20]
	mov	x0, x19
	bl	_avio_w8
LBB0_14:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #12812
	bl	_mxf_write_local_tag
	ldr	w1, [x25]
	mov	x0, x19
	bl	_avio_w8
	ldr	x9, [x21]
	ldr	w8, [x9]
	cmp	w8, #607
	b.gt	LBB0_19
; %bb.15:
	cmp	w8, #480
	b.eq	LBB0_23
; %bb.16:
	cmp	w8, #512
	b.eq	LBB0_24
; %bb.17:
	cmp	w8, #576
	b.ne	LBB0_27
; %bb.18:
	ldr	x8, [x9, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	mov	w8, #335
	cinc	w8, w8, ne
	mov	w9, #23
	b	LBB0_28
LBB0_19:
	cmp	w8, #608
	b.eq	LBB0_25
; %bb.20:
	cmp	w8, #720
	b.eq	LBB0_26
; %bb.21:
	cmp	w8, #1080
	b.ne	LBB0_27
; %bb.22:
	mov	w8, #584
	mov	w9, #21
	b	LBB0_28
LBB0_23:
	ldr	x8, [x9, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	mov	w8, #283
	mov	w9, #285
	csel	w8, w9, w8, eq
	mov	w9, #20
	b	LBB0_28
LBB0_24:
	mov	w8, #270
	mov	w9, #7
	b	LBB0_28
LBB0_25:
	mov	w8, #320
	mov	w9, #7
	b	LBB0_28
LBB0_26:
	mov	w8, #0
	mov	w9, #26
	b	LBB0_28
LBB0_27:
	mov	w9, #0
	mov	w8, #0
LBB0_28:
	ldr	w10, [x25]
	cmp	w10, #0
	cset	w10, eq
	cmp	w8, #0
	cset	w11, ne
	ands	w10, w10, w11
	lsl	w22, w9, w10
	csel	w23, wzr, w8, ne
	mov	x0, x19
	mov	w1, #16
	mov	w2, #12813
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #2
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #4
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x23
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #8
	mov	w2, #12814
	bl	_mxf_write_local_tag
	ldr	w1, [x25, #40]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x25, #44]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #16
	mov	w2, #12816
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, #0
	mov	w2, #16
	bl	_avio_write
	mov	x0, x19
	mov	w1, #16
	mov	w2, #12801
	bl	_mxf_write_local_tag
	ldr	x8, [x25, #32]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_avio_write
	ldr	w8, [x25]
	cbz	w8, LBB0_31
; %bb.29:
	ldr	w8, [x25, #24]
	cbz	w8, LBB0_31
; %bb.30:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #12818
	bl	_mxf_write_local_tag
	ldr	w1, [x25, #24]
	mov	x0, x19
	bl	_avio_w8
LBB0_31:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
Lloh10:
	adrp	x9, _AV_CODEC_ID_H264@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.32:
	ldr	w8, [x25, #28]
	cbnz	w8, LBB0_34
; %bb.33:
	mov	x0, x19
	mov	w1, #24
	mov	w2, #33024
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #1
	bl	_mxf_write_refs_count
Lloh13:
	adrp	x8, _AVCSubDescriptor@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVCSubDescriptor@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mxf_write_uuid
LBB0_34:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_DVVIDEO,8,3        ; @AV_CODEC_ID_DVVIDEO
	.comm	_ff_mxf_d10_muxer,4,2           ; @ff_mxf_d10_muxer
	.comm	_AVCOL_RANGE_UNSPECIFIED,8,3    ; @AVCOL_RANGE_UNSPECIFIED
	.comm	_AVCOL_RANGE_MPEG,8,3           ; @AVCOL_RANGE_MPEG
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_AVCSubDescriptor,4,2           ; @AVCSubDescriptor
	.no_dead_strip	_mxf_write_cdci_common
.subsections_via_symbols
