	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_read_page
_ogg_read_page:                         ## @ogg_read_page
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	8(%rdi), %rdi
	leaq	-44(%rbp), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$4, %edx
	callq	_avio_read
	cmpl	$4, %eax
	jge	LBB0_3
LBB0_1:
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_24
LBB0_2:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %r13d
	movl	%r13d, %r15d
	andl	$3, %r15d
	cmpb	$79, -44(%rbp,%r15)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %eax
	andl	$3, %eax
	cmpb	$103, -44(%rbp,%rax)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r12), %eax
	andl	$3, %eax
	cmpb	$103, -44(%rbp,%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	2(%r12), %eax
	andl	$3, %eax
	cmpb	$83, -44(%rbp,%rax)
	je	LBB0_20
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %r12d
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	addl	$4, %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_seek
	movl	$-1, (%rbx)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	%r14b, -44(%rbp,%r15)
	movq	_MAX_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%r12d
	cmpl	%eax, %r13d
	jl	LBB0_4
## %bb.14:
	decl	%r12d
	movl	%r12d, %r13d
	cmpl	%eax, %r13d
	jge	LBB0_21
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_r8
	testl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_22
LBB0_17:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rl64
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, %r15d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_ogg_find_stream
	testl	%eax, %eax
	jns	LBB0_28
## %bb.18:
	movq	%r13, %rdi
	callq	_data_packets_seen
	testq	%rax, %rax
	je	LBB0_25
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_ogg_replace_stream
	jmp	LBB0_26
LBB0_20:
	movq	_MAX_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jl	LBB0_15
LBB0_21:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_22:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_ogg_new_stream
LBB0_26:
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_35
## %bb.27:
	movl	%r12d, %eax
LBB0_28:
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movq	8(%r13), %r12
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r14d
	callq	_avio_tell
	addl	$-27, %eax
	movq	%r13, %rdi
	leaq	(%r15,%r15,4), %r13
	shlq	$4, %r13
	movl	%eax, (%r12,%r13)
	movl	%eax, (%rdi)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r12,%r13)
	jle	LBB0_30
## %bb.29:
	movl	%r14d, %esi
	callq	_ogg_new_buf
	testl	%eax, %eax
	js	LBB0_34
LBB0_30:
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14,%r13), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_avio_read
	cmpl	%r15d, %eax
	jl	LBB0_1
## %bb.31:
	leaq	(%r14,%r13), %r8
	addq	$16, %r8
	movl	%r15d, 24(%r14,%r13)
	movl	$0, 28(%r14,%r13)
	testl	%r15d, %r15d
	jle	LBB0_36
## %bb.32:
	movq	(%r8), %rcx
	movl	%r15d, %edx
	cmpl	$8, %r15d
	jae	LBB0_37
## %bb.33:
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_44
LBB0_34:
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_35:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	jmp	LBB0_24
LBB0_36:
	xorl	%r15d, %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_45
LBB0_37:
	movl	%edx, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_40
## %bb.38:
	movq	%r9, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	pmovsxbd	(%rcx,%rax), %xmm2
	paddd	%xmm0, %xmm2
	pmovsxbd	4(%rcx,%rax), %xmm3
	paddd	%xmm1, %xmm3
	pmovsxbd	8(%rcx,%rax), %xmm0
	pmovsxbd	12(%rcx,%rax), %xmm1
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	addq	$16, %rax
	addq	$-2, %rdi
	jne	LBB0_39
	jmp	LBB0_41
LBB0_40:
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
LBB0_41:
	testb	$1, %r9b
	je	LBB0_43
## %bb.42:
	pmovsxbd	(%rcx,%rax), %xmm2
	paddd	%xmm2, %xmm0
	pmovsxbd	4(%rcx,%rax), %xmm2
	paddd	%xmm2, %xmm1
LBB0_43:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r15d
	cmpq	%rdx, %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_45
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rcx,%rsi), %eax
	addl	%eax, %r15d
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_44
LBB0_45:
	movq	_OGG_FLAG_BOS@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_47
## %bb.46:
	movl	$1, 32(%r14,%r13)
