	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avc_mp4_find_startcode      ## -- Begin function ff_avc_mp4_find_startcode
	.p2align	4, 0x90
_ff_avc_mp4_find_startcode:             ## @ff_avc_mp4_find_startcode
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r8
	subq	%rdi, %r8
	sarq	$2, %r8
	movslq	%edx, %rax
	cmpq	%rax, %r8
	jge	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	retq
LBB0_2:
	xorl	%ecx, %ecx
	testl	%edx, %edx
	je	LBB0_10
## %bb.3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leal	-1(%rdx), %r8d
	movl	%edx, %eax
	andl	$3, %eax
	cmpl	$3, %r8d
	jb	LBB0_7
## %bb.4:
	andl	$-4, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	$16, %rdi
	addl	$-4, %edx
	jne	LBB0_5
## %bb.6:
	movl	-16(%rdi), %edx
	movl	-12(%rdi), %ecx
	shll	$16, %edx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	-8(%rdi), %ecx
	shll	$8, %ecx
	orl	-4(%rdi), %ecx
LBB0_7:
	testl	%eax, %eax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %ecx
	orl	(%rdi), %ecx
	addq	$4, %rdi
	decl	%eax
	jne	LBB0_8
LBB0_9:
	subq	%rdi, %rsi
	sarq	$2, %rsi
	movl	%ecx, %ecx
	movq	%rsi, %r8
	popq	%rbp
LBB0_10:
	xorl	%eax, %eax
	cmpq	%rcx, %r8
	leaq	(%rdi,%rcx,4), %rcx
	cmovgeq	%rcx, %rax
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avc_mp4_find_startcode      ; -- Begin function ff_avc_mp4_find_startcode
	.p2align	2
_ff_avc_mp4_find_startcode:             ; @ff_avc_mp4_find_startcode
	.cfi_startproc
; %bb.0:
	sub	x8, x1, x0
	asr	x9, x8, #2
	cmp	x9, w2, sxtw
	b.ge	LBB0_2
; %bb.1:
	mov	x0, #0
	ret
LBB0_2:
	cbz	w2, LBB0_6
; %bb.3:
	mov	w8, #0
	sub	w9, w2, #1
	add	x9, x9, #1
	mov	x10, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	orr	w8, w11, w8, lsl #8
	subs	w2, w2, #1
	b.ne	LBB0_4
; %bb.5:
	add	x0, x0, x9, lsl #2
	sub	x9, x1, x0
	asr	x9, x9, #2
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	add	x10, x0, x8, lsl #2
	cmp	x9, x8
	csel	x0, xzr, x10, lt
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
