	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_mpegvideo_desc
_mxf_write_mpegvideo_desc:              ## @mxf_write_mpegvideo_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, %rbx
	movq	(%rdi), %r15
	movq	(%rsi), %rax
	movq	8(%rsi), %r12
	movl	(%rax), %r13d
	movl	4(%rax), %r14d
	movq	_mxf_mpegvideo_descriptor_key@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mxf_write_cdci_common
	movl	%eax, %esi
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	shll	$4, %r13d
	orl	%r14d, %r13d
	movq	%r15, %rdi
	movl	%esi, %r14d
	movl	$4, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_mxf_write_local_tag
	movl	16(%r12), %esi
	movq	%r15, %rdi
	callq	_avio_wb32
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$32775, %edx                    ## imm = 0x8007
	callq	_mxf_write_local_tag
	movq	(%rbx), %rax
	movl	%r13d, %esi
	orl	$128, %esi
	cmpl	$0, (%rax)
	cmovnel	%r13d, %esi
	movq	%r15, %rdi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$32771, %edx                    ## imm = 0x8003
	callq	_mxf_write_local_tag
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$32772, %edx                    ## imm = 0x8004
	callq	_mxf_write_local_tag
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$32774, %edx                    ## imm = 0x8006
	callq	_mxf_write_local_tag
	movl	12(%r12), %esi
	movq	%r15, %rdi
	callq	_avio_wb16
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$32776, %edx                    ## imm = 0x8008
	callq	_mxf_write_local_tag
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	_avio_wb16
	movl	%r14d, %esi
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxf_update_klv_size            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mxf_mpegvideo_descriptor_key,4,2 ## @mxf_mpegvideo_descriptor_key
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.no_dead_strip	_mxf_write_mpegvideo_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_mpegvideo_desc
_mxf_write_mpegvideo_desc:              ; @mxf_write_mpegvideo_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
	ldr	x19, [x0]
	ldp	x8, x22, [x1]
	ldp	w23, w24, [x8]
Lloh0:
	adrp	x8, _mxf_mpegvideo_descriptor_key@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mxf_mpegvideo_descriptor_key@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_mxf_write_cdci_common
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _AV_CODEC_ID_H264@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	orr	w23, w24, w23, lsl #4
	mov	x0, x19
	mov	w1, #4
	mov	w2, #32768
	bl	_mxf_write_local_tag
	ldr	w1, [x22, #16]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #1
	mov	w2, #32775
	bl	_mxf_write_local_tag
	ldr	x8, [x21]
	ldr	w8, [x8]
	orr	w9, w23, #0x80
	cmp	w8, #0
	csel	w1, w9, w23, eq
	mov	x0, x19
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #1
	mov	w2, #32771
	bl	_mxf_write_local_tag
	ldr	w1, [x22]
	mov	x0, x19
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #1
	mov	w2, #32772
	bl	_mxf_write_local_tag
	ldr	w1, [x22, #4]
	mov	x0, x19
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #2
	mov	w2, #32774
	bl	_mxf_write_local_tag
	ldr	w1, [x22, #12]
	mov	x0, x19
	bl	_avio_wb16
	mov	x0, x19
	mov	w1, #2
	mov	w2, #32776
	bl	_mxf_write_local_tag
	ldr	w1, [x22, #8]
	mov	x0, x19
	bl	_avio_wb16
LBB0_2:
	mov	x0, x19
	mov	x1, 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
	b	_mxf_update_klv_size
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mxf_mpegvideo_descriptor_key,4,2 ; @mxf_mpegvideo_descriptor_key
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.no_dead_strip	_mxf_write_mpegvideo_desc
.subsections_via_symbols
