	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp6_coeff_order_table_init
_vp6_coeff_order_table_init:            ## @vp6_coeff_order_table_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r8
	movq	(%r8), %r15
	movl	$0, (%r15)
	movq	8(%r8), %r9
	movl	$1, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	$16, %ebx
	je	LBB0_9
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	$2, %ecx
	movl	$1, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	addl	$2, %eax
	addq	$2, %rcx
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%ebx, -4(%r9,%rcx,4)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	%esi, %rdx
	incl	%esi
	movl	%eax, (%r15,%rdx,4)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpq	$64, %rcx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	%ebx, (%r9,%rcx,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	%esi, %rdx
	incl	%esi
	movl	%ecx, (%r15,%rdx,4)
	jmp	LBB0_7
LBB0_9:
	movq	16(%r8), %r8
	movl	$1, %edx
	movq	$-3, %r11
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ecx, %ecx
	cmpl	$7, (%rdi)
	setge	%cl
	addl	%eax, %ecx
	movl	%ecx, (%r8,%r12,4)
	incq	%rdx
	incq	%r11
	movq	%r9, %r12
	cmpq	$64, %r9
	je	LBB0_22
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	leaq	-3(%r12), %r14
	leaq	1(%r12), %r9
	movq	%r12, %rax
	subq	$3, %rax
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r11, %r10
	shrq	$2, %r10
	shrq	$2, %r14
	incq	%r14
	cmpq	$28, %rax
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	1(%r10), %rbx
	andq	$-8, %rbx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r15,%rsi,4), %xmm1
	pmaxsd	%xmm0, %xmm1
	movdqu	16(%r15,%rsi,4), %xmm0
	movdqu	32(%r15,%rsi,4), %xmm2
	pmaxsd	%xmm0, %xmm2
	pmaxsd	%xmm1, %xmm2
	movdqu	48(%r15,%rsi,4), %xmm0
	movdqu	64(%r15,%rsi,4), %xmm1
	pmaxsd	%xmm0, %xmm1
	movdqu	80(%r15,%rsi,4), %xmm3
	pmaxsd	%xmm1, %xmm3
	pmaxsd	%xmm2, %xmm3
	movdqu	96(%r15,%rsi,4), %xmm1
	movdqu	112(%r15,%rsi,4), %xmm0
	pmaxsd	%xmm1, %xmm0
	pmaxsd	%xmm3, %xmm0
	addq	$32, %rsi
	addq	$-8, %rbx
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r9, %rbx
	andq	$-4, %rbx
	testb	$7, %r14b
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	incb	%r10b
	movzbl	%r10b, %eax
	andl	$7, %eax
	shlq	$4, %rax
	leaq	(%r15,%rsi,4), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rsi,%rcx), %xmm1
	pmaxsd	%xmm1, %xmm0
	addq	$16, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmaxsd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmaxsd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%rbx, %r9
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rbx,4), %ecx
	cmpl	%eax, %ecx
	cmovgl	%ecx, %eax
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_20
	jmp	LBB0_21
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vp6_coeff_order_table_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp6_coeff_order_table_init
_vp6_coeff_order_table_init:            ; @vp6_coeff_order_table_init
	.cfi_startproc
; %bb.0:
	mov	w9, #0
	ldr	x10, [x0, #8]
	ldp	x8, x11, [x10]
	str	wzr, [x8]
	mov	w12, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w9, #1
	cmp	w9, #16
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	w13, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x13, x13, #1
	cmp	x13, #64
	b.eq	LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x11, x13, lsl #2]
	cmp	w14, w9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	str	w13, [x8, w12, sxtw #2]
	add	w12, w12, #1
                                        ; kill: def $w12 killed $w12 def $x12
	b	LBB0_3
LBB0_6:
	mov	x9, #0
	ldr	x10, [x10, #16]
	mov	w11, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x0]
	cmp	w12, #6
	cinc	w12, w13, gt
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	add	x11, x11, #1
	cmp	x9, #64
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	cmp	x9, #3
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x12, #0
	mov	w13, #0
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	and	x13, x11, #0xfffffffffffffffc
	add	x14, x9, #1
	and	x12, x14, #0xfffffffffffffffc
	movi.2d	v0, #0000000000000000
	mov	x15, x8
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q1, [x15], #16
	smax.4s	v0, v1, v0
	subs	x13, x13, #4
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	smaxv.4s	s0, v0
	fmov	w13, s0
	cmp	x14, x12
	b.eq	LBB0_7
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x8, x12, lsl #2]
	cmp	w14, w13
	csel	w13, w14, w13, gt
	add	x12, x12, #1
	cmp	x11, x12
	b.ne	LBB0_13
	b	LBB0_7
LBB0_14:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vp6_coeff_order_table_init
.subsections_via_symbols
