	.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
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	cmpq	%rdx, %rcx
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r14
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-112(%rbp), %rdi
	callq	_ogg_page_release
	cmpq	%r12, %r14
	jle	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rax
	subq	%r12, %rax
	movq	%r12, %rbx
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r12), %rax
	movq	%rax, %rbx
	shrq	$63, %rbx
	addq	%rax, %rbx
	sarq	%rbx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	__seek_helper
	movq	%r13, %rdi
	leaq	-112(%rbp), %rsi
	movl	$-1, %edx
	callq	__get_next_page
	movq	%rax, %r15
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-112(%rbp), %rdi
	callq	_ogg_page_serialno
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %r12
	addq	%r15, %r12
	addq	-104(%rbp), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_1:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	__seek_helper
	leaq	-112(%rbp), %rsi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	__get_next_page
	movq	%rax, %r15
	movq	_OV_EREAD@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_19
## %bb.13:
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	cmpq	%rbx, %r12
	jge	LBB0_15
## %bb.14:
	testq	%r15, %r15
	js	LBB0_15
## %bb.16:
	movq	8(%r13), %r15
	leaq	-112(%rbp), %rdi
	callq	_ogg_page_serialno
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	1(%r12), %r9
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	__bisect_forward_serialno
	movl	%eax, %r15d
	movslq	%eax, %rbx
	leaq	-112(%rbp), %rdi
	callq	_ogg_page_release
	cmpq	%rbx, (%r14)
	je	LBB0_19
## %bb.17:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movq	%r12, %rbx
	jmp	LBB0_18
LBB0_15:
	leaq	-112(%rbp), %rdi
	callq	_ogg_page_release
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	1(%rbx), %rax
	movq	%rax, (%r13)
	leal	16(,%rbx,8), %edi
	callq	__ogg_malloc
	movq	%rax, 24(%r13)
	movl	(%r13), %edi
	shll	$3, %edi
	callq	__ogg_malloc
	movq	%rax, 16(%r13)
	movq	24(%r13), %rcx
	movq	%r12, 8(%rcx,%rbx,8)
LBB0_18:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx,%rbx,8)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%rbx,8)
	xorl	%r15d, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
Lloh0:
	adrp	x27, _OV_EREAD@GOTPAGE
Lloh1:
	ldr	x27, [x27, _OV_EREAD@GOTPAGEOFF]
	cmp	x3, x2
	stp	x1, x5, [sp]                    ; 16-byte Folded Spill
	b.le	LBB0_8
; %bb.1:
Lloh2:
	adrp	x28, _CHUNKSIZE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CHUNKSIZE@GOTPAGEOFF]
	mov	x24, x20
	mov	x21, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	bl	_ogg_page_release
	mov	x24, x25
	mov	x21, x26
	cmp	x26, x23
	b.le	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	add	x9, x21, x23
	cmp	x9, #0
	cinc	x9, x9, lt
	asr	x9, x9, #1
	sub	x10, x21, x23
	cmp	x10, x8
	csel	x26, x23, x9, lt
	mov	x0, x22
	mov	x1, x26
	bl	__seek_helper
	add	x1, sp, #16
	mov	x0, x22
	mov	w2, #-1
	bl	__get_next_page
	mov	x25, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	x25, #63, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	bl	_ogg_page_serialno
	cmp	x0, x19
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [sp, #16]
	add	x8, x8, x25
	add	x23, x8, x9
	mov	x26, x21
	b	LBB0_2
LBB0_8:
	mov	x25, x20
LBB0_9:
	mov	x0, x22
	mov	x1, x25
	bl	__seek_helper
	add	x1, sp, #16
	mov	x0, x22
	mov	w2, #-1
	bl	__get_next_page
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x25, x0
	b	LBB0_17
LBB0_11:
	cmp	x23, x20
	b.ge	LBB0_15
; %bb.12:
	tbnz	x0, #63, LBB0_15
; %bb.13:
	ldr	x23, [x22, #8]
	add	x0, sp, #16
	bl	_ogg_page_serialno
	mov	x4, x0
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	add	x5, x21, #1
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	mov	x3, x20
	bl	__bisect_forward_serialno
	mov	x25, x0
	add	x0, sp, #16
	bl	_ogg_page_release
	ldr	x8, [x27]
	cmp	x8, w25, sxtw
	b.eq	LBB0_17
; %bb.14:
	ldp	x0, x8, [x22, #16]
	b	LBB0_16
LBB0_15:
	add	x0, sp, #16
	bl	_ogg_page_release
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	add	x20, x21, #1
	str	x20, [x22]
	lsl	w8, w21, #3
	add	w0, w8, #16
	bl	__ogg_malloc
	str	x0, [x22, #24]
	ldr	w8, [x22]
	lsl	w0, w8, #3
	bl	__ogg_malloc
	str	x0, [x22, #16]
	ldr	x8, [x22, #24]
	str	x23, [x8, x20, lsl #3]
LBB0_16:
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	mov	w25, #0
	lsl	x9, x21, #3
	str	x10, [x8, x9]
	str	x19, [x0, x9]
LBB0_17:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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