LBB0_47:
	leaq	(%r14,%r13), %rax
	addq	$8, %rax
	movq	_OGG_FLAG_CONT@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	jne	LBB0_49
## %bb.48:
	cmpq	$0, 72(%r14,%r13)
	je	LBB0_52
LBB0_49:
	cmpq	$0, (%rax)
	jne	LBB0_54
## %bb.50:
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_53
## %bb.51:
	leaq	(%r14,%r13), %rax
	addq	$28, %rax
	movq	(%r8), %rcx
	movl	$1, (%rax)
	movsbl	(%rcx), %eax
	addl	%eax, 36(%r14,%r13)
	jmp	LBB0_53
LBB0_52:
	movq	$0, (%rax)
LBB0_53:
	leaq	(%r14,%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14,%r13)
LBB0_54:
	movl	44(%r14,%r13), %edi
	movl	48(%r14,%r13), %eax
	leaq	(%r14,%r13), %rbx
	addq	$48, %rbx
	movl	%edi, %ecx
	subl	%eax, %ecx
	cmpl	%r15d, %ecx
	jge	LBB0_57
## %bb.55:
	leaq	(%r14,%r13), %rax
	addq	$44, %rax
	addl	%edi, %edi
	movl	%edi, (%rax)
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_61
## %bb.56:
	movq	%rax, %r12
	movq	56(%r14,%r13), %rsi
	movl	(%rbx), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	56(%r14,%r13), %rdi
	callq	_av_free
	movq	%r12, 56(%r14,%r13)
	movl	(%rbx), %eax
	jmp	LBB0_58
LBB0_57:
	movq	56(%r14,%r13), %r12
LBB0_58:
	movslq	%eax, %rsi
	addq	%r12, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_avio_read
	cmpl	%r15d, %eax
	jl	LBB0_1
## %bb.59:
	movslq	(%rbx), %rax
	movslq	%r15d, %rdi
	addq	%rax, %rdi
	movl	%edi, (%rbx)
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 68(%rcx,%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 64(%rcx,%r13)
	addq	56(%rcx,%r13), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_memset
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_24
## %bb.60:
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_24
LBB0_61:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_MAX_PAGE_SIZE,4,2              ## @MAX_PAGE_SIZE
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot find sync word\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"ogg page, unsupported version\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to create or replace stream\n"

	.comm	_OGG_FLAG_BOS,4,2               ## @OGG_FLAG_BOS
	.comm	_OGG_FLAG_CONT,4,2              ## @OGG_FLAG_CONT
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ogg_read_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_read_page
_ogg_read_page:                         ; @ogg_read_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x26, x0
	ldp	x25, x20, [x0]
	add	x22, sp, #28
	add	x1, sp, #28
	mov	x0, x20
	mov	w2, #4
	bl	_avio_read
	cmp	w0, #4
	b.ge	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w21, w0, w8, lt
	b	LBB0_24
LBB0_2:
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
Lloh3:
	adrp	x24, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
	mov	w23, #1
Lloh5:
	adrp	x28, _MAX_PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _MAX_PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w23, #1
	and	x27, x8, #0x3
	ldrb	w9, [x22, x27]
	cmp	w9, #79
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x9, x23, #0x3
	ldrb	w9, [x22, x9]
	cmp	w9, #103
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w23, #1
	and	x9, x9, #0x3
	ldrb	w9, [x22, x9]
	cmp	w9, #103
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w23, #2
	and	x9, x9, #0x3
	ldrb	w9, [x22, x9]
	cmp	w9, #83
	b.eq	LBB0_20
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w19, w23, #1
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #28
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x25]
	add	w1, w8, #4
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_avio_seek
	mov	w8, #-1
	str	w8, [x25]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x20
	bl	_avio_feof
	cbnz	x0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	strb	w21, [x22, x27]
	ldr	w9, [x28]
	add	w23, w23, #1
	cmp	w19, w9
	b.lt	LBB0_3
; %bb.13:
	sub	w8, w23, #1
	cmp	w8, w9
	b.ge	LBB0_21
LBB0_14:
	mov	x0, x20
	bl	_avio_r8
	cbz	w0, LBB0_17
