	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_unsafe_ssd_integral_image
_compute_unsafe_ssd_integral_image:     ## @compute_unsafe_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
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	64(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	%r8, %r14
	movl	56(%rbp), %r9d
	movl	48(%rbp), %edi
	movl	40(%rbp), %ebx
	movl	32(%rbp), %r8d
	addl	%ecx, %eax
	leal	-1(%rdx), %esi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	decl	%edi
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %esi
	addl	%r8d, %esi
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	leal	(%r9,%rdx), %esi
	decl	%ebx
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %edi
	addl	%r8d, %edi
	movslq	%edx, %rdx
	movslq	%esi, %rsi
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movslq	%ecx, %rbx
	movslq	-52(%rbp), %rsi                 ## 4-byte Folded Reload
	cltq
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%edx, %eax
	subl	%edi, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, %eax
	subl	%r8d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rax
	imulq	%rsi, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdx
	leaq	-1(%rbx), %rax
	imulq	%rsi, %rax
	shlq	$3, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rax,8), %rax
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, %rcx
	cmpq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	movq	%rcx, %rax
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %eax
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	addl	%esi, %eax
	cltq
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rax,8), %r15
	leal	-1(%rbx), %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	cltq
	movq	(%rdx,%rax,8), %r12
	movl	%ebx, %edi
	subl	32(%rbp), %edi
	xorl	%esi, %esi
	movl	-80(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_av_clip
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	subl	-68(%rbp), %edi                 ## 4-byte Folded Reload
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_av_clip
	movq	%r15, %rdx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	56(%rbp), %eax
	testl	%eax, %eax
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	subq	%r12, %rdx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	imull	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	imull	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movl	%eax, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movslq	%r14d, %rcx
	movq	-152(%rbp), %r14                ## 8-byte Reload
	movl	(%r14,%rcx,4), %ecx
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	subl	(%r14,%rax,4), %ecx
	imull	%ecx, %ecx
	addq	%rcx, %rdx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r12,8), %rax
	addq	%rdx, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12,8)
	incq	%r12
	incl	%ebx
	incl	%r13d
	cmpq	%rsi, %r12
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_unsafe_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_unsafe_ssd_integral_image
_compute_unsafe_ssd_integral_image:     ; @compute_unsafe_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
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
                                        ; kill: def $w1 killed $w1 def $x1
	str	x0, [sp, #80]                   ; 8-byte Folded Spill
	ldr	w8, [x29, #32]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x4
	ldp	w9, w11, [x29, #24]
	ldp	w12, w10, [x29, #16]
	add	w8, w8, w3
	sub	w13, w2, #1
	sub	w9, w9, #1
	stp	w9, w13, [sp, #64]              ; 8-byte Folded Spill
	add	w9, w12, w7
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	stp	w12, w11, [sp, #72]             ; 8-byte Folded Spill
	add	w9, w11, w2
	sub	w23, w10, #1
	sxtw	x10, w2
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	sxtw	x26, w9
	sxtw	x21, w3
	sxtw	x10, w1
	sxtw	x8, w8
	stp	x8, x10, [sp, #40]              ; 16-byte Folded Spill
	add	w8, w12, w6
	sub	w8, w2, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	sub	w8, w2, w12
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	smull	x8, w3, w1
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	add	x11, x9, x8, lsl #3
	sbfiz	x8, x1, #3, #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	sub	x8, x21, #1
	mul	x8, x8, x10
	add	x8, x9, x8, lsl #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x21, x10, [sp, #88]             ; 16-byte Folded Reload
	add	x21, x21, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldur	x9, [x29, #-88]                 ; 8-byte Folded Reload
	add	x11, x9, x8
	add	x10, x10, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x21, x8
	mov	x8, x10
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	stur	x11, [x29, #-88]                ; 8-byte Folded Spill
	ldp	w25, w10, [sp, #64]             ; 8-byte Folded Reload
	ldr	x11, [sp, #48]                  ; 8-byte Folded Reload
	madd	w8, w21, w11, w10
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x19, [x9, w8, sxtw #3]
	sub	w8, w21, #1
	madd	w8, w8, w11, w10
	ldr	x22, [x9, w8, sxtw #3]
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	sub	w0, w21, w8
	mov	w1, #0
	mov	x2, x25
	bl	_av_clip
	mov	x24, x0
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	str	x21, [sp, #88]                  ; 8-byte Folded Spill
	sub	w0, w21, w8
	mov	w1, #0
	mov	x2, x25
	bl	_av_clip
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x22, x19, x22
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	mul	w19, w24, w8
	ldp	w24, w25, [sp, #8]              ; 8-byte Folded Reload
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	mul	w27, w0, w8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	mov	x21, x26
	mov	x26, x0
	mov	x0, x25
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	add	w8, w26, w19
	mov	x26, x21
	ldr	w8, [x20, w8, sxtw #2]
	add	w9, w0, w27
	ldr	w9, [x20, w9, sxtw #2]
	sub	w8, w8, w9
	mul	w8, w8, w8
	lsl	x9, x28, #3
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	ldr	x10, [x10, x9]
	add	x22, x22, x8
	add	x8, x22, x10
	ldur	x10, [x29, #-88]                ; 8-byte Folded Reload
	str	x8, [x10, x9]
	add	x28, x28, #1
	add	w25, w25, #1
	add	w24, w24, #1
	cmp	x28, x21
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	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_unsafe_ssd_integral_image
.subsections_via_symbols
