	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_buffer_data
_ogg_buffer_data:                       ## @ogg_buffer_data
	.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, %rbx
	movl	%ecx, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	16(%rsi), %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%r13d, %r14d
	movl	$2155905153, %ecx               ## imm = 0x80808081
	imulq	%r14, %rcx
	shrq	$39, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_THEORA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	jne	LBB0_1
## %bb.9:
	testl	%r9d, %r9d
	je	LBB0_3
## %bb.10:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_1:
	testl	%r9d, %r9d
	jne	LBB0_14
## %bb.2:
	movq	_AV_CODEC_ID_VP8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ogg_granule_to_timestamp
	movq	%rax, %r15
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_ogg_granule_to_timestamp
	incq	%rax
	cmpq	%rax, %r15
	jg	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ogg_key_granule
	testq	%rax, %rax
	je	LBB0_5
LBB0_11:
	cmpl	$-1, 8(%r12)
	je	LBB0_13
## %bb.12:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ogg_buffer_page
LBB0_13:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_14:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	je	LBB0_6
LBB0_15:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_5:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movq	16(%r12), %rax
	movb	$1, %cl
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	jle	LBB0_16
## %bb.7:
	movq	_MAX_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subq	%rax, %rcx
	cmpq	%r14, %rcx
	jge	LBB0_16
