	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_pcm_seek_page               ## -- Begin function ov_pcm_seek_page
	.p2align	4, 0x90
_ov_pcm_seek_page:                      ## @ov_pcm_seek_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	$104, %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, %r15
	movl	$-1, %esi
	callq	_ov_pcm_total
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
LBB0_1:
	movq	_OV_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_40
LBB0_2:
	cmpl	$0, 80(%r15)
	je	LBB0_9
## %bb.3:
	testq	%r14, %r14
	js	LBB0_1
## %bb.4:
	cmpq	%r14, %rbx
	jl	LBB0_1
## %bb.5:
	movslq	8(%r15), %rdi
	movl	%edi, %eax
	sarl	$31, %eax
	andl	%edi, %eax
	leal	-1(%rax), %r8d
	leal	(%rdi,%rdi), %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	decq	%rdi
	movq	16(%r15), %rdx
	leal	-1(%rcx), %esi
	movslq	%esi, %rsi
	subq	(%rdx,%rsi,8), %rbx
	addl	$-2, %ecx
	cmpq	%r14, %rbx
	jg	LBB0_6
## %bb.8:
	leal	1(%rdi), %eax
	movl	%edi, %r8d
	jmp	LBB0_11
LBB0_9:
	movq	_OV_ENOSEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_40
LBB0_10:
	movq	16(%r15), %rdx
	leal	(%r8,%r8), %ecx
	leal	(%r8,%r8), %esi
	incl	%esi
	movslq	%esi, %rsi
LBB0_11:
	movq	24(%r15), %rdi
	cltq
	movq	(%rdi,%rax,8), %r13
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movslq	%r8d, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	(%rdi,%rax,8), %r12
	cmpq	%r12, %r13
	jle	LBB0_38
## %bb.12:
	movslq	%ecx, %rax
	movq	(%rdx,%rax,8), %rcx
	movq	%r14, %rax
	subq	%rbx, %rax
	addq	%rcx, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	(%rdx,%rsi,8), %rax
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_21 Depth 3
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	subq	%rdx, %rcx
	movq	(%rax), %rax
	movq	%rdx, %r13
	cmpq	%rax, %rcx
	movq	%rdx, %r14
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	subq	%rdi, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rcx, %xmm1
	mulsd	%xmm0, %xmm1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	subq	%rdi, %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %r13
	addq	%r14, %r13
	subq	%rax, %r13
	addq	%r14, %rax
	cmpq	%rax, %r13
	cmovlq	%r14, %r13
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	32(%r15), %r13
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	__seek_helper
	leaq	-44(%rbp), %rsi
	testq	%rax, %rax
	jne	LBB0_65
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r14, %r13
	jle	LBB0_33
LBB0_18:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_21 Depth 3
	movl	32(%r15), %eax
	movl	%r13d, %edx
	subl	%eax, %edx
	movq	%r15, %rdi
	callq	__get_next_page
	movq	%rax, %r12
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_39
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=3
	movl	32(%r15), %eax
	movl	%r14d, %edx
	subl	%eax, %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	__get_next_page
	movq	%rax, %r12
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_39
LBB0_21:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%r12, %r12
	js	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=3
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	callq	_ogg_page_serialno
	movq	40(%r15), %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	cmpq	(%rcx,%rdx,8), %rax
	jne	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%r13, %rdi
	callq	_ogg_page_granulepos
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=2
	cltq
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	subq	%rax, %rcx
	jle	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	32(%r15), %rdx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	$44100, %rcx                    ## imm = 0xAC44
	leaq	-44(%rbp), %rsi
	movq	%r14, %r13
	movq	%rdx, %r14
	jle	LBB0_29
	jmp	LBB0_35
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, %rcx
	jle	LBB0_37
## %bb.27:                              ##   in Loop: Header=BB0_18 Depth=2
	testq	%rcx, %rcx
	je	LBB0_39
## %bb.28:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	(%rcx), %rsi
	cmpq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	cmovleq	%rax, %rsi
	movq	%r15, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	__seek_helper
	testq	%rax, %rax
	leaq	-44(%rbp), %rsi
	movq	%r14, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_65
