	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$-1, %esi
	callq	_ov_pcm_total
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movups	%xmm0, -132(%rbp)
	movaps	%xmm0, -144(%rbp)
	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_61
LBB0_2:
	cmpl	$0, 76(%r15)
	je	LBB0_9
## %bb.3:
	testq	%r12, %r12
	js	LBB0_1
## %bb.4:
	cmpq	%r12, %rbx
	jl	LBB0_1
## %bb.5:
	movslq	8(%r15), %rsi
	movl	%esi, %eax
	sarl	$31, %eax
	andl	%esi, %eax
	leal	-1(%rax), %r8d
	leal	(%rsi,%rsi), %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	decq	%rsi
	movq	16(%r15), %rdx
	leal	-1(%rcx), %edi
	movslq	%edi, %rdi
	subq	(%rdx,%rdi,8), %rbx
	addl	$-2, %ecx
	cmpq	%r12, %rbx
	jg	LBB0_6
## %bb.8:
	leal	1(%rsi), %eax
	movl	%esi, %r8d
	jmp	LBB0_11
LBB0_9:
	movq	_OV_ENOSEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_61
LBB0_10:
	movq	16(%r15), %rdx
	leal	(%r8,%r8), %ecx
LBB0_11:
	movq	24(%r15), %rsi
	cltq
	movq	(%rsi,%rax,8), %r13
	movq	%r8, -152(%rbp)                 ## 8-byte Spill
	movslq	%r8d, %rax
	movq	(%rsi,%rax,8), %r14
	cmpq	%r14, %r13
	jle	LBB0_39
## %bb.12:
	movslq	%ecx, %rax
	movq	(%rdx,%rax,8), %rsi
	movq	%r12, %rcx
	subq	%rbx, %rcx
	addq	%rsi, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	orl	$1, %eax
	cltq
	movq	(%rdx,%rax,8), %rax
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	addq	%rsi, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movq	%r14, %rdi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	subq	%rdi, %rdx
	movq	(%rax), %rcx
	movq	%rdi, %rsi
	cmpq	%rcx, %rdx
	movq	%rdi, %r14
	jl	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	subq	%rdi, %rax
	imulq	%rdx, %rax
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	subq	%rdi, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cqto
	idivq	%rsi
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdx
	subq	%rcx, %rdx
	addq	%rax, %rdx
	leaq	1(%r14), %rsi
	cmpq	%r14, %rdx
	cmovgq	%rdx, %rsi
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	__seek_helper
	cmpq	%r14, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_36
LBB0_19:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_19 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	32(%r15), %eax
	movl	%r13d, %edx
	subl	%eax, %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	__get_next_page
	movq	%rax, %r12
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_60
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	testq	%r12, %r12
	js	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=3
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_ogg_page_granulepos
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	cltq
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	subq	%rax, %rcx
	jle	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	32(%r15), %r14
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	cmpq	$44100, %rcx                    ## imm = 0xAC44
	jle	LBB0_32
	jmp	LBB0_33
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leaq	1(%r14), %rax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rax, %rsi
	jle	LBB0_38
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=2
	testq	%rsi, %rsi
	je	LBB0_60
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rsi
	cmpq	%r14, %rsi
	cmovleq	%rax, %rsi
	jmp	LBB0_31
LBB0_28:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leaq	1(%r14), %rcx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rcx, %rsi
	jle	LBB0_38
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpq	32(%r15), %r13
	jne	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	cmpq	%r14, %rsi
	cmovleq	%rcx, %rsi
	movq	%r12, %r13
LBB0_31:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	%r15, %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	callq	__seek_helper
LBB0_32:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %r14
	jl	LBB0_19
	jmp	LBB0_35
LBB0_33:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %r13
	movq	%rax, -104(%rbp)                ## 8-byte Spill
LBB0_35:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_36:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_37:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, %r13
	jg	LBB0_13
	jmp	LBB0_39
LBB0_38:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_39:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	__seek_helper
	movl	$-1, 40(%r15)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	__get_next_page
	testq	%rax, %rax
	js	LBB0_42
## %bb.40:
	movq	-152(%rbp), %r13                ## 8-byte Reload
	cmpl	44(%r15), %r13d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_43
## %bb.41:
	leaq	72(%r15), %rdi
	callq	_vorbis_synthesis_restart
	movl	68(%r15), %esi
	jmp	LBB0_44
LBB0_42:
	leaq	-80(%rbp), %rdi
	callq	_ogg_page_release
	movq	_OV_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_61
LBB0_43:
	movq	%r15, %rdi
	callq	__decode_clear
	movl	%r13d, 44(%r15)
	leaq	-80(%rbp), %rdi
	callq	_ogg_page_serialno
	movl	%eax, %esi
	movl	%eax, 68(%r15)
	movq	_STREAMSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_44:
	movl	64(%r15), %edi
	callq	_ogg_stream_reset_serialno
	movl	64(%r15), %edi
	leaq	-80(%rbp), %rsi
	callq	_ogg_stream_pagein
	movl	64(%r15), %edi
	leaq	-144(%rbp), %rsi
	callq	_ogg_stream_packetpeek
	testq	%rax, %rax
	je	LBB0_49
