	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opus_find_frame_end
_opus_find_frame_end:                   ## @opus_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	movl	$0, -52(%rbp)
	movl	$0, (%r8)
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.1:
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r9
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	(%r15), %ecx
	movl	24(%r15), %ebx
	movl	28(%r15), %r14d
	cmpl	$3, %r12d
	jl	LBB0_8
## %bb.2:
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r9, %rbx
	movq	%r13, %rdi
	callq	_AV_RB16
	movq	_OPUS_TS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_OPUS_TS_HEADER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	movl	$1, (%r15)
	movl	$1, %ecx
	jmp	LBB0_7
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_40
LBB0_6:
	movl	(%r15), %ecx
LBB0_7:
	movq	%rbx, %r9
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_8:
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.9:
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.10:
	xorl	%ebx, %ebx
	cmpl	$3, %r12d
	jl	LBB0_16
## %bb.11:
	leal	-2(%r12), %eax
	movq	_OPUS_TS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_OPUS_TS_HEADER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	shll	$8, %r14d
	orl	(%r13,%rsi,4), %r14d
	movl	%r14d, %ebx
	andl	%edx, %ebx
	cmpl	%edi, %ebx
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_12
## %bb.14:
	xorl	%ebx, %ebx
LBB0_15:
	testl	%ecx, %ecx
	je	LBB0_19
LBB0_16:
	cmpq	$0, (%r9)
	jne	LBB0_20
	jmp	LBB0_23
LBB0_17:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r12d, %edx
	subl	%esi, %edx
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	callq	_parse_opus_ts_header
	testq	%rax, %rax
	je	LBB0_36
## %bb.18:
	movq	%rax, %rcx
	subq	%r13, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	(%r15), %ecx
	movl	$1, %ebx
	movq	%rax, %r13
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	testl	%ecx, %ecx
	jne	LBB0_16
LBB0_19:
	movl	%r12d, -52(%rbp)
	cmpq	$0, (%r9)
	je	LBB0_23
LBB0_20:
	cmpl	$0, 4(%r15)
	jne	LBB0_23
## %bb.21:
	leaq	16(%r15), %rsi
	movq	%r9, %rdi
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	callq	_ff_opus_parse_extradata
	testl	%eax, %eax
	js	LBB0_34
## %bb.22:
	leaq	20(%r15), %rdi
	callq	_av_freep
	movl	$1, 4(%r15)
	movq	-48(%rbp), %r9                  ## 8-byte Reload
LBB0_23:
	movl	-52(%rbp), %edx
	cmpl	%r12d, %edx
	jg	LBB0_28
## %bb.24:
	cmpl	$0, (%r15)
	je	LBB0_26
## %bb.25:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	je	LBB0_33
LBB0_26:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	leaq	8(%r15), %rdi
	xorl	%ecx, %ecx
	cmpl	$2, 16(%r15)
	setge	%cl
	movq	%r13, %rsi
	callq	_ff_opus_parse_packet
	testl	%eax, %eax
	js	LBB0_35
## %bb.27:
	movl	12(%r15), %eax
	imull	8(%r15), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_28:
	cmpl	$0, (%r15)
	je	LBB0_40
## %bb.29:
	testl	%ebx, %ebx
	je	LBB0_32
