	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function computeRegionDelta
_computeRegionDelta:                    ## @computeRegionDelta
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %r9d
	cmovlel	%ecx, %r14d
	movl	16(%rbp), %esi
	movl	$-1, %eax
	cmovlel	%eax, %ebx
	movl	%r8d, %edi
	callq	_Min
	cmpl	%eax, %r14d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jge	LBB0_16
## %bb.1:
	movslq	%eax, %r12
	movq	_MATCH_THRESHOLD@GOTPCREL(%rip), %r8
	movabsq	$4294967296, %r9                ## imm = 0x100000000
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %ebx
	cmpl	%eax, %r14d
	jge	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movslq	%r14d, %rdi
	movb	(%r15,%rdi), %cl
	cmpb	(%r13,%rdi), %cl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edx
	movl	%ebx, %esi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	movl	%edi, %esi
	cmovnsl	%ebx, %esi
	movq	%rdi, %rcx
	shlq	$32, %rcx
	incq	%rdi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r12, %rdi
	jge	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movzbl	(%r15,%rdi), %edx
	addq	%r9, %rcx
	incl	%r14d
	leaq	1(%rdi), %rbx
	cmpb	(%r13,%rdi), %dl
	movq	%rbx, %rdi
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	sarq	$32, %rcx
	movq	%rcx, %rdi
	movl	%r14d, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rdx), %r14d
	cmpl	%r14d, %eax
	cmovgl	%eax, %r14d
	incq	%rdi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r12, %rdi
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	(%r15,%rdi), %ebx
	leaq	1(%rdi), %rcx
	cmpb	(%r13,%rdi), %bl
	movq	%rcx, %rdi
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	decl	%ecx
	movl	%ecx, %r14d
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	js	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %ecx
	subl	%edx, %ecx
	cmpl	(%r8), %ecx
	jle	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	subl	%esi, %edx
	movl	%esi, %ecx
	addq	%r13, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %rbx
	callq	_writeFragment
	movabsq	$4294967296, %r9                ## imm = 0x100000000
	movq	%rbx, %r8
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$-1, %esi
	movl	$-1, %edx
	jmp	LBB0_2
LBB0_16:
	movl	%ebx, %esi
LBB0_17:
	movl	$-1, %edx
LBB0_18:
	testl	%esi, %esi
	movl	%esi, %ebx
	cmovsl	%eax, %ebx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovgel	%esi, %ebx
	testl	%ebx, %ebx
	js	LBB0_20
## %bb.19:
	cmpl	%ecx, %eax
	cmovll	%ecx, %edx
	testl	%edx, %edx
	cmovsl	%ecx, %edx
	subl	%ebx, %edx
	movl	%ebx, %ecx
	addq	%rcx, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r13, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writeFragment                  ## TAILCALL
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATCH_THRESHOLD,4,2            ## @MATCH_THRESHOLD
	.no_dead_strip	_computeRegionDelta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function computeRegionDelta
_computeRegionDelta:                    ; @computeRegionDelta
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	cmp	w5, w3
	csel	w25, w5, w3, gt
	csinv	w23, w3, wzr, gt
	mov	x0, x4
	mov	x1, x6
	bl	_Min
	mov	x22, x0
	cmp	w25, w0
	b.ge	LBB0_15
; %bb.1:
	sxtw	x26, w22
Lloh0:
	adrp	x27, _MATCH_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MATCH_THRESHOLD@GOTPAGEOFF]
	mov	x28, #4294967296
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w22
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	sxtw	x9, w25
	ldrb	w8, [x24, x9]
	ldrb	w10, [x19, x9]
	cmp	w8, w10
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #0
	csel	w23, w25, w23, lt
	lsl	x8, x9, #32
	add	x9, x9, #1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x9, x26
	b.ge	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w10, [x24, x9]
	ldrb	w11, [x19, x9]
	add	x8, x8, x28
	add	w25, w25, #1
	add	x9, x9, #1
	cmp	w10, w11
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	asr	x9, x8, #32
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x25
	add	w10, w25, #1
	cmp	w22, w10
	csinc	w25, w22, w25, gt
	add	x9, x9, #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x9, x26
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w10, [x24, x9]
	ldrb	w11, [x19, x9]
	add	x9, x9, #1
	cmp	w10, w11
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w25, w9, #1
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w23, #31, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x27]
	sub	w10, w25, w8
	cmp	w10, w9
	b.le	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w2, w8, w23
	add	x3, x19, w23, uxtw
	mov	x0, x21
	mov	x1, x23
	bl	_writeFragment
	mov	w23, #-1
	mov	w8, #-1
	b	LBB0_2
LBB0_15:
	mov	w8, #-1
LBB0_16:
	cmp	w23, #0
	ccmp	w22, w20, #0, lt
	csel	w1, w22, w23, lt
	tbnz	w1, #31, LBB0_18
; %bb.17:
	cmp	w22, w20
	csel	w8, w20, w8, lt
	cmp	w8, #0
	csel	w8, w20, w8, lt
	sub	w2, w8, w1
	add	x3, x19, w1, uxtw
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_writeFragment
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MATCH_THRESHOLD,4,2            ; @MATCH_THRESHOLD
	.no_dead_strip	_computeRegionDelta
.subsections_via_symbols
