	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clip_coeffs
_clip_coeffs:                           ## @clip_coeffs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	24(%rdi), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	cmpl	%edx, %eax
	jg	LBB0_8
## %bb.1:
	movl	(%rdi), %r9d
	movl	4(%rdi), %r8d
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	movq	16(%rdi), %r10
	incl	%edx
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	cmpl	%r8d, %ebx
	setl	%r14b
	cmovlel	%r8d, %ebx
	addl	%r14d, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, (%rsi,%r11,4)
	incq	%rax
	cmpq	%rax, %rdx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r10,%rax,4), %r11
	movl	(%rsi,%r11,4), %ebx
	cmpl	%r9d, %ebx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	movl	%r9d, %ebx
	jmp	LBB0_5
LBB0_6:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	movq	8(%rdi), %rdi
	movq	(%rdi), %rax
	movq	_FF_MB_DECISION_SIMPLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_8
## %bb.9:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_MB_DECISION_SIMPLE,8,3      ## @FF_MB_DECISION_SIMPLE
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning, clipping %d dct coefficients to %d..%d\n"

	.no_dead_strip	_clip_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clip_coeffs
_clip_coeffs:                           ; @clip_coeffs
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	cmp	x8, #0
	cset	w9, ne
	cmp	w9, w2
	b.gt	LBB0_6
; %bb.1:
	mov	w3, #0
	ldp	w5, w4, [x0]
	cmp	x8, #0
	cset	w9, ne
	ldr	x8, [x0, #16]
	add	w10, w2, #1
	add	x8, x8, w9, uxtw #2
	sub	x9, x10, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x8]
	ldr	w11, [x1, x10, lsl #2]
	cmp	w11, w4
	csel	w12, w11, w4, gt
	cinc	w13, w3, lt
	cmp	w11, w5
	csel	w11, w12, w5, le
	csinc	w3, w13, w3, le
	str	w11, [x1, x10, lsl #2]
	add	x8, x8, #4
	subs	x9, x9, #1
	b.ne	LBB0_2
; %bb.3:
	cbz	w3, LBB0_6
; %bb.4:
	ldr	x0, [x0, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FF_MB_DECISION_SIMPLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FF_MB_DECISION_SIMPLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	_av_log
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_MB_DECISION_SIMPLE,8,3      ; @FF_MB_DECISION_SIMPLE
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning, clipping %d dct coefficients to %d..%d\n"

	.no_dead_strip	_clip_coeffs
.subsections_via_symbols
