	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_sequence
_mxf_write_sequence:                    ## @mxf_write_sequence
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	8(%rdi), %r12
	movq	%rbx, %rdi
	movl	$69376, %esi                    ## imm = 0x10F00
	callq	_mxf_write_metadata_key
	movq	(%rbx), %rdx
	addq	$-16, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_PRINT_KEY
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_klv_encode_ber_length
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$15370, %edx                    ## imm = 0x3C0A
	callq	_mxf_write_local_tag
	movq	_Sequence@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_mxf_write_uuid
	movq	(%rbx), %rdx
	addq	$-16, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_PRINT_KEY
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mxf_write_common_fields
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	$4097, %edx                     ## imm = 0x1001
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mxf_write_refs_count
	cmpq	%r14, 8(%r12)
	jne	LBB0_1
## %bb.2:
	movq	_TimecodeComponent@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SourceClip@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxf_write_uuid                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sequence key"

	.comm	_Sequence,4,2                   ## @Sequence
L_.str.1:                               ## @.str.1
	.asciz	"sequence uid"

	.comm	_TimecodeComponent,4,2          ## @TimecodeComponent
	.comm	_SourceClip,4,2                 ## @SourceClip
	.no_dead_strip	_mxf_write_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_sequence
_mxf_write_sequence:                    ; @mxf_write_sequence
	.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, x1
	mov	x21, x0
	ldp	x19, x22, [x0]
	mov	x0, x19
	mov	w1, #3840
	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, x21
	bl	_PRINT_KEY
	mov	x0, x19
	mov	w1, #80
	bl	_klv_encode_ber_length
	mov	x0, x19
	mov	w1, #16
	mov	w2, #15370
	bl	_mxf_write_local_tag
Lloh2:
	adrp	x8, _Sequence@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Sequence@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	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, x21
	bl	_PRINT_KEY
	mov	x0, x21
	mov	x1, x20
	bl	_mxf_write_common_fields
	mov	x0, x19
	mov	w1, #24
	mov	w2, #4097
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #1
	bl	_mxf_write_refs_count
	ldr	x8, [x22, #8]
Lloh7:
	adrp	x9, _TimecodeComponent@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TimecodeComponent@GOTPAGEOFF]
Lloh9:
	adrp	x10, _SourceClip@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SourceClip@GOTPAGEOFF]
	cmp	x8, x20
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.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	"sequence key"

	.comm	_Sequence,4,2                   ; @Sequence
l_.str.1:                               ; @.str.1
	.asciz	"sequence uid"

	.comm	_TimecodeComponent,4,2          ; @TimecodeComponent
	.comm	_SourceClip,4,2                 ; @SourceClip
	.no_dead_strip	_mxf_write_sequence
.subsections_via_symbols
