	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_generic_desc
_mxf_write_generic_desc:                ## @mxf_write_generic_desc
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	16(%rdi), %r13
	movq	16(%rsi), %r14
	movq	%rbx, %rdi
	movl	%edx, %esi
	movl	$16, %edx
	callq	_avio_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_klv_encode_ber4_length
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$15370, %edx                    ## imm = 0x3C0A
	callq	_mxf_write_local_tag
	movq	_SubDescriptor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mxf_write_uuid
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$12294, %edx                    ## imm = 0x3006
	callq	_mxf_write_local_tag
	movl	(%r15), %esi
	addl	$2, %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$12289, %edx                    ## imm = 0x3001
	callq	_mxf_write_local_tag
	movq	(%r12), %rax
	cmpq	_ff_mxf_d10_muxer@GOTPCREL(%rip), %rax
	je	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_AV_CODEC_ID_PCM_S24LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
LBB0_4:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	4(%r13), %esi
	jmp	LBB0_5
LBB0_3:
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	$1, %esi
LBB0_5:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%rbx, %rdi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$12292, %edx                    ## imm = 0x3004
	callq	_mxf_write_local_tag
	movq	_mxf_essence_container_uls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_avio_write
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SubDescriptor,4,2              ## @SubDescriptor
	.comm	_ff_mxf_d10_muxer,4,2           ## @ff_mxf_d10_muxer
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_S24LE,8,3      ## @AV_CODEC_ID_PCM_S24LE
	.comm	_mxf_essence_container_uls,8,3  ## @mxf_essence_container_uls
	.no_dead_strip	_mxf_write_generic_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_generic_desc
_mxf_write_generic_desc:                ; @mxf_write_generic_desc
	.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, x1
	mov	x22, x0
	ldr	x23, [x1, #16]
	ldp	x19, x24, [x0, #8]
	mov	x0, x19
	mov	x1, x2
	mov	w2, #16
	bl	_avio_write
	mov	x0, x19
	mov	w1, #0
	bl	_klv_encode_ber4_length
	mov	x0, x19
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #16
	mov	w2, #15370
	bl	_mxf_write_local_tag
Lloh0:
	adrp	x8, _SubDescriptor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SubDescriptor@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mxf_write_uuid
	mov	x0, x19
	mov	w1, #4
	mov	w2, #12294
	bl	_mxf_write_local_tag
	ldr	w8, [x21]
	add	w1, w8, #2
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #8
	mov	w2, #12289
	bl	_mxf_write_local_tag
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _ff_mxf_d10_muxer@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_mxf_d10_muxer@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _AV_CODEC_ID_PCM_S24LE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AV_CODEC_ID_PCM_S24LE@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_avio_wb32
	mov	w1, #1
	b	LBB0_4
LBB0_3:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x24, #4]
LBB0_4:
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #16
	mov	w2, #12292
	bl	_mxf_write_local_tag
Lloh11:
	adrp	x8, _mxf_essence_container_uls@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mxf_essence_container_uls@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	w2, #16
	bl	_avio_write
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SubDescriptor,4,2              ; @SubDescriptor
	.comm	_ff_mxf_d10_muxer,4,2           ; @ff_mxf_d10_muxer
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_S24LE,8,3      ; @AV_CODEC_ID_PCM_S24LE
	.comm	_mxf_essence_container_uls,8,3  ; @mxf_essence_container_uls
	.no_dead_strip	_mxf_write_generic_desc
.subsections_via_symbols
