	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_sync_pageseek              ## -- Begin function ogg_sync_pageseek
	.p2align	4, 0x90
_ogg_sync_pageseek:                     ## @ogg_sync_pageseek
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_ogg_page_release
	movq	(%r12), %r13
	movq	32(%r12), %rsi
	leaq	32(%r12), %r14
	leaq	-44(%rbp), %rdi
	callq	_oggbyte_init
	movl	8(%r12), %eax
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jl	LBB0_4
## %bb.5:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	jne	LBB0_16
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpl	$28, %eax
	jl	LBB0_14
## %bb.7:
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	27(%r15), %esi
	movq	%rbx, %rdi
	callq	_oggbyte_read1
	movslq	%eax, %rdx
	addq	16(%r12), %rdx
	movq	%rdx, 16(%r12)
	incl	%r15d
	movslq	8(%r12), %rcx
	leal	-27(%rcx), %eax
	cmpl	%eax, %r15d
	jl	LBB0_8
	jmp	LBB0_15
LBB0_3:
	cmpq	$27, %r13
	jl	LBB0_4
## %bb.9:
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	callq	_oggbyte_read1
	cmpl	$79, %eax
	jne	LBB0_21
## %bb.10:
	leaq	-44(%rbp), %rdi
	movl	$1, %esi
	callq	_oggbyte_read1
	cmpl	$103, %eax
	jne	LBB0_21
## %bb.11:
	leaq	-44(%rbp), %rdi
	movl	$2, %esi
	callq	_oggbyte_read1
	cmpl	$103, %eax
	jne	LBB0_21
## %bb.12:
	leaq	-44(%rbp), %rdi
	movl	$3, %esi
	callq	_oggbyte_read1
	cmpl	$83, %eax
	jne	LBB0_21
## %bb.13:
	leaq	-44(%rbp), %rdi
	movl	$26, %esi
	callq	_oggbyte_read1
	addl	$27, %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_1
LBB0_14:
	xorl	%edx, %edx
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	addq	%rdx, %rcx
	cmpq	%r13, %rcx
	jle	LBB0_18
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_31
LBB0_18:
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movl	$22, %esi
	callq	_oggbyte_read4
	movq	%rax, %r15
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$22, %edx
	callq	_oggbyte_set4
	movq	32(%r12), %rdi
	movslq	8(%r12), %rsi
	addq	16(%r12), %rsi
	callq	__checksum
	movq	%rax, %r13
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movl	$22, %edx
	callq	_oggbyte_set4
	cmpq	%r13, %r15
	jne	LBB0_21
## %bb.19:
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.20:
	leaq	24(%r12), %r15
	movslq	8(%r12), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ogg_buffer_split
	movq	%rax, 24(%rbx)
	movslq	8(%r12), %rax
	movq	%rax, (%rbx)
	movq	16(%r12), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ogg_buffer_split
	movq	%rax, 16(%rbx)
	movq	16(%r12), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_29
LBB0_21:
	movl	$0, 8(%r12)
	movq	$0, 16(%r12)
	movq	32(%r12), %rdi
	movl	$1, %esi
	callq	_ogg_buffer_pretruncate
	movq	%rax, 32(%r12)
	movq	$-1, %r15
	testq	%rax, %rax
	je	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdx
	movq	16(%rax), %rcx
	movslq	(%rax), %rbx
	addq	(%rcx), %rbx
	movq	%rbx, %rdi
	movl	$79, %esi
	callq	_memchr
	testq	%rax, %rax
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	(%r14), %rdi
	movq	8(%rdi), %rbx
	movq	%rbx, %rsi
	callq	_ogg_buffer_pretruncate
	movq	%rax, (%r14)
	subq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_22
LBB0_24:
	movq	$0, 24(%r12)
LBB0_25:
	movq	(%r12), %rax
	addq	%r15, %rax
	jmp	LBB0_30
LBB0_26:
	movq	%rax, %r13
	subq	%rbx, %r13
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_ogg_buffer_pretruncate
	movq	%rax, (%r14)
	subq	%r13, %r15
	testq	%rax, %rax
	jne	LBB0_25
	jmp	LBB0_24
LBB0_27:
	movq	32(%r12), %rdi
	movslq	8(%r12), %rsi
	addq	16(%r12), %rsi
	callq	_ogg_buffer_pretruncate
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:
	movq	$0, 24(%r12)
LBB0_29:
	movslq	8(%r12), %r15
	addq	16(%r12), %r15
	movq	$0, 40(%r12)
	movl	$0, 8(%r12)
	movq	$0, 16(%r12)
	movq	(%r12), %rax
	subq	%r15, %rax
LBB0_30:
	movq	%rax, (%r12)
LBB0_31:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_sync_pageseek              ; -- Begin function ogg_sync_pageseek
	.p2align	2
