	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_paeth
_filter_paeth:                          ## @filter_paeth
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%r8d, %eax
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	imull	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %eax
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %r12
	movq	(%r13,%rbx,8), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_paeth
	subq	%rax, %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%r14,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
LBB0_3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	jbe	LBB0_6
## %bb.4:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	decl	%ecx
	imull	%ecx, %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rax,8), %rbx
	movq	(%r15), %rdi
	movq	(%r13,%rax,8), %rsi
	movq	(%r13), %rdx
	callq	_paeth
	subq	%rax, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%r12,%rax,8)
	addq	$8, %r15
	addq	$8, %r13
	addq	$8, %r12
	decl	%r14d
	jne	LBB0_5
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_count_sad                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_paeth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_paeth
_filter_paeth:                          ; @filter_paeth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x22, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mul	w21, w4, w3
	cbz	w4, LBB0_3
; %bb.1:
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	mov	x26, x19
	mov	x27, x22
	mov	w28, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x27], #8
	ldr	x1, [x26], #8
	mov	x0, #0
	mov	x2, #0
	bl	_paeth
	sub	x8, x20, x0
	str	x8, [x25], #8
	subs	x28, x28, #1
	b.ne	LBB0_2
LBB0_3:
	cmp	w21, w23
	b.ls	LBB0_6
; %bb.4:
	mov	w8, w23
	sub	w9, w24, #1
	mul	w23, w23, w9
	lsl	x24, x8, #3
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x22, x24]
	ldr	x0, [x22], #8
	ldr	x1, [x19, x24]
	ldr	x2, [x19], #8
	bl	_paeth
	sub	x8, x20, x0
	str	x8, [x25, x24]
	add	x25, x25, #8
	subs	w23, w23, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	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
	add	sp, sp, #112
	b	_count_sad
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_paeth
.subsections_via_symbols
