	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h263_find_frame_end         ## -- Begin function ff_h263_find_frame_end
	.p2align	4, 0x90
_ff_h263_find_frame_end:                ## @ff_h263_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
	movl	(%rdi), %r8d
	movl	4(%rdi), %r9d
	xorl	%eax, %eax
	testl	%r8d, %r8d
	je	LBB0_5
## %bb.1:
	cmpl	%edx, %eax
	jge	LBB0_14
LBB0_2:
	movl	%eax, %eax
	movl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %r9d
	orl	(%rsi,%rax,4), %r9d
	movl	%r9d, %ecx
	andl	$-1024, %ecx                    ## imm = 0xFC00
	cmpl	$32768, %ecx                    ## imm = 0x8000
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_3
	jmp	LBB0_14
LBB0_5:
	testl	%edx, %edx
	jle	LBB0_12
## %bb.6:
	movl	%edx, %r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %r9d
	orl	(%rsi,%rax,4), %r9d
	movl	%r9d, %ecx
	andl	$-1024, %ecx                    ## imm = 0xFC00
	cmpl	$32768, %ecx                    ## imm = 0x8000
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rax
	cmpq	%rax, %r8
	jne	LBB0_7
LBB0_12:
	xorl	%r8d, %r8d
	jmp	LBB0_14
LBB0_10:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rcx, (%rdi)
	addl	$-3, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_13:
	incl	%eax
	movl	$1, %r8d
	cmpl	%edx, %eax
	jl	LBB0_2
LBB0_14:
	movl	%r8d, (%rdi)
	movl	%r9d, 4(%rdi)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_h263_find_frame_end         ; -- Begin function ff_h263_find_frame_end
	.p2align	2
_ff_h263_find_frame_end:                ; @ff_h263_find_frame_end
	.cfi_startproc
; %bb.0:
	ldp	w10, w9, [x0]
	cbz	w10, LBB0_5
; %bb.1:
	mov	w12, #0
	cmp	w12, w2
	b.ge	LBB0_12
LBB0_2:
	mov	w13, w2
	sub	w8, w12, #3
	add	x11, x1, w12, uxtw #2
	sub	x12, x13, w12, uxtw
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	orr	w9, w13, w9, lsl #8
	and	w13, w9, #0xfffffc00
	cmp	w13, #8, lsl #12                ; =32768
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	x11, x11, #4
	subs	x12, x12, #1
	b.ne	LBB0_3
	b	LBB0_12
LBB0_5:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x8, #0
	mov	w10, w2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1, x8, lsl #2]
	orr	w9, w11, w9, lsl #8
	and	w11, w9, #0xfffffc00
	cmp	w11, #8, lsl #12                ; =32768
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	x10, x8
	b.ne	LBB0_7
LBB0_9:
	mov	w10, #0
	b	LBB0_12
LBB0_10:
	movi	d0, #0xffffffff00000000
	str	d0, [x0]
	mov	x0, x8
	ret
LBB0_11:
	add	w12, w8, #1
	mov	w10, #1
	cmp	w12, w2
	b.lt	LBB0_2
LBB0_12:
	stp	w10, w9, [x0]
Lloh0:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
.subsections_via_symbols
