	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _open_seekable2
__open_seekable2:                       ## @_open_seekable2
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	24(%rdi), %edi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	*40(%rbx)
	movl	24(%rbx), %edi
	callq	*32(%rbx)
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	__get_prev_page
	movq	%rax, %r12
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	callq	_ogg_page_serialno
	movq	%rax, %r14
	leaq	-64(%rbp), %rdi
	callq	_ogg_page_release
	incq	%r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	cmpq	%r15, %r14
	jne	LBB0_2
## %bb.4:
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	__bisect_forward_serialno
	testq	%rax, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_5
LBB0_3:
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_6
LBB0_2:
	xorl	%edx, %edx
	movq	%r13, %rcx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	__bisect_forward_serialno
	testq	%rax, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	js	LBB0_3
LBB0_5:
	movq	%rbx, %rdi
	callq	__prefetch_all_headers
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ov_raw_seek
	movl	%eax, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_OV_EREAD,4,2                   ## @OV_EREAD
	.no_dead_strip	__open_seekable2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _open_seekable2
__open_seekable2:                       ; @_open_seekable2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	x21, x20, [x0]
	stp	xzr, xzr, [sp]
	ldr	x8, [x0, #40]
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x9, _SEEK_END@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEEK_END@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #24]
	blr	x8
	stp	x0, x0, [x19, #8]
	mov	x1, sp
	mov	x0, x19
	bl	__get_prev_page
	mov	x22, x0
	tbnz	x0, #63, LBB0_6
; %bb.1:
	mov	x0, sp
	bl	_ogg_page_serialno
	mov	x23, x0
	mov	x0, sp
	bl	_ogg_page_release
	add	x3, x22, #1
	mov	x0, x19
	cmp	x23, x21
	b.ne	LBB0_4
; %bb.2:
	mov	w1, #0
	mov	x2, x22
	mov	x4, x21
	mov	w5, #0
	bl	__bisect_forward_serialno
	cbz	x0, LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _OV_EREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV_EREAD@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_6
LBB0_4:
	mov	w1, #0
	mov	x2, #0
	mov	x4, x21
	mov	w5, #0
	bl	__bisect_forward_serialno
	tbnz	x0, #63, LBB0_3
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	__prefetch_all_headers
	mov	x0, x19
	mov	w1, #0
	bl	_ov_raw_seek
	mov	x22, x0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_OV_EREAD,4,2                   ; @OV_EREAD
	.no_dead_strip	__open_seekable2
.subsections_via_symbols
