	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_sync_word
_find_sync_word:                        ## @find_sync_word
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %esi
	jl	LBB0_6
## %bb.1:
	decl	%esi
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movl	%ecx, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	cmpl	%esi, %eax
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	cmpb	$-1, (%rdi,%rcx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rdi,%rcx), %edx
	andb	$-2, %dl
	cmpb	$-6, %dl
	jne	LBB0_4
## %bb.7:
	popq	%rbp
	retq
LBB0_6:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_sync_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_sync_word
_find_sync_word:                        ; @find_sync_word
	.cfi_startproc
; %bb.0:
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	sub	w9, w1, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w10, #1
	cmp	w0, w9
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x10, w0
	ldrb	w11, [x8, x10]
	cmp	w11, #255
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	ldrb	w11, [x8, x10]
	and	w11, w11, #0xfe
	cmp	w11, #250
	b.ne	LBB0_3
; %bb.6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_7:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_sync_word
.subsections_via_symbols
