	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _get_prev_page_serial
__get_prev_page_serial:                 ## @_get_prev_page_serial
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r15d
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, %r12d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %r14d
	cmpl	$-1, %ebx
	jne	LBB0_12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	movl	$0, %eax
	cmovlel	%eax, %ebx
	movq	%rdi, %r14
	movl	%ebx, %esi
	callq	__seek_helper
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %eax
	movl	$-1, %ebx
	cmpl	%eax, %r15d
	movq	%r14, %rdi
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	__lookup_serialno
	cmpl	$1, %eax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%eax, %r12d
	movq	%r15, %rdi
	movl	(%r15), %eax
	movl	%r14d, %ebx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	cmpl	%eax, %r15d
	jle	LBB0_12
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edx
	subl	%eax, %edx
	movq	%rdi, %r15
	leaq	-64(%rbp), %rsi
	callq	__get_next_page
	movl	%eax, %r14d
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_ogg_page_serialno
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_ogg_page_granulepos
	movl	%eax, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %ebx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	%r14d, %r12d
	jmp	LBB0_11
LBB0_12:
	testl	%r12d, %r12d
	jns	LBB0_15
## %bb.13:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_14:
	movl	%r14d, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNKSIZE,4,2                  ## @CHUNKSIZE
	.comm	_OV_EREAD,4,2                   ## @OV_EREAD
	.no_dead_strip	__get_prev_page_serial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _get_prev_page_serial
__get_prev_page_serial:                 ; @_get_prev_page_serial
	.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
	stp	x4, x3, [sp, #8]                ; 16-byte Folded Spill
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w27, [x0]
	mov	w26, #-1
	mov	w25, #-1
	mov	w21, #-1
	mov	x19, x27
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
Lloh0:
	adrp	x8, _CHUNKSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHUNKSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w19, w8
	cmp	w8, #0
	csel	w19, w8, wzr, gt
	mov	x0, x24
	mov	x1, x19
	bl	__seek_helper
	cbnz	w0, LBB0_13
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x24]
	mov	w20, #-1
	cmp	w27, w8
	b.gt	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, x20
	cmn	w20, #1
	b.eq	LBB0_1
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	bl	__lookup_serialno
	cmp	w0, #0
	csinv	w21, w21, wzr, ne
	ldr	w8, [x24]
	mov	x20, x28
	cmp	w27, w8
	b.le	LBB0_9
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w2, w27, w8
	add	x1, sp, #28
	mov	x0, x24
	bl	__get_next_page
	mov	x28, x0
Lloh3:
	adrp	x8, _OV_EREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV_EREAD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w28, #31, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x0, sp, #28
	bl	_ogg_page_serialno
	mov	x25, x0
	add	x0, sp, #28
	bl	_ogg_page_granulepos
	mov	x26, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w26, [x8]
	mov	x21, x28
	b	LBB0_4
LBB0_9:
	tbz	w21, #31, LBB0_12
; %bb.10:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w25, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w26, [x8]
LBB0_11:
	mov	x21, x28
LBB0_12:
	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_13:
	mov	x21, x0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNKSIZE,4,2                  ; @CHUNKSIZE
	.comm	_OV_EREAD,4,2                   ; @OV_EREAD
	.no_dead_strip	__get_prev_page_serial
.subsections_via_symbols
