	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_pcm_seek                    ## -- Begin function ov_pcm_seek
	.p2align	4, 0x90
_ov_pcm_seek:                           ## @ov_pcm_seek
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_ov_pcm_seek_page
	testl	%eax, %eax
	js	LBB0_43
## %bb.1:
	movq	%r15, %rdi
	callq	__make_decode_ready
	testl	%eax, %eax
	jne	LBB0_43
## %bb.2:
	leaq	72(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	88(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	48(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r12d
	leaq	-64(%rbp), %rbx
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_33 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ogg_stream_packetpeek
	testl	%eax, %eax
	jle	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r15), %rdi
	addq	96(%r15), %rdi
	movq	%rbx, %rsi
	callq	_vorbis_packet_blocksize
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r13d, %r12d
	sarl	$2, %r12d
	movslq	%r12d, %rbx
	addq	8(%r15), %rbx
	movq	%rbx, 8(%r15)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_OV_HOLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_35
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
	movl	$-1, %edx
	callq	__get_next_page
	testq	%rax, %rax
	js	LBB0_35
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_ogg_page_bos
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	__decode_clear
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movq	_STREAMSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_ogg_page_serialno
	movq	%rax, %r13
	movl	32(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r15), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, (%rdx,%rcx,8)
	je	LBB0_28
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_33
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ogg_stream_packetout
	leaq	-64(%rbp), %rbx
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	96(%r15), %rdi
	movl	$1, %esi
	callq	_vorbis_info_blocksize
	addl	%r13d, %eax
	sarl	$2, %eax
	cltq
	addq	%rbx, %rax
	cmpq	%r14, %rax
	jge	LBB0_35
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ogg_stream_packetout
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_vorbis_synthesis_trackonly
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_vorbis_synthesis_blockin
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rcx
	movslq	(%r15), %rdx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	subq	(%rcx,%rsi), %rax
	testq	%rax, %rax
	movl	$0, %esi
	cmovleq	%rsi, %rax
	movq	%rax, 8(%r15)
	testq	%rdx, %rdx
	jle	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %esi
	leaq	-1(%rsi), %rdi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$3, %rdi
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	andl	$-4, %esi
	leaq	56(%rcx), %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	-48(%rbx), %rax
	movq	%rax, 8(%r15)
	addq	-32(%rbx), %rax
	movq	%rax, 8(%r15)
	addq	-16(%rbx), %rax
	movq	%rax, 8(%r15)
	addq	(%rbx), %rax
	movq	%rax, 8(%r15)
	addq	$4, %rdi
	addq	$64, %rbx
	cmpq	%rdi, %rsi
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	shlq	$4, %rdi
	addq	%rdi, %rcx
	addq	$8, %rcx
	shlq	$4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	(%rcx,%rsi), %rax
	movq	%rax, 8(%r15)
	addq	$16, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_18
	jmp	LBB0_19
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %ecx
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, (%r15)
	movq	_STREAMSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	leaq	-44(%rbp), %rdi
	callq	_ogg_page_serialno
	movq	%rax, 80(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ogg_stream_reset_serialno
	movq	%r15, %rdi
	callq	__make_decode_ready
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_43
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-44(%rbp), %rsi
	callq	_ogg_stream_pagein
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-64(%rbp), %rbx
	jmp	LBB0_3
LBB0_35:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
	movq	8(%r15), %rbx
	xorl	%eax, %eax
	cmpq	%r14, %rbx
	jge	LBB0_43
## %bb.36:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_37
LBB0_40:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ov_pcm_total
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_37 Depth=1
	cmpq	%r15, %rbx
	movq	%r15, %r14
	jge	LBB0_42
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r13
	subq	%rbx, %r13
	movq	%r14, %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vorbis_synthesis_pcmout
	movq	%rax, %r12
	cmpq	%r13, %rax
	movq	%r13, %rbx
	cmovlq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vorbis_synthesis_read
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rbx
	movq	%rbx, 8(%rax)
	cmpq	%r12, %r13
	jle	LBB0_41
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	__fetch_and_process_packet
	testq	%rax, %rax
	jle	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	8(%r14), %rbx
	jmp	LBB0_41
LBB0_42:
	xorl	%eax, %eax
LBB0_43:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV_HOLE,4,2                    ## @OV_HOLE
	.comm	_STREAMSET,8,3                  ## @STREAMSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_pcm_seek                    ; -- Begin function ov_pcm_seek
	.p2align	2
_ov_pcm_seek:                           ; @ov_pcm_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	bl	_ov_pcm_seek_page
	tbnz	w0, #31, LBB0_39
; %bb.1:
	mov	x0, x20
	bl	__make_decode_ready
	cbnz	w0, LBB0_39
; %bb.2:
	mov	w27, #0
	add	x22, x20, #72
	add	x23, x20, #88
	add	x21, x20, #48
Lloh0:
	adrp	x25, _OV_HOLE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OV_HOLE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _STREAMSET@GOTPAGE
Lloh3:
	ldr	x26, [x26, _STREAMSET@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w9, [x20]
	ldr	x8, [x26]
	str	x8, [x20, #24]
	add	x0, sp, #4
	bl	_ogg_page_serialno
	str	x0, [x20, #80]
	mov	x0, x22
	mov	x1, x24
	bl	_ogg_stream_reset_serialno
	mov	x0, x20
	bl	__make_decode_ready
	cbnz	w0, LBB0_39
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #4
	mov	x0, x22
	bl	_ogg_stream_pagein
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
	add	x1, sp, #8
	mov	x0, x22
	bl	_ogg_stream_packetpeek
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #96]
	ldrsw	x9, [x20]
	add	x0, x8, x9
	add	x1, sp, #8
	bl	_vorbis_packet_blocksize
	tbnz	w0, #31, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	cbz	w27, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w24, w27
	asr	w8, w8, #2
	ldr	x9, [x20, #8]
	add	x27, x9, w8, sxtw
	str	x27, [x20, #8]
	b	LBB0_22
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_32
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #4
	mov	x0, x20
	mov	w2, #-1
	bl	__get_next_page
	tbnz	x0, #63, LBB0_32
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #4
	bl	_ogg_page_bos
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	__decode_clear
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #4
	bl	_ogg_page_serialno
	mov	x24, x0
	ldr	w8, [x20, #32]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, #0
	ldr	x10, [x20, #40]
LBB0_18:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10, x9, lsl #3]
	cmp	x11, x24
	b.eq	LBB0_31
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_18
	b	LBB0_6
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, #0
	bl	_ogg_stream_packetout
	b	LBB0_6
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x27, [x20, #8]
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, #96]
	mov	w1, #1
	bl	_vorbis_info_blocksize
	add	w8, w0, w24
	asr	w8, w8, #2
	add	x8, x27, w8, sxtw
	cmp	x8, x19
	b.ge	LBB0_32
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, #0
	bl	_ogg_stream_packetout
	add	x1, sp, #8
	mov	x0, x23
	bl	_vorbis_synthesis_trackonly
	mov	x0, x21
	mov	x1, x23
	bl	_vorbis_synthesis_blockin
	ldr	w8, [sp, #8]
	tbnz	w8, #31, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x20, #16]
	ldrsw	x9, [x20]
	lsl	x11, x9, #4
	ldr	x11, [x10, x11]
	sub	x8, x8, x11
	cmp	x8, #0
	csel	x8, x8, xzr, gt
	str	x8, [x20, #8]
	cmp	w9, #1
	b.lt	LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	and	x9, x9, #0xffffffff
	add	x10, x10, #8
LBB0_26:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10], #16
	add	x8, x8, x11
	str	x8, [x20, #8]
	subs	x9, x9, #1
	b.ne	LBB0_26
; %bb.27:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x24
	b	LBB0_6
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x24
	b	LBB0_6
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x24
	b	LBB0_6
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #0
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, w8
	b.eq	LBB0_6
	b	LBB0_3
LBB0_32:
	stp	xzr, xzr, [x20, #56]
	b	LBB0_37
LBB0_33:                                ;   Parent Loop BB0_37 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x0, x19
	b.ge	LBB0_38
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	sub	x24, x19, x0
	mov	x0, x21
	mov	x1, #0
	bl	_vorbis_synthesis_pcmout
	mov	x22, x0
	cmp	x0, x24
	csel	x23, x0, x24, lt
	mov	x0, x21
	mov	x1, x23
	bl	_vorbis_synthesis_read
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	str	x0, [x20, #8]
	cmp	x24, x22
	b.le	LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=2
	mov	x0, x20
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	bl	__fetch_and_process_packet
	cmp	x0, #1
	b.ge	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=2
	mov	x0, x20
	mov	w1, #-1
	bl	_ov_pcm_total
	str	x0, [x20, #8]
	b	LBB0_33
LBB0_37:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	ldr	x0, [x20, #8]
	b	LBB0_33
LBB0_38:
	mov	w0, #0
LBB0_39:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_HOLE,4,2                    ; @OV_HOLE
	.comm	_STREAMSET,8,3                  ; @STREAMSET
.subsections_via_symbols
