	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_gradient_pred_c
_add_gradient_pred_c:                   ## @add_gradient_pred_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movslq	%esi, %r9
	movl	%edx, %r8d
	movl	-4(%rdi), %r14d
	cmpl	$1, %edx
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	leaq	(,%r9,4), %r11
	negq	%r11
	leaq	4(%rdi), %rdx
	movl	%r9d, %eax
	negl	%eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdx,%r11), %ebx
	leal	-1(%rax), %esi
	movslq	%esi, %rsi
	subl	(%rdi,%rsi,4), %ebx
	addl	%r14d, %ebx
	addl	-4(%rdx), %ebx
	movzbl	%bl, %esi
	movl	%esi, -4(%rdx)
	movl	(%rdx,%r11), %esi
	cltq
	subl	(%rdi,%rax,4), %esi
	addl	%ebx, %esi
	addl	(%rdx), %esi
	movzbl	%sil, %r14d
	movl	%r14d, (%rdx)
	addq	$2, %rcx
	addq	$8, %rdx
	addl	$2, %eax
	cmpq	%rcx, %r10
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movl	%r9d, %eax
	notl	%eax
	movq	%rcx, %rdx
	subq	%r9, %rdx
	movl	(%rdi,%rdx,4), %edx
	addl	%ecx, %eax
	cltq
	subl	(%rdi,%rax,4), %edx
	addl	%r14d, %edx
	addl	(%rdi,%rcx,4), %edx
	movzbl	%dl, %eax
	movl	%eax, (%rdi,%rcx,4)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_gradient_pred_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_gradient_pred_c
_add_gradient_pred_c:                   ; @add_gradient_pred_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x10, #0
	mvn	w8, w1
	mov	w9, w2
	ldur	w11, [x0, #-4]
	sub	x10, x10, w1, sxtw #2
	mov	x12, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12, x10]
	ldr	w14, [x0, w8, sxtw #2]
	sub	w13, w13, w14
	add	w11, w13, w11
	ldr	w13, [x12]
	add	w11, w11, w13
	and	w11, w11, #0xff
	str	w11, [x12], #4
	add	w8, w8, #1
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_gradient_pred_c
.subsections_via_symbols