LBB0_29:                                ##   in Loop: Header=BB0_18 Depth=2
	cmpq	%r13, %r14
	jl	LBB0_18
	jmp	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	cmpq	%rcx, -64(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_37
## %bb.31:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpq	32(%r15), %r14
	jne	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	(%rax), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, %rsi
	cmovleq	%rcx, %rsi
	movq	%r15, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	__seek_helper
	movq	%r12, %r13
	testq	%rax, %rax
	leaq	-44(%rbp), %rsi
	je	LBB0_29
	jmp	LBB0_65
LBB0_33:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%r14, %r13
	movq	%r14, %rdx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	jg	LBB0_13
	jmp	LBB0_38
LBB0_35:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_34
LBB0_36:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	leaq	-44(%rbp), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_37:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_38:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	__seek_helper
	movq	%r12, %r13
	movq	%rax, %r12
	movl	$-1, 48(%r15)
	testq	%rax, %rax
	jne	LBB0_39
## %bb.41:
	leaq	-68(%rbp), %rsi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	__get_next_page
	testq	%rax, %rax
	js	LBB0_65
## %bb.42:
	movq	-136(%rbp), %r12                ## 8-byte Reload
	cmpl	52(%r15), %r12d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_45
## %bb.43:
	leaq	76(%r15), %rdi
	callq	_vorbis_synthesis_restart
	movq	56(%r15), %rsi
	jmp	LBB0_46
LBB0_45:
	movq	%r15, %rdi
	callq	__decode_clear
	movl	%r12d, 52(%r15)
	movq	40(%r15), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	movq	%rsi, 56(%r15)
	movq	_STREAMSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_46:
	leaq	72(%r15), %r14
	movq	%r14, %rdi
	callq	_ogg_stream_reset_serialno
	leaq	-68(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ogg_stream_pagein
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ogg_stream_packetpeek
	testq	%rax, %rax
	je	LBB0_51
## %bb.47:
	leaq	-96(%rbp), %r12
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	js	LBB0_59
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=1
	movl	-96(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_61
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ogg_stream_packetout
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ogg_stream_packetpeek
	testq	%rax, %rax
	jne	LBB0_48
LBB0_51:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	__seek_helper
	testq	%rax, %rax
	js	LBB0_65
## %bb.52:
	leaq	-68(%rbp), %rsi
	movq	%r15, %rdi
	callq	__get_prev_page
	movq	%rax, %r12
	testq	%rax, %rax
	js	LBB0_39
## %bb.53:
	leaq	-68(%rbp), %rbx
	jmp	LBB0_55
LBB0_54:                                ##   in Loop: Header=BB0_55 Depth=1
	movq	%r12, 32(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__get_prev_page
	movq	%rax, %r12
	testq	%rax, %rax
	js	LBB0_39
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ogg_page_serialno
	cmpq	56(%r15), %rax
	jne	LBB0_54
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	movq	%rbx, %rdi
	callq	_ogg_page_granulepos
	testl	%eax, %eax
	jns	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_55 Depth=1
	movq	%rbx, %rdi
	callq	_ogg_page_continued
	testl	%eax, %eax
	jne	LBB0_54
LBB0_58:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ov_raw_seek
	movl	%eax, %r12d
	jmp	LBB0_40
LBB0_65:
	movq	%rax, %r12
	jmp	LBB0_39
LBB0_59:
	movq	_OV_EBADPACKET@GOTPCREL(%rip), %rax
	jmp	LBB0_64
LBB0_61:
	movq	16(%r15), %rcx
	movslq	52(%r15), %rdx
	shlq	$4, %rdx
	subl	(%rcx,%rdx), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	addl	%ecx, %ebx
	movl	%ebx, 48(%r15)
	movslq	%ebx, %rax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %rax
	jg	LBB0_63
## %bb.62:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_ov_pcm_total
	cmpq	%r13, %rax
	jge	LBB0_67
LBB0_63:
	movq	_OV_EFAULT@GOTPCREL(%rip), %rax
LBB0_64:
	movq	(%rax), %r12
LBB0_39:
	movl	$-1, 48(%r15)
	movq	%r15, %rdi
	callq	__decode_clear
LBB0_40:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_67:
	movq	$0, 64(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENED,8,3                     ## @OPENED
	.comm	_OV_EINVAL,4,2                  ## @OV_EINVAL
	.comm	_OV_ENOSEEK,4,2                 ## @OV_ENOSEEK
	.comm	_CHUNKSIZE,8,3                  ## @CHUNKSIZE
	.comm	_OV_EREAD,8,3                   ## @OV_EREAD
	.comm	_STREAMSET,8,3                  ## @STREAMSET
	.comm	_OV_EBADPACKET,8,3              ## @OV_EBADPACKET
	.comm	_OV_EFAULT,8,3                  ## @OV_EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_pcm_seek_page               ; -- Begin function ov_pcm_seek_page
	.p2align	2
_ov_pcm_seek_page:                      ; @ov_pcm_seek_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x19, x0
	mov	w1, #-1
	bl	_ov_pcm_total
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _OPENED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPENED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _OV_EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV_EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_60
LBB0_2:
	ldr	w8, [x19, #80]
	cbz	w8, LBB0_9
; %bb.3:
	tbnz	x20, #63, LBB0_1
; %bb.4:
	mov	x21, x0
	cmp	x0, x20
	b.lt	LBB0_1
; %bb.5:
	ldrsw	x11, [x19, #8]
	cmp	w11, #0
	csel	w9, w11, wzr, lt
	sub	w25, w9, #1
	lsl	w8, w11, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, #0
	b.le	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x11, x11, #1
	ldr	x10, [x19, #16]
	sub	w12, w8, #1
	ldr	x13, [x10, w12, sxtw #3]
	sub	w8, w8, #2
	sub	x21, x21, x13
	cmp	x21, x20
	b.gt	LBB0_6
; %bb.8:
	sxtw	x12, w12
	add	w9, w11, #1
	mov	x25, x11
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _OV_ENOSEEK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OV_ENOSEEK@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_60
LBB0_10:
	ldr	x10, [x19, #16]
	lsl	w8, w25, #1
	mov	w11, #1
	bfi	w11, w25, #1, #31
	sxtw	x12, w11
LBB0_11:
	ldr	x11, [x19, #24]
	ldr	x28, [x11, w9, sxtw #3]
	sxtw	x26, w25
	ldr	x24, [x11, w25, sxtw #3]
	cmp	x28, x24
	b.le	LBB0_36
; %bb.12:
	ldr	x11, [x10, w8, sxtw #3]
	ldr	x8, [x10, x12, lsl #3]
	sub	x9, x20, x21
	add	x9, x11, x9
	stp	x11, x9, [sp, #8]               ; 16-byte Folded Spill
	add	x8, x8, x11
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _CHUNKSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHUNKSIZE@GOTPAGEOFF]
Lloh11:
	adrp	x27, _OV_EREAD@GOTPAGE
Lloh12:
	ldr	x27, [x27, _OV_EREAD@GOTPAGEOFF]
	mov	x22, x24
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x8, [x8]
	sub	x9, x28, x22
	cmp	x9, x8
	mov	x24, x22
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	x11, x10, [sp, #8]              ; 16-byte Folded Reload
	sub	x10, x10, x11
	scvtf	d0, x10
	scvtf	d1, x9
	fmul	d0, d1, d0
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	sub	x9, x9, x11
	scvtf	d1, x9
	fdiv	d0, d0, d1
	fcvtzs	x9, d0
	add	x9, x22, x9
	sub	x9, x9, x8
	add	x8, x8, x22
	cmp	x9, x8
	csel	x24, x22, x9, lt
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #32]
	cmp	x24, x8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	__seek_helper
	cbnz	x0, LBB0_47
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x28, x22
	b.le	LBB0_33
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19, #32]
	sub	w2, w28, w8
	add	x1, sp, #44
	mov	x0, x19
	bl	__get_next_page
	mov	x23, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_59
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	tbnz	x23, #63, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x0, sp, #44
	bl	_ogg_page_serialno
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x26, lsl #3]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x0, sp, #44
	bl	_ogg_page_granulepos
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	sxtw	x8, w0
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	subs	x9, x9, x8
	b.le	LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x22, [x19, #32]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	mov	x24, x22
	mov	w10, #44100
	cmp	x9, x10
	b.le	LBB0_27
	b	LBB0_31
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x8, x22, #1
	cmp	x24, x8
	b.le	LBB0_35
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=2
	cbz	x24, LBB0_59
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=2
Lloh13:
	adrp	x9, _CHUNKSIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CHUNKSIZE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	sub	x9, x24, x9
	cmp	x9, x22
	csel	x24, x9, x8, gt
	mov	x0, x19
	mov	x1, x24
	bl	__seek_helper
	cbnz	x0, LBB0_47
LBB0_27:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	x22, x28
	b.lt	LBB0_18
	b	LBB0_33
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x9, x22, #1
	cmp	x24, x9
	b.le	LBB0_35
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x10, [x19, #32]
	cmp	x28, x10
	b.ne	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=2
Lloh16:
	adrp	x8, _CHUNKSIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CHUNKSIZE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	sub	x8, x24, x8
	cmp	x8, x22
	csel	x24, x8, x9, gt
	mov	x0, x19
	mov	x1, x24
	bl	__seek_helper
	mov	x28, x23
	cbz	x0, LBB0_27
	b	LBB0_47
LBB0_31:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x24, x23
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x28, x24
	str	x8, [sp]                        ; 8-byte Folded Spill
LBB0_33:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
LBB0_34:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x28, x22
Lloh19:
	adrp	x8, _CHUNKSIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CHUNKSIZE@GOTPAGEOFF]
	b.gt	LBB0_13
	b	LBB0_36
LBB0_35:
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
LBB0_36:
	mov	x0, x19
	mov	x1, x24
	bl	__seek_helper
	mov	x23, x0
	mov	w8, #-1
	str	w8, [x19, #48]
	cbnz	x0, LBB0_59
; %bb.37:
	add	x1, sp, #40
	mov	x0, x19
	mov	w2, #-1
	bl	__get_next_page
	tbnz	x0, #63, LBB0_47
; %bb.38:
	ldr	w8, [x19, #52]
	cmp	w25, w8
	b.ne	LBB0_40
; %bb.39:
	add	x0, x19, #76
	bl	_vorbis_synthesis_restart
	ldr	x1, [x19, #56]
	b	LBB0_41
LBB0_40:
	mov	x0, x19
	bl	__decode_clear
	ldr	x8, [x19, #40]
	ldr	x1, [x8, x26, lsl #3]
	str	w25, [x19, #52]
	str	x1, [x19, #56]
Lloh21:
	adrp	x8, _STREAMSET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STREAMSET@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_41:
	add	x23, x19, #72
	mov	x0, x23
	bl	_ogg_stream_reset_serialno
	add	x1, sp, #40
	mov	x0, x23
	bl	_ogg_stream_pagein
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #32
	mov	x0, x23
	bl	_ogg_stream_packetpeek
	cbz	x0, LBB0_46
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	tbnz	x0, #63, LBB0_54
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=1
	ldr	w8, [sp, #32]
	cmn	w8, #1
	b.ne	LBB0_55
; %bb.45:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	x0, x23
	mov	x1, #0
	bl	_ogg_stream_packetout
	b	LBB0_42
LBB0_46:
	mov	x0, x19
	mov	x1, x24
	bl	__seek_helper
	tbz	x0, #63, LBB0_49
LBB0_47:
	mov	x23, x0
	b	LBB0_59
LBB0_48:                                ;   in Loop: Header=BB0_49 Depth=1
	str	x23, [x19, #32]
LBB0_49:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	mov	x0, x19
	bl	__get_prev_page
	mov	x23, x0
	tbnz	x0, #63, LBB0_59
; %bb.50:                               ;   in Loop: Header=BB0_49 Depth=1
	add	x0, sp, #40
	bl	_ogg_page_serialno
	ldr	x8, [x19, #56]
	cmp	x0, x8
	b.ne	LBB0_48
; %bb.51:                               ;   in Loop: Header=BB0_49 Depth=1
	add	x0, sp, #40
	bl	_ogg_page_granulepos
	tbz	w0, #31, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_49 Depth=1
	add	x0, sp, #40
	bl	_ogg_page_continued
	cbnz	w0, LBB0_48
LBB0_53:
	mov	x0, x19
	mov	x1, x23
	bl	_ov_raw_seek
	mov	x23, x0
	b	LBB0_60
LBB0_54:
Lloh24:
	adrp	x8, _OV_EBADPACKET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OV_EBADPACKET@GOTPAGEOFF]
	b	LBB0_58
LBB0_55:
	ldr	x9, [x19, #16]
	ldrsw	x10, [x19, #52]
	lsl	x10, x10, #4
	ldr	w9, [x9, x10]
	sub	w8, w8, w9
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	add	w8, w8, w21
	str	w8, [x19, #48]
	sxtw	x8, w8
	cmp	x8, x20
	b.gt	LBB0_57
; %bb.56:
	mov	x0, x19
	mov	w1, #-1
	bl	_ov_pcm_total
	cmp	x0, x20
	b.ge	LBB0_61
LBB0_57:
Lloh26:
	adrp	x8, _OV_EFAULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OV_EFAULT@GOTPAGEOFF]
LBB0_58:
	ldr	x23, [x8]
LBB0_59:
	mov	w8, #-1
	str	w8, [x19, #48]
	mov	x0, x19
	bl	__decode_clear
LBB0_60:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_61:
	mov	w23, #0
	str	xzr, [x19, #64]
	b	LBB0_60
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENED,8,3                     ; @OPENED
	.comm	_OV_EINVAL,4,2                  ; @OV_EINVAL
	.comm	_OV_ENOSEEK,4,2                 ; @OV_ENOSEEK
	.comm	_CHUNKSIZE,8,3                  ; @CHUNKSIZE
	.comm	_OV_EREAD,8,3                   ; @OV_EREAD
	.comm	_STREAMSET,8,3                  ; @STREAMSET
	.comm	_OV_EBADPACKET,8,3              ; @OV_EBADPACKET
	.comm	_OV_EFAULT,8,3                  ; @OV_EFAULT
.subsections_via_symbols
