	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function daala_packet
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_1:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_daala_packet:                          ## @daala_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
	pushq	%rax
	.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, %r15
	imulq	$56, %r15, %rbx
	movq	(%r12,%rbx), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_2:
	movq	_OGG_FLAG_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12,%rbx)
	jne	LBB0_19
## %bb.3:
	leaq	(%r12,%rbx), %rdx
	movslq	12(%r12,%rbx), %rax
	movslq	16(%r12,%rbx), %rcx
	movl	$1, %r13d
	cmpl	%ecx, %eax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jge	LBB0_16
## %bb.4:
	movq	24(%r12,%rbx), %r11
	movq	%rcx, %r10
	subq	%rax, %r10
	movl	$1, %edx
	cmpq	$8, %r10
	jb	LBB0_14
## %bb.5:
	movq	%rdi, %r14
	movq	%r10, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movq	%r9, %rsi
	andq	$-2, %rsi
	leaq	(%r11,%rax,4), %rdx
	addq	$48, %rdx
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [255,255,255,255]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rdx,%rdi,4), %xmm3
	movdqu	-32(%rdx,%rdi,4), %xmm4
	movdqu	-16(%rdx,%rdi,4), %xmm5
	movdqu	(%rdx,%rdi,4), %xmm6
	movdqa	%xmm2, %xmm7
	pcmpgtd	%xmm3, %xmm7
	psubd	%xmm7, %xmm0
	movdqa	%xmm2, %xmm3
	pcmpgtd	%xmm4, %xmm3
	psubd	%xmm3, %xmm1
	movdqa	%xmm2, %xmm3
	pcmpgtd	%xmm5, %xmm3
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	pcmpgtd	%xmm6, %xmm3
	psubd	%xmm3, %xmm1
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	xorl	%edi, %edi
LBB0_9:
	testb	$1, %r9b
	je	LBB0_11
## %bb.10:
	addq	%rax, %rdi
	movdqu	(%r11,%rdi,4), %xmm2
	movdqu	16(%r11,%rdi,4), %xmm3
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [255,255,255,255]
	movdqa	%xmm4, %xmm5
	pcmpgtd	%xmm2, %xmm5
	psubd	%xmm5, %xmm0
	pcmpgtd	%xmm3, %xmm4
	psubd	%xmm4, %xmm1
LBB0_11:
	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, %edx
	cmpq	%r8, %r10
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	jmp	LBB0_15
LBB0_13:
	addq	%r8, %rax
	movq	%r14, %rdi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpl	$255, (%r11,%rax,4)
	setl	%sil
	addl	%esi, %edx
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_14
LBB0_15:
	movl	%edx, %r13d
LBB0_16:
	movl	52(%r12,%rbx), %edx
	movq	%rdi, %r14
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_daala_gptopts
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	movl	$0, %ecx
	cmoveq	%rcx, %r13
	subq	%r13, %rax
	movq	%rax, 32(%r12,%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%r14), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	(%rcx), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_19
## %bb.17:
	movq	%rax, (%rcx)
	movq	8(%rcx), %rdx
	cmpq	(%rsi), %rdx
	je	LBB0_19
## %bb.18:
	subq	%rax, %rdx
	movq	%rdx, 8(%rcx)
LBB0_19:
	cmpq	$0, 40(%r12,%rbx)
	jle	LBB0_21
## %bb.20:
	movl	$1, 48(%r12,%rbx)
LBB0_21:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_daala_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function daala_packet
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_daala_packet:                          ; @daala_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, #56
	smaddl	x23, w1, w8, x20
	ldr	x8, [x23]
Lloh0:
	adrp	x22, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_15
; %bb.1:
	mov	w8, #56
	madd	x8, x21, x8, x20
	ldr	w8, [x8, #8]
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_15
; %bb.2:
	mov	x19, x0
	mov	w8, #56
	madd	x8, x21, x8, x20
	ldpsw	x14, x8, [x8, #12]
	cmp	w14, w8
	b.ge	LBB0_5
; %bb.3:
	mov	w9, #56
	madd	x9, x21, x9, x20
	ldr	x9, [x9, #24]
	sub	x11, x8, x14
	cmp	x11, #16
	b.hs	LBB0_6
; %bb.4:
	mov	w13, #1
	mov	x10, x14
	b	LBB0_9
LBB0_5:
	mov	w24, #1
	b	LBB0_12
LBB0_6:
	and	x12, x11, #0xfffffffffffffff0
	add	x10, x12, x14
	add	x13, x9, x14, lsl #2
	add	x13, x13, #32
Lloh5:
	adrp	x14, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x14, lCPI0_0@PAGEOFF]
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0x0000ff000000ff
	mov	x14, x12
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x13, #-32]
	ldp	q7, q16, [x13], #64
	cmgt.4s	v5, v2, v5
	cmgt.4s	v6, v2, v6
	cmgt.4s	v7, v2, v7
	cmgt.4s	v16, v2, v16
	sub.4s	v0, v0, v5
	sub.4s	v1, v1, v6
	sub.4s	v3, v3, v7
	sub.4s	v4, v4, v16
	subs	x14, x14, #16
	b.ne	LBB0_7
; %bb.8:
	add.4s	v0, v1, v0
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w13, s0
	cmp	x11, x12
	b.eq	LBB0_11
LBB0_9:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	cmp	w10, #255
	cinc	w13, w13, lt
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	mov	w24, w13
LBB0_12:
	mov	w8, #56
	mul	x8, x21, x8
	add	x25, x20, x8
	ldr	w2, [x25, #52]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, #0
	bl	_daala_gptopts
	ldr	x8, [x22]
	cmp	x0, x8
	csel	x8, xzr, x24, eq
	sub	x8, x0, x8
	str	x8, [x25, #32]
	str	x8, [x23]
	ldr	x9, [x19]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x10, [x9]
	ldr	x11, [x22]
	cmp	x10, x11
	b.ne	LBB0_15
; %bb.13:
	str	x8, [x9]
	ldr	x10, [x9, #8]
	ldr	x11, [x22]
	cmp	x10, x11
	b.eq	LBB0_15
; %bb.14:
	sub	x8, x10, x8
	str	x8, [x9, #8]
LBB0_15:
	mov	w8, #56
	madd	x8, x21, x8, x20
	ldr	x8, [x8, #40]
	cmp	x8, #1
	b.lt	LBB0_17
; %bb.16:
	mov	w8, #56
	madd	x8, x21, x8, x20
	mov	w9, #1
	str	w9, [x8, #48]
LBB0_17:
	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
	.loh AdrpLdr	Lloh5, Lloh6
	.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	_daala_packet
.subsections_via_symbols
