	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_preface
_mxf_write_preface:                     ## @mxf_write_preface
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	16(%rdi), %r15
	movq	%rbx, %rdi
	movl	$77568, %esi                    ## imm = 0x12F00
	callq	_mxf_write_metadata_key
	movq	(%rbx), %rdx
	addq	$-16, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_PRINT_KEY
	movl	(%r15), %edi
	callq	_DESCRIPTOR_COUNT
	shll	$4, %eax
	leal	138(%rax), %esi
	movq	%rbx, %rdi
	callq	_klv_encode_ber_length
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$15370, %edx                    ## imm = 0x3C0A
	callq	_mxf_write_local_tag
	movq	_Preface@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mxf_write_uuid
	movq	(%rbx), %rdx
	addq	$-16, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_PRINT_KEY
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$15106, %edx                    ## imm = 0x3B02
	callq	_mxf_write_local_tag
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_avio_wb64
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$15109, %edx                    ## imm = 0x3B05
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	$259, %esi                      ## imm = 0x103
	callq	_avio_wb16
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$15111, %edx                    ## imm = 0x3B07
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	$15110, %edx                    ## imm = 0x3B06
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mxf_write_refs_count
	movq	_Identification@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mxf_write_uuid
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$15107, %edx                    ## imm = 0x3B03
	callq	_mxf_write_local_tag
	movq	_ContentStorage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mxf_write_uuid
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$15113, %edx                    ## imm = 0x3B09
	callq	_mxf_write_local_tag
	movq	(%r14), %rax
	cmpq	_ff_mxf_opatom_muxer@GOTPCREL(%rip), %rax
	jne	LBB0_1
## %bb.2:
	movq	_opatom_ul@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_op1a_ul@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_avio_write
	movl	(%r15), %edi
	callq	_DESCRIPTOR_COUNT
	shll	$4, %eax
	leal	8(%rax), %esi
	movq	%rbx, %rdi
	movl	$15114, %edx                    ## imm = 0x3B0A
	callq	_mxf_write_local_tag
	movq	%r14, %rdi
	callq	_mxf_write_essence_container_refs
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$15115, %edx                    ## imm = 0x3B0B
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avio_wb64                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"preface key"

	.comm	_Preface,4,2                    ## @Preface
L_.str.1:                               ## @.str.1
	.asciz	"preface uid"

	.comm	_Identification,4,2             ## @Identification
	.comm	_ContentStorage,4,2             ## @ContentStorage
	.comm	_ff_mxf_opatom_muxer,4,2        ## @ff_mxf_opatom_muxer
	.comm	_opatom_ul,4,2                  ## @opatom_ul
	.comm	_op1a_ul,4,2                    ## @op1a_ul
	.no_dead_strip	_mxf_write_preface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_preface
_mxf_write_preface:                     ; @mxf_write_preface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldp	x19, x22, [x0, #8]
	mov	x0, x19
	mov	w1, #12032
	movk	w1, #1, lsl #16
	bl	_mxf_write_metadata_key
	ldr	x8, [x19]
	sub	x2, x8, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_PRINT_KEY
	ldr	w0, [x22]
	bl	_DESCRIPTOR_COUNT
	lsl	w8, w0, #4
	add	w1, w8, #138
	mov	x0, x19
	bl	_klv_encode_ber_length
	mov	x0, x19
	mov	w1, #16
	mov	w2, #15370
	bl	_mxf_write_local_tag
Lloh2:
	adrp	x8, _Preface@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Preface@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mxf_write_uuid
	ldr	x8, [x19]
	sub	x2, x8, #16
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_PRINT_KEY
	mov	w21, #8
	mov	x0, x19
	mov	w1, #8
	mov	w2, #15106
	bl	_mxf_write_local_tag
	ldr	w1, [x22, #4]
	mov	x0, x19
	bl	_avio_wb64
	mov	x0, x19
	mov	w1, #2
	mov	w2, #15109
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #259
	bl	_avio_wb16
	mov	x0, x19
	mov	w1, #4
	mov	w2, #15111
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #1
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #24
	mov	w2, #15110
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #1
	bl	_mxf_write_refs_count
Lloh7:
	adrp	x8, _Identification@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Identification@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mxf_write_uuid
	mov	x0, x19
	mov	w1, #16
	mov	w2, #15107
	bl	_mxf_write_local_tag
Lloh10:
	adrp	x8, _ContentStorage@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ContentStorage@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mxf_write_uuid
	mov	x0, x19
	mov	w1, #16
	mov	w2, #15113
	bl	_mxf_write_local_tag
Lloh13:
	adrp	x8, _ff_mxf_opatom_muxer@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ff_mxf_opatom_muxer@GOTPAGEOFF]
Lloh15:
	adrp	x9, _opatom_ul@GOTPAGE
Lloh16:
	ldr	x9, [x9, _opatom_ul@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh17:
	adrp	x11, _op1a_ul@GOTPAGE
Lloh18:
	ldr	x11, [x11, _op1a_ul@GOTPAGEOFF]
	cmp	x10, x8
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_avio_write
	ldr	w0, [x22]
	bl	_DESCRIPTOR_COUNT
	bfi	w21, w0, #4, #28
	mov	x0, x19
	mov	x1, x21
	mov	w2, #15114
	bl	_mxf_write_local_tag
	mov	x0, x20
	bl	_mxf_write_essence_container_refs
	mov	x0, x19
	mov	w1, #8
	mov	w2, #15115
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_avio_wb64
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"preface key"

	.comm	_Preface,4,2                    ; @Preface
l_.str.1:                               ; @.str.1
	.asciz	"preface uid"

	.comm	_Identification,4,2             ; @Identification
	.comm	_ContentStorage,4,2             ; @ContentStorage
	.comm	_ff_mxf_opatom_muxer,4,2        ; @ff_mxf_opatom_muxer
	.comm	_opatom_ul,4,2                  ; @opatom_ul
	.comm	_op1a_ul,4,2                    ; @op1a_ul
	.no_dead_strip	_mxf_write_preface
.subsections_via_symbols
