	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_content_storage
_mxf_write_content_storage:             ## @mxf_write_content_storage
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	%r14, %rdi
	movl	$71680, %esi                    ## imm = 0x11800
	callq	_mxf_write_metadata_key
	movq	(%r14), %rdx
	addq	$-16, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_PRINT_KEY
	movl	%ebx, %r13d
	shll	$4, %r13d
	leal	60(%r13), %esi
	movq	%r14, %rdi
	callq	_klv_encode_ber_length
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$15370, %edx                    ## imm = 0x3C0A
	callq	_mxf_write_local_tag
	movq	_ContentStorage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mxf_write_uuid
	movq	(%r14), %rdx
	addq	$-16, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_PRINT_KEY
	orl	$8, %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$6401, %edx                     ## imm = 0x1901
	callq	_mxf_write_local_tag
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mxf_write_refs_count
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,8), %edx
	movl	4(%r15,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_mxf_write_uuid
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$6402, %edx                     ## imm = 0x1902
	callq	_mxf_write_local_tag
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mxf_write_refs_count
	movq	_EssenceContainerData@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxf_write_uuid                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"content storage key"

	.comm	_ContentStorage,4,2             ## @ContentStorage
L_.str.1:                               ## @.str.1
	.asciz	"content storage uid"

	.comm	_EssenceContainerData,4,2       ## @EssenceContainerData
	.no_dead_strip	_mxf_write_content_storage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_content_storage
_mxf_write_content_storage:             ; @mxf_write_content_storage
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #6144
	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, x22
	bl	_PRINT_KEY
	lsl	w8, w21, #4
	add	w1, w8, #60
	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, _ContentStorage@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ContentStorage@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, x22
	bl	_PRINT_KEY
	mov	w1, #8
	bfi	w1, w21, #4, #28
	mov	x0, x19
	mov	w2, #6401
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	x1, x21
	bl	_mxf_write_refs_count
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, w21
	add	x20, x20, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x20, #-4]
	mov	x0, x19
	bl	_mxf_write_uuid
	add	x20, x20, #8
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	w1, #24
	mov	w2, #6402
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #1
	bl	_mxf_write_refs_count
Lloh7:
	adrp	x8, _EssenceContainerData@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EssenceContainerData@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #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	_mxf_write_uuid
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"content storage key"

	.comm	_ContentStorage,4,2             ; @ContentStorage
l_.str.1:                               ; @.str.1
	.asciz	"content storage uid"

	.comm	_EssenceContainerData,4,2       ; @EssenceContainerData
	.no_dead_strip	_mxf_write_content_storage
.subsections_via_symbols