## %bb.30:
	movl	-52(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	addl	%eax, %edx
	movl	%ebx, %ecx
	cmpl	%r12d, %edx
	jg	LBB0_33
## %bb.31:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rcx, 24(%r15)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rcx), %eax
	movl	%eax, %r12d
	jmp	LBB0_40
LBB0_32:
	xorl	%ecx, %ecx
LBB0_33:
	movl	%ecx, 24(%r15)
	movl	%r14d, 28(%r15)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_34:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_37
LBB0_35:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movl	$0, 24(%r15)
	jmp	LBB0_38
LBB0_36:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_37:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
LBB0_38:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_39:
	movl	(%rax), %r12d
LBB0_40:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPUS_TS_MASK,4,2               ## @OPUS_TS_MASK
	.comm	_OPUS_TS_HEADER,4,2             ## @OPUS_TS_HEADER
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error parsing Ogg TS header.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Error parsing Ogg extradata.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error parsing Opus packet header.\n"

	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
	.no_dead_strip	_opus_find_frame_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opus_find_frame_end
_opus_find_frame_end:                   ; @opus_find_frame_end
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	ldr	x24, [x0, #8]
	str	wzr, [sp, #12]
	str	wzr, [x4]
	cbz	w3, LBB0_37
; %bb.1:
	mov	x20, x4
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldp	w26, w25, [x24, #24]
	ldr	w8, [x24]
	cmp	w19, #3
	b.lt	LBB0_6
; %bb.2:
	cbnz	w8, LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_AV_RB16
Lloh0:
	adrp	x8, _OPUS_TS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPUS_TS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _OPUS_TS_HEADER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPUS_TS_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x24]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x24]
LBB0_6:
	cmp	w8, #0
	ccmp	w26, #0, #0, ne
	b.eq	LBB0_10
LBB0_7:
	cbnz	w8, LBB0_9
; %bb.8:
	str	w19, [sp, #12]
LBB0_9:
	ldr	x8, [x21]
	cbnz	x8, LBB0_16
	b	LBB0_19
LBB0_10:
	cmp	w19, #3
	b.lt	LBB0_15
; %bb.11:
	mov	x9, #0
	sub	w10, w19, #2
Lloh6:
	adrp	x11, _OPUS_TS_MASK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _OPUS_TS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _OPUS_TS_HEADER@GOTPAGE
Lloh10:
	ldr	x12, [x12, _OPUS_TS_HEADER@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x23, x9, lsl #2]
	orr	w25, w13, w25, lsl #8
	and	w13, w25, w11
	cmp	w13, w12
	b.eq	LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_12
; %bb.14:
	mov	w26, #0
	b	LBB0_7
LBB0_15:
	mov	w26, #0
	ldr	x8, [x21]
	cbz	x8, LBB0_19
LBB0_16:
	ldr	w8, [x24, #4]
	cbnz	w8, LBB0_19
; %bb.17:
	add	x1, x24, #16
	mov	x0, x21
	bl	_ff_opus_parse_extradata
	tbnz	w0, #31, LBB0_31
; %bb.18:
	add	x0, x24, #20
	bl	_av_freep
	mov	w8, #1
	str	w8, [x24, #4]
LBB0_19:
	ldr	w2, [sp, #12]
	cmp	w2, w19
	b.gt	LBB0_24
; %bb.20:
	ldr	w8, [x24]
	cbz	w8, LBB0_22
; %bb.21:
	cbz	w26, LBB0_27
LBB0_22:
	add	x0, x24, #8
	ldr	w8, [x24, #16]
	cmp	w8, #1
	cset	w3, gt
	mov	x1, x23
	bl	_ff_opus_parse_packet
	tbnz	w0, #31, LBB0_32
; %bb.23:
	ldp	w8, w9, [x24, #8]
	mul	w8, w9, w8
	str	w8, [x22]
LBB0_24:
	ldr	w8, [x24]
	cbz	w8, LBB0_37
; %bb.25:
	cbz	w26, LBB0_27
; %bb.26:
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	add	w9, w9, w8
	cmp	w9, w19
	b.le	LBB0_30
LBB0_27:
	stp	w26, w25, [x24, #24]
Lloh12:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_36
LBB0_28:
	sub	w2, w19, w9
	add	x1, sp, #12
	mov	x0, x23
	bl	_parse_opus_ts_header
	cbz	x0, LBB0_33
; %bb.29:
	sub	x8, x0, x23
	lsr	x8, x8, #2
	str	w8, [x20]
	ldr	w8, [x24]
	mov	w26, #1
	mov	x23, x0
	b	LBB0_7
LBB0_30:
	movi	d0, #0xffffffff00000000
	str	d0, [x24, #24]
	ldr	w9, [x20]
	add	w19, w9, w8
	b	LBB0_37
LBB0_31:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_34
LBB0_32:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_av_log
	str	wzr, [x24, #24]
	b	LBB0_35
LBB0_33:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
LBB0_34:
	mov	x0, x21
	bl	_av_log
LBB0_35:
Lloh29:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_36:
	ldr	w19, [x8]
LBB0_37:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_OPUS_TS_MASK,4,2               ; @OPUS_TS_MASK
	.comm	_OPUS_TS_HEADER,4,2             ; @OPUS_TS_HEADER
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error parsing Ogg TS header.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Error parsing Ogg extradata.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error parsing Opus packet header.\n"

	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.no_dead_strip	_opus_find_frame_end
.subsections_via_symbols