## %bb.8:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ogg_buffer_page
LBB0_16:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-120(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ogg_buffer_page
LBB0_29:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%r14,4), %r12
	movl	-100(%rbp), %r13d               ## 4-byte Reload
	subl	%r14d, %r13d
	movl	%r15d, %ebx
	cmpl	%r15d, -120(%rbp)               ## 4-byte Folded Reload
	jl	LBB0_30
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	subl	%ebx, %edi
	movl	$255, %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	subl	24(%r14), %esi
	callq	_FFMIN
	movl	%eax, %r15d
	movl	24(%r14), %eax
	testl	%ebx, %ebx
	movl	%ebx, -96(%rbp)                 ## 4-byte Spill
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	orb	$1, 28(%rax)
	xorl	%eax, %eax
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	%eax, %rdi
	shlq	$2, %rdi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	32(%rbx), %rdi
	leal	-1(%r15), %r14d
	movl	$255, %esi
	movl	%r14d, %edx
	callq	_memset
	addl	%r14d, 24(%rbx)
	movl	%r15d, %esi
	shll	$8, %esi
	subl	%r15d, %esi
	movl	%r13d, -100(%rbp)               ## 4-byte Spill
	movl	%r13d, %edi
	callq	_FFMIN
	movl	%eax, %r13d
	shll	$8, %r14d
	negl	%r14d
	leal	(%r15,%r14), %eax
	decl	%eax
	addl	%r13d, %eax
	movq	32(%rbx), %rcx
	movslq	24(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 24(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%rbx), %rdi
	addq	40(%rbx), %rdi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movslq	%r13d, %r14
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	addl	%r15d, %eax
	addq	%r14, 16(%rbx)
	movl	%eax, %r15d
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 8(%rbx)
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	48(%rbx), %rcx
	movq	56(%rbx), %rdi
	movq	(%rax,%rcx,8), %r12
	movl	(%r12), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_av_rescale_q
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movslq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ogg_granule_to_timestamp
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%rax, %rdi
	callq	_av_rescale_q
	cmpl	$255, 24(%rbx)
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rcx, 16(%rbx)
	jge	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	subq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	cmpq	%rcx, %rax
	jge	LBB0_28
	jmp	LBB0_29
LBB0_30:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_33
## %bb.31:
	cmpl	$-1, 8(%rsi)
	je	LBB0_33
## %bb.32:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ogg_buffer_page
LBB0_33:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_THEORA,8,3         ## @AV_CODEC_ID_THEORA
	.comm	_AV_CODEC_ID_VP8,8,3            ## @AV_CODEC_ID_VP8
	.comm	_MAX_PAGE_SIZE,4,2              ## @MAX_PAGE_SIZE
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.no_dead_strip	_ogg_buffer_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_buffer_data
_ogg_buffer_data:                       ; @ogg_buffer_data
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x0
	ldr	x8, [x0, #8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w8, #32897
	movk	w8, #32896, lsl #16
	umull	x8, w3, w8
	lsr	x8, x8, #39
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldp	x8, x20, [x1, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AV_CODEC_ID_THEORA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_THEORA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	str	x4, [sp, #32]                   ; 8-byte Folded Spill
	b.ne	LBB0_3
; %bb.1:
	cbz	w5, LBB0_5
; %bb.2:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_17
LBB0_3:
	cbnz	w5, LBB0_10
; %bb.4:
Lloh3:
	adrp	x9, _AV_CODEC_ID_VP8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_VP8@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_ogg_granule_to_timestamp
	mov	x24, x0
	ldr	x1, [x20]
	mov	x0, x20
	bl	_ogg_granule_to_timestamp
	add	x8, x0, #1
	cmp	x24, x8
	b.gt	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_ogg_key_granule
	cbz	x0, LBB0_12
LBB0_7:
	ldr	w8, [x20, #8]
	cmn	w8, #1
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_ogg_buffer_page
LBB0_9:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_13
LBB0_10:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w5, LBB0_13
; %bb.11:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_17
LBB0_12:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_13:
	ldr	x8, [x20, #16]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.14:
Lloh6:
	adrp	x9, _MAX_PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	x8, x9, x8
	cmp	x8, w22, uxtw
	b.ge	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	bl	_ogg_buffer_page
LBB0_16:
	mov	w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_17:
	mov	w21, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	w27, w8, #1
Lloh9:
	adrp	x28, _AV_TIME_BASE_Q@GOTPAGE
Lloh10:
	ldr	x28, [x28, _AV_TIME_BASE_Q@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ogg_buffer_page
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x23, w24, sxtw #2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	w8, w21
	b.lt	LBB0_31
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	w0, w27, w21
	ldr	w8, [x20, #24]
	mov	w9, #255
	sub	w1, w9, w8
	bl	_FFMIN
	mov	x25, x0
	ldr	w8, [x20, #24]
	cbz	w21, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cbnz	w8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [x20, #28]
	orr	w9, w9, #0x1
	str	w9, [x20, #28]
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x20, #32]
	add	x0, x9, w8, sxtw #2
	sub	w26, w25, #1
	mov	w1, #255
	mov	x2, x26
	bl	_memset
	ldr	w8, [x20, #24]
	add	w8, w8, w26
	str	w8, [x20, #24]
	lsl	w8, w25, #8
	sub	w1, w8, w25
	mov	x0, x22
	bl	_FFMIN
	mov	x24, x0
	sub	w8, w26, w26, lsl #8
	add	w8, w0, w8
	ldrsw	x9, [x20, #24]
	add	w10, w9, #1
	str	w10, [x20, #24]
	ldp	x10, x11, [x20, #32]
	str	w8, [x10, x9, lsl #2]
	ldr	x8, [x20, #16]
	add	x0, x8, x11
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	sxtw	x8, w24
	ldr	x9, [x20, #16]
	add	x8, x9, x8
	str	x8, [x20, #16]
	add	w21, w25, w21
	cmp	w21, w27
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	w8, [x20, #8]
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	sub	w22, w22, w24
	ldr	x8, [x19]
	ldp	x9, x0, [x20, #48]
	ldr	x26, [x8, x9, lsl #3]
	ldr	w1, [x26]
	ldr	w2, [x28]
	bl	_av_rescale_q
	mov	x25, x0
	ldrsw	x1, [x20, #8]
	mov	x0, x20
	bl	_ogg_granule_to_timestamp
	ldr	w1, [x26]
	ldr	w2, [x28]
	bl	_av_rescale_q
	ldr	w8, [x20, #24]
	cmp	w8, #255
	b.eq	LBB0_18
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_19
; %bb.27:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x20, #16]
	cmp	x9, x8
	b.ge	LBB0_18
LBB0_29:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
	sub	x9, x0, x25
	cmp	x9, x8
	b.ge	LBB0_18
	b	LBB0_19
LBB0_31:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_34
; %bb.32:
	ldr	w8, [x20, #8]
	cmn	w8, #1
	b.eq	LBB0_34
; %bb.33:
	mov	x0, x19
	mov	x1, x20
	bl	_ogg_buffer_page
LBB0_34:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_THEORA,8,3         ; @AV_CODEC_ID_THEORA
	.comm	_AV_CODEC_ID_VP8,8,3            ; @AV_CODEC_ID_VP8
	.comm	_MAX_PAGE_SIZE,4,2              ; @MAX_PAGE_SIZE
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.no_dead_strip	_ogg_buffer_data
.subsections_via_symbols
