	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_find_sync_word             ## -- Begin function mp3_find_sync_word
	.p2align	4, 0x90
_mp3_find_sync_word:                    ## @mp3_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
	movslq	%esi, %rax
	leaq	(%rdi,%rax), %r8
	addq	$-3, %r8
	movl	$-1, %eax
	cmpq	%rdi, %r8
	jae	LBB0_1
LBB0_10:
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movq	%rsi, %rdx
	cmpq	%r8, %rsi
	ja	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$-1, (%rdx)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rdx), %rsi
	movzbl	1(%rdx), %r9d
	movl	%r9d, %ecx
	notl	%ecx
	testb	$-8, %cl
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$6, %r9d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	2(%rdx), %esi
	movl	%esi, %ecx
	andl	$-16, %ecx
	cmpl	$32, %ecx
	jb	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$240, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$12, %esi
	jne	LBB0_8
## %bb.11:
	subl	%edi, %edx
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_find_sync_word             ; -- Begin function mp3_find_sync_word
	.p2align	2
_mp3_find_sync_word:                    ; @mp3_find_sync_word
	.cfi_startproc
; %bb.0:
	add	x8, x0, w1, sxtw
	sub	x8, x8, #3
	cmp	x8, x0
	b.hs	LBB0_2
LBB0_1:
	mov	w0, #-1
	ret
LBB0_2:
	mov	x9, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x10
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.hi	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #255
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, x9
	ldrb	w11, [x10, #1]!
	mvn	w12, w11
	and	w12, w12, #0xf8
	and	w11, w11, #0x6
	cmp	w12, #0
	ccmp	w11, #0, #4, eq
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w10, [x9, #2]
	and	w11, w10, #0xf0
	cmp	w11, #32
	b.lo	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w10, w10, #0xc
	cmp	w11, #240
	ccmp	w10, #0, #0, ne
	b.ne	LBB0_4
; %bb.9:
	sub	w0, w9, w0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
