	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_avc_subdesc
_mxf_write_avc_subdesc:                 ## @mxf_write_avc_subdesc
	.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, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_mxf_avc_subdescriptor_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	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, %r12d
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$15370, %edx                    ## imm = 0x3C0A
	callq	_mxf_write_local_tag
	movq	_AVCSubDescriptor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mxf_write_uuid
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$33280, %edx                    ## imm = 0x8200
	callq	_mxf_write_local_tag
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_avio_w8
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$33281, %edx                    ## imm = 0x8201
	callq	_mxf_write_local_tag
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_avio_w8
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$33282, %edx                    ## imm = 0x8202
	callq	_mxf_write_local_tag
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_avio_w8
	movq	(%r14), %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxf_update_klv_size            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mxf_avc_subdescriptor_key,4,2  ## @mxf_avc_subdescriptor_key
	.comm	_AVCSubDescriptor,4,2           ## @AVCSubDescriptor
	.no_dead_strip	_mxf_write_avc_subdesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_avc_subdesc
_mxf_write_avc_subdesc:                 ; @mxf_write_avc_subdesc
	.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, x1
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _mxf_avc_subdescriptor_key@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mxf_avc_subdescriptor_key@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16
	bl	_avio_write
	mov	x0, x20
	mov	w1, #0
	bl	_klv_encode_ber4_length
	mov	x0, x20
	bl	_avio_tell
	mov	x22, x0
	mov	x0, x20
	mov	w1, #16
	mov	w2, #15370
	bl	_mxf_write_local_tag
Lloh3:
	adrp	x8, _AVCSubDescriptor@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVCSubDescriptor@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mxf_write_uuid
	mov	x0, x20
	mov	w1, #1
	mov	w2, #33280
	bl	_mxf_write_local_tag
	mov	x0, x20
	mov	w1, #255
	bl	_avio_w8
	mov	x0, x20
	mov	w1, #1
	mov	w2, #33281
	bl	_mxf_write_local_tag
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_avio_w8
	mov	x0, x20
	mov	w1, #1
	mov	w2, #33282
	bl	_mxf_write_local_tag
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_avio_w8
	ldr	x0, [x19]
	mov	x1, x22
	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_update_klv_size
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mxf_avc_subdescriptor_key,4,2  ; @mxf_avc_subdescriptor_key
	.comm	_AVCSubDescriptor,4,2           ; @AVCSubDescriptor
	.no_dead_strip	_mxf_write_avc_subdesc
.subsections_via_symbols
