	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_avc_find_startcode_internal
_ff_avc_find_startcode_internal:        ## @ff_avc_find_startcode_internal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movl	%eax, %ecx
	andl	$3, %ecx
	shlq	$2, %rcx
	negq	%rcx
	leaq	(%rdi,%rcx), %rdx
	addq	$16, %rdx
	leaq	-12(%rsi), %r9
	cmpq	%rdi, %rdx
	jbe	LBB0_9
## %bb.1:
	cmpq	%rax, %r9
	jbe	LBB0_9
## %bb.2:
	addq	$4, %rax
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -4(%rdi)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%rdi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, 4(%rdi)
	je	LBB0_34
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	4(%rdi), %rax
	cmpq	%rdx, %rdi
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r9, %rdi
	movq	%rax, %rdi
	jb	LBB0_3
LBB0_8:
	addq	$-4, %rax
LBB0_9:
	leaq	-24(%rsi), %r8
	cmpq	%r8, %rax
	jae	LBB0_25
## %bb.10:
	addq	$12, %rax
	movq	%rax, %rdi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	testl	%edx, %edx
	je	LBB0_22
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	16(%rax), %rdi
	addq	$4, %rax
	cmpq	%r8, %rax
	jae	LBB0_24
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rax
	movl	-12(%rdi), %edi
	movl	%edi, %edx
	notl	%edx
	leal	-16843009(%rdi), %ecx
	andl	%edx, %ecx
	testl	$-2139062144, %ecx              ## imm = 0x80808080
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -8(%rax)
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-4(%rax), %edx
	testl	%edi, %edi
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$1, %edx
	je	LBB0_32
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	testl	%edx, %edx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$1, (%rax)
	je	LBB0_35
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -4(%rax)
	movl	4(%rax), %edx
	jne	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$1, %edx
	jne	LBB0_11
	jmp	LBB0_33
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$1, 8(%rax)
	jne	LBB0_12
	jmp	LBB0_23
LBB0_24:
	addq	$-12, %rdi
	movq	%rdi, %rax
LBB0_25:
	cmpq	%r9, %rax
	jb	LBB0_28
LBB0_26:
	movq	%rsi, %rax
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	addq	$4, %rax
	cmpq	%r9, %rax
	jae	LBB0_26
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	$0, 4(%rax)
	jne	LBB0_27
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	$1, 8(%rax)
	jne	LBB0_27
LBB0_23:
	popq	%rbp
	retq
LBB0_32:
	addq	$-12, %rax
	popq	%rbp
	retq
LBB0_33:
	addq	$-4, %rax
	popq	%rbp
	retq
LBB0_34:
	addq	$-4, %rdi
	movq	%rdi, %rax
	popq	%rbp
	retq
LBB0_35:
	addq	$-8, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ff_avc_find_startcode_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_avc_find_startcode_internal
_ff_avc_find_startcode_internal:        ; @ff_avc_find_startcode_internal
	.cfi_startproc
; %bb.0:
	and	x8, x0, #0x3
	sub	x8, x0, x8, lsl #2
	add	x9, x8, #16
	sub	x8, x1, #12
	cmp	x9, x0
	ccmp	x8, x0, #0, hi
	b.ls	LBB0_8
; %bb.1:
	add	x10, x0, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	cbnz	w11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x10]
	cbnz	w11, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x10, #4]
	cmp	w11, #1
	b.eq	LBB0_31
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x10, #4
	cmp	x10, x9
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x10, x8
	mov	x10, x11
	b.lo	LBB0_2
LBB0_7:
	sub	x0, x11, #4
LBB0_8:
	sub	x9, x1, #24
	cmp	x0, x9
	b.hs	LBB0_22
; %bb.9:
	mov	w10, #-2139062144
	add	x0, x0, #12
	mov	w11, #65279
	movk	w11, #65278, lsl #16
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w12, LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x12, x0, #16
	add	x13, x0, #4
	mov	x0, x12
	cmp	x13, x9
	b.hs	LBB0_21
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x0, #-12]
	add	w13, w12, w11
	bic	w14, w10, w12
	tst	w14, w13
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w13, [x0, #-8]
	cbnz	w13, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w13, [x0, #-4]
	cmp	w12, #0
	ccmp	w13, #1, #0, eq
	b.eq	LBB0_29
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w13, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w12, [x0]
	cmp	w12, #1
	b.eq	LBB0_32
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w12, [x0]
	cbnz	w12, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w13, [x0, #-4]
	ldr	w12, [x0, #4]
	cbnz	w13, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w12, #1
	b.ne	LBB0_10
	b	LBB0_30
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w12, [x0, #8]
	cmp	w12, #1
	b.ne	LBB0_11
	b	LBB0_28
LBB0_21:
	sub	x0, x12, #12
LBB0_22:
	cmp	x0, x8
	b.lo	LBB0_25
LBB0_23:
	mov	x0, x1
	ret
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x0, x0, #4
	cmp	x0, x8
	b.hs	LBB0_23
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0]
	cbnz	w9, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w9, [x0, #4]
	cbnz	w9, LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w9, [x0, #8]
	cmp	w9, #1
	b.ne	LBB0_24
LBB0_28:
	ret
LBB0_29:
	sub	x0, x0, #12
	ret
LBB0_30:
	sub	x0, x0, #4
	ret
LBB0_31:
	sub	x0, x10, #4
	ret
LBB0_32:
	sub	x0, x0, #8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ff_avc_find_startcode_internal
.subsections_via_symbols
