	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ogg_stream_flush_i
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ogg_stream_flush_i:                    ## @ogg_stream_flush_i
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	(%rdi), %r14d
	cmpl	$255, %r14d
	movl	$255, %ebx
	cmovll	%r14d, %ebx
	callq	_ogg_stream_check
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_42
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_42
## %bb.2:
	cmpl	$0, 4(%r13)
	je	LBB0_5
## %bb.3:
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.12:
	movslq	%r12d, %r8
	cmpl	$2, %ebx
	movl	$1, %r9d
	cmovgel	%ebx, %r9d
	movl	$-1, %r10d
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	%rcx, %rbx
	incq	%rsi
	cmpq	%rsi, %r9
	je	LBB0_19
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, %rbx
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$3, %edi
	jg	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r13), %rcx
	movzbl	(%rcx,%rsi,4), %ecx
	xorl	%edi, %edi
	cmpl	$255, %ecx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	16(%r13), %rdi
	movl	(%rdi,%rsi,4), %r10d
	incl	%edx
	movl	%edx, %edi
	jmp	LBB0_17
LBB0_5:
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.7:
	movq	8(%r13), %rdx
	cmpl	$2, %ebx
	movl	$1, %r9d
	cmovgel	%ebx, %r9d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$-1, (%rdx,%rcx,4)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %r9
	jne	LBB0_8
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_4:
	movl	$-1, %ebx
	xorl	%r9d, %r9d
	jmp	LBB0_20
LBB0_18:
	movl	$1, %r15d
	movl	%esi, %r9d
LBB0_19:
	movl	%r10d, %ebx
	movl	$255, %r12d
	cmpl	$255, %r9d
	jne	LBB0_20
	jmp	LBB0_21
LBB0_6:
	xorl	%r9d, %r9d
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_9:
	incl	%ecx
	xorl	%ebx, %ebx
	movl	%ecx, %r9d
LBB0_20:
	movl	%r9d, %r12d
	testl	%r15d, %r15d
	je	LBB0_42
LBB0_21:
	movq	24(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%r13), %rax
	movq	$0, 16(%rax)
	movq	8(%r13), %rdi
	xorl	%ecx, %ecx
	testl	$256, (%rdi)                    ## imm = 0x100
	sete	%cl
	movl	%ecx, 20(%rax)
	cmpl	$0, 4(%r13)
	jne	LBB0_23
## %bb.22:
	orl	$2, %ecx
	movl	%ecx, 20(%rax)
LBB0_23:
	cmpq	$0, 64(%r13)
	je	LBB0_26
## %bb.24:
	cmpl	%r12d, (%r13)
	jne	LBB0_26
## %bb.25:
	orl	$4, %ecx
	movl	%ecx, 20(%rax)
LBB0_26:
	movl	$1, 4(%r13)
	movzbl	%bl, %ecx
	movl	%ecx, 24(%rax)
	movzbl	%bh, %ecx
	movl	%ecx, 28(%rax)
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 32(%rax)
	movl	%ebx, %ecx
	shrl	$24, %ecx
	movl	%ecx, 36(%rax)
	sarl	$31, %ebx
	movzbl	%bl, %ecx
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 40(%rax)
	movl	32(%r13), %ecx
	movzbl	%cl, %edx
	movl	%edx, 56(%rax)
	movzbl	%ch, %edx
	movl	%edx, 60(%rax)
	movl	%ecx, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movl	%edx, 64(%rax)
	shrl	$24, %ecx
	movl	%ecx, 68(%rax)
	movl	40(%r13), %ecx
	xorl	%ebx, %ebx
	cmpl	$-1, %ecx
	cmovel	%ebx, %ecx
	leal	1(%rcx), %edx
	movl	%edx, 40(%r13)
	movzbl	%cl, %edx
	movl	%edx, 72(%rax)
	movzbl	%ch, %edx
	movl	%edx, 76(%rax)
	movl	%ecx, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movl	%edx, 80(%rax)
	shrl	$24, %ecx
	movl	%ecx, 84(%rax)
	movzbl	%r12b, %ecx
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 88(%rax)
	movl	%ecx, 104(%rax)
	testl	%r12d, %r12d
	jle	LBB0_41
## %bb.27:
	movl	%r12d, %ecx
	cmpl	$8, %r12d
	jb	LBB0_28
## %bb.29:
	movq	%rax, %rdx
	subq	%rdi, %rdx
	addq	$108, %rdx
	cmpq	$32, %rdx
	jae	LBB0_30
LBB0_28:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
LBB0_37:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %cl
	je	LBB0_39
## %bb.38:
	movzbl	(%rdi,%rdx,4), %r8d
	movl	%r8d, 108(%rax,%rdx,4)
	addl	%r8d, %ebx
	orq	$1, %rdx