## %bb.45:
	leaq	-144(%rbp), %r14
	.p2align	4, 0x90
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	js	LBB0_55
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	-144(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_56
## %bb.48:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	64(%r15), %edi
	xorl	%esi, %esi
	callq	_ogg_stream_packetout
	movl	64(%r15), %edi
	movq	%r14, %rsi
	callq	_ogg_stream_packetpeek
	testq	%rax, %rax
	jne	LBB0_46
LBB0_49:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	__seek_helper
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	__get_prev_page
	movq	%rax, %r12
	testq	%rax, %rax
	js	LBB0_60
## %bb.50:
	leaq	-80(%rbp), %rbx
	.p2align	4, 0x90
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ogg_page_granulepos
	testl	%eax, %eax
	jns	LBB0_54
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	%rbx, %rdi
	callq	_ogg_page_continued
	testl	%eax, %eax
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	%r12, 32(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__get_prev_page
	movq	%rax, %r12
	testq	%rax, %rax
	jns	LBB0_51
	jmp	LBB0_60
LBB0_54:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ov_raw_seek
	movl	%eax, %r12d
	jmp	LBB0_61
LBB0_55:
	movq	_OV_EBADPACKET@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_56:
	movq	16(%r15), %rcx
	movslq	44(%r15), %rdx
	shlq	$4, %rdx
	subl	(%rcx,%rdx), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	addl	%ecx, %ebx
	movl	%ebx, 40(%r15)
	movslq	%ebx, %rax
	cmpq	%r12, %rax
	jg	LBB0_58
## %bb.57:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_ov_pcm_total
	cmpq	%r12, %rax
	jge	LBB0_62
LBB0_58:
	movq	_OV_EFAULT@GOTPCREL(%rip), %rax
LBB0_59:
	movq	(%rax), %r12
LBB0_60:
	leaq	-80(%rbp), %rdi
	callq	_ogg_page_release
	leaq	-144(%rbp), %rdi
	callq	_ogg_packet_release
	movl	$-1, 40(%r15)
	movq	%r15, %rdi
	callq	__decode_clear
LBB0_61:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_62:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r15)
	leaq	-80(%rbp), %rdi
	callq	_ogg_page_release
	leaq	-144(%rbp), %rdi
	callq	_ogg_packet_release
	xorl	%r12d, %r12d
	jmp	LBB0_61
	.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	_OV_EOF,4,2                     ## @OV_EOF
	.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, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	stp	xzr, xzr, [sp, #64]
	stp	xzr, xzr, [sp, #32]
	str	wzr, [sp, #56]
	str	xzr, [sp, #48]
	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_56
LBB0_2:
	ldr	w8, [x19, #76]
	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	w23, 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	x12, [x10, w12, sxtw #3]
	sub	w8, w8, #2
	sub	x21, x21, x12
	cmp	x21, x20
	b.gt	LBB0_6
; %bb.8:
	add	w9, w11, #1
	mov	x23, 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_56
LBB0_10:
	ldr	x10, [x19, #16]
	lsl	w8, w23, #1
LBB0_11:
	ldr	x11, [x19, #24]
	ldr	x26, [x11, w9, sxtw #3]
	ldr	x22, [x11, w23, sxtw #3]
	cmp	x26, x22
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	b.le	LBB0_34
; %bb.12:
	sxtw	x9, w8
	ldr	x28, [x10, w8, sxtw #3]
	sub	x8, x20, x21
	add	x8, x28, x8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	lsl	x8, x9, #3
	orr	x8, x8, #0x8
	ldr	x8, [x10, x8]
	add	x8, x8, x28
	str	x8, [sp, #8]                    ; 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]
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x25, x8
	ldr	x8, [x8]
	sub	x9, x26, x22
	cmp	x9, x8
	mov	x24, x22
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	sub	x10, x10, x28
	mul	x9, x10, x9
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	sub	x10, x10, x28
	sdiv	x9, x9, x10
	sub	x8, x22, x8
	add	x8, x8, x9
	cmp	x8, x22
	csinc	x24, x8, x22, gt
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	__seek_helper
	cmp	x26, x22
	b.gt	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x8, x25
	cmp	x26, x22
	b.gt	LBB0_13
	b	LBB0_34
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	x22, [x19, #32]
	mov	x28, x8
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	mov	x24, x22
	mov	w10, #44100
	cmp	x9, x10
	b.gt	LBB0_30
; %bb.18:                               ;   in Loop: Header=BB0_19 Depth=2
	cmp	x22, x26
	b.ge	LBB0_32
LBB0_19:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19, #32]
	sub	w2, w26, w8
	add	x1, sp, #64
	mov	x0, x19
	bl	__get_next_page
	mov	x23, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_55
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	tbnz	x23, #63, LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x0, sp, #64
	bl	_ogg_page_granulepos
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	sxtw	x8, w0
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	subs	x9, x9, x8
	b.gt	LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x9, x22, #1
	cmp	x24, x9
	b.le	LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	x10, [x19, #32]
	cmp	x26, x10
	b.ne	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	x8, [x25]
	sub	x8, x24, x8
	cmp	x8, x22
	csel	x24, x8, x9, gt
	mov	x26, x23
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x8, x22, #1
	cmp	x24, x8
	b.le	LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=2
	cbz	x24, LBB0_55
; %bb.28:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	x9, [x25]
	sub	x9, x24, x9
	cmp	x9, x22
	csel	x24, x9, x8, gt
LBB0_29:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	__seek_helper
	cmp	x22, x26
	b.lt	LBB0_19
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x28, x8
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x26, x23
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_16
LBB0_33:
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
LBB0_34:
	mov	x0, x19
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	mov	x1, x22
	bl	__seek_helper
	mov	w8, #-1
	str	w8, [x19, #40]
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #-1
	bl	__get_next_page
	tbnz	x0, #63, LBB0_37
; %bb.35:
	ldr	w8, [x19, #44]
	cmp	w23, w8
	b.ne	LBB0_38
; %bb.36:
	add	x0, x19, #72
	bl	_vorbis_synthesis_restart
	ldr	w1, [x19, #68]
	b	LBB0_39
LBB0_37:
	add	x0, sp, #64
	bl	_ogg_page_release
Lloh13:
	adrp	x8, _OV_EOF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OV_EOF@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	b	LBB0_56
LBB0_38:
	mov	x0, x19
	bl	__decode_clear
	str	w23, [x19, #44]
	add	x0, sp, #64
	bl	_ogg_page_serialno
	mov	x1, x0
	str	w0, [x19, #68]
Lloh16:
	adrp	x8, _STREAMSET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STREAMSET@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_39:
	ldr	w0, [x19, #64]
	bl	_ogg_stream_reset_serialno
	ldr	w0, [x19, #64]
	add	x1, sp, #64
	bl	_ogg_stream_pagein
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #64]
	add	x1, sp, #32
	bl	_ogg_stream_packetpeek
	cbz	x0, LBB0_44
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	tbnz	x0, #63, LBB0_50
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=1
	ldr	w8, [sp, #32]
	cmn	w8, #1
	b.ne	LBB0_51
; %bb.43:                               ;   in Loop: Header=BB0_40 Depth=1
	ldr	w0, [x19, #64]
	mov	x1, #0
	bl	_ogg_stream_packetout
	b	LBB0_40
LBB0_44:
	mov	x0, x19
	mov	x1, x22
	bl	__seek_helper
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #64
	mov	x0, x19
	bl	__get_prev_page
	mov	x23, x0
	tbnz	x0, #63, LBB0_55
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	add	x0, sp, #64
	bl	_ogg_page_granulepos
	tbz	w0, #31, LBB0_49
; %bb.47:                               ;   in Loop: Header=BB0_45 Depth=1
	add	x0, sp, #64
	bl	_ogg_page_continued
	cbz	w0, LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_45 Depth=1
	str	x23, [x19, #32]
	b	LBB0_45
LBB0_49:
	mov	x0, x19
	mov	x1, x23
	bl	_ov_raw_seek
	mov	x23, x0
	b	LBB0_56
LBB0_50:
Lloh19:
	adrp	x8, _OV_EBADPACKET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OV_EBADPACKET@GOTPAGEOFF]
	b	LBB0_54
LBB0_51:
	ldr	x9, [x19, #16]
	ldrsw	x10, [x19, #44]
	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, #40]
	sxtw	x8, w8
	cmp	x8, x20
	b.gt	LBB0_53
; %bb.52:
	mov	x0, x19
	mov	w1, #-1
	bl	_ov_pcm_total
	cmp	x0, x20
	b.ge	LBB0_57
LBB0_53:
Lloh21:
	adrp	x8, _OV_EFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OV_EFAULT@GOTPAGEOFF]
LBB0_54:
	ldr	x23, [x8]
LBB0_55:
	add	x0, sp, #64
	bl	_ogg_page_release
	add	x0, sp, #32
	bl	_ogg_packet_release
	mov	w8, #-1
	str	w8, [x19, #40]
	mov	x0, x19
	bl	__decode_clear
LBB0_56:
	mov	x0, x23
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_57:
	stp	xzr, xzr, [x19, #48]
	add	x0, sp, #64
	bl	_ogg_page_release
	add	x0, sp, #32
	bl	_ogg_packet_release
	mov	w23, #0
	b	LBB0_56
	.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 AdrpLdrGot	Lloh21, Lloh22
	.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	_OV_EOF,4,2                     ; @OV_EOF
	.comm	_STREAMSET,8,3                  ; @STREAMSET
	.comm	_OV_EBADPACKET,8,3              ; @OV_EBADPACKET
	.comm	_OV_EFAULT,8,3                  ; @OV_EFAULT
.subsections_via_symbols
