	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp8_packet
_vp8_packet:                            ## @vp8_packet
	.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	8(%rdi), %rax
	movq	(%rax), %r12
	movslq	%esi, %rsi
	leaq	(%rsi,%rsi,8), %rbx
	movslq	8(%r12,%rbx,8), %r13
	shlq	$2, %r13
	addq	(%r12,%rbx,8), %r13
	movq	16(%r12,%rbx,8), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_2:
	movq	_OGG_FLAG_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r12,%rbx,8)
	jne	LBB0_20
## %bb.3:
	leaq	(%r12,%rbx,8), %r9
	addq	$16, %r9
	movslq	28(%r12,%rbx,8), %rax
	movl	(%r13), %r14d
	shrl	$4, %r14d
	andl	$1, %r14d
	movslq	40(%r12,%rbx,8), %r10
	cmpl	%r10d, %eax
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	jge	LBB0_16
## %bb.4:
	movq	32(%r12,%rbx,8), %rcx
	movq	48(%r12,%rbx,8), %r11
	leaq	(,%rcx,4), %rdx
	addq	%r13, %rdx
	movl	%r10d, %ecx
	subl	%eax, %ecx
	movq	%rax, %r8
	notq	%r8
	testb	$1, %cl
	jne	LBB0_6
## %bb.5:
	movq	%rdx, %r15
	addq	%r10, %r8
	jne	LBB0_11
	jmp	LBB0_16
LBB0_6:
	movl	(%r11,%rax,4), %r9d
	cmpl	$255, %r9d
	jge	LBB0_7
## %bb.8:
	btl	$4, (%rdx)
	adcl	$0, %r14d
	movslq	%r9d, %r9
	leaq	(%rdx,%r9,4), %r15
	jmp	LBB0_9
LBB0_7:
	movq	%rdx, %r15
LBB0_9:
	leaq	(%rdx,%r9,4), %rdx
	incq	%rax
	addq	%r10, %r8
	jne	LBB0_11
LBB0_16:
	movl	68(%r12,%rbx,8), %edx
	xorl	%ecx, %ecx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_vp8_gptopts
	movslq	%r14d, %rcx
	subq	%rcx, %rax
	movq	%rax, 56(%r12,%rbx,8)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%r15), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rdx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_20
## %bb.17:
	movq	%rax, (%rcx)
	movq	8(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.18:
	cmpq	(%rsi), %rdx
	je	LBB0_20
## %bb.19:
	subq	%rax, %rdx
	movq	%rdx, 8(%rcx)
LBB0_20:
	cmpq	$0, 32(%r12,%rbx,8)
	jle	LBB0_22
## %bb.21:
	movl	(%r13), %eax
	shrl	$4, %eax
	andl	$1, %eax
	movl	%eax, 64(%r12,%rbx,8)
LBB0_22:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%rdx,%rcx,4), %rdx
	addq	$2, %rax
	cmpq	%rax, %r10
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rax,4), %ecx
	cmpl	$255, %ecx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	btl	$4, (%r15)
	adcl	$0, %r14d
	movslq	%ecx, %rcx
	leaq	(%rdx,%rcx,4), %r15
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%rdx,%rcx,4), %rdx
	movl	4(%r11,%rax,4), %ecx
	cmpl	$255, %ecx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	btl	$4, (%r15)
	adcl	$0, %r14d
	movslq	%ecx, %rcx
	leaq	(%rdx,%rcx,4), %r15
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_OGG_FLAG_EOS,4,2               ## @OGG_FLAG_EOS
	.no_dead_strip	_vp8_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp8_packet
_vp8_packet:                            ; @vp8_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	sxtw	x21, w1
	mov	w8, #72
	smaddl	x24, w1, w8, x20
	ldr	x8, [x24]
	ldrsw	x9, [x24, #8]
	ldr	x10, [x24, #16]!
	add	x22, x8, x9, lsl #2
Lloh0:
	adrp	x23, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x10, #0
	ccmp	x10, x8, #4, ne
	b.ne	LBB0_10
; %bb.1:
	mov	w8, #72
	madd	x8, x21, x8, x20
	ldr	w8, [x8, #24]
Lloh2:
	adrp	x9, _OGG_FLAG_EOS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OGG_FLAG_EOS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.2:
	mov	x19, x0
	mov	w8, #72
	madd	x8, x21, x8, x20
	ldrsw	x10, [x8, #28]
	ldr	w9, [x22]
	ubfx	w25, w9, #4, #1
	ldrsw	x11, [x8, #40]
	cmp	w10, w11
	b.ge	LBB0_7
; %bb.3:
	mov	w8, #72
	madd	x9, x21, x8, x20
	ldr	x8, [x9, #32]
	add	x8, x22, x8, lsl #2
	ldr	x9, [x9, #48]
	add	x9, x9, x10, lsl #2
	sub	x10, x11, x10
	mov	x11, x8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x12, lsl #2
	add	x9, x9, #4
	subs	x10, x10, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	cmp	w12, #255
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x11]
	ubfx	w11, w11, #4, #1
	add	w25, w11, w25
	add	x11, x8, w12, sxtw #2
	sxtw	x12, w12
	b	LBB0_4
LBB0_7:
	mov	w8, #72
	mul	x8, x21, x8
	add	x26, x20, x8
	ldr	w2, [x26, #68]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, #0
	bl	_vp8_gptopts
	sub	x8, x0, w25, sxtw
	str	x8, [x26, #56]
	str	x8, [x24]
	ldr	x9, [x19]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x10, [x9]
	ldr	x11, [x23]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.8:
	str	x8, [x9]
	ldr	x10, [x9, #8]
	ldr	x11, [x23]
	cmp	x10, #0
	ccmp	x10, x11, #4, ne
	b.eq	LBB0_10
; %bb.9:
	sub	x8, x10, x8
	str	x8, [x9, #8]
LBB0_10:
	mov	w8, #72
	madd	x8, x21, x8, x20
	ldr	x8, [x8, #32]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.11:
	ldr	w8, [x22]
	ubfx	w8, w8, #4, #1
	mov	w9, #72
	madd	x9, x21, x9, x20
	str	w8, [x9, #64]
LBB0_12:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_OGG_FLAG_EOS,4,2               ; @OGG_FLAG_EOS
	.no_dead_strip	_vp8_packet
.subsections_via_symbols