LBB0_39:
	addq	%rcx, %rsi
	je	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rdx,4), %esi
	movl	%esi, 108(%rax,%rdx,4)
	addl	%esi, %ebx
	movzbl	4(%rdi,%rdx,4), %esi
	movl	%esi, 112(%rax,%rdx,4)
	addl	%esi, %ebx
	addq	$2, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_40
	jmp	LBB0_41
LBB0_30:
	movl	%ecx, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_31
## %bb.32:
	movq	%r8, %rbx
	andq	$-2, %rbx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi,4), %xmm3
	movdqu	16(%rdi,%rsi,4), %xmm4
	pand	%xmm2, %xmm3
	pand	%xmm2, %xmm4
	movdqu	%xmm3, 108(%rax,%rsi,4)
	movdqu	%xmm4, 124(%rax,%rsi,4)
	paddd	%xmm0, %xmm3
	paddd	%xmm1, %xmm4
	movdqu	32(%rdi,%rsi,4), %xmm0
	movdqu	48(%rdi,%rsi,4), %xmm1
	pand	%xmm2, %xmm0
	pand	%xmm2, %xmm1
	movdqu	%xmm0, 140(%rax,%rsi,4)
	movdqu	%xmm1, 156(%rax,%rsi,4)
	paddd	%xmm3, %xmm0
	paddd	%xmm4, %xmm1
	addq	$16, %rsi
	addq	$-2, %rbx
	jne	LBB0_33
## %bb.34:
	testb	$1, %r8b
	je	LBB0_36
LBB0_35:
	movdqu	(%rdi,%rsi,4), %xmm2
	movdqu	16(%rdi,%rsi,4), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	pand	%xmm4, %xmm2
	pand	%xmm4, %xmm3
	movdqu	%xmm2, 108(%rax,%rsi,4)
	movdqu	%xmm3, 124(%rax,%rsi,4)
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
LBB0_36:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%rcx, %rdx
	jne	LBB0_37
LBB0_41:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%r15)
	leal	27(%r12), %eax
	movl	%eax, 44(%r13)
	movl	%eax, 8(%r15)
	movq	48(%r13), %rax
	addq	56(%r13), %rax
	movq	%rax, 16(%r15)
	movl	%ebx, 12(%r15)
	movl	(%r13), %edx
	subl	%r12d, %edx
	movl	%edx, (%r13)
	movslq	%r12d, %r14
	leaq	(%rdi,%r14,4), %rsi
	shll	$2, %edx
	callq	_memmove
	movq	16(%r13), %rdi
	leaq	(%rdi,%r14,4), %rsi
	movl	(%r13), %edx
	shll	$2, %edx
	callq	_memmove
	movl	%ebx, %eax
	addq	%rax, 48(%r13)
	movq	%r15, %rdi
	callq	_ogg_page_checksum_set
	movl	$1, %eax
LBB0_42:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_35
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OggS"

	.no_dead_strip	_ogg_stream_flush_i
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ogg_stream_flush_i
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ogg_stream_flush_i:                    ; @ogg_stream_flush_i
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w24, [x0]
	mov	w8, #255
	cmp	w24, #255
	csel	w23, w24, w8, lt
	bl	_ogg_stream_check
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_40
; %bb.1:
	cbz	w23, LBB0_40
; %bb.2:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_11
; %bb.3:
	cmp	w24, #1
	b.lt	LBB0_16
