	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_ssd_integral_image
_compute_ssd_integral_image:            ## @compute_ssd_integral_image
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movl	32(%rbp), %r14d
	movl	24(%rbp), %ebx
	movl	16(%rbp), %ecx
	leal	(%rbx,%rbx), %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leal	(%r14,%rbx,2), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%r9), %esi
	leal	(%rbx,%rcx), %r13d
	movl	%ebx, %edi
	movq	%rsi, %r12
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	callq	_FFMAX
	movl	%eax, %r15d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movl	%r13d, %esi
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	callq	_FFMAX
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leal	(%r14,%rbx), %edi
	leal	(%r12,%r14), %esi
	callq	_FFMIN
	movl	%eax, %ebx
	movl	40(%rbp), %r14d
	movl	24(%rbp), %eax
	leal	(%r14,%rax), %edi
	leal	(%r14,%r13), %esi
	movq	%r14, %r13
	callq	_FFMIN
	subl	%r15d, %ebx
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	subl	%ebx, %r14d
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r9d
	pushq	%rbx
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	movq	-120(%rbp), %r13                ## 8-byte Reload
	pushq	%r13
	callq	_compute_unsafe_ssd_integral_image
	addq	$56, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	%r15d, %r9d
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	pushq	%r14
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	pushq	%r14
	movl	40(%rbp), %eax
	pushq	%rax
	movl	32(%rbp), %r15d
	pushq	%r15
	movl	24(%rbp), %r12d
	pushq	%r12
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%r13
	callq	_compute_unsafe_ssd_integral_image
	addq	$64, %rsp
	movl	%r14d, %ebx
	subl	%r12d, %ebx
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert1
	xorl	%edi, %edi
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	cmpl	%r15d, %ebx
	setl	%dil
	callq	_av_assert1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %r15d
	subl	%r12d, %r15d
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert1
	xorl	%edi, %edi
	movl	40(%rbp), %ebx
	cmpl	%ebx, %r15d
	setl	%dil
	callq	_av_assert1
	movl	%r14d, %r12d
	subl	-136(%rbp), %r12d               ## 4-byte Folded Reload
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert1
	xorl	%edi, %edi
	movl	32(%rbp), %eax
	cmpl	%eax, %r12d
	setl	%dil
	callq	_av_assert1
	movl	%r13d, %r14d
	subl	-144(%rbp), %r14d               ## 4-byte Folded Reload
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert1
	xorl	%edi, %edi
	cmpl	%ebx, %r14d
	setl	%dil
	callq	_av_assert1
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%r13, %rcx
	andl	$-16, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	%ecx, -60(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movl	%ecx, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %eax
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	imull	%r9d, %r15d
	movslq	%r15d, %rax
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	leaq	(%r8,%rax,4), %rax
	movslq	-100(%rbp), %rcx                ## 4-byte Folded Reload
	leaq	(%rax,%rcx,4), %rdx
	imull	%r9d, %r14d
	movslq	%r14d, %rax
	leaq	(%r8,%rax,4), %rax
	movslq	%r12d, %rcx
	leaq	(%rax,%rcx,4), %r8
	movl	%r9d, %ecx
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	%rbx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	callq	*(%rax)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %rsp
LBB0_3:
	addl	-80(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	40(%rbp), %eax
	movq	-160(%rbp), %r14                ## 8-byte Reload
	addl	%eax, %r14d
	movq	%rax, %r10
	movq	-96(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	subl	%ebx, %eax
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r8
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r10
	movl	32(%rbp), %r12d
	pushq	%r12
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	movq	-120(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	callq	_compute_unsafe_ssd_integral_image
	addq	$64, %rsp
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	subl	%ecx, %r14d
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	movl	%ebx, %r9d
	pushq	%r14
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	movl	40(%rbp), %eax
	pushq	%rax
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%r12
	callq	_compute_unsafe_ssd_integral_image
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_ssd_integral_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_ssd_integral_image
_compute_ssd_integral_image:            ; @compute_ssd_integral_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x7
	stp	w5, w6, [sp, #88]               ; 8-byte Folded Spill
	stur	w4, [x29, #-92]                 ; 4-byte Folded Spill
	stur	x3, [x29, #-88]                 ; 8-byte Folded Spill
	mov	x20, x2
	mov	x27, x1
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldp	w22, w25, [x29, #16]
	lsl	w8, w7, #1
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	add	w19, w8, w22
	add	w1, w7, w5
	add	w21, w7, w6
	mov	x0, x7
	mov	x26, x1
	str	w1, [sp, #52]                   ; 4-byte Folded Spill
	bl	_FFMAX
	mov	x24, x0
	mov	x0, x23
	mov	x1, x21
	str	w21, [sp, #48]                  ; 4-byte Folded Spill
	bl	_FFMAX
	mov	x28, x0
	add	w0, w22, w23
	add	w1, w26, w22
	bl	_FFMIN
	mov	x26, x0
	add	w0, w25, w23
	add	w1, w21, w25
	bl	_FFMIN
	sub	w8, w26, w24
	and	w8, w8, #0xfffffff0
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	str	w0, [sp, #84]                   ; 4-byte Folded Spill
	str	w28, [sp, #44]                  ; 4-byte Folded Spill
	sub	w8, w0, w28
	str	w8, [sp, #96]                   ; 4-byte Folded Spill
	stp	w19, w28, [sp, #12]
	str	w19, [sp, #64]                  ; 4-byte Folded Spill
	mov	x26, x24
	stp	w22, w25, [sp, #4]
	str	w23, [sp]
	mov	x0, x27
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	ldur	x24, [x29, #-88]                ; 8-byte Folded Reload
	mov	x4, x24
	ldur	w19, [x29, #-92]                ; 4-byte Folded Reload
	mov	x5, x19
	ldp	w28, w21, [sp, #88]             ; 8-byte Folded Reload
	mov	x6, x28
	mov	x7, x21
	bl	_compute_unsafe_ssd_integral_image
	ldr	w8, [sp, #96]                   ; 4-byte Folded Reload
	stp	w26, w8, [sp, #12]
	stp	w22, w25, [sp, #4]
	str	w23, [sp]
	str	x27, [sp, #72]                  ; 8-byte Folded Spill
	mov	x0, x27
	mov	x1, x20
	mov	x20, x25
	str	w1, [sp, #80]                   ; 4-byte Folded Spill
	mov	w2, #0
	ldr	w25, [sp, #44]                  ; 4-byte Folded Reload
	mov	x3, x25
	mov	x4, x24
	mov	x5, x19
	mov	x6, x28
	mov	x7, x21
	bl	_compute_unsafe_ssd_integral_image
	mov	x19, x26
	sub	w26, w26, w23
	mvn	w8, w26
	lsr	w0, w8, #31
	bl	_av_assert1
	cmp	w26, w22
	cset	w0, lt
	bl	_av_assert1
	sub	w24, w25, w23
	mvn	w8, w24
	lsr	w0, w8, #31
	bl	_av_assert1
	cmp	w24, w20
	cset	w0, lt
	bl	_av_assert1
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	str	w19, [sp, #68]                  ; 4-byte Folded Spill
	sub	w19, w19, w8
	mvn	w8, w19
	lsr	w0, w8, #31
	bl	_av_assert1
	cmp	w19, w22
	cset	w0, lt
	bl	_av_assert1
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	mov	x21, x25
	sub	w25, w25, w8
	mvn	w8, w25
	lsr	w0, w8, #31
	bl	_av_assert1
	cmp	w25, w20
	cset	w0, lt
	bl	_av_assert1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	mov	x27, x8
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w8, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w1, [sp, #80]                   ; 4-byte Folded Reload
	mul	w9, w21, w1
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	add	x9, x10, w9, sxtw #2
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	add	x0, x9, w10, sxtw #2
	ldur	w3, [x29, #-92]                 ; 4-byte Folded Reload
	mul	w9, w24, w3
	ldur	x10, [x29, #-88]                ; 8-byte Folded Reload
	add	x9, x10, w9, sxtw #2
	add	x2, x9, w26, sxtw #2
	mul	w9, w25, w3
	add	x9, x10, w9, sxtw #2
	add	x4, x9, w19, sxtw #2
	mov	x5, x3
	mov	x6, x27
	ldr	w7, [sp, #96]                   ; 4-byte Folded Reload
	blr	x8
LBB0_3:
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	add	w8, w8, w20
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	add	w2, w27, w8
	ldr	w27, [sp, #64]                  ; 4-byte Folded Reload
	sub	w8, w27, w2
	ldp	w24, w9, [sp, #92]              ; 8-byte Folded Reload
	stp	w8, w9, [sp, #12]
	stp	w23, w22, [sp]
	str	w20, [sp, #8]
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x19
	ldr	w28, [sp, #80]                  ; 4-byte Folded Reload
	mov	x1, x28
	mov	x3, x21
	ldur	x21, [x29, #-88]                ; 8-byte Folded Reload
	mov	x4, x21
	ldur	w26, [x29, #-92]                ; 4-byte Folded Reload
	mov	x5, x26
	ldr	w25, [sp, #88]                  ; 4-byte Folded Reload
	mov	x6, x25
	mov	x7, x24
	bl	_compute_unsafe_ssd_integral_image
	ldr	w3, [sp, #84]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	sub	w8, w8, w3
	stp	w27, w8, [sp, #12]
	stp	w22, w20, [sp, #4]
	str	w23, [sp]
	mov	x0, x19
	mov	x1, x28
	mov	w2, #0
	mov	x4, x21
	mov	x5, x26
	mov	x6, x25
	mov	x7, x24
	bl	_compute_unsafe_ssd_integral_image
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_ssd_integral_image
.subsections_via_symbols
