	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function h261_find_frame_end
LCPI0_0:
	.long	16777200                        ## 0xfffff0
	.long	33554400                        ## 0x1ffffe0
	.long	67108800                        ## 0x3ffffc0
	.long	134217600                       ## 0x7ffff80
LCPI0_1:
	.long	268435200                       ## 0xfffff00
	.long	536870400                       ## 0x1ffffe00
	.long	1073740800                      ## 0x3ffffc00
	.long	2147481600                      ## 0x7ffff800
LCPI0_2:
	.long	4096                            ## 0x1000
	.long	8192                            ## 0x2000
	.long	16384                           ## 0x4000
	.long	32768                           ## 0x8000
LCPI0_3:
	.long	256                             ## 0x100
	.long	512                             ## 0x200
	.long	1024                            ## 0x400
	.long	2048                            ## 0x800
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_h261_find_frame_end:                   ## @h261_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), %esi
	testl	%r8d, %r8d
	sete	%r9b
	xorl	%r10d, %r10d
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.1:
	testl	%r8d, %r8d
	jne	LBB0_8
## %bb.2:
	movl	%ecx, %r8d
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [16777200,33554400,67108800,134217600]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [268435200,536870400,1073740800,2147481600]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [4096,8192,16384,32768]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [256,512,1024,2048]
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r10
	shll	$8, %esi
	orl	(%rdx,%rax,4), %esi
	movd	%esi, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	movdqa	%xmm4, %xmm5
	pand	%xmm0, %xmm5
	pcmpeqd	%xmm3, %xmm5
	pand	%xmm1, %xmm4
	pcmpeqd	%xmm2, %xmm4
	packssdw	%xmm4, %xmm5
	pmovmskb	%xmm5, %eax
	testl	%eax, %eax
	sete	%r9b
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r10), %rax
	cmpq	%r8, %rax
	jb	LBB0_3
## %bb.5:
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_6:
	movl	$1, %r8d
LBB0_7:
	incl	%r10d
LBB0_8:
	testb	%r9b, %r9b
	jne	LBB0_13
## %bb.9:
	cmpl	%ecx, %r10d
	jge	LBB0_13
## %bb.10:
	movl	%r10d, %eax
	movl	%ecx, %r9d
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [16777200,33554400,67108800,134217600]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [268435200,536870400,1073740800,2147481600]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [4096,8192,16384,32768]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [256,512,1024,2048]
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	shll	$8, %esi
	orl	(%rdx,%rax,4), %esi
	movd	%esi, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	movdqa	%xmm4, %xmm5
	pand	%xmm0, %xmm5
	pcmpeqd	%xmm3, %xmm5
	pand	%xmm1, %xmm4
	pcmpeqd	%xmm2, %xmm4
	packssdw	%xmm4, %xmm5
	pmovmskb	%xmm5, %ecx
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rax
	cmpq	%rax, %r9
	jne	LBB0_11
LBB0_13:
	movl	%r8d, (%rdi)
	movl	%esi, 4(%rdi)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_14:
	movl	$0, (%rdi)
	sarl	$24, %esi
	addl	$65280, %esi                    ## imm = 0xFF00
	movl	%esi, 4(%rdi)
	addl	$-2, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
	.no_dead_strip	_h261_find_frame_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function h261_find_frame_end
lCPI0_0:
	.long	16777200                        ; 0xfffff0
	.long	33554400                        ; 0x1ffffe0
	.long	67108800                        ; 0x3ffffc0
	.long	134217600                       ; 0x7ffff80
lCPI0_1:
	.long	268435200                       ; 0xfffff00
	.long	536870400                       ; 0x1ffffe00
	.long	1073740800                      ; 0x3ffffc00
	.long	2147481600                      ; 0x7ffff800
lCPI0_2:
	.long	4096                            ; 0x1000
	.long	8192                            ; 0x2000
	.long	16384                           ; 0x4000
	.long	32768                           ; 0x8000
lCPI0_3:
	.long	256                             ; 0x100
	.long	512                             ; 0x200
	.long	1024                            ; 0x400
	.long	2048                            ; 0x800
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_h261_find_frame_end:                   ; @h261_find_frame_end
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	mov	w12, #0
	ldp	w10, w9, [x0]
	cmp	w10, #0
	cset	w11, eq
	cmp	w3, #1
	b.lt	LBB0_8
; %bb.1:
	cbnz	w10, LBB0_8
; %bb.2:
	mov	x12, #0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	q1, [x8, lCPI0_1@PAGEOFF]
