	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_structural_component
_mxf_write_structural_component:        ## @mxf_write_structural_component
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	%rbx, %rdi
	movl	$69888, %esi                    ## imm = 0x11100
	callq	_mxf_write_metadata_key
	movq	(%rbx), %rdx
	addq	$-16, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_PRINT_KEY
	movq	%rbx, %rdi
	movl	$108, %esi
	callq	_klv_encode_ber_length
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$15370, %edx                    ## imm = 0x3C0A
	callq	_mxf_write_local_tag
	movq	_SourceClip@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_mxf_write_uuid
	movq	(%rbx), %rdx
	addq	$-16, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_PRINT_KEY
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mxf_write_common_fields
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$4609, %edx                     ## imm = 0x1201
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb64
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$4353, %edx                     ## imm = 0x1101
	callq	_mxf_write_local_tag
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mxf_write_umid
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb64
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb64
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb64
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb64
LBB0_3:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$4354, %edx                     ## imm = 0x1102
	callq	_mxf_write_local_tag
	movq	(%r15), %rax
	movq	_SourcePackage@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 8(%r15)
	je	LBB0_5
LBB0_6:
	movq	(%r14), %rsi
	addq	$2, %rsi
	jmp	LBB0_7
LBB0_5:
	xorl	%esi, %esi
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avio_wb32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sturctural component key"

	.comm	_SourceClip,4,2                 ## @SourceClip
L_.str.1:                               ## @.str.1
	.asciz	"structural component uid"

	.comm	_SourcePackage,8,3              ## @SourcePackage
	.no_dead_strip	_mxf_write_structural_component
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_structural_component
_mxf_write_structural_component:        ; @mxf_write_structural_component
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldp	x19, x23, [x0]
	mov	x0, x19
	mov	w1, #4352
	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
	mov	x0, x19
	mov	w1, #108
	bl	_klv_encode_ber_length
	mov	x0, x19
	mov	w1, #16
	mov	w2, #15370
	bl	_mxf_write_local_tag
Lloh2:
	adrp	x8, _SourceClip@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SourceClip@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x23]
	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, x22
	bl	_PRINT_KEY
	mov	x0, x22
	mov	x1, x20
	bl	_mxf_write_common_fields
	mov	x0, x19
	mov	w1, #8
	mov	w2, #4609
	bl	_mxf_write_local_tag
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb64
	mov	x0, x19
	mov	w1, #32
	mov	w2, #4353
	bl	_mxf_write_local_tag
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mxf_write_umid
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb64
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb64
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb64
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb64
LBB0_3:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #4354
	bl	_mxf_write_local_tag
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _SourcePackage@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SourcePackage@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
LBB0_5:
	ldr	x8, [x20]
	add	x1, x8, #2
	b	LBB0_7
LBB0_6:
	mov	x1, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_avio_wb32
	.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	"sturctural component key"

	.comm	_SourceClip,4,2                 ; @SourceClip
l_.str.1:                               ; @.str.1
	.asciz	"structural component uid"

	.comm	_SourcePackage,8,3              ; @SourcePackage
	.no_dead_strip	_mxf_write_structural_component
.subsections_via_symbols
