	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_find_frame_end        ## -- Begin function ff_mpeg4_find_frame_end
	.p2align	4, 0x90
_ff_mpeg4_find_frame_end:               ## @ff_mpeg4_find_frame_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %r8d
	movl	4(%rdi), %r11d
	xorl	%eax, %eax
	testl	%r8d, %r8d
	je	LBB0_9
## %bb.1:
	xorl	%r10d, %r10d
	movl	%r11d, %r9d
	testl	%edx, %edx
	je	LBB0_17
LBB0_2:
	cmpl	%edx, %r10d
	jge	LBB0_14
## %bb.3:
	movq	_SLICE_STARTCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EXT_STARTCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%r10d, %eax
	movl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %r9d
	orl	(%rsi,%rax,4), %r9d
	movl	%r9d, %ecx
	andl	$-256, %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ebx, %r9d
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r11d, %r9d
	je	LBB0_4
## %bb.8:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rcx, (%rdi)
	addl	$-3, %eax
	jmp	LBB0_17
LBB0_9:
	testl	%edx, %edx
	jle	LBB0_15
## %bb.10:
	movq	_VOP_STARTCODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%edx, %r8d
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	shll	$8, %r11d
	orl	(%rsi,%r10,4), %r11d
	cmpl	%r9d, %r11d
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r10
	cmpq	%r10, %r8
	jne	LBB0_11
LBB0_15:
	xorl	%r8d, %r8d
	jmp	LBB0_16
LBB0_14:
	movl	%r9d, %r11d
LBB0_16:
	movl	%r8d, (%rdi)
	movl	%r11d, 4(%rdi)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
LBB0_18:
	incl	%r10d
	movl	$1, %r8d
	testl	%edx, %edx
	jne	LBB0_2
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_VOP_STARTCODE,4,2              ## @VOP_STARTCODE
	.comm	_SLICE_STARTCODE,4,2            ## @SLICE_STARTCODE
	.comm	_EXT_STARTCODE,4,2              ## @EXT_STARTCODE
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_find_frame_end        ; -- Begin function ff_mpeg4_find_frame_end
	.p2align	2
_ff_mpeg4_find_frame_end:               ; @ff_mpeg4_find_frame_end
	.cfi_startproc
; %bb.0:
	ldp	w10, w9, [x0]
	cbz	w10, LBB0_6
; %bb.1:
	mov	w14, #0
	cbz	w2, LBB0_14
LBB0_2:
	cmp	w14, w2
	b.ge	LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _SLICE_STARTCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLICE_STARTCODE@GOTPAGEOFF]
Lloh2:
	adrp	x12, _EXT_STARTCODE@GOTPAGE
Lloh3:
	ldr	x12, [x12, _EXT_STARTCODE@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x8]
	mov	w15, w2
Lloh5:
	ldr	w12, [x12]
	sub	w8, w14, #3
	add	x13, x1, w14, uxtw #2
	sub	x14, x15, w14, uxtw
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	orr	w9, w15, w9, lsl #8
	and	w15, w9, #0xffffff00
	cmp	w15, #256
	ccmp	w9, w11, #4, eq
	ccmp	w9, w12, #4, ne
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	add	x13, x13, #4
	subs	x14, x14, #1
	b.ne	LBB0_4
	b	LBB0_11
LBB0_6:
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x10, #0
Lloh6:
	adrp	x8, _VOP_STARTCODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VOP_STARTCODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w11, w2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x1, x10, lsl #2]
	orr	w9, w12, w9, lsl #8
	cmp	w9, w8
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #1
	cmp	x11, x10
	b.ne	LBB0_8
LBB0_10:
	mov	w10, #0
LBB0_11:
	stp	w10, w9, [x0]
Lloh9:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_12:
	movi	d0, #0xffffffff00000000
	str	d0, [x0]
	mov	x0, x8
	ret
LBB0_13:
	add	w14, w10, #1
	mov	w10, #1
	mov	x9, x8
	cbnz	w2, LBB0_2
LBB0_14:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VOP_STARTCODE,4,2              ; @VOP_STARTCODE
	.comm	_SLICE_STARTCODE,4,2            ; @SLICE_STARTCODE
	.comm	_EXT_STARTCODE,4,2              ; @EXT_STARTCODE
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
.subsections_via_symbols
