	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function implicit_weight_table
LCPI0_0:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.space	4
	.space	4
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_implicit_weight_table:                 ## @implicit_weight_table
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r8d
	movq	32(%rsi), %rax
	movq	40(%rsi), %rcx
	movq	$0, (%rcx)
	movq	$0, (%rax)
	movq	$0, 8(%rcx)
	movq	$0, 8(%rax)
	movl	%edx, %r9d
	testl	%edx, %edx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	js	LBB0_1
## %bb.9:
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r9,4), %ebx
	movq	(%rsi), %rax
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	paddd	%xmm0, %xmm0
	paddd	LCPI0_0(%rip), %xmm0
	movl	$16, %ecx
	jmp	LBB0_10
LBB0_1:
	movslq	(%rdi), %rcx
	movq	_PICT_FRAME@GOTPCREL(%rip), %rdx
	movq	8(%rdi), %rax
	cmpl	(%rdx), %ecx
	je	LBB0_3
## %bb.2:
	movq	8(%rax), %rax
	leaq	(%rax,%rcx,4), %rax
	addq	$-4, %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	(%rsi), %rax
	cmpl	$1, (%rax)
	jne	LBB0_8
## %bb.4:
	cmpl	$1, 4(%rax)
	jne	LBB0_8
## %bb.5:
	callq	_FRAME_MBAFF
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movslq	%ebx, %rax
	movq	48(%rsi), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	addq	(%rdx), %rcx
	addq	%rax, %rax
	cmpq	%rax, %rcx
	jne	LBB0_8
## %bb.7:
	movq	$0, 8(%rsi)
	jmp	LBB0_24
LBB0_8:
	movq	(%rsi), %rax
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	xorl	%ecx, %ecx
LBB0_10:
	movaps	LCPI0_1(%rip), %xmm1            ## xmm1 = [2,2,5,5]
	movups	%xmm1, 8(%rsi)
	movd	%xmm0, %eax
	cmpl	%eax, %ecx
	jge	LBB0_24
## %bb.11:
	pextrd	$1, %xmm0, %edx
	movslq	%ebx, %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	(,%r15,8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	notq	%rax
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	addq	%rdx, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	cmpq	-112(%rbp), %r15                ## 8-byte Folded Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_24
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	cmpl	-120(%rbp), %ecx                ## 4-byte Folded Reload
	jge	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdx
	shlq	$4, %rdx
	movq	48(%rsi), %rax
	movq	(%rax), %rcx
	movq	(%rcx,%rdx), %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	subq	%rdi, %rbx
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rcx,%rdx), %rcx
	movl	$32, %r14d
	cmpl	$0, (%rcx)
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%rax), %rax
	movq	8(%rax,%r12,2), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movslq	(%rax,%r12,2), %rdi
	subq	-136(%rbp), %rdi                ## 8-byte Folded Reload
	callq	_av_clip_int8
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	%eax, %ebx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_av_clip_int8
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_FFABS
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	sarl	%eax
	addl	$16384, %eax                    ## imm = 0x4000
	cltd
	idivl	%ebx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	imull	%r14d, %eax
	leal	16416(%rax), %ecx
	addl	$32, %eax
	sarl	$8, %eax
	movl	$64, %r14d
	subl	%eax, %r14d
	cmpl	$49408, %ecx                    ## imm = 0xC100
	movl	$32, %eax
	cmovael	%eax, %r14d
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	24(%rsi), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax,%r12), %rax
	testl	%r8d, %r8d
	js	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	(%rax,%r9,4), %rax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	%r14d, 4(%rax)
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	%r14d, (%rax)
	subq	$1, %r13
	jb	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	48(%rsi), %rax
	movq	(%rax), %rcx
	addq	$8, %r12
	jmp	LBB0_14
LBB0_24:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_FRAME,4,2                 ## @PICT_FRAME
	.no_dead_strip	_implicit_weight_table
.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 implicit_weight_table
lCPI0_0:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_implicit_weight_table:                 ; @implicit_weight_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x2
	mov	x19, x1
	ldp	x9, x8, [x1, #32]
	str	xzr, [x8]
	str	xzr, [x9]
	str	xzr, [x8, #8]
	str	xzr, [x9, #8]
	tbnz	w2, #31, LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	w21, [x8, w20, uxtw #2]
	ldr	x8, [x19]
	ldr	d0, [x8]
	shl.2s	v0, v0, #1
	movi.2s	v1, #16
	add.2s	v0, v0, v1
	mov	w9, #16
	b	LBB0_10
LBB0_2:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _PICT_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PICT_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	x8, [x0, #8]
	cmp	w9, w10
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x8, #8]
	sub	w9, w9, #1
	add	x8, x8, w9, sxtw #2
LBB0_4:
	ldr	w21, [x8]
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.6:
	bl	_FRAME_MBAFF
	cbnz	w0, LBB0_9
; %bb.7:
	sxtw	x8, w21
	ldr	x9, [x19, #48]
	ldp	x10, x9, [x9]
	ldr	x10, [x10]
	ldr	x9, [x9]
	add	x9, x9, x10
	cmp	x9, x8, lsl #1
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x19, #8]
	b	LBB0_25
LBB0_9:
	mov	w9, #0
	ldr	x8, [x19]
	ldr	d0, [x8]
LBB0_10:
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	stur	q1, [x19, #8]
	fmov	w8, s0
	cmp	w9, w8
	b.ge	LBB0_25
; %bb.11:
	mov	w25, w20
	mov	w24, w9
	mov.s	w10, v0[1]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x11, w21
	mov	w8, w8
	stp	x8, x10, [sp, #32]              ; 16-byte Folded Spill
	lsl	x8, x24, #4
	stp	x8, x11, [sp, #8]               ; 16-byte Folded Spill
	sub	x26, x10, #1
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	str	w9, [sp, #52]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x24, x8
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	b.eq	LBB0_25
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #48]
	ldr	x9, [x8]
	lsl	x10, x24, #4
	ldr	x28, [x9, x10]
	ldp	x27, x10, [sp, #8]              ; 16-byte Folded Reload
	sub	x10, x10, x28
	str	x10, [sp, #56]                  ; 8-byte Folded Spill
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x9, x24, lsl #4
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	cbnz	w9, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x8, [x8, #8]
	add	x9, x8, x27
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	cbz	w9, LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	w8, #32
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9, x21, lsl #3]
	tbnz	w20, #31, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x9, x9, x25, lsl #2
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=2
	str	w8, [x9, #4]
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=2
	str	w8, [x9]
	cmp	x26, x21
	b.eq	LBB0_12
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x8, [x19, #48]
	ldr	x9, [x8]
	add	x27, x27, #16
	add	x21, x21, #1
	b	LBB0_15
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=2
	ldrsw	x8, [x8, x27]
	sub	x0, x8, x28
	bl	_av_clip_int8
	cbz	w0, LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x22, x0
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_av_clip_int8
	mov	x23, x0
	mov	x0, x22
	bl	_FFABS
	asr	w8, w0, #1
	add	w8, w8, #4, lsl #12             ; =16384
	sdiv	w8, w8, w22
	mul	w8, w8, w23
	mov	w9, #16416
	add	w9, w8, w9
	add	w8, w8, #32
	mov	w10, #64
	sub	w8, w10, w8, asr #8
	lsr	w9, w9, #8
	cmp	w9, #193
	mov	w9, #32
	csel	w8, w8, w9, lo
	b	LBB0_18
LBB0_25:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_FRAME,4,2                 ; @PICT_FRAME
	.no_dead_strip	_implicit_weight_table
.subsections_via_symbols
