	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_stream_pagein              ## -- Begin function ogg_stream_pagein
	.p2align	4, 0x90
_ogg_stream_pagein:                     ## @ogg_stream_pagein
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ogg_page_serialno
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ogg_page_version
	cmpl	(%r14), %ebx
	jne	LBB0_1
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_ogg_page_release
	movq	_OGG_EVERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	%r15, %rdi
	callq	_ogg_page_release
	movq	_OGG_ESERIAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	cmpq	$0, 32(%r14)
	je	LBB0_5
## %bb.6:
	movq	24(%r14), %rdi
	movq	8(%r15), %rsi
	callq	_ogg_buffer_cat
	jmp	LBB0_7
LBB0_5:
	movq	8(%r15), %rdi
	movq	%rdi, 32(%r14)
	callq	_ogg_buffer_walk
LBB0_7:
	movq	%rax, 24(%r14)
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.9:
	movq	8(%r14), %rdi
	movq	(%r15), %rsi
	callq	_ogg_buffer_cat
	movq	%rax, 8(%r14)
	jmp	LBB0_10
LBB0_8:
	movq	(%r15), %rdi
	movq	%rdi, 16(%r14)
	callq	_ogg_buffer_walk
	movq	%rax, 8(%r14)
	movl	$-27, 4(%r14)
LBB0_10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_OGG_SUCCESS@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OGG_ESERIAL,4,2                ## @OGG_ESERIAL
	.comm	_OGG_EVERSION,4,2               ## @OGG_EVERSION
	.comm	_OGG_SUCCESS,4,2                ## @OGG_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_stream_pagein              ; -- Begin function ogg_stream_pagein
	.p2align	2
_ogg_stream_pagein:                     ; @ogg_stream_pagein
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_ogg_page_serialno
	mov	x21, x0
	mov	x0, x19
	bl	_ogg_page_version
	ldr	w8, [x20]
	cmp	w21, w8
	b.ne	LBB0_3
; %bb.1:
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_ogg_page_release
Lloh0:
	adrp	x8, _OGG_EVERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OGG_EVERSION@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_ogg_page_release
Lloh2:
	adrp	x8, _OGG_ESERIAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OGG_ESERIAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x20, #24]
	ldr	x1, [x19, #8]
	bl	_ogg_buffer_cat
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19, #8]
	str	x0, [x20, #32]
	bl	_ogg_buffer_walk
LBB0_7:
	str	x0, [x20, #24]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x0, [x20, #8]
	ldr	x1, [x19]
	bl	_ogg_buffer_cat
	str	x0, [x20, #8]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19]
	str	x0, [x20, #16]
	bl	_ogg_buffer_walk
	str	x0, [x20, #8]
	mov	w8, #-27
	str	w8, [x20, #4]
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh4:
	adrp	x8, _OGG_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OGG_SUCCESS@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OGG_ESERIAL,4,2                ; @OGG_ESERIAL
	.comm	_OGG_EVERSION,4,2               ; @OGG_EVERSION
	.comm	_OGG_SUCCESS,4,2                ; @OGG_SUCCESS
.subsections_via_symbols
