	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h263_h_loop_filter_c
_h263_h_loop_filter_c:                  ## @h263_h_loop_filter_c
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ff_h263_loop_filter_strength@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %eax
	leal	(%rax,%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	negl	%ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	negl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rax
	shlq	$2, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%esi, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	%edi, %ecx
	subl	%edi, %eax
	movl	%ecx, %edx
	sarl	$31, %edx
	testl	$256, %ecx                      ## imm = 0x100
	notl	%edx
	cmovel	%ecx, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	testl	$256, %eax                      ## imm = 0x100
	notl	%ecx
	cmovel	%eax, %ecx
	movl	%edx, -4(%rbx)
	movl	%ecx, (%rbx)
	callq	_FFABS
	sarl	%eax
	leal	3(%r15), %edi
	testl	%r15d, %r15d
	cmovnsl	%r15d, %edi
	sarl	$2, %edi
	movl	%eax, %esi
	negl	%esi
	movl	%eax, %edx
	callq	_av_clip
	subl	%eax, %r13d
	movl	%r13d, -8(%rbx)
	addl	%eax, %r12d
	movl	%r12d, 4(%rbx)
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	decq	%r14
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %r13d
	movl	-4(%rbx), %ecx
	movl	(%rbx), %eax
	movl	4(%rbx), %r12d
	movl	%r13d, %r15d
	subl	%r12d, %r15d
	movl	%eax, %edx
	subl	%ecx, %edx
	leal	(%r15,%rdx,4), %esi
	leal	(%r15,%rdx,4), %edx
	addl	$7, %edx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	sarl	$3, %edx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$0, %edi
	subl	%edx, %esi
	jg	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	-64(%rbp), %edx                 ## 4-byte Folded Reload
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %edi
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	subl	%edx, %edi
	movl	$0, %edx
	cmovlel	%edx, %edi
	jmp	LBB0_7
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_h263_loop_filter_strength,8,3 ## @ff_h263_loop_filter_strength
	.no_dead_strip	_h263_h_loop_filter_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h263_h_loop_filter_c
_h263_h_loop_filter_c:                  ; @h263_h_loop_filter_c
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _ff_h263_loop_filter_strength@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_h263_loop_filter_strength@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w19, [x8, w2, sxtw #2]
	lsl	w20, w19, #1
	neg	w21, w20
	neg	w22, w19
	sub	x23, x0, #8
	sbfiz	x24, x1, #2, #32
	mov	w25, #8
	movi.2s	v8, #1, lsl #8
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	fmov	s1, w0
	dup.2s	v2, w0
	add.2s	v1, v0, v1
	sub.2s	v0, v0, v2
	mov.s	v1[1], v0[1]
	and.8b	v0, v1, v8
	cmeq.2s	v0, v0, #0
	cmge.2s	v2, v1, #0
	bsl.8b	v0, v1, v2
	stur	d0, [x23, #4]
	bl	_FFABS
	asr	w2, w0, #1
	add	w8, w28, #3
	cmp	w28, #0
	csel	w8, w8, w28, lt
	asr	w0, w8, #2
	neg	w1, w2
	bl	_av_clip
	sub	w8, w26, w0
	str	w8, [x23]
	add	w8, w0, w27
	str	w8, [x23, #12]
	add	x23, x23, x24
	subs	x25, x25, #1
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x23]
	ldur	d0, [x23, #4]
	ldr	w27, [x23, #12]
	sub	w28, w26, w27
	dup.2s	v1, v0[1]
	sub.2s	v1, v1, v0
	fmov	w8, s1
	add	w8, w28, w8, lsl #2
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	subs	w8, w21, w0
	b.gt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w22
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x8
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w19
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w8, w20, w0
	csel	w0, w8, wzr, gt
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_h263_loop_filter_strength,8,3 ; @ff_h263_loop_filter_strength
	.no_dead_strip	_h263_h_loop_filter_c
.subsections_via_symbols
