	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bisect_forward_serialno
__bisect_forward_serialno:              ## @_bisect_forward_serialno
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	24(%rbp), %edx
	movq	16(%rbp), %rsi
	movq	%r8, -120(%rbp)
	movl	%r9d, -44(%rbp)
	movq	$-1, -112(%rbp)
	movl	64(%rdi), %r14d
	movl	%r9d, %edi
	callq	__lookup_serialno
	testq	%rax, %rax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.1:
	cmpl	%r13d, %r14d
	movl	24(%rbp), %ecx
	movq	16(%rbp), %r15
	je	LBB0_4
## %bb.2:
	leaq	-120(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -44(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%ecx, %r12d
	movl	%ecx, %edx
	leaq	-44(%rbp), %rcx
	movq	%r13, %r8
	callq	__get_prev_page_serial
	movl	%r12d, %ecx
	movq	%rax, (%rbx)
	cmpl	%r14d, -44(%rbp)
	jne	LBB0_3
LBB0_4:
	movq	32(%rbp), %r14
	leaq	1(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	__ogg_free
LBB0_6:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	callq	__ogg_free
LBB0_8:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	__ogg_free
LBB0_10:
	movl	8(%rbx), %eax
	leal	8(,%rax,8), %edi
	callq	__ogg_malloc
	movq	%rax, 16(%rbx)
	movq	56(%rbx), %rdi
	movl	8(%rbx), %esi
	shll	$2, %esi
	callq	__ogg_realloc
	movq	%rax, 56(%rbx)
	movq	48(%rbx), %rdi
	movl	8(%rbx), %esi
	shll	$2, %esi
	callq	__ogg_realloc
	movq	%rax, 48(%rbx)
	movl	8(%rbx), %edi
	shll	$3, %edi
	callq	__ogg_malloc
	movq	%rax, 24(%rbx)
	movl	8(%rbx), %edi
	shll	$3, %edi
	callq	__ogg_malloc
	movq	%rax, 32(%rbx)
	movl	8(%rbx), %edi
	shll	$4, %edi
	callq	__ogg_malloc
	movq	%rax, %rcx
	movq	%rax, 40(%rbx)
	movq	16(%rbx), %rax
	movq	%r15, 8(%rax,%r14,8)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%r14,8)
	movq	-120(%rbp), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	cmovleq	%rax, %rdx
	shlq	$4, %r14
	movq	%rdx, 8(%rcx,%r14)
LBB0_33:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movl	%r13d, -92(%rbp)                ## 4-byte Spill
	movq	$0, -88(%rbp)
	movl	$0, -56(%rbp)
	movq	%r15, %r12
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r15
	jle	LBB0_24
## %bb.12:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rax
	movq	%r15, %r13
	cmpq	%rcx, %r15
	jle	LBB0_24
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	subq	%rcx, %rax
	movq	%rcx, %r15
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rcx,%r13), %rax
	movq	%rax, %r15
	shrq	$63, %r15
	addq	%rax, %r15
	sarq	%r15
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpq	(%rbx), %r15
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__seek_helper
	testq	%rax, %rax
	jne	LBB0_33
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	leaq	-100(%rbp), %rsi
	movl	$-1, %edx
	callq	__get_next_page
	movq	%rax, %r12
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	testq	%r12, %r12
	js	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	-100(%rbp), %rdi
	movq	16(%rbp), %rsi
	movl	24(%rbp), %edx
	callq	__lookup_page_serialno
	testl	%eax, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rbx), %rcx
	movq	%r13, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_24:
	movq	%r12, (%rbx)
	movl	24(%rbp), %r15d
	movq	16(%rbp), %r13
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -48(%rbp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	leaq	-48(%rbp), %rcx
	leaq	-112(%rbp), %r8
	callq	__get_prev_page_serial
	movq	%rax, (%rbx)
	cmpl	%r14d, -48(%rbp)
	jne	LBB0_25
## %bb.26:
	cmpq	%rax, %r12
	je	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	__seek_helper
	testq	%rax, %rax
	jne	LBB0_33
LBB0_28:
	leaq	-52(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	__fetch_headers
	testq	%rax, %rax
	jne	LBB0_33
## %bb.29:
	movslq	64(%rbx), %r13
	movq	(%rbx), %r15
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	__initial_pcmoffset
	movq	%rax, %r14
	movq	(%rbx), %rdx
	movl	-56(%rbp), %r10d
	movq	32(%rbp), %rax
	incq	%rax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	movl	-92(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r10
	pushq	-88(%rbp)
	callq	__bisect_forward_serialno
	addq	$32, %rsp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_33
## %bb.30:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	callq	__ogg_free
LBB0_32:
	movq	16(%rbx), %rax
	movq	32(%rbp), %rsi
	movq	%r12, 8(%rax,%rsi,8)
	movq	24(%rbx), %rax
	movq	%r13, 8(%rax,%rsi,8)
	movq	32(%rbx), %rax
	movq	%r15, 8(%rax,%rsi,8)
	movl	-52(%rbp), %eax
	movq	56(%rbx), %rcx
	movl	%eax, 4(%rcx,%rsi,4)
	movl	-96(%rbp), %eax
	movq	48(%rbx), %rcx
	movl	%eax, 4(%rcx,%rsi,4)
	movq	-112(%rbp), %rax
	movq	40(%rbx), %rcx
	shlq	$4, %rsi
	movq	%rax, 8(%rsi,%rcx)
	movq	%r14, 16(%rsi,%rcx)
	movq	24(%rsi,%rcx), %rdx
	subq	%r14, %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	cmovleq	%rax, %rdx
	movq	%rdx, 24(%rsi,%rcx)
	jmp	LBB0_33
LBB0_18:
	movl	%r12d, %eax
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNKSIZE,8,3                  ## @CHUNKSIZE
	.comm	_OV_EREAD,8,3                   ## @OV_EREAD
	.no_dead_strip	__bisect_forward_serialno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bisect_forward_serialno
__bisect_forward_serialno:              ; @_bisect_forward_serialno
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x23, x7
	mov	x24, x6
	mov	x21, x5
	mov	x27, x4
	mov	x22, x3
	mov	x26, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x20, [x29, #16]
	str	x4, [sp, #88]
	str	w5, [sp, #84]
	mov	x8, #-1
	str	x8, [sp, #72]
	ldr	w28, [x0, #64]
	mov	x0, x5
	mov	x1, x6
	mov	x2, x7
	bl	__lookup_serialno
	cbz	x0, LBB0_10
; %bb.1:
	cmp	w28, w21
	b.eq	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w28, [sp, #84]
	add	x3, sp, #84
	add	x4, sp, #88
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	__get_prev_page_serial
	str	x0, [x19]
	ldr	w8, [sp, #84]
	cmp	w8, w28
	b.ne	LBB0_2
LBB0_3:
	add	x21, x20, #1
	str	x21, [x19, #8]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	bl	__ogg_free
LBB0_5:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_7
; %bb.6:
	bl	__ogg_free
LBB0_7:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.8:
	bl	__ogg_free
LBB0_9:
	ldr	w8, [x19, #8]
	lsl	w8, w8, #3
	add	w0, w8, #8
	bl	__ogg_malloc
	str	x0, [x19, #16]
	ldr	x0, [x19, #56]
	ldr	w8, [x19, #8]
	lsl	w1, w8, #2
	bl	__ogg_realloc
	str	x0, [x19, #56]
	ldr	x0, [x19, #48]
	ldr	w8, [x19, #8]
	lsl	w1, w8, #2
	bl	__ogg_realloc
	str	x0, [x19, #48]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #3
	bl	__ogg_malloc
	str	x0, [x19, #24]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #3
	bl	__ogg_malloc
	str	x0, [x19, #32]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #4
	bl	__ogg_malloc
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #40]
	ldr	x9, [x19, #16]
	str	x22, [x9, x21, lsl #3]
	str	x25, [x9, x20, lsl #3]
	ldr	x9, [sp, #88]
	cmp	x9, #0
	csel	x9, x9, xzr, gt
	add	x8, x8, x20, lsl #4
	str	x9, [x8, #8]
	b	LBB0_31
LBB0_10:
	stp	x22, x27, [sp, #24]             ; 16-byte Folded Spill
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	str	xzr, [sp, #56]
	str	wzr, [sp, #52]
	mov	x25, x22
	cmp	x22, x26
	b.le	LBB0_20
; %bb.11:
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	mov	x20, x27
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x25, x20
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x20, x25
	mov	x27, x22
	cmp	x22, x26
	b.le	LBB0_20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x8, _CHUNKSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHUNKSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x27, x26
	cmp	x9, #0
	cinc	x9, x9, lt
	asr	x9, x9, #1
	sub	x10, x27, x26
	cmp	x10, x8
	csel	x22, x26, x9, lt
	ldr	x8, [x19]
	cmp	x22, x8
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	__seek_helper
	cbnz	x0, LBB0_31
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x1, sp, #68
	mov	x0, x19
	mov	w2, #-1
	bl	__get_next_page
	mov	x25, x0
Lloh3:
	adrp	x8, _OV_EREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV_EREAD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_26
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	tbnz	x25, #63, LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #68
	mov	x1, x24
	mov	x2, x23
	bl	__lookup_page_serialno
	cbz	w0, LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x26, [x19]
	mov	x22, x27
	b	LBB0_12
LBB0_20:
	str	x25, [x19]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	str	w28, [sp, #40]
	add	x3, sp, #40
	add	x4, sp, #72
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	__get_prev_page_serial
	str	x0, [x19]
	ldr	w8, [sp, #40]
	cmp	w8, w28
	b.ne	LBB0_21
; %bb.22:
	cmp	x25, x0
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x19
	mov	x1, x25
	bl	__seek_helper
	cbnz	x0, LBB0_25
LBB0_24:
	add	x1, sp, #48
	add	x2, sp, #44
	add	x3, sp, #56
	add	x4, sp, #52
	mov	x0, x19
	mov	x5, #0
	bl	__fetch_headers
	cbz	x0, LBB0_27
LBB0_25:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_31
LBB0_26:
	mov	x0, x25
	b	LBB0_31
LBB0_27:
	ldrsw	x22, [x19, #64]
	ldr	x20, [x19]
	add	x1, sp, #48
	mov	x0, x19
	bl	__initial_pcmoffset
	mov	x23, x0
	ldr	x2, [x19]
	ldr	x6, [sp, #56]
	ldp	x8, x3, [sp, #16]               ; 16-byte Folded Reload
	add	x24, x8, #1
	ldr	w7, [sp, #52]
	str	x24, [sp]
	mov	x0, x19
	mov	x1, x25
	mov	x4, x26
	mov	x5, x21
	bl	__bisect_forward_serialno
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_31
; %bb.28:
	ldr	x0, [sp, #56]
	cbz	x0, LBB0_30
; %bb.29:
	bl	__ogg_free
LBB0_30:
	mov	w0, #0
	ldr	x8, [x19, #16]
	lsl	x9, x24, #3
	str	x25, [x8, x9]
	ldr	x8, [x19, #24]
	str	x22, [x8, x9]
	ldr	x8, [x19, #32]
	str	x20, [x8, x9]
	ldr	w8, [sp, #48]
	ldr	x9, [x19, #56]
	lsl	x10, x24, #2
	str	w8, [x9, x10]
	ldr	w8, [sp, #44]
	ldr	x9, [x19, #48]
	str	w8, [x9, x10]
	ldr	x8, [sp, #72]
	ldr	x9, [x19, #40]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	add	x9, x9, x10, lsl #4
	stp	x8, x23, [x9, #8]
	ldr	x8, [x9, #24]
	sub	x8, x8, x23
	cmp	x8, #0
	csel	x8, x8, xzr, gt
	str	x8, [x9, #24]
LBB0_31:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNKSIZE,8,3                  ; @CHUNKSIZE
	.comm	_OV_EREAD,8,3                   ; @OV_EREAD
	.no_dead_strip	__bisect_forward_serialno
.subsections_via_symbols