; %bb.15:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_16:
Lloh15:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_23
LBB0_17:
	mov	x0, x20
	bl	_avio_r8
	mov	x19, x0
	mov	x0, x20
	bl	_avio_rl64
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x27, x0
	mov	x0, x20
	mov	w1, #8
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_r8
	mov	x24, x0
	mov	x0, x25
	mov	x1, x27
	bl	_ogg_find_stream
	mov	x21, x0
	tbz	w0, #31, LBB0_27
; %bb.18:
	mov	x0, x25
	bl	_data_packets_seen
	cbz	x0, LBB0_25
; %bb.19:
	mov	x0, x26
	mov	x1, x27
	mov	x2, x24
	bl	_ogg_replace_stream
	b	LBB0_26
LBB0_20:
	ldr	w9, [x28]
	cmp	w8, w9
	b.lt	LBB0_14
LBB0_21:
Lloh17:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
LBB0_22:
	mov	x0, x26
	bl	_av_log
Lloh22:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_23:
	ldr	w21, [x8]
LBB0_24:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_25:
	mov	x0, x26
	mov	x1, x27
	bl	_ogg_new_stream
LBB0_26:
	mov	x21, x0
	tbnz	w0, #31, LBB0_34
LBB0_27:
	ldr	x26, [x25, #8]
	mov	x0, x20
	bl	_avio_tell
	sub	w8, w0, #27
	mov	w9, #80
	umaddl	x23, w21, w9, x26
	str	w8, [x23]
	str	w8, [x25]
	mov	x28, x23
	ldr	x8, [x28, #8]!
	cmp	x8, #1
	b.lt	LBB0_29
; %bb.28:
	mov	x0, x25
	mov	x1, x21
	bl	_ogg_new_buf
	tbnz	w0, #31, LBB0_33
LBB0_29:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	mov	w27, w21
	mov	w8, #80
	madd	x22, x27, x8, x26
	ldr	x1, [x22, #16]!
	mov	x0, x20
	mov	x2, x24
	bl	_avio_read
	cmp	w0, w24
	b.lt	LBB0_1
; %bb.30:
	mov	w8, #80
	madd	x8, x27, x8, x26
	str	wzr, [x8, #28]!
	stur	w24, [x8, #-4]
	cmp	w24, #1
	b.lt	LBB0_35
; %bb.31:
	ldr	x10, [x22]
	mov	w9, w24
	cmp	w24, #8
	b.hs	LBB0_36
; %bb.32:
	mov	x11, #0
	mov	w25, #0
	b	LBB0_45
LBB0_33:
	mov	x21, x0
	b	LBB0_24
LBB0_34:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x26
	bl	_av_log
	b	LBB0_24
LBB0_35:
	mov	w25, #0
	b	LBB0_47
LBB0_36:
	cmp	w24, #32
	b.hs	LBB0_38
; %bb.37:
	mov	w25, #0
	mov	x11, #0
	b	LBB0_42
LBB0_38:
	movi.2d	v0, #0000000000000000
	and	x11, x9, #0xffffffe0
	movi.2d	v2, #0000000000000000
	add	x12, x10, #16
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldp	q16, q17, [x12, #-16]
	sshll.8h	v18, v16, #0
	sshll2.8h	v16, v16, #0
	sshll.8h	v19, v17, #0
	sshll2.8h	v17, v17, #0
	saddw2.4s	v3, v3, v16
	saddw.4s	v1, v1, v16
	saddw2.4s	v2, v2, v18
	saddw.4s	v0, v0, v18
	saddw2.4s	v7, v7, v17
	saddw.4s	v5, v5, v17
	saddw2.4s	v6, v6, v19
	saddw.4s	v4, v4, v19
	add	x12, x12, #32
	subs	x13, x13, #32
	b.ne	LBB0_39
; %bb.40:
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v0, v0, v1
	add.4s	v1, v2, v3
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w25, s0
	cmp	x11, x9
	b.eq	LBB0_47
; %bb.41:
	tst	x9, #0x18
	b.eq	LBB0_45
LBB0_42:
	mov	x13, x11
	and	x11, x9, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w25
	add	x12, x10, x13
	sub	x13, x13, x11
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldr	d2, [x12], #8
	sshll.8h	v2, v2, #0
	saddw2.4s	v0, v0, v2
	saddw.4s	v1, v1, v2
	adds	x13, x13, #8
	b.ne	LBB0_43
; %bb.44:
	add.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w25, s0
	cmp	x11, x9
	b.eq	LBB0_47
LBB0_45:
	add	x10, x10, x11
	sub	x9, x9, x11
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w11, [x10], #1
	add	w25, w25, w11
	subs	x9, x9, #1
	b.ne	LBB0_46
LBB0_47:
Lloh29:
	adrp	x9, _OGG_FLAG_BOS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _OGG_FLAG_BOS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w19
	b.ne	LBB0_49
; %bb.48:
	mov	w9, #80
	madd	x9, x27, x9, x26
	mov	w10, #1
	str	w10, [x9, #32]
LBB0_49:
Lloh32:
	adrp	x9, _OGG_FLAG_CONT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _OGG_FLAG_CONT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w19
	b.ne	LBB0_51
; %bb.50:
	mov	w9, #80
	madd	x9, x27, x9, x26
	ldr	x9, [x9, #72]
	cbz	x9, LBB0_54
LBB0_51:
	ldr	x9, [x28]
	cbnz	x9, LBB0_56
; %bb.52:
	cmp	w24, #1
	b.lt	LBB0_55
; %bb.53:
	ldr	x9, [x22]
	mov	w10, #1
	str	w10, [x8]
	ldrsb	w8, [x9]
	mov	w9, #80
	madd	x9, x27, x9, x26
	ldr	w10, [x9, #36]
	add	w8, w10, w8
	str	w8, [x9, #36]
	b	LBB0_55
LBB0_54:
	str	xzr, [x28]
LBB0_55:
	ldr	w8, [x23]
	mov	w9, #80
	madd	x9, x27, x9, x26
	str	w8, [x9, #40]
LBB0_56:
	mov	x23, x19
	mov	w8, #80
	madd	x9, x27, x8, x26
	ldr	w10, [x9, #44]!
	mov	x19, x9
	ldr	w8, [x19, #4]!
	sub	w11, w10, w8
	cmp	w11, w25
	b.ge	LBB0_59
; %bb.57:
	lsl	w8, w10, #1
	str	w8, [x9]
Lloh35:
	adrp	x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	add	w0, w9, w8
	bl	_av_malloc
	cbz	x0, LBB0_64
; %bb.58:
	mov	x24, x0
	mov	w8, #80
	madd	x22, x27, x8, x26
	ldr	x1, [x22, #56]
	ldr	w2, [x19]
	bl	_memcpy
	ldr	x0, [x22, #56]
	bl	_av_free
	str	x24, [x22, #56]
	ldr	w8, [x19]
	b	LBB0_60
LBB0_59:
	mov	w9, #80
	madd	x9, x27, x9, x26
	ldr	x24, [x9, #56]
LBB0_60:
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	add	x1, x24, w8, sxtw
	mov	x0, x20
	mov	x2, x25
	bl	_avio_read
	cmp	w0, w25
	b.lt	LBB0_1
; %bb.61:
	mov	w8, #80
	madd	x8, x27, x8, x26
	ldrsw	x9, [x19]
	add	x9, x9, w25, sxtw
	str	w9, [x19]
	stp	w23, w22, [x8, #64]
	ldr	x8, [x8, #56]
	add	x0, x8, x9
Lloh38:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_63
; %bb.62:
	str	w21, [x8]
LBB0_63:
	mov	w21, #0
	b	LBB0_24
LBB0_64:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_MAX_PAGE_SIZE,4,2              ; @MAX_PAGE_SIZE
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot find sync word\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"ogg page, unsupported version\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to create or replace stream\n"

	.comm	_OGG_FLAG_BOS,4,2               ; @OGG_FLAG_BOS
	.comm	_OGG_FLAG_CONT,4,2              ; @OGG_FLAG_CONT
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ogg_read_page
.subsections_via_symbols
