	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gxf_write_umf_media_mpeg
_gxf_write_umf_media_mpeg:              ## @gxf_write_umf_media_mpeg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	8(%rsi), %r15
	movq	(%rax), %rax
	movq	_AV_PIX_FMT_YUV422P@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	incl	%esi
	callq	_avio_wl32
	xorl	%esi, %esi
	cmpl	$1, (%r15)
	sete	%sil
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_avio_wl32
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_wl32
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	_AV_CODEC_ID_MPEG1VIDEO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rcx
	sete	%dl
	cmpq	(%rcx), %rax
	movl	$2, %esi
	cmovnel	%edx, %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	movl	$32, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_YUV422P,8,3         ## @AV_PIX_FMT_YUV422P
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_MPEG1VIDEO,8,3     ## @AV_CODEC_ID_MPEG1VIDEO
	.no_dead_strip	_gxf_write_umf_media_mpeg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gxf_write_umf_media_mpeg
_gxf_write_umf_media_mpeg:              ; @gxf_write_umf_media_mpeg
	.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	x20, x1
	mov	x19, x0
	ldp	x8, x21, [x1]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AV_PIX_FMT_YUV422P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_YUV422P@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #1
	cinc	w1, w8, eq
	bl	_avio_wl32
	ldr	w8, [x21]
	cmp	w8, #1
	cset	w1, eq
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #3
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #1
	bl	_avio_wl32
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_avio_wl32
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_avio_wl32
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _AV_CODEC_ID_MPEG1VIDEO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_ID_MPEG1VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	cset	w10, eq
	cmp	x8, x9
	mov	w8, #2
	csel	w1, w8, w10, eq
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl32
	mov	w0, #32
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_YUV422P,8,3         ; @AV_PIX_FMT_YUV422P
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_MPEG1VIDEO,8,3     ; @AV_CODEC_ID_MPEG1VIDEO
	.no_dead_strip	_gxf_write_umf_media_mpeg
.subsections_via_symbols
