	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_parse_mpeg2_frame
_mov_parse_mpeg2_frame:                 ## @mov_parse_mpeg2_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	cmpl	$5, %r8d
	jl	LBB0_9
## %bb.1:
	addl	$-4, %r8d
	movq	8(%rdi), %rcx
	xorl	%edi, %edi
	movl	$-1, %eax
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rcx,%rdi,4), %edx
	shrl	$6, %edx
	andl	$1, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%rdi, %r8
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %eax
	addl	(%rcx,%rdi,4), %eax
	cmpl	$440, %eax                      ## imm = 0x1B8
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_8
## %bb.4:
	movl	4(%rcx,%rdi,4), %eax
	movl	8(%rcx,%rdi,4), %ecx
	shll	$2, %eax
	sarl	$6, %ecx
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %r8
	movq	%r8, %rdi
	testl	%edx, %edx
	jne	LBB0_6
## %bb.5:
	movq	_MOV_PARTIAL_SYNC_SAMPLE@GOTPCREL(%rip), %rdi
LBB0_6:
	orl	%eax, %ecx
	cmoveq	%r8, %rdi
	movl	(%rdi), %eax
	movl	%eax, (%rsi)
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOV_SYNC_SAMPLE,4,2            ## @MOV_SYNC_SAMPLE
	.comm	_MOV_PARTIAL_SYNC_SAMPLE,4,2    ## @MOV_PARTIAL_SYNC_SAMPLE
	.no_dead_strip	_mov_parse_mpeg2_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_parse_mpeg2_frame
_mov_parse_mpeg2_frame:                 ; @mov_parse_mpeg2_frame
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #5
	b.lt	LBB0_7
; %bb.1:
	mov	w8, #0
	sub	w9, w9, #4
	ldr	x10, [x0, #8]
	add	x10, x10, #8
	mov	w11, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x10, #8]
	ubfx	w8, w8, #6, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	add	w11, w12, w11, lsl #8
	cmp	w11, #440
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #256
	b.ne	LBB0_3
; %bb.6:
	ldp	w9, w10, [x10, #-4]
	asr	w10, w10, #6
	orr	w9, w10, w9, lsl #2
	cmp	w8, #0
Lloh0:
	adrp	x8, _MOV_SYNC_SAMPLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOV_SYNC_SAMPLE@GOTPAGEOFF]
	ccmp	w9, #0, #4, eq
Lloh2:
	adrp	x9, _MOV_PARTIAL_SYNC_SAMPLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MOV_PARTIAL_SYNC_SAMPLE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x1]
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MOV_SYNC_SAMPLE,4,2            ; @MOV_SYNC_SAMPLE
	.comm	_MOV_PARTIAL_SYNC_SAMPLE,4,2    ; @MOV_PARTIAL_SYNC_SAMPLE
	.no_dead_strip	_mov_parse_mpeg2_frame
.subsections_via_symbols