_ogg_sync_pageseek:                     ; @ogg_sync_pageseek
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ogg_page_release
	ldr	x22, [x19]
	mov	x20, x19
	ldr	x1, [x20, #32]!
	add	x0, sp, #12
	bl	_oggbyte_init
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
LBB0_1:
	sxtw	x8, w8
	cmp	x22, x8
	b.lt	LBB0_14
; %bb.2:
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_13
; %bb.3:
	cmp	w8, #28
	b.lt	LBB0_12
; %bb.4:
	mov	w23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w23, #27
	add	x0, sp, #12
	bl	_oggbyte_read1
	ldr	x8, [x19, #16]
	add	x9, x8, w0, sxtw
	str	x9, [x19, #16]
	add	w23, w23, #1
	ldrsw	x8, [x19, #8]
	sub	w10, w8, #27
	cmp	w23, w10
	b.lt	LBB0_5
	b	LBB0_13
LBB0_6:
	cmp	x22, #27
	b.lt	LBB0_14
; %bb.7:
	add	x0, sp, #12
	mov	w1, #0
	bl	_oggbyte_read1
	cmp	w0, #79
	b.ne	LBB0_18
; %bb.8:
	add	x0, sp, #12
	mov	w1, #1
	bl	_oggbyte_read1
	cmp	w0, #103
	b.ne	LBB0_18
; %bb.9:
	add	x0, sp, #12
	mov	w1, #2
	bl	_oggbyte_read1
	cmp	w0, #103
	b.ne	LBB0_18
; %bb.10:
	add	x0, sp, #12
	mov	w1, #3
	bl	_oggbyte_read1
	cmp	w0, #83
	b.ne	LBB0_18
; %bb.11:
	add	x0, sp, #12
	mov	w1, #26
	bl	_oggbyte_read1
	add	w8, w0, #27
	str	w8, [x19, #8]
	b	LBB0_1
LBB0_12:
	mov	x9, #0
LBB0_13:
	add	x8, x9, x8
	cmp	x8, x22
	b.le	LBB0_15
LBB0_14:
	mov	x21, #0
	b	LBB0_28
LBB0_15:
	add	x0, sp, #12
	mov	w1, #22
	bl	_oggbyte_read4
	mov	x22, x0
	add	x0, sp, #12
	mov	x1, #0
	mov	w2, #22
	bl	_oggbyte_set4
	ldr	x0, [x19, #32]
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #8]
	add	x1, x8, x9
	bl	__checksum
	mov	x23, x0
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #22
	bl	_oggbyte_set4
	cmp	x22, x23
	b.ne	LBB0_18
; %bb.16:
	cbz	x21, LBB0_24
; %bb.17:
	add	x22, x19, #24
	ldrsw	x2, [x19, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_ogg_buffer_split
	str	x0, [x21, #24]
	ldrsw	x8, [x19, #8]
	str	x8, [x21]
	ldr	x2, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_ogg_buffer_split
	ldr	x8, [x19, #16]
	stp	x8, x0, [x21, #8]
	b	LBB0_26
LBB0_18:
	str	wzr, [x19, #8]
	str	xzr, [x19, #16]
	ldr	x0, [x19, #32]
	mov	w1, #1
	bl	_ogg_buffer_pretruncate
	str	x0, [x19, #32]
	mov	x21, #-1
	cbz	x0, LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	x2, x8, [x0, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x0]
	add	x22, x8, x9
	mov	x0, x22
	mov	w1, #79
	bl	_memchr
	cbnz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x20]
	ldr	x22, [x0, #8]
	mov	x1, x22
	bl	_ogg_buffer_pretruncate
	str	x0, [x20]
	sub	x21, x21, x22
	cbnz	x0, LBB0_19
	b	LBB0_22
LBB0_21:
	sub	x22, x0, x22
	ldr	x0, [x20]
	mov	x1, x22
	bl	_ogg_buffer_pretruncate
	str	x0, [x20]
	sub	x21, x21, x22
	cbnz	x0, LBB0_23
LBB0_22:
	str	xzr, [x19, #24]
LBB0_23:
	ldr	x8, [x19]
	add	x8, x8, x21
	b	LBB0_27
LBB0_24:
	ldr	x0, [x19, #32]
	ldrsw	x8, [x19, #8]
	ldr	x9, [x19, #16]
	add	x1, x9, x8
	bl	_ogg_buffer_pretruncate
	str	x0, [x19, #32]
	cbnz	x0, LBB0_26
; %bb.25:
	str	xzr, [x19, #24]
LBB0_26:
	ldrsw	x8, [x19, #8]
	ldr	x9, [x19, #16]
	str	xzr, [x19, #40]
	str	wzr, [x19, #8]
	str	xzr, [x19, #16]
	ldr	x10, [x19]
	add	x21, x9, x8
	sub	x8, x10, x21
LBB0_27:
	str	x8, [x19]
LBB0_28:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
