	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_multi_descriptor
_mxf_write_multi_descriptor:            ## @mxf_write_multi_descriptor
	.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	%rdi, %r14
	movq	16(%rdi), %r15
	movq	24(%rdi), %rbx
	movq	%r15, %rdi
	movl	$82944, %esi                    ## imm = 0x14400
	callq	_mxf_write_metadata_key
	movq	(%r15), %rdx
	addq	$-16, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_PRINT_KEY
	movl	(%r14), %esi
	shll	$4, %esi
	addl	$64, %esi
	movq	%r15, %rdi
	callq	_klv_encode_ber_length
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$15370, %edx                    ## imm = 0x3C0A
	callq	_mxf_write_local_tag
	movq	_MultipleDescriptor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_mxf_write_uuid
	movq	(%r15), %rdx
	addq	$-16, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_PRINT_KEY
	movq	%r15, %rdi
	movl	$8, %esi
	movl	$12289, %edx                    ## imm = 0x3001
	callq	_mxf_write_local_tag
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_avio_wb32
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_avio_wb32
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$12292, %edx                    ## imm = 0x3004
	callq	_mxf_write_local_tag
	cmpl	$1, (%rbx)
	jle	LBB0_2
## %bb.1:
	movq	_multiple_desc_ul@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_mxf_essence_container_uls@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	shlq	$3, %rax
	addq	(%rcx), %rax
LBB0_3:
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_avio_write
	movl	(%r14), %esi
	shll	$4, %esi
	orl	$8, %esi
	movq	%r15, %rdi
	movl	$16129, %edx                    ## imm = 0x3F01
	callq	_mxf_write_local_tag
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mxf_write_refs_count
	cmpq	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_SubDescriptor@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mxf_write_uuid
	incq	%rbx
	cmpq	%rbx, (%r14)
	jg	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multiple descriptor key"

	.comm	_MultipleDescriptor,4,2         ## @MultipleDescriptor
L_.str.1:                               ## @.str.1
	.asciz	"multi_desc uid"

	.comm	_multiple_desc_ul,8,3           ## @multiple_desc_ul
	.comm	_mxf_essence_container_uls,8,3  ## @mxf_essence_container_uls
	.comm	_SubDescriptor,4,2              ## @SubDescriptor
	.no_dead_strip	_mxf_write_multi_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_multi_descriptor
_mxf_write_multi_descriptor:            ; @mxf_write_multi_descriptor
	.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	x19, x0
	ldp	x20, x22, [x0, #16]
	mov	x0, x20
	mov	w1, #17408
	movk	w1, #1, lsl #16
	bl	_mxf_write_metadata_key
	ldr	x8, [x20]
	sub	x2, x8, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_PRINT_KEY
	ldr	w8, [x19]
	lsl	w8, w8, #4
	add	w1, w8, #64
	mov	x0, x20
	bl	_klv_encode_ber_length
	mov	x0, x20
	mov	w1, #16
	mov	w2, #15370
	bl	_mxf_write_local_tag
Lloh2:
	adrp	x8, _MultipleDescriptor@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MultipleDescriptor@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mxf_write_uuid
	ldr	x8, [x20]
	sub	x2, x8, #16
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_PRINT_KEY
	mov	w21, #8
	mov	x0, x20
	mov	w1, #8
	mov	w2, #12289
	bl	_mxf_write_local_tag
	ldr	w1, [x22, #8]
	mov	x0, x20
	bl	_avio_wb32
	ldr	w1, [x22, #4]
	mov	x0, x20
	bl	_avio_wb32
	mov	x0, x20
	mov	w1, #16
	mov	w2, #12292
	bl	_mxf_write_local_tag
	ldr	w8, [x22]
	cmp	w8, #1
	b.le	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _multiple_desc_ul@GOTPAGE
Lloh8:
	ldr	x8, [x8, _multiple_desc_ul@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _mxf_essence_container_uls@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mxf_essence_container_uls@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x8]
	add	x8, x9, x8, lsl #3
LBB0_3:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #16
	bl	_avio_write
	ldr	w8, [x19]
	bfi	w21, w8, #4, #28
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16129
	bl	_mxf_write_local_tag
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mxf_write_refs_count
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
Lloh12:
	adrp	x22, _SubDescriptor@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SubDescriptor@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_mxf_write_uuid
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x8, x21
	b.gt	LBB0_5
LBB0_6:
	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
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multiple descriptor key"

	.comm	_MultipleDescriptor,4,2         ; @MultipleDescriptor
l_.str.1:                               ; @.str.1
	.asciz	"multi_desc uid"

	.comm	_multiple_desc_ul,8,3           ; @multiple_desc_ul
	.comm	_mxf_essence_container_uls,8,3  ; @mxf_essence_container_uls
	.comm	_SubDescriptor,4,2              ; @SubDescriptor
	.no_dead_strip	_mxf_write_multi_descriptor
.subsections_via_symbols
