	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function double_threshold
_double_threshold:                      ## @double_threshold
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_30
## %bb.1:
	movl	24(%rbp), %ecx
	movq	16(%rbp), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leal	-1(%rdi), %r10d
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %r11d
	movslq	%r9d, %r9
	movslq	%ecx, %rdx
	movl	%edi, %ebx
	movl	%edx, %ecx
	notl	%ecx
	movslq	%ecx, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %edi
	negl	%edi
	movslq	%edi, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %ecx
	subl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %r9
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rdx,4), %r13
	addq	$8, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,4), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	decq	%r10
	decq	%rbx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	-112(%rbp), %r8                 ## 8-byte Folded Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	incl	%r14d
	addq	%rcx, %r13
	cmpl	-72(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_30
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_29
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r9d, %r9d
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%esi, (%rax,%rdx,4)
	jg	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%esi, (%rax,%rdx,4)
	jg	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%esi, (%rax,%rdx,4)
	jg	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%esi, -4(%rax)
	jg	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%esi, 4(%rax)
	jg	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%esi, -4(%rax,%rdx,4)
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%esi, (%rax,%rdx,4)
	jg	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%esi, 4(%rax,%rdx,4)
	jle	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r9d
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, (%r8)
	cmpl	$1, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r9d, %r9d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=2
	xorl	%ecx, %ecx
LBB0_28:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	%ecx, 4(%r8,%r9,4)
	incq	%r9
	cmpq	%r9, %rbx
	je	LBB0_29
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rax,%r9,4), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_28
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%r11d, %r14d
	sete	%r15b
	testl	%r14d, %r14d
	sete	%dl
	cmpq	%r9, %r10
	sete	%r12b
	orb	%dl, %r12b
	orb	%r15b, %r12b
	cmpb	$1, %r12b
	jne	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jle	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	(%rdi,%r9), %rdx
	movslq	%edx, %rdx
	cmpl	%esi, (%rax,%rdx,4)
	jg	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	(%rdi,%r9), %rdx
	incq	%rdx
	movslq	%edx, %rdx
	cmpl	%esi, (%rax,%rdx,4)
	jg	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=2
	leal	(%rdi,%r9), %edx
	addl	$2, %edx
	movslq	%edx, %rdx
	cmpl	%esi, (%rax,%rdx,4)
	jg	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%esi, (%rax,%r9,4)
	jg	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%esi, 8(%rax,%r9,4)
	jg	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%esi, -8(%r13,%r9,4)
	jg	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%esi, -4(%r13,%r9,4)
	jg	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%esi, (%r13,%r9,4)
	jle	LBB0_27
	jmp	LBB0_28
LBB0_30:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_double_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function double_threshold
_double_threshold:                      ; @double_threshold
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	.cfi_offset w25, -56
	.cfi_offset w26, -64
                                        ; kill: def $w7 killed $w7 def $x7
                                        ; kill: def $w5 killed $w5 def $x5
	subs	w8, w3, #1
	b.lt	LBB0_29
; %bb.1:
	mov	w9, #0
	sub	w20, w2, #1
	mov	w19, w2
	sxtw	x10, w7
	mvn	w11, w7
	sxtw	x11, w11
	neg	w12, w7
	mov	x13, x12
	sxtw	x13, w13
	mov	w14, #1
	sub	w14, w14, w7
	sxtw	x14, w14
	sub	x15, x10, #1
	add	x16, x10, #1
	sbfiz	x17, x5, #2, #32
	sub	x5, x19, #1
	sbfiz	x7, x7, #2, #32
	add	x19, x6, #4
	sub	x20, x20, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x4, x4, x17
	add	x6, x6, x10, lsl #2
	add	w9, w9, #1
	add	x19, x19, x7
	cmp	w9, w3
	b.eq	LBB0_29
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x6]
	cmp	w21, w1
	b.gt	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, w0
	b.le	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x6, x11, lsl #2]
	cmp	w22, w1
	b.gt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x6, x13, lsl #2]
	cmp	w22, w1
	b.gt	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x6, x14, lsl #2]
	cmp	w22, w1
	b.gt	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w22, [x6, #-4]
	cmp	w22, w1
	b.gt	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x6, #4]
	cmp	w22, w1
	b.gt	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x6, x15, lsl #2]
	cmp	w22, w1
	b.gt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x6, x10, lsl #2]
	cmp	w22, w1
	b.gt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x6, x16, lsl #2]
	cmp	w22, w1
	b.gt	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #0
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [x4]
	cmp	w2, #1
	b.eq	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	x22, x19
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	w23, #0
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x24, x4, x21, lsl #2
	str	w23, [x24, #4]
	add	x21, x21, #1
	add	x22, x22, #4
	cmp	x5, x21
	b.eq	LBB0_2
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x22]
	cmp	w23, w1
	b.gt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	cmp	w9, w8
	ccmp	w9, #0, #4, ne
	ccmp	x20, x21, #4, ne
	ccmp	w23, w0, #4, eq
	b.le	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x24, x12, x21
	ldr	w25, [x6, w24, sxtw #2]
	cmp	w25, w1
	b.gt	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x24, x24, #1
	ldr	w24, [x6, w24, sxtw #2]
	cmp	w24, w1
	b.gt	LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=2
	add	w24, w12, w21
	add	w24, w24, #2
	ldr	w24, [x6, w24, sxtw #2]
	cmp	w24, w1
	b.gt	LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=2
	ldur	w24, [x22, #-4]
	cmp	w24, w1
	b.gt	LBB0_18
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w24, [x22, #4]
	cmp	w24, w1
	b.gt	LBB0_18
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x24, x22, x7
	ldur	w24, [x24, #-4]
	cmp	w24, w1
	b.gt	LBB0_18
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w24, [x22, x7]
	cmp	w24, w1
	b.gt	LBB0_18
; %bb.28:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x24, x22, x7
	ldr	w24, [x24, #4]
	cmp	w24, w1
	b.le	LBB0_17
	b	LBB0_18
LBB0_29:
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_double_threshold
.subsections_via_symbols
