	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_diff_map
_build_diff_map:                        ## @build_diff_map
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	32(%rbp), %r10d
	movl	24(%rbp), %r14d
	xorl	%eax, %eax
	cmpl	$0, 40(%rbp)
	sete	%al
	movl	(%rdi,%rax,4), %r9d
	movq	8(%rdi), %r13
	movl	%r14d, %eax
	sarl	%eax
	movq	%rsi, %rdi
	movl	%edx, %esi
	movq	%rcx, %rdx
	movl	%r8d, %ecx
	movq	%r13, %r8
	movl	%r9d, %ebx
	pushq	%rax
	pushq	%r10
	callq	_build_abs_diff_mask
	addq	$16, %rsp
	cmpl	$5, %r14d
	jl	LBB0_37
## %bb.1:
	movq	%r14, %rax
	movslq	%ebx, %rdx
	leal	-2(%r14), %ecx
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	addl	%ebx, %ebx
	addl	$-4, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movslq	16(%rbp), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movslq	%ebx, %rax
	negl	%ebx
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %ecx
	addl	$-2, %ecx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	leaq	(,%rdx,4), %rcx
	addq	%rdx, %rax
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r13,%rdx,8), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$2, %r9d
	movl	$1, %r10d
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax,4), %r15
	addl	$2, %r9d
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, -120(%rbp)                ## 8-byte Folded Spill
	addq	%rcx, -128(%rbp)                ## 8-byte Folded Spill
	movq	%rsi, %r13
	cmpl	-96(%rbp), %r9d                 ## 4-byte Folded Reload
	jge	LBB0_37
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
	leaq	(%rcx,%r13), %rsi
	movl	32(%rbp), %eax
	cmpl	$3, %eax
	jl	LBB0_36
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
	xorl	%r14d, %r14d
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=2
	orl	(%r15,%r12,4), %eax
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, (%r15,%r12,4)
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r12
	incq	%r14
	cmpq	-168(%rbp), %r14                ## 8-byte Folded Reload
	je	LBB0_36
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	movl	(%rsi,%r12,4), %edx
	cmpl	$4, %edx
	jl	LBB0_35
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	2(%r12), %r8
	xorl	%eax, %eax
	cmpl	$4, (%r13,%r14,4)
	setge	%al
	xorl	%ebx, %ebx
	cmpl	$4, (%rsi,%r14,4)
	setge	%bl
	addl	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %r11
	xorl	%edi, %edi
	cmpl	$4, (%rsi,%r11,4)
	setge	%dil
	addl	%ebx, %edi
	leaq	1(%r14), %rax
	cmpq	%r8, %rax
	jae	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %edi
	ja	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ebx, %ebx
	cmpl	$4, 4(%r13,%r14,4)
	setge	%bl
	addl	%ebx, %edi
	xorl	%ebx, %ebx
	cmpl	$4, 4(%rsi,%r14,4)
	setge	%bl
	addl	%edi, %ebx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	xorl	%edi, %edi
	cmpl	$4, (%rsi,%rcx,4)
	setge	%dil
	addl	%ebx, %edi
	cmpq	%r12, %r14
	jae	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %edi
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ecx, %ecx
	cmpl	$4, 8(%r13,%r14,4)
	setge	%cl
	addl	%ecx, %edi
	xorl	%ecx, %ecx
	cmpl	$4, 8(%rsi,%r14,4)
	setge	%cl
	addl	%edi, %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%r14,%rdi), %rbx
	addq	$2, %rbx
	xorl	%edi, %edi
	cmpl	$4, (%rsi,%rbx,4)
	setge	%dil
	addl	%ecx, %edi
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$2, %edi
	jl	LBB0_35
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, (%r15,%r12,4)
	cmpl	$20, %edx
	jl	LBB0_35
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edi, %edi
	cmpl	$20, (%r13,%r14,4)
	setge	%dil
	xorl	%edx, %edx
	cmpl	$20, (%rsi,%r14,4)
	setge	%dl
	addl	%edi, %edx
	xorl	%ebx, %ebx
	cmpl	$20, (%rsi,%r11,4)
	setge	%bl
	addl	%ebx, %edx
	cmpq	%r8, %rax
	jae	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$5, %edx
	ja	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ecx, %ecx
	cmpl	$20, 4(%r13,%r14,4)
	setge	%cl
	cmovgel	%r10d, %edi
	addl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$20, 4(%rsi,%r14,4)
	setge	%cl
	addl	%edx, %ecx
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	xorl	%edx, %edx
	cmpl	$20, (%rsi,%rax,4)
	setge	%dl
	cmovgel	%r10d, %ebx
	addl	%ecx, %edx
	cmpq	%r12, %r14
	jae	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$5, %edx
	ja	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	cmpl	$20, 8(%r13,%r14,4)
	setge	%al
	cmovgel	%r10d, %edi
	addl	%eax, %edx
	xorl	%eax, %eax
	cmpl	$20, 8(%rsi,%r14,4)
	setge	%al
	addl	%edx, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	%r14, %rcx
	addq	$2, %rcx
	xorl	%edx, %edx
	cmpl	$20, (%rsi,%rcx,4)
	setge	%dl
	cmovgel	%r10d, %ebx
	addl	%eax, %edx
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$4, %edx
	jl	LBB0_35
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	testl	%edi, %edi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$3, %eax
	testl	%ebx, %ebx
	jne	LBB0_34
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	leal	-4(%r12), %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	leal	5(%r12), %edi
	movl	%edi, -100(%rbp)                ## 4-byte Spill
	movl	32(%rbp), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	cmpl	%eax, %ebx
	jge	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=2
	movslq	%ebx, %r15
	leaq	(%r13,%r15,4), %r13
	addl	-92(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=3
	incq	%r15
	movl	-100(%rbp), %edi                ## 4-byte Reload
	movl	32(%rbp), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	cltq
	addq	$4, %r13
	incl	%ebx
	cmpq	%rax, %r15
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	jge	LBB0_28
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	$2, %r9d
	movl	$1, %ecx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=3
	movslq	%ebx, %rax
	cmpl	$20, (%rsi,%rax,4)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmovgel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=3
	cmpl	$20, (%r13)
	cmovgel	%ecx, %edx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpl	$20, (%rax,%r15,4)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmovgel	%ecx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	-160(%rbp), %r9d                ## 4-byte Folded Reload
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=3
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpl	$20, (%rax,%r15,4)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovgel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_27
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=2
	testl	%edx, %edx
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movl	$1, %r10d
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$2, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, -52(%rbp)                 ## 4-byte Folded Spill
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_33
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$2, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$4, %eax
	cmpl	$6, %ecx
	jge	LBB0_33
	jmp	LBB0_35
LBB0_37:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_build_diff_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_diff_map
_build_diff_map:                        ; @build_diff_map
	.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
	mov	x22, x6
	mov	x20, x5
	ldp	w6, w8, [x29, #16]
	cmp	w8, #0
	cset	w8, eq
	ldr	w24, [x0, w8, uxtw #2]
	ldr	x27, [x0, #8]
	asr	w7, w7, #1
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x27
	mov	x5, x24
	stur	w6, [x29, #-92]                 ; 4-byte Folded Spill
	bl	_build_abs_diff_mask
	cmp	w23, #5
	b.lt	LBB0_39
; %bb.1:
	sxtw	x15, w24
	sub	w16, w23, #2
	lsl	w8, w15, #1
	neg	w9, w8
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	sub	w9, w23, #4
	str	w9, [sp, #88]                   ; 4-byte Folded Spill
	sxtw	x17, w22
	ldur	w9, [x29, #-92]                 ; 4-byte Folded Reload
	sub	w0, w9, #2
	lsl	x1, x15, #2
	add	x8, x15, w8, sxtw
	add	x8, x27, x8, lsl #2
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	add	x8, x27, x15, lsl #3
	stur	x8, [x29, #-88]                 ; 8-byte Folded Spill
	mov	w2, #2
	mov	w3, #1
	str	x15, [sp, #48]                  ; 8-byte Folded Spill
	str	w16, [sp, #44]                  ; 4-byte Folded Spill
	stp	x0, x17, [sp, #24]              ; 16-byte Folded Spill
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, x17, lsl #2
	add	w2, w2, #2
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x8, x8, x1
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	add	x8, x8, x1
	stur	x8, [x29, #-88]                 ; 8-byte Folded Spill
	mov	x27, x21
	cmp	w2, w16
	b.ge	LBB0_39
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_27 Depth 3
	add	x21, x27, x1
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	mov	w19, #1
	stp	x20, x27, [sp, #64]             ; 16-byte Folded Spill
	str	w2, [sp, #96]                   ; 4-byte Folded Spill
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #3
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	str	w8, [x20, x19, lsl #2]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x19, x19, #1
	add	x28, x28, #1
	cmp	x28, x0
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_27 Depth 3
	ldr	w10, [x21, x19, lsl #2]
	cmp	w10, #4
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	lsl	x9, x28, #2
	ldr	w11, [x27, x9]
	ldr	w12, [x21, x9]
	add	x8, x19, #2
	cmp	w12, #3
	cset	w12, gt
	cmp	w11, #3
	cinc	w11, w12, gt
	add	x12, x28, x15
	ldr	w12, [x21, x12, lsl #2]
	cmp	w12, #3
	cinc	w11, w11, gt
	add	x12, x28, #1
	cmp	x12, x8
	b.hs	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #1
	b.hi	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	lsl	x13, x12, #2
	ldr	w14, [x27, x13]
	cmp	w14, #3
	cinc	w11, w11, gt
	ldr	w13, [x21, x13]
	cmp	w13, #3
	cinc	w11, w11, gt
	add	x12, x12, x15
	ldr	w12, [x21, x12, lsl #2]
	cmp	w12, #3
	cinc	w11, w11, gt
	cmp	x28, x19
	b.hs	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #1
	b.hi	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x12, x28, #2
	lsl	x13, x12, #2
	ldr	w14, [x27, x13]
	cmp	w14, #3
	cinc	w11, w11, gt
	ldr	w13, [x21, x13]
	cmp	w13, #3
	cinc	w11, w11, gt
	add	x12, x12, x15
	ldr	w12, [x21, x12, lsl #2]
	cmp	w12, #3
	cinc	w11, w11, gt
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #2
	b.lt	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	str	w3, [x20, x19, lsl #2]
	cmp	w10, #20
	b.lt	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w10, [x27, x9]
	cmp	w10, #19
	cset	w25, gt
	ldr	w9, [x21, x9]
	cmp	w9, #19
	add	x9, x28, x15
	ldr	w9, [x21, x9, lsl #2]
	cinc	w10, w25, gt
	cmp	w9, #19
	cset	w26, gt
	cinc	w11, w10, gt
	add	x9, x28, #1
	cmp	x9, x8
	b.hs	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #5
	b.hi	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=2
	lsl	x8, x9, #2
	ldr	w10, [x27, x8]
	cmp	w10, #19
	cinc	w10, w11, gt
	csinc	w25, w25, wzr, le
	ldr	w8, [x21, x8]
	cmp	w8, #19
	cinc	w8, w10, gt
	add	x9, x9, x15
	ldr	w9, [x21, x9, lsl #2]
	cmp	w9, #19
	cinc	w11, w8, gt
	csinc	w26, w26, wzr, le
	cmp	x28, x19
	b.hs	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #5
	b.hi	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x28, #2
	lsl	x9, x8, #2
	ldr	w10, [x27, x9]
	cmp	w10, #19
	cinc	w10, w11, gt
	csinc	w25, w25, wzr, le
	ldr	w9, [x21, x9]
	cmp	w9, #19
	cinc	w9, w10, gt
	add	x8, x8, x15
	ldr	w8, [x21, x8, lsl #2]
	cmp	w8, #19
	cinc	w11, w9, gt
	csinc	w26, w26, wzr, le
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #4
	b.lt	LBB0_7
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=2
	cbz	w25, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=2
	cbnz	w26, LBB0_5
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=2
	str	w11, [sp, #60]                  ; 4-byte Folded Spill
	sub	w0, w19, #4
	mov	w1, #0
	bl	_FFMAX
	mov	x23, x0
	add	w22, w19, #5
	mov	x0, x22
	ldur	w1, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_FFMIN
	cmp	w23, w0
	b.ge	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_8 Depth=2
	str	wzr, [sp, #92]                  ; 4-byte Folded Spill
	mov	w24, #0
	sxtw	x20, w23
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w27, w8, w23
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x23, x8, w23, sxtw #2
	ldr	w2, [sp, #96]                   ; 4-byte Folded Reload
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=3
	add	x20, x20, #1
	mov	x0, x22
	ldur	w1, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_FFMIN
	add	x23, x23, #4
	add	w27, w27, #1
	cmp	x20, w0, sxtw
	ldr	w2, [sp, #96]                   ; 4-byte Folded Reload
	b.ge	LBB0_32
LBB0_27:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w2, #2
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=3
	ldr	w8, [x21, w27, sxtw #2]
	cmp	w8, #19
	csinc	w24, w24, wzr, le
LBB0_29:                                ;   in Loop: Header=BB0_27 Depth=3
	ldr	w8, [x23]
	cmp	w8, #19
	csinc	w25, w25, wzr, le
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	ldr	w8, [x8, x20, lsl #2]
	cmp	w8, #19
	csinc	w26, w26, wzr, le
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	cmp	w2, w8
	b.eq	LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=3
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x20, lsl #2]
	cmp	w8, #19
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, le
	str	w8, [sp, #92]                   ; 4-byte Folded Spill
	b	LBB0_26
LBB0_31:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w24, #0
	str	wzr, [sp, #92]                  ; 4-byte Folded Spill
	ldr	w2, [sp, #96]                   ; 4-byte Folded Reload
LBB0_32:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x20, [sp, #64]                  ; 8-byte Folded Reload
	cbz	w25, LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_8 Depth=2
	orr	w8, w26, w24
	ldr	x27, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x15, [sp, #48]                  ; 8-byte Folded Reload
	ldp	x0, x17, [sp, #24]              ; 16-byte Folded Reload
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	w3, #1
	cbz	w8, LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #2
	ldr	w16, [sp, #44]                  ; 4-byte Folded Reload
	b	LBB0_38
LBB0_35:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w26, #0
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #4, ne
	ldr	x27, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x15, [sp, #48]                  ; 8-byte Folded Reload
	ldp	x0, x17, [sp, #24]              ; 16-byte Folded Reload
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	w3, #1
	b.ne	LBB0_34
LBB0_36:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w8, #6
	ldr	w16, [sp, #44]                  ; 4-byte Folded Reload
	b.lt	LBB0_7
; %bb.37:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #4
LBB0_38:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w9, [x20, x19, lsl #2]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_39:
	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	_build_diff_map
.subsections_via_symbols