Lloh4:
	adrp	x8, lCPI0_2@PAGE
Lloh5:
	ldr	q2, [x8, lCPI0_2@PAGEOFF]
	mov	w10, w3
Lloh6:
	adrp	x8, lCPI0_3@PAGE
Lloh7:
	ldr	q3, [x8, lCPI0_3@PAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x12
	ldr	w11, [x2, x12, lsl #2]
	orr	w9, w11, w9, lsl #8
	dup.4s	v4, w9
	and.16b	v5, v4, v0
	and.16b	v4, v4, v1
	cmeq.4s	v4, v4, v2
	cmeq.4s	v5, v5, v3
	uzp1.8h	v4, v5, v4
	xtn.8b	v4, v4
	umov.b	w11, v4[1]
	and	w11, w11, #0x1
	umov.b	w12, v4[0]
	and	w12, w12, #0x1
	umov.b	w13, v4[2]
	bfi	w12, w11, #1, #1
	and	w11, w13, #0x1
	bfi	w12, w11, #2, #1
	umov.b	w11, v4[3]
	and	w11, w11, #0x1
	bfi	w12, w11, #3, #1
	umov.b	w11, v4[4]
	and	w11, w11, #0x1
	umov.b	w13, v4[5]
	bfi	w12, w11, #4, #1
	and	w11, w13, #0x1
	bfi	w12, w11, #5, #1
	umov.b	w11, v4[6]
	and	w11, w11, #0x1
	orr	w11, w12, w11, lsl #6
	umov.b	w12, v4[7]
	orr	w11, w11, w12, lsl #7
	ands	w12, w11, #0xff
	cset	w11, eq
	cbnz	w12, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x8, #1
	cmp	x12, x10
	b.lo	LBB0_3
; %bb.5:
	mov	w10, #0
	b	LBB0_7
LBB0_6:
	mov	w10, #1
LBB0_7:
	add	w12, w8, #1
LBB0_8:
	cmp	w11, #0
	ccmp	w12, w3, #0, eq
	b.ge	LBB0_12
; %bb.9:
	mov	w13, w3
	sub	w8, w12, #2
	add	x11, x2, w12, uxtw #2
	sub	x12, x13, w12, uxtw
Lloh8:
	adrp	x13, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x13, lCPI0_0@PAGEOFF]
Lloh10:
	adrp	x13, lCPI0_1@PAGE
Lloh11:
	ldr	q1, [x13, lCPI0_1@PAGEOFF]
Lloh12:
	adrp	x13, lCPI0_2@PAGE
Lloh13:
	ldr	q2, [x13, lCPI0_2@PAGEOFF]
Lloh14:
	adrp	x13, lCPI0_3@PAGE
Lloh15:
	ldr	q3, [x13, lCPI0_3@PAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	orr	w9, w13, w9, lsl #8
	dup.4s	v4, w9
	and.16b	v5, v4, v0
	and.16b	v4, v4, v1
	cmeq.4s	v4, v4, v2
	cmeq.4s	v5, v5, v3
	uzp1.8h	v4, v5, v4
	xtn.8b	v4, v4
	umov.b	w13, v4[1]
	and	w13, w13, #0x1
	umov.b	w14, v4[0]
	and	w14, w14, #0x1
	bfi	w14, w13, #1, #1
	umov.b	w13, v4[2]
	and	w13, w13, #0x1
	bfi	w14, w13, #2, #1
	umov.b	w13, v4[3]
	and	w13, w13, #0x1
	bfi	w14, w13, #3, #1
	umov.b	w13, v4[4]
	and	w13, w13, #0x1
	bfi	w14, w13, #4, #1
	umov.b	w13, v4[5]
	and	w13, w13, #0x1
	bfi	w14, w13, #5, #1
	umov.b	w13, v4[6]
	and	w13, w13, #0x1
	orr	w13, w14, w13, lsl #6
	umov.b	w14, v4[7]
	orr	w13, w13, w14, lsl #7
	tst	w13, #0xff
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w8, #1
	add	x11, x11, #4
	subs	x12, x12, #1
	b.ne	LBB0_10
LBB0_12:
	stp	w10, w9, [x0]
Lloh16:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	b	LBB0_14
LBB0_13:
	mov	w10, #65280
	add	w9, w10, w9, asr #24
	stp	wzr, w9, [x0]
LBB0_14:
	mov	x0, x8
	add	sp, sp, #16
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.no_dead_strip	_h261_find_frame_end
.subsections_via_symbols
