	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comp_block
_comp_block:                            ## @comp_block
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movl	24(%rbp), %r8d
	movl	16(%rbp), %eax
	cmpl	$3, %r15d
	jg	LBB0_4
## %bb.1:
	shll	$4, %ecx
	movl	%r15d, %ebx
	andl	$2, %ebx
	leal	(%rcx,%rbx,4), %r11d
	addl	%r11d, %eax
	movq	(%rdi), %r10
	movq	8(%rdi), %rdi
	movq	(%r10), %rcx
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	shll	$4, %edx
	shll	$3, %r15d
	andl	$8, %r15d
	addl	%edx, %r9d
	addl	%r15d, %r9d
	addl	%eax, %r9d
	movl	(%rdi), %eax
	addl	$-7, %eax
	imull	%ecx, %eax
	addl	$-7, %eax
	cmpl	%eax, %r9d
	jae	LBB0_7
## %bb.2:
	movq	(%rsi), %rax
	movq	8(%rsi), %rbx
	movl	(%rax), %esi
	imull	%esi, %r11d
	movslq	%r11d, %rax
	movslq	%edx, %rdx
	movl	%r15d, %edi
	orq	%rdx, %rdi
	addq	(%rbx), %rdi
	addq	%rax, %rdi
	movq	8(%r10), %rax
	movl	%r9d, %edx
	addq	(%rax), %rdx
	jmp	LBB0_3
LBB0_4:
	movq	8(%rdi), %r14
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	testl	%ebx, 4(%r14)
	jne	LBB0_7
## %bb.5:
	addl	$-3, %r15d
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	leal	(%rbx,%rcx,8), %ebx
	movq	(%rdi), %r11
	movq	(%r11), %rax
	movl	(%rax,%r15,4), %r10d
	imull	%r10d, %ebx
	movl	%r9d, %eax
	shrl	$31, %eax
	addl	%r9d, %eax
	sarl	%eax
	leal	(%rax,%rdx,8), %eax
	addl	%ebx, %eax
	movl	(%r14), %ebx
	movl	%ebx, %edi
	shrl	$31, %edi
	addl	%ebx, %edi
	sarl	%edi
	addl	$-7, %edi
	imull	%r10d, %edi
	addl	$-7, %edi
	cmpl	%edi, %eax
	jae	LBB0_7
## %bb.6:
	shll	$3, %ecx
	shll	$3, %edx
	movq	(%rsi), %rdi
	movq	8(%rsi), %rbx
	movl	(%rdi,%r15,4), %esi
	imull	%esi, %ecx
	movslq	%ecx, %rcx
	movslq	%edx, %rdi
	addq	(%rbx,%r15,8), %rdi
	addq	%rcx, %rdi
	movq	8(%r11), %rcx
	movl	%eax, %edx
	addq	(%rcx,%r15,8), %rdx
	movl	%r10d, %ecx
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_comp                           ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_comp_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comp_block
_comp_block:                            ; @comp_block
	.cfi_startproc
; %bb.0:
	subs	w8, w4, #3
	b.gt	LBB0_3
; %bb.1:
	lsl	w8, w4, #2
	and	w9, w8, #0x8
	bfi	w9, w3, #4, #28
	add	w10, w9, w6
	ldp	x8, x13, [x0]
	ldr	x11, [x8]
	ldr	w3, [x11]
	lsl	w12, w2, #4
	ubfiz	w11, w4, #3, #1
	add	w14, w12, w5
	add	w14, w14, w11
	madd	w10, w3, w10, w14
	ldr	w13, [x13]
	sub	w13, w13, #7
	mul	w13, w13, w3
	sub	w13, w13, #7
	cmp	w10, w13
	b.hs	LBB0_6
; %bb.2:
	ldp	x14, x13, [x1]
	ldr	x13, [x13]
	ldr	w1, [x14]
	mul	w9, w1, w9
	sxtw	x12, w12
	orr	x11, x11, x12
	add	x11, x11, x13
	add	x0, x11, w9, sxtw
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	add	x2, x8, w10, uxtw
	mov	x4, x7
	b	_comp
LBB0_3:
	ldr	x13, [x0, #8]
	ldr	w9, [x13, #4]
Lloh0:
	adrp	x10, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_6
; %bb.4:
	lsl	w9, w3, #3
	cmp	w6, #0
	cinc	w10, w6, lt
	add	w12, w9, w10, asr #1
	ldr	x10, [x0]
	ldr	x11, [x10]
	ldr	w3, [x11, w8, uxtw #2]
	lsl	w11, w2, #3
	cmp	w5, #0
	cinc	w14, w5, lt
	add	w14, w11, w14, asr #1
	madd	w12, w3, w12, w14
	ldr	w13, [x13]
	cmp	w13, #0
	cinc	w13, w13, lt
	asr	w13, w13, #1
	sub	w13, w13, #7
	mul	w13, w13, w3
	sub	w13, w13, #7
	cmp	w12, w13
	b.hs	LBB0_6
; %bb.5:
	lsl	x13, x8, #3
	ldp	x15, x14, [x1]
	ldr	x14, [x14, x13]
	ldr	w1, [x15, x8, lsl #2]
	mul	w8, w1, w9
	add	x9, x14, w11, sxtw
	add	x0, x9, w8, sxtw
	ldr	x8, [x10, #8]
	ldr	x8, [x8, x13]
	add	x2, x8, w12, uxtw
	mov	x4, x7
	b	_comp
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_comp_block
.subsections_via_symbols
