	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _get_next_page
__get_next_page:                        ## @_get_next_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rdx, %rdx
	jle	LBB0_2
## %bb.1:
	addq	(%r14), %rbx
LBB0_2:
	leaq	8(%r14), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	subq	%rcx, (%r14)
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, (%r14)
	jge	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ogg_sync_pageseek
	movq	%rax, %rcx
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	__get_data
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	jns	LBB0_3
## %bb.14:
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	movq	_OV_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	(%r14), %rax
	addq	%rax, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_16
LBB0_11:
	movq	_OV_EOF@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV_FALSE,8,3                   ## @OV_FALSE
	.comm	_OV_EOF,8,3                     ## @OV_EOF
	.comm	_OV_EREAD,8,3                   ## @OV_EREAD
	.no_dead_strip	__get_next_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _get_next_page
__get_next_page:                        ; @_get_next_page
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x2, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x20, x8, x20
LBB0_2:
	add	x22, x19, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cmp	x8, x20
	b.ge	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_ogg_sync_pageseek
	mov	x8, x0
	tbnz	x0, #63, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	__get_data
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	tbz	x0, #63, LBB0_4
; %bb.11:
Lloh0:
	adrp	x8, _OV_EREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV_EREAD@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh2:
	adrp	x8, _OV_FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OV_FALSE@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	ldr	x0, [x19]
	add	x8, x0, x8
	str	x8, [x19]
	b	LBB0_16
LBB0_14:
Lloh4:
	adrp	x8, _OV_EOF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OV_EOF@GOTPAGEOFF]
LBB0_15:
	ldr	x0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_FALSE,8,3                   ; @OV_FALSE
	.comm	_OV_EOF,8,3                     ; @OV_EOF
	.comm	_OV_EREAD,8,3                   ; @OV_EREAD
	.no_dead_strip	__get_next_page
.subsections_via_symbols