; %bb.4:
	mov	x8, #0
	mov	w13, #0
	mov	w9, #0
	mov	x10, #0
	sxtw	x11, w22
	cmp	w23, #1
	csinc	w12, w23, wzr, gt
	mov	x22, x12
	mov	w23, #-1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x20, #16]
	ldr	w23, [x13, x8, lsl #2]
	add	w9, w9, #1
	mov	x13, x9
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, x14
	add	x8, x8, #1
	cmp	x12, x8
	b.eq	LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x11
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w13, #3
	b.gt	LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x20, #8]
	lsl	x14, x8, #2
	ldrb	w14, [x13, x14]
	cmp	w14, #255
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w13, #0
	b	LBB0_6
LBB0_11:
	cmp	w24, #1
	b.lt	LBB0_20
; %bb.12:
	mov	x8, #0
	ldr	x9, [x20, #8]
	cmp	w23, #1
	csinc	w10, w23, wzr, gt
	mov	x22, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldrb	w11, [x9, x11]
	eor	w11, w11, #0xff
	cbnz	w11, LBB0_34
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x8, #1
	cmp	x10, x8
	b.ne	LBB0_13
; %bb.15:
	mov	w23, #0
	cbnz	w21, LBB0_22
	b	LBB0_35
LBB0_16:
	mov	w22, #0
	mov	w23, #-1
	cbnz	w21, LBB0_22
	b	LBB0_35
LBB0_17:
	mov	w21, #1
	mov	x22, x8
LBB0_18:
	cmp	w22, #255
	b.ne	LBB0_21
; %bb.19:
	mov	w22, #255
	b	LBB0_22
LBB0_20:
	mov	w22, #0
	mov	w23, #0
LBB0_21:
	cbz	w21, LBB0_35
LBB0_22:
	ldr	x0, [x20, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20, #24]
	str	xzr, [x8, #16]
	ldr	x0, [x20, #8]
	ldr	w9, [x0]
	mov	w10, #1
	bic	w9, w10, w9, lsr #8
	str	w9, [x8, #20]
	ldr	w10, [x20, #4]
	cbnz	w10, LBB0_24
; %bb.23:
	orr	w9, w9, #0x2
	str	w9, [x8, #20]
LBB0_24:
	ldr	x10, [x20, #64]
	cbz	x10, LBB0_27
; %bb.25:
	ldr	w10, [x20]
	cmp	w10, w22
	b.ne	LBB0_27
; %bb.26:
	orr	w9, w9, #0x4
	str	w9, [x8, #20]
LBB0_27:
	mov	w9, #1
	str	w9, [x20, #4]
	and	w9, w23, #0xff
	str	w9, [x8, #24]
	dup.2s	v0, w23
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d2, #0x0000ff000000ff
	and.8b	v0, v0, v2
	stur	d0, [x8, #28]
	lsr	w9, w23, #24
	str	w9, [x8, #36]
	asr	w9, w23, #31
	and	w9, w9, #0xff
	dup.4s	v0, w9
	stur	q0, [x8, #40]
	ldr	w9, [x20, #32]
	and	w10, w9, #0xff
	str	w10, [x8, #56]
	dup.2s	v0, w9
	ushl.2s	v0, v0, v1
	and.8b	v0, v0, v2
	stur	d0, [x8, #60]
	lsr	w9, w9, #24
	str	w9, [x8, #68]
	ldr	w9, [x20, #40]
	cmn	w9, #1
	csel	w9, wzr, w9, eq
	add	w10, w9, #1
	str	w10, [x20, #40]
	and	w10, w9, #0xff
	str	w10, [x8, #72]
	dup.2s	v0, w9
	ushl.2s	v0, v0, v1
	and.8b	v0, v0, v2
	stur	d0, [x8, #76]
	lsr	w9, w9, #24
	str	w9, [x8, #84]
	and	w9, w22, #0xff
	stp	xzr, xzr, [x8, #88]
	str	w9, [x8, #104]
	cmp	w22, #1
	b.lt	LBB0_33
; %bb.28:
	mov	w9, w22
	cmp	w22, #16
	b.lo	LBB0_30
; %bb.29:
	sub	x10, x8, x0
	add	x10, x10, #108
	cmp	x10, #64
	b.hs	LBB0_36
LBB0_30:
	mov	x10, #0
	mov	w21, #0
LBB0_31:
	lsl	x12, x10, #2
	add	x11, x12, x8
	add	x11, x11, #108
	add	x12, x0, x12
	sub	x9, x9, x10
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x12], #4
	str	w10, [x11], #4
	add	w21, w10, w21
	subs	x9, x9, #1
	b.ne	LBB0_32
	b	LBB0_39
LBB0_33:
	mov	w21, #0
	b	LBB0_39
LBB0_34:
	mov	w23, #0
	add	w22, w8, #1
	cbnz	w21, LBB0_22
LBB0_35:
	mov	w0, #0
	b	LBB0_40
LBB0_36:
	and	x10, x9, #0xfffffff0
	add	x11, x8, #156
	add	x12, x0, #32
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0x0000ff000000ff
	mov	x13, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x12, #-32]
	ldp	q7, q16, [x12], #64
	and.16b	v5, v5, v1
	and.16b	v6, v6, v1
	and.16b	v7, v7, v1
	and.16b	v16, v16, v1
	stp	q5, q6, [x11, #-48]
	stp	q7, q16, [x11, #-16]
	add.4s	v0, v5, v0
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	add.4s	v4, v16, v4
	add	x11, x11, #64
	subs	x13, x13, #16
	b.ne	LBB0_37
; %bb.38:
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w21, s0
	cmp	x10, x9
	b.ne	LBB0_31
LBB0_39:
	str	x8, [x19]
	ldp	x9, x8, [x20, #48]
	add	x8, x9, x8
	add	w9, w22, #27
	str	w9, [x20, #44]
	str	x8, [x19, #16]
	stp	w9, w21, [x19, #8]
	ldr	w8, [x20]
	sub	w8, w8, w22
	str	w8, [x20]
	sbfiz	x22, x22, #2, #32
	add	x1, x0, x22
	lsl	w2, w8, #2
	bl	_memmove
	ldr	x0, [x20, #16]
	add	x1, x0, x22
	ldr	w8, [x20]
	lsl	w2, w8, #2
	bl	_memmove
	ldr	x8, [x20, #48]
	add	x8, x8, w21, uxtw
	str	x8, [x20, #48]
	mov	x0, x19
	bl	_ogg_page_checksum_set
	mov	w0, #1
LBB0_40:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OggS"

	.no_dead_strip	_ogg_stream_flush_i
.subsections_via_symbols
